/* Base & Variables */
:root {
    --color-red: #B22234;
    --color-blue: #002868; /* Flag Blue */
    --color-white: #FFFFFF;
    --color-grey: #f4f4f4;
    --color-text: #333333;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Scroll Lock Class */
body.scroll-locked {
    overflow: hidden;
    height: 100vh;
}

/* Typography */
h1, h2, h3, h4, .logo-text, .footer-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-blue);
    text-transform: uppercase;
}

h1 { font-weight: 900; }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 80px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .header-logo { height: 60px; }
    .logo-text { font-size: 1.1rem; }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 120px; /* Accounts for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002868 0%, #001538 100%);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 50l50-50v100z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}

.badge-alert {
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-section h1 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subheadline {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border: 5px solid var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.video-container video {
    width: 100%;
    max-height: 45vh;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 40, 104, 0.85); /* Blue tint */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s;
    padding: 20px;
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.scroll-indicator {
    font-size: 1rem;
    color: var(--color-white);
    font-weight: bold;
    animation: bounce 2s infinite;
}

.scroll-indicator.hidden {
    display: none;
}

.arrow-down {
    font-size: 2rem;
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--color-grey);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--color-red);
    margin: 0 auto 50px auto;
}

.title-underline-left {
    width: 80px;
    height: 4px;
    background-color: var(--color-red);
    margin: 0 0 30px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    border-top: 5px solid var(--color-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--color-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--color-red);
}

.service-intro {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.service-card p {
    margin-bottom: 20px;
    color: #555;
}

.service-details h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--color-blue);
}

.service-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-details li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    color: #444;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: bold;
}

.service-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--color-blue);
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2.5rem; }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background-color: var(--color-grey);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    font-family: var(--font-secondary);
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-red);
}

.accordion-header.active::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--color-white);
}

.accordion-content p {
    padding: 20px;
    color: #555;
    font-family: var(--font-secondary);
    line-height: 1.6;
}

/* Qualification Form Section */
.form-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.form-wrapper {
    display: flex;
    background: linear-gradient(to right, #002868, #001a45);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.form-info-panel {
    flex: 1;
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
}

.form-info-panel h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.form-highlights {
    list-style: none;
    margin-bottom: 40px;
}

.form-highlights li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.icon-box {
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.trust-graphic {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.form-trust-logo {
    max-width: 350px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.form-input-panel {
    flex: 1;
    background: white;
    padding: 50px;
}

.form-instruction {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.qualify-form .form-group {
    margin-bottom: 20px;
}

.qualify-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-blue);
    font-size: 0.9rem;
}

.qualify-form input, .qualify-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.qualify-form input:focus, .qualify-form select:focus {
    outline: none;
    border-color: var(--color-red);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* CTA Button */
.cta-button {
    width: 100%;
    background-color: var(--color-red);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    box-shadow: 0 6px 15px rgba(178, 34, 52, 0.3);
}

.cta-button:not(:disabled):hover {
    background-color: #8f1b29;
    transform: translateY(-2px);
}

.cta-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.badge {
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 900px) {
    .form-wrapper { flex-direction: column; }
    .form-info-panel, .form-input-panel { padding: 30px; }
    .form-trust-logo { margin-top: 30px; }
    .form-row { flex-direction: column; gap: 0; }
}

/* Footer */
footer {
    background-color: #001538;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 300px;
    width: 100%;
}

.footer-title {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--color-white);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Custom Popup */
.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.7) translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-popup:hover {
    color: var(--color-red);
}

.popup-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

#popup-message {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 600;
}

.popup-btn {
    background-color: var(--color-blue);
    color: var(--color-white);
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.popup-btn:hover {
    background-color: #001538;
    transform: translateY(-2px);
}