@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================
   GLOBAL FIXES (Prevents Horizontal Scroll)
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================================
   THEME VARIABLES
========================================= */
:root {
    --primary-color: #580f8b; /* Deep Premium Purple */
    --primary-dark: #3a0a5c;
    --secondary-color: #a45ee5; /* Vibrant Amethyst / Lavender */
    --secondary-dark: #8338cc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-purple-tint: #f9f5ff; 
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding-top: 80px; 
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden; /* Strict overflow control */
}

/* =========================================
   1. STICKY HEADER & MOBILE MENU
========================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(88, 15, 139, 0.08);
    z-index: 1000; padding: 20px 20px;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s ease;
}

.header-logo {
    font-size: 26px; font-weight: 800; color: var(--primary-color);
    text-decoration: none; letter-spacing: -0.5px; z-index: 1001;
}
.header-logo span { color: var(--secondary-color); }

/* Desktop Nav */
.desktop-nav { display: flex; gap: 30px; align-items: center; }
.desktop-nav a {
    text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 15px;
    transition: color 0.3s ease;
}
.desktop-nav a:hover { color: var(--secondary-color); }

.header-actions { display: flex; align-items: center; gap: 15px; z-index: 1001; }

/* Mobile Menu Toggle (Hidden by default, and hidden on mobile too now) */
.mobile-toggle {
    display: none; background: none; border: none; font-size: 24px;
    color: var(--primary-color); cursor: pointer; padding: 5px;
}

/* =========================================
   2. GLOBAL SHIMMER BUTTONS & CTA BADGE
========================================= */
.cta-wrapper {
    position: relative;
    display: inline-block;
}

.cta-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #9d56df;
    padding: 3px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    z-index: 10;
}

.btn-shimmer {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 30px; border-radius: 10px; font-size: 16px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1;
    text-align: center; /* Ensures long text centers */
}

.btn-shimmer span { 
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; 
    gap: 8px; white-space: nowrap; line-height: 1.4; 
}

/* Smooth Flashing Animation */
.btn-shimmer::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg); z-index: 0; animation: smoothShimmer 3s infinite;
}

@keyframes smoothShimmer { 0% { left: -150%; } 50% { left: 150%; } 100% { left: 150%; } }

/* Button Colors */
.btn-primary {background: linear-gradient(135deg, #ea00fc 0%, var(--secondary-dark) 100%); color: #ffffff; box-shadow: 0 10px 25px rgba(164, 94, 229, 0.3); }
.btn-dark { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: #ffffff; box-shadow: 0 10px 25px rgba(88, 15, 139, 0.3); }
.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgb(255 255 255);
    backdrop-filter: blur(5px);
}

.btn-shimmer:hover { transform: translateY(-3px); }
.btn-primary:hover { box-shadow: 0 15px 35px rgba(164, 94, 229, 0.5); }
.btn-dark:hover { box-shadow: 0 15px 35px rgba(88, 15, 139, 0.5); }
.btn-outline:hover { background: #ffffff; color: var(--primary-color); border-color: #ffffff; }

.btn-header-call { padding: 12px 25px; font-size: 15px; border-radius: 50px; }

/* =========================================
   3. HERO ZONE & INSURANCE CHECKER 
========================================= */
.spravato-hero {
    position: relative; min-height: calc(100vh - 80px); display: flex; align-items: center;
    background-image: url('images/depr.png');
    background-size: cover; background-position: center; padding: 100px 20px;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(88 15 139 / 77%) 0%, rgb(88 15 139 / 81%) 100%);
    z-index: 1;
}

.hero-container { position: relative; z-index: 2; max-width: 1300px; margin: 0 auto; display: flex; gap: 60px; align-items: center; width: 100%; }
.hero-content { flex: 1.2; color: #ffffff; }

.eyebrow {
    display: inline-block;
    background: rgba(164, 94, 229, 0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgb(255 255 255 / 63%);
}

.hero-content h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p.sub-headline {
    font-size: 17px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 30px;
}
        
.trust-indicators { list-style: none; padding: 0; margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 15px; }
.trust-indicators li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 50px; }
.trust-indicators i { color: var(--secondary-color); }

.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; }

/* Widget Box */
.checker-box {
    flex: 0.8; background: rgba(255, 255, 255, 0.98); padding: 40px;
    border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); border-top: 6px solid var(--primary-color);
    width: 100%;
}
.checker-box h3 { font-size: 22px; font-weight: 800; color: var(--primary-color); margin: 0 0 12px 0; line-height: 1.3;}
.checker-box p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 25px; }

.form-step { margin-bottom: 20px; }
.form-step label { display: block; font-size: 14px; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 8px;
    background: var(--bg-light); font-family: inherit; font-size: 14px; transition: border-color 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--secondary-color); background: #ffffff; }
.radio-group { display: flex; gap: 20px; }
.form-row { display: flex; gap: 15px; width: 100%; }

/* =========================================
   4. DIAGNOSTIC NEUTRALITY (CUSTOM TABLE)
========================================= */
.section-padding { padding: 40px 20px; }
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.section-header { text-align: center; margin-bottom: 50px; max-width: 800px; margin-inline: auto; }
.section-header h2 { font-size: 36px; color: var(--primary-color); font-weight: 800; margin-bottom: 15px; }
.section-header p { font-size: 17px; color: var(--text-light); line-height: 1.8; }
.section-header h3 { color: var(--secondary-color); margin-top: 20px; font-size: 22px; }

.table-responsive { 
    width: 100%; overflow-x: auto; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(88, 15, 139, 0.08); 
    background: #ffffff; 
}
        
