:root {
    --primary: #1E2F4F;
    --primary-light: #2A3E61;
    --accent: #C8A46A;
    --accent-glow: rgba(200, 164, 106, 0.3);
    --bg-body: #F4F4F4;
    --text-main: #FFFFFF;
    --text-dark: #1E2F4F;
    --text-muted: #A7ADB5;
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 10px 30px rgba(200, 164, 106, 0.15);
    /* Standardized Brand Colors */
    --primary-navy: #1E2F4F;
    --accent-gold: #C8A46A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--primary);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center!important; }
.section { padding: 100px 0; position: relative; }
.section-dark { background-color: var(--primary); color: var(--white); }
.section-light { background-color: var(--bg-body); color: var(--text-dark); }
.section-light h2, .section-light h3 { color: var(--text-dark); }

/* Tech Patterns */
.tech-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L40 10 L40 40 L60 40 L60 10 L90 10 M10 90 L10 60 L40 60 L40 90 M60 90 L90 90 L90 60 L60 60' stroke='%23C8A46A' stroke-opacity='0.1' fill='none'/%3E%3Ccircle cx='40' cy='10' r='1' fill='%23C8A46A' fill-opacity='0.2'/%3E%3Ccircle cx='60' cy='40' r='1' fill='%23C8A46A' fill-opacity='0.2'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.max-800 { max-width: 800px; margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-gold {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-gold:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block { width: 100%; justify-content: center; }

/* Header */
.header {
    background: rgba(30, 47, 79, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(200, 164, 106, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

.logo-subtext {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--accent); }

.lang-selector {
    display: flex;
    gap: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(10, 20, 40, 0.75),
        rgba(10, 20, 40, 0.85)
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-text-wrap {
    max-width: 800px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-lead {
    font-size: 22px;
    margin-bottom: 45px;
    color: #E0E6F0;
    font-weight: 300;
    max-width: 620px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary, .btn-outline {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    .hero {
        height: auto;
        padding: 140px 0 80px;
        background: linear-gradient(
            rgba(10, 20, 40, 0.85),
            rgba(10, 20, 40, 0.9)
        ), url('assets/img/hero.png') center/cover no-repeat;
    }
    .hero h1 {
        font-size: 42px;
    }
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* AI Difference */
.ai-difference {
    background-color: var(--primary);
    border-top: 1px solid rgba(200, 164, 106, 0.1);
}

.ai-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--white);
}

.feature-card p {
    color: var(--text-muted);
}

/* Services */
.services {
    background-color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card.highlighted {
    border: 1px solid var(--accent);
    background: rgba(200, 164, 106, 0.05);
}

.service-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 25px;
    background: rgba(200, 164, 106, 0.1);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--primary);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.cta-details {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.cta-details i {
    transition: transform 0.3s ease;
}

.service-card:hover .cta-details i {
    transform: translateX(5px);
}

/* Urgent Cases */
.urgent-cases {
    background-color: var(--primary);
}

.urgent-box {
    background: linear-gradient(135deg, var(--accent), #bfa060);
    color: var(--primary);
    padding: 80px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.urgent-box h2 { color: var(--primary); margin-bottom: 25px; font-size: 36px; }
.urgent-box p { margin-bottom: 40px; font-size: 20px; max-width: 700px; margin-left: auto; margin-right: auto; font-weight: 500; }

/* FAQ Accordion */
.faq {
    background-color: var(--primary);
}

.accordion { margin-top: 50px; }
.faq-item { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-align: left;
    transition: var(--transition);
}

.faq-item .answer {
    padding: 0 30px 30px;
    display: none;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.faq-item.active .answer { 
    display: block; 
}

.faq-item.active .fa-chevron-down { 
    transform: rotate(180deg);
    color: var(--accent);
}

/* Contact */
.contact {
    background-color: var(--primary);
}

.contact-list {
    list-style: none;
    margin: 40px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--white);
}

.contact-list i { color: var(--accent); font-size: 22px; }

.contact-form-container {
    background: #FFFFFF; /* Light background for readability */
    padding: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Form Group & Alignment */
.form-group {
    margin-bottom: 30px; /* Increased spacing between fields */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Increased internal label-input gap */
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary); /* Dark Navy #1E2F4F */
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    min-height: 52px;
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    color: #1E2F4F !important;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

textarea {
    resize: vertical;
    min-height: 120px!important;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.1);
}

::placeholder {
    color: #888 !important;
    opacity: 1;
}

button[type="submit"] {
    margin-top: 15px;
    height: 55px;
    font-size: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    /* Critical Form Layout Fixes */
    .form-row { 
        display: flex!important;
        flex-direction: column!important;
        gap: 0!important; 
    }
    
    .form-group {
        margin-bottom: 25px!important; 
        width: 100%!important;
    }
    
    .contact-form-container { padding: 30px 20px; }

    /* Force all CTA buttons to full width */
    .btn-block, 
    button[type="submit"] { 
        width: 100%!important; 
        display: flex!important;
        justify-content: center;
        margin-left: 0!important;
        margin-right: 0!important;
        padding-left: 0!important;
        padding-right: 0!important;
    }

    /* Robust Modal Constraints */
    .modal-overlay { 
        padding: 5px!important; /* Minimal padding to maximize space */
        align-items: flex-start!important; /* Allow scrolling from top */
        overflow-y: auto!important;
    }
    
    .modal-content { 
        width: 100%!important;
        max-width: 100%!important;
        margin: 0!important;
        padding: 0!important;
        border-radius: 8px!important;
        max-height: none!important; /* Allow full height scrolling if needed */
    }

    .modal-header { 
        padding: 40px 15px 15px!important; 
    }
    
    .modal-body { 
        padding: 15px!important; 
    }
    
    .lead-form-container { 
        padding: 15px!important; 
        margin-top: 15px!important; 
        border-radius: 6px;
    }

    .modal-close {
        top: 10px!important;
        right: 10px!important;
        width: 34px!important;
        height: 34px!important;
        font-size: 18px!important;
    }
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 350px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-reset, .social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 28px;
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent);
}

.chat-reset:hover, .chat-close:hover { opacity: 1; }

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.bot-msg, .user-msg {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 14px;
}

.bot-msg { background: white; border: 1px solid #e2e8f0; align-self: flex-start; }
.user-message { 
    background: #C8E6C9 !important; /* High contrast light green */
    color: #1E2F4F !important; /* Dark navy text for readability */
    align-self: flex-end; 
    margin-left: auto;
    font-weight: 600;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 68px; /* Larger clickable area */
    height: 68px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: #FFFFFF; /* Maximum contrast */
    border: 3px solid #FFFFFF; /* White outer circle ring */
    font-size: 28px; /* Slightly larger icon */
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.6), 
        inset 0 0 0 3px var(--accent-gold); /* Inner gold ring for branding */
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-gold 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.chat-toggle-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.7), 
        inset 0 0 0 4px var(--accent-gold);
    background: #1e2f4f;
    border-color: var(--accent-gold); /* Shift to gold on hover for interactivity */
}


@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(200, 164, 106, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(200, 164, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 164, 106, 0); }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float i {
  pointer-events: none;
}

.whatsapp-float:hover {
  transform: scale(1.15);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
  }
}

/* Footer */
.footer {
    background: #0D1623;
    color: var(--text-muted);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h3, .footer h4 { color: var(--white); margin-bottom: 25px; font-size: 20px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links ul { list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 15px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }

.footer-bottom {
    padding-top: 40px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-disclaimer-line {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.5;
    font-size: 11px;
}

.developer-credit-line {
    margin-top: 8px;
    font-size: 12px;
    color: #A7ADB5;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: none;
    font-weight: 500;
}

.container-max-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
    .hero { padding: 120px 0 80px; text-align: center; }
    .hero h1 { font-size: 40px; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .nav { display: none; }
    .header-container { flex-direction: row; }
    .mobile-menu-btn {
        background: none;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
    }
    .urgent-box { padding: 40px 20px; }
    .urgent-box h2 { font-size: 28px; }
    .lang-btn {
        padding: 8px 10px;
        font-size: 18px; /* Larger emoji */
    }
    .lang-btn span {
        display: none; /* Hide text, keep emoji */
    }
    .chatbot-container { width: calc(100% - 40px); left: 20px; bottom: 85px; }
}

/* Service Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 22, 35, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
}

.modal-content {
    background: #FFFFFF; /* High contrast for forms */
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border: none;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
}

.modal-content h2, .modal-content h3, .modal-content h4 {
    color: var(--primary); /* Use primary navy on white background */
}

.modal-content p {
    color: #444;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: #FFFFFF; /* White background */
    border: none;
    border-radius: 50%;
    color: #1E2F4F; /* Dark navy color */
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Subtle shadow */
    transition: all 0.3s ease;
    opacity: 1; /* Always visible */
    text-decoration: none;
}

.modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent-gold);
    color: #FFFFFF;
}


.modal-header {
    padding: 60px 60px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-size: 36px;
    color: var(--primary); /* Dark navy instead of gold for accessibility */
    margin-bottom: 0;
}

.modal-body {
    padding: 40px 60px 60px;
}

.service-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.info-block h4 {
    color: var(--primary); /* Dark navy for readability */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-block p {
    color: #444; /* Dark gray for main content */
    font-size: 16px;
    line-height: 1.6;
}

.lead-form-container {
    background: #F9FAFB; /* Light-gray subtle field for the form */
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.lead-form-container h3 {
    margin-bottom: 30px;
    font-size: 20px;
    color: var(--primary); /* Dark navy for visibility */
    text-align: center;
}

.service-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-form input, .service-form select, .service-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 2px;
    font-family: inherit;
    transition: var(--transition);
}

.service-form select option {
    background: var(--primary);
}

.service-form input:focus, .service-form select:focus, .service-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Thank You Overlay */
.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.98);
    background: rgba(10, 20, 40, 0.98);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease;
}

.thank-you-content {
    max-width: 700px;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 164, 106, 0.3);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 2rem;
    animation: success-check 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.4));
}

.thank-you-content h1 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.thanks-reassurance {
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    font-style: italic;
    opacity: 0.9;
}

.thanks-main-desc {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.next-steps-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
    border: 1px solid rgba(200, 164, 106, 0.2);
}

.next-steps-container h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.next-steps-list {
    list-style: none;
    padding: 0;
}

.next-steps-list li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    color: #fff;
    font-size: 1rem;
}

