:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-text: #4b5563;
    --lightest-text: #9ca3af;
    --background: #ffffff;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --neumorphic-shadow: 8px 8px 16px #e0e0e0, -8px -8px 16px #ffffff;
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --border-radius: 12px;
    --button-radius: 6px;
    --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
    font-display: swap;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Containers */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Gradient background */
.gradient-bg {
    background-image: var(--gradient-bg);
    color: white;
}

.light-bg {
    background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 2rem;
}

.section-intro {
    font-size: 1.8rem;
    color: var(--light-text);
    margin-bottom: 4rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Header */
header {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand a {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 2.4rem;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 6rem;
    left: 0;
    width: 100%;
    background-color: var(--background);
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 2rem;
    z-index: 99;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--button-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Language selector */
.language-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--button-radius);
    background-color: var(--light-bg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--button-radius);
    box-shadow: var(--box-shadow);
    min-width: 16rem;
    display: none;
    z-index: 10;
}

.language-selector.active .language-dropdown {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.language-dropdown a:hover {
    background-color: var(--light-bg);
}

.language-dropdown a.active {
    background-color: var(--light-bg);
    font-weight: 600;
}

/* Hero section */
.hero-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-text {
    max-width: 60rem;
}

.hero-text h1 {
    margin-bottom: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    transform: perspective(800px) rotateY(-15deg);
}

.hero-image:hover img {
    transform: perspective(800px) rotateY(0deg);
}

/* Search container */
.search-container {
    margin: 4rem 0;
}

.search-container.center-align {
    text-align: center;
}

.search-container.large {
    margin: 6rem 0;
}

.zip-search {
    max-width: 60rem;
    margin: 0 auto;
}

.zip-search label {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--button-radius);
    font-size: 1.6rem;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    transition: var(--transition);
    height: 100%;
}

.card.neumorphic {
    box-shadow: var(--neumorphic-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.neumorphic:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 20px #d0d0d0, -12px -12px 20px #ffffff;
}

.card-icon {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

/* Section styling */
section {
    padding: 8rem 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.content-col {
    max-width: 56rem;
}

.image-col img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.parallax-image {
    transition: transform 0.1s ease-out;
}

.benefits-list {
    margin: 3rem 0;
    padding-left: 2rem;
}

.benefits-list li {
    margin-bottom: 1.5rem;
}

/* Providers section */
.providers-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 3rem;
    background-color: white;
    border-radius: var(--border-radius);
}

.provider-logo {
    margin-bottom: 2rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo img {
    max-height: 100%;
    object-fit: contain;
}

/* FAQ Section */
.faq-container {
    max-width: 80rem;
    margin: 4rem auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 2rem;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    background-color: var(--light-bg);
}

.faq-content {
    padding: 0 2rem 2rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: white;
}

.quote {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info span {
    color: var(--lightest-text);
    font-size: 1.4rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-size: 3.6rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
}

.contact-link {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 3rem;
    font-size: 1.4rem;
    color: #9ca3af;
}

.copyright {
    margin-bottom: 1rem;
}

.disclaimer {
    max-width: 80rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 4rem;
    max-width: 60rem;
    width: 90%;
    text-align: center;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 1.2rem;
    background-color: #e5e7eb;
    border-radius: 10rem;
    margin: 3rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-bg);
    width: 0%;
    transition: width 0.05s linear;
}

.company-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.company-logo {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-status {
    font-style: italic;
    color: var(--light-text);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .hero-content {
        gap: 4rem;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    section {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .hero-content, .two-columns {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-image {
        order: -1;
        max-width: 40rem;
        margin: 0 auto;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .image-col {
        order: -1;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 3rem;
    }
}

@media (max-width: 480px) {
    .cards-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    .hero-section, section {
        padding: 5rem 0;
    }
}