/* Base Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #7b68ee;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-text: #222222;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --alt-bg: #f0f4f8;
    --border-radius: 8px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-family: 'Poppins', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px for easy rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

button {
    cursor: pointer;
    font-family: var(--font-family);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

h1 {
    font-size: 4.2rem;
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        word-break: keep-all;
        hyphens: none;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    h3 {
        font-size: 2.2rem;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.bg-alt {
    background-color: var(--alt-bg);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.gradient-bg h1, 
.gradient-bg h2, 
.gradient-bg h3 {
    color: var(--light-text);
}

.neumorphism {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.neumorphism:hover {
    box-shadow: 
        12px 12px 20px rgba(0, 0, 0, 0.15),
        -12px -12px 20px rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
}

/* Header Styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo a {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu.active {
    display: flex;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    width: 3rem;
    height: 2.4rem;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -6px);
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 2rem;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem 0;
    z-index: 10;
    min-width: 15rem;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-bg);
}

.mobile-language-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover, .cta-button:focus {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.primary-cta {
    background-color: var(--primary-color);
    font-size: 1.8rem;
    padding: 1.2rem 3rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--light-text);
}

.hero-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ZIP Search Form */
.zip-search-container {
    margin: 3rem 0;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.zip-search-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.zip-search-form input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

.zip-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.3);
}

.featured-cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
}

.featured-cta h3 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-grid.reversed {
    grid-template-columns: 1fr 1fr;
}

.section-grid.reversed .section-content {
    order: 2;
}

.section-grid.reversed .section-image {
    order: 1;
}

.section-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Provider Cards */
.providers-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.provider-card {
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.provider-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.provider-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.provider-card h3 {
    margin-bottom: 1rem;
}

.provider-card ul {
    margin-bottom: 2rem;
}

.provider-card .cta-button {
    align-self: center;
    margin-top: auto;
}

/* Cost Grid */
.cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.cost-card {
    padding: 2.5rem;
}

/* Plan Types */
.plan-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.plan-type-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.plan-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Steps List */
.steps-list {
    margin-left: 2rem;
    counter-reset: step-counter;
    list-style: none;
}

.steps-list li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 1.5rem;
    counter-increment: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* FAQs */
.faqs-container {
    margin-top: 3rem;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    font-size: 2rem;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 2rem 2rem;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.final-cta h2, .final-cta p {
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
    text-decoration: none;
}

.disclaimer {
    font-size: 1.4rem;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    z-index: 1000;
    max-width: 400px;
    font-size: 1.3rem;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

#accept-cookies:hover {
    background-color: var(--secondary-color);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.search-modal-content {
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.searching-animation {
    margin: 3rem 0;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.insurance-logos img {
    max-width: 100px;
    height: 50px;
    object-fit: contain;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Style */
.card-style {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: var(--transition);
}

.card-style:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
    .section-grid,
    .section-grid.reversed,
    .cost-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-grid.reversed .section-content,
    .section-grid.reversed .section-image {
        order: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56.25%; /* 9px */
    }
    
    .hamburger {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .zip-search-form {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%; /* 8px */
    }
    
    .provider-card {
        padding: 2rem 1.5rem;
    }
    
    .cookie-consent {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-modal-content {
        padding: 2rem;
    }
}