.comparison-table { 
    width: 100%; border-collapse: collapse; text-align: left; min-width: 700px; 
}
        
/* Table Headers (Column-wise Colors) */
.comparison-table th { padding: 22px 25px; font-size: 16px; font-weight: 700; color: #ffffff; }
.comparison-table th:nth-child(1) { background-color: var(--primary-dark); width: 30%; } /* Dark Purple */
.comparison-table th:nth-child(2), .comparison-table th:nth-child(3) { background-color: var(--primary-color); width: 35%; } /* Standard Purple */
        
/* Table Body & Rows */
.comparison-table td { padding: 22px 25px; font-size: 15px; line-height: 1.6; border: none; }
        
/* Row-wise Background Colors */
.comparison-table tr:nth-child(odd) td { background-color: #ffffff; }
.comparison-table tr:nth-child(even) td { background-color: var(--bg-purple-tint); } /* Light purple tint row */
        
/* First Column Specific Styling */
.comparison-table td:first-child { font-weight: 700; color: var(--primary-color); }

/* =========================================
   5. ZIG-ZAG LAYOUTS (IMAGES & CONTENT)
========================================= */
.zigzag-row { display: flex; align-items: center; gap: 60px; margin-bottom: 40px; width: 100%; }
.zigzag-row.reverse { flex-direction: row-reverse; } 
        
.zigzag-img { flex: 1; position: relative; width: 100%; }
.zigzag-img img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(88, 15, 139, 0.15); object-fit: cover; }
        
.zigzag-content { flex: 1; width: 100%; }
.zigzag-content h2 { font-size: 32px; color: var(--primary-color); font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.zigzag-content p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }

/* CIRCULAR ICON FEATURE LIST */
.feature-list { list-style: none; padding: 0; margin-bottom: 30px; }
.feature-list li { 
    display: flex; align-items: flex-start; gap: 15px; 
    margin-bottom: 25px; font-size: 15px; line-height: 1.6; 
}
.feature-icon {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--bg-purple-tint); color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    border: 1px solid rgba(164, 94, 229, 0.2);
}
.feature-text strong { color: var(--primary-color); display: inline-block; margin-right: 5px; font-size: 16px; }
.feature-text { color: var(--text-dark); margin-top: 2px; }

/* Pathway Bar Settings */
.pathway-bar { border-left: 3px solid var(--secondary-color); padding-left: 25px; margin-top: 30px; }
.pathway-step { position: relative; margin-bottom: 30px; }
.pathway-step::before {
    content: ''; position: absolute; left: -34px; top: 0; width: 15px; height: 15px;
    background: var(--primary-color); border: 3px solid var(--bg-purple-tint); border-radius: 50%;
}
.pathway-step h4 { color: var(--primary-color); font-size: 18px; margin: 0 0 8px 0; }
.pathway-step p { font-size: 15px; color: var(--text-light); margin: 0; line-height: 1.6;}

/* =========================================
   6. FAQS & FINAL CTA
========================================= */
.faq-section { background-color: #ffffff; }
.faq-card { background: #ffffff; border-radius: 12px; padding: 25px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(88, 15, 139, 0.05); border-left: 4px solid var(--secondary-color); }
.faq-card h4 { color: var(--primary-color); font-size: 18px; margin: 0 0 10px 0; }
.faq-card p { color: var(--text-light); font-size: 15px; margin: 0; line-height: 1.6; }

.final-cta { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); padding: 90px 20px; text-align: center; color: #ffffff; width: 100%; }
.final-cta h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; max-width: 800px; margin-inline: auto; color: #ffffff;}
.final-cta p { font-size: 18px; margin-bottom: 40px; font-weight: 500; color: #e2e8f0; }
.final-cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; width: 100%; }

/* =========================================
   RESPONSIVE (MOBILE) - BUG FIXES
========================================= */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; }
    .zigzag-row { gap: 40px; }
}

@media (max-width: 768px) {
    .site-header { padding: 12px 15px; }
    .header-logo { font-size: 22px; }
    
    /* Hide Nav and Toggle */
    .mobile-toggle { display: none !important; }
    .desktop-nav { display: none !important; }

    /* Adjust Button for full text */
    .btn-header-call { padding: 10px 15px; }
    .btn-header-call span { font-size: 13px; }
    .btn-header-call span i { font-size: 13px; margin-right: 5px; }
    
    /* Scale Logo to fit */
    .site-logo-premium { max-height: 42px !important; }

    /* Badge Adjustments */
    .cta-badge {
        font-size: 10px;
        padding: 4px 12px;
        top: -12px;
    }

    .hero-content h1 { font-size: 36px; }
    
    /* Fix for Button Overflow on Mobile */
    .hero-ctas, .final-cta-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .btn-shimmer { width: 100%; padding: 16px 20px; font-size: 15px; }
    
    /* Fix for Input Fields on Mobile */
    .checker-box { padding: 30px 20px; }
    .form-row { flex-direction: column; }
    .form-row input { width: 100% !important; }

    /* Stack Zigzag Layouts */
    .zigzag-row, .zigzag-row.reverse { flex-direction: column; gap: 30px; margin-bottom: 50px; }
    .zigzag-img img { max-height: 250px; }
    
    .final-cta h2 { font-size: 30px; }
    .trust-indicators li { width: 100%; }
}

/* Extra small mobile screens */
@media (max-width: 380px) {
    .site-logo-premium { max-height: 38px !important; }
    .btn-header-call { padding: 8px 12px; }
    .btn-header-call span { font-size: 11px; }
    .btn-header-call span i { font-size: 11px; }
    .cta-badge { font-size: 9px; padding: 3px 10px; top: -10px; }
}