/* Base styles and reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2d62aa;
    --secondary-color: #00d2ff;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-alt: #f8fafc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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);
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.8em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1.5em;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Button styles */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    text-align: center;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(58, 123, 213, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(58, 123, 213, 0.3);
    color: white;
}

.cta-button:active {
    transform: translateY(1px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Language selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: var(--bg-alt);
    border-radius: 30px;
}

.selected-language img {
    display: inline-block;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 180px;
    padding: 10px 0;
    list-style: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.language-dropdown li a:hover {
    background-color: var(--bg-alt);
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 110;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Hero section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2em;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.03);
}

/* ZIP search box */
.zip-search-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.zip-search-box.centered {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.zip-form {
    margin-top: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Section styles */
section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.content-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.text-content {
    padding: 20px;
}

.image-content {
    text-align: center;
}

.image-content img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.image-content img:hover {
    transform: scale(1.05);
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.neumorphic {
    background-color: #f0f4f8;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    border-radius: 20px;
}

.neumorphic:hover {
    box-shadow: 12px 12px 20px #d1d9e6, -12px -12px 20px #ffffff;
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Providers section */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.provider-card {
    display: flex;
    gap: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.provider-logo {
    width: 180px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
}

.provider-content {
    flex: 1;
}

.provider-features {
    list-style: none;
    margin-bottom: 20px;
}

.provider-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.provider-features li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Cost table */
.cost-table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 20px 0 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-name {
    font-weight: 500;
}

.cost-value {
    font-weight: 600;
    color: var(--primary-color);
}

.factors-list h4 {
    margin-bottom: 12px;
}

.factors-list ul {
    list-style-type: disc;
    padding-left: 20px;
}

.factors-list li {
    margin-bottom: 8px;
}

/* How it works section */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: center;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    margin-bottom: 10px;
}

.benefits-section {
    margin-top: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    outline: none;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 20px 20px;
    background-color: white;
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 50px;
}

.final-cta h3 {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #f7fafc;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Search modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.search-modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
}

.searching-content h3, .results-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.logo-animation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.logo-animation-container img {
    max-width: 120px;
    height: auto;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.progress-bar {
    height: 6px;
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 10px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 4.5s linear;
}

.results-content {
    display: none;
}

.results-content p {
    color: var(--text-light);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 123, 213, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(58, 123, 213, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 123, 213, 0);
    }
}

/* Utility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-grid, .content-grid, .content-grid.reverse {
        grid-template-columns: 1fr;
    }
    
    .hero-image, .image-content {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .content-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .provider-card {
        flex-direction: column;
    }
    
    .provider-logo {
        margin-bottom: 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 100px 20px 30px;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .zip-search-box {
        padding: 20px;
    }
    
    .card, .provider-card, .step-content, .benefit-card, .faq-item {
        padding: 15px;
    }
    
    .final-cta {
        padding: 30px 20px;
    }
    
    .search-modal-content {
        padding: 30px 20px;
    }
}