.next-steps-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.thanks-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2rem;
}

.trust-note {
    font-size: 0.85rem;
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
}

.wa-redirect-countdown {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    min-height: 1.5rem;
}

.trust-note i {
    color: #4CAF50;
}

@keyframes success-check {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(0); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes slideUpFade {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .thank-you-content { padding: 2rem 1.5rem; margin: 15px; }
    .thank-you-content h1 { font-size: 1.6rem; }
    .thanks-actions { flex-direction: column; }
}

.service-item.linkable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-item.linkable::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: var(--transition);
}

.service-item.linkable:hover::after {
    opacity: 0.3;
    right: 25px;
}
/* Modal & Overlay Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  padding: 32px 24px;
}

/* Exit-Intent Popup Styles */
#exit-popup .exit-modal {
    max-width: 500px;
    width: 90%;
    background: var(--primary);
    border: 1px solid rgba(200, 164, 106, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#exit-popup h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

#exit-popup p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#exit-form {
    margin-bottom: 1.5rem;
}

#exit-form .form-group {
    margin-bottom: 1rem;
}

#exit-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

#exit-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.exit-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

#exit-popup .btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
    margin-top: 1rem;
}

#exit-popup .btn-text:hover {
    opacity: 1;
    color: white;
}

/* Trust & Commitment Styles */
.hero-trust-badges {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--accent-gold);
    background: rgba(200, 164, 106, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(200, 164, 106, 0.2);
    transition: var(--transition);
}

