@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 & NAV 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 */
.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: #942fd4;
    padding: 4px 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('https://vanguardneuropsychiatry.com/spravato/images/spr.png');
    background-size: cover; background-position: center; padding: 80px 20px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(88, 15, 139, 0.95) 0%, rgba(88, 15, 139, 0.75) 100%);
    z-index: 1;
}

.hero-container { position: relative; z-index: 2; max-width: 1250px; margin: 0 auto; display: flex; gap: 50px; 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 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgb(255 255 255 / 98%);
}

.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p.sub-headline { font-size: 18px; line-height: 1.7; color: #e2e8f0; margin-bottom: 30px; }
        
.trust-indicators { list-style: none; padding: 0; margin-bottom: 40px; }
.trust-indicators li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.trust-indicators i { color: var(--secondary-color); font-size: 18px; }

.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; }

/* Form styling */
.checker-box {
    flex: 0.8; background: rgba(255, 255, 255, 0.95); padding: 40px;
    border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); border-top: 6px solid var(--primary-color);
    width: 100%;
}
.checker-box h3 { font-size: 24px; font-weight: 800; color: var(--primary-color); margin: 0 0 10px 0; }
.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. COMPARISON TABLE 
========================================= */
.section-padding { padding: 90px 20px; }
.container { max-width: 1050px; margin: 0 auto; width: 100%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 38px; color: var(--primary-color); font-weight: 800; margin-bottom: 15px; }
.section-header p { font-size: 18px; color: var(--text-light); line-height: 1.7; }

.table-responsive { width: 100%; overflow-x: auto; border-radius: 12px; box-shadow: 0 15px 35px rgba(88, 15, 139, 0.08); background: #ffffff; border: 1px solid #580f8b; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 22px 30px; font-size: 16px; line-height: 1.6; }
        
.comparison-table th { font-weight: 700; font-size: 18px; }
.comparison-table th:first-child { background-color: #eef1f6; color: #000000; width: 50%; }
.comparison-table th:last-child { background-color: var(--primary-color); color: #ffffff; width: 50%; }

.comparison-table tr:nth-child(odd) td:first-child { background-color: #ffffff; border-bottom: 1px solid #f1f5f9; }
.comparison-table tr:nth-child(odd) td:last-child { background-color: #ffffff; border-bottom: 1px solid #f1f5f9; }
.comparison-table tr:nth-child(even) td:first-child { background-color: #f8fafc; }
.comparison-table tr:nth-child(even) td:last-child { background-color: var(--bg-purple-tint); }

/* =========================================
   5. ZIG-ZAG LAYOUTS (IMAGES & CONTENT)
========================================= */
.zigzag-row { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; 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: 34px; color: var(--primary-color); font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.zigzag-content h3 { color: var(--secondary-color); font-size: 20px; margin-bottom: 15px; }
.zigzag-content p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 25px; }

/* Timeline List Styling */
.pathway-list { list-style: none; padding: 0; margin-bottom: 30px; }
.pathway-list li { position: relative; padding-left: 55px; margin-bottom: 25px; }
.pathway-list li::before {
    content: attr(data-step); position: absolute; left: 0; top: 0;
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; box-shadow: 0 5px 15px rgba(88, 15, 139, 0.2);
}
.pathway-list h4 { color: var(--primary-color); font-size: 18px; margin: 0 0 5px 0; }
.pathway-list p { font-size: 14px; margin: 0; }

/* =========================================
   6. FINAL CTA
========================================= */
.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: 40px; 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) - FIXED LAYOUT
========================================= */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; }
    .zigzag-row { gap: 30px; }
}

@media (max-width: 768px) {
    .site-header { padding: 12px 15px; }
    .header-logo { font-size: 22px; }
    
    /* Logo Shrink to fit button side-by-side */
    .site-logo-premium { max-height: 42px !important; }
            
    /* Responsive Header Call Button - Show 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; } 
    
    /* CTA Badge specific for mobile */
    .cta-badge {
        font-size: 10px;
        padding: 4px 12px;
        top: -12px;
    }
            
    /* Hide the hamburger and nav completely */
    .mobile-toggle { display: none !important; }
    .desktop-nav { display: none !important; }

    .hero-content h1 { font-size: 38px; }
            
    /* Fix for Main Body Buttons 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; }
    .zigzag-img img { max-height: 250px; }
            
    .final-cta h2 { font-size: 30px; }
}

/* Extra small mobile screens (e.g. iPhone SE) */
@media (max-width: 380px) {
    .site-logo-premium { max-height: 38px !important; }
    .btn-header-call { padding: 8px 12px; }
    .btn-header-call span { font-size: 12px; }
    .btn-header-call span i { font-size: 12px; }
    .cta-badge { font-size: 9px; padding: 3px 10px; }
}