/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6BA3D0;
    --primary-hover: #5890BD;
    --secondary-color: #8FB5A2;
    --accent-teal: #7AB8BE;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e8ecef;
    --notice-bg: #5B7C99;
    --notice-text: #ffffff;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.75;
    color: var(--text-dark);
    padding-bottom: 80px;
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Logo Header */
.logo-header {
    background-color: white;
    padding: 1.5rem 0 1rem 0;
    border-bottom: 2px solid var(--border-color);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 70px;
    width: auto;
    display: block;
}

.header-contact {
    text-align: right;
}

.header-phone {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.header-hours {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.header-trust {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 768px) {
    .logo-header {
        padding: 1rem 0 0.75rem 0;
    }
    
    .logo-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-wrapper {
        margin-bottom: 1rem;
    }
    
    .logo-image {
        height: 55px;
    }
    
    .header-contact {
        text-align: left;
    }
    
    .header-phone {
        font-size: 1.1rem;
    }
}

/* Top Notice Bar */
.notice-bar {
    background-color: var(--notice-bg);
    color: var(--notice-text);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    text-align: left;
}

/* Hero Section */
.hero {
    background-color: #ffffff;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-weight: 700;
}

.subcopy {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Eligibility Content within Hero */
.eligibility-content {
    margin-top: var(--spacing-md);
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 16px;
}

/* CTA Instruction Text */
.cta-instruction {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 500;
}

/* CTA Buttons */
.cta-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.375rem;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    min-height: 64px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(107, 163, 208, 0.25);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.cta-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 163, 208, 0.35);
}

.cta-primary:focus {
    outline: 3px solid var(--accent-teal);
    outline-offset: 3px;
}

.cta-primary:active {
    transform: translateY(0);
}

.cta-phone {
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-hours {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Contact Info */
.contact-info {
    margin-top: var(--spacing-lg);
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.phone-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.hours {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.trust-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Eligibility Section - Legacy (now integrated into hero) */
.eligibility-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.eligibility-step {
    display: none;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.eligibility-step.active {
    display: block;
}

.eligibility-step h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.button-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-option {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 1.125rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    min-height: 64px;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.btn-option:hover {
    border-color: var(--primary-color);
    background-color: #f0f7fb;
    box-shadow: 0 2px 8px rgba(107, 163, 208, 0.15);
}

.btn-option:focus {
    outline: 3px solid var(--accent-teal);
    outline-offset: 3px;
}

.btn-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(107, 163, 208, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Final CTA */
.final-cta {
    display: none;
    text-align: center;
    margin-top: var(--spacing-lg);
}

.final-cta.active {
    display: block;
}

.processing-text {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    min-height: 24px;
    font-weight: 500;
}

/* Carrier Section */
.carrier-section {
    background-color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.carrier-text {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Disclaimers */
.disclaimers {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-content p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.disclaimer-content strong {
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-nav {
    margin-bottom: var(--spacing-md);
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 var(--spacing-md);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-nav a:focus {
    outline: 2px solid white;
    outline-offset: 4px;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Sticky Mobile Call Bar */
.sticky-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 2px solid var(--border-color);
    padding: var(--spacing-md);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sticky-content {
    max-width: 600px;
    margin: 0 auto;
}

.sticky-cta {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.125rem;
    font-size: 1.375rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    min-height: 64px;
    margin-bottom: var(--spacing-sm);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(107, 163, 208, 0.25);
}

.sticky-cta:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(107, 163, 208, 0.35);
}

.sticky-cta:focus {
    outline: 3px solid var(--accent-teal);
    outline-offset: 3px;
}

.sticky-hours {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-bottom: 140px;
    }

    .sticky-call-bar {
        display: block;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-option {
        width: 100%;
    }

    .footer-nav a {
        display: block;
        margin: var(--spacing-sm) 0;
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Accessibility - High Contrast Focus States */
@media (prefers-contrast: high) {
    .cta-primary:focus,
    .btn-option:focus,
    .sticky-cta:focus {
        outline: 4px solid #000;
        outline-offset: 4px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