.trust-badge:hover {
    background: rgba(200, 164, 106, 0.2);
    transform: translateY(-2px);
}

.trust-badge i {
    font-size: 1rem;
}

.commitment-band {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #152238 100%);
    padding: 4rem 0;
    border-top: 1px solid rgba(200, 164, 106, 0.2);
    border-bottom: 1px solid rgba(200, 164, 106, 0.2);
    position: relative;
    overflow: hidden;
}

.commitment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.commitment-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.9;
}

.commitment-band h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.financial-message {
  color: #FFFFFF !important; /* Force visibility on dark navy background */
  font-weight: 500;
  text-align: center;
  margin: 20px 0;
}

.form-trust-note {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-trust-note i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.form-trust-note p {
    color: #1E2F4F !important; /* Absolute visibility for production */
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .commitment-band h2 {
        font-size: 1.4rem;
    }
    .hero-trust-badges {
        gap: 0.8rem;
    }
    .trust-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Success Message Box */
.success-message {
    background: #E8F5E9;
    color: #1E2F4F;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Floating Popup Styles */
#whatsapp-float-popup.whatsapp-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 250px;
    z-index: 999;
    display: none;
    border-left: 4px solid #25D366;
    animation: slideUpPopup 0.5s ease;
}

@keyframes slideUpPopup {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.whatsapp-popup p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding-right: 15px;
    line-height: 1.4;
}

.btn-whatsapp-small {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp-small i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-whatsapp-small:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: white;
}

.close-popup {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    #whatsapp-float-popup.whatsapp-popup {
        bottom: 100px;
        right: 20px;
        left: 20px;
    }
}

/* =========================================
   RESOURCES MODULE (MOBILE-FIRST)
   ========================================= */

.resources-section {
    padding: 80px 0;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.resources-title {
    margin-bottom: 50px;
    font-size: 32px;
    text-align: center;
    color: var(--white);
}

.resources-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.resources-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.resource-card {
    flex: 0 0 85%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: center;
    transition: var(--transition);
    height: auto;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.resource-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    object-fit: contain;
    background-color: #F8F9FA;
    border-radius: 50%;
    padding: 16px;
    box-sizing: content-box;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: none;
}

.resource-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 700;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-resource {
    margin-top: auto;
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-resource:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Desktop Styles */
@media (min-width: 992px) {
    .resources-scroll-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        overflow: visible;
        padding: 20px 0;
    }

    .resource-card {
        flex: none;
        width: 100%;
        scroll-snap-align: none;
    }
}

@media (min-width: 1200px) {
    .resources-scroll-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Advertising Card & Modal */
.resource-card.highlighted {
    border: 1px solid var(--accent);
    background: rgba(200, 164, 106, 0.08);
}

.resource-card.highlighted h3 {
    color: var(--white);
}

.ad-modal {
    z-index: 10001; /* Above standard modal if needed */
}

.ad-modal .modal-content {
    width: 90%;
    max-width: 500px;
}

.ad-lead-text {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}
