/* Base styles and CSS reset */
:root {
    --primary-color: #4a6fa8;
    --secondary-color: #6fb1e5;
    --accent-color: #e28743;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --text-color: #444;
    --text-light: #777;
    --border-color: #e5e5e5;
    --success-color: #4caf50;
    --error-color: #f44336;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-neumorphic: 8px 8px 16px #d9d9d9, -8px -8px 16px #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.3;
    color: var(--dark-color);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 10px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: 1.5rem;
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1rem;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

/* Language selector */
.language-selector {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    user-select: none;
    z-index: 100;
}

.selected-language {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.selected-language img {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    min-width: 150px;
    z-index: 101;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-color);
}

.language-option img {
    margin-right: 10px;
}

.language-option.active {
    background-color: var(--light-color);
}

/* Mobile navigation */
.mobile-nav {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    display: block;
    padding: 5px 0;
    font-size: 1.1rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Hero section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,138.7C672,149,768,203,864,202.7C960,203,1056,149,1152,117.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    transform: scaleX(1.1);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ZIP search container */
.zip-search-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 30px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zip-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.zip-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.zip-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(111, 177, 229, 0.3);
}

.zip-form button {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Content sections */
section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: white;
}

section:nth-child(even) {
    background-color: #f8fafc;
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-neumorphic);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.content-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.content-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.content-image:hover img {
    transform: scale(1.05);
}

/* Provider cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.provider-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provider-logo {
    margin-bottom: 20px;
    padding: 10px;
}

.provider-logo img {
    max-height: 100px;
    width: auto;
    margin: 0 auto;
}

.provider-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.provider-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.provider-card .cta-button {
    margin-top: auto;
}

/* Table styles */
.comparison-table {
    margin: 40px 0;
}

.table-responsive {
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    font-weight: 600;
}

tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: #f5f8ff;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.testimonial-quote {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f8ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote {
    font-style: italic;
    color: var(--text-color);
}

blockquote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    margin-top: 10px;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    margin: 40px 0;
}

details {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

details[open] {
    box-shadow: var(--shadow-md);
}

summary {
    padding: 20px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    outline: none;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 0 20px 20px;
}

/* Conclusion */
.conclusion-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.conclusion-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.final-cta {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.final-cta h3 {
    color: white;
    margin-bottom: 20px;
}

.final-cta .zip-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-links h4, .footer-disclaimer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.search-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.search-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.search-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.insurance-logos img {
    max-width: 100px;
    height: auto;
}

.search-result {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success-color);
}

.search-result.hidden {
    display: none;
}

/* Utilities */
.hidden {
    display: none;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content, .content-with-image {
        grid-template-columns: 1fr;
    }
    
    .hero-image, .content-image {
        margin-top: 30px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .header-content {
        padding: 15px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .zip-search-container {
        padding: 20px;
    }
    
    .zip-form {
        flex-direction: column;
    }
    
    .zip-form input, .zip-form button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .site-logo {
        margin-right: auto;
    }
    
    section {
        padding: 40px 0;
    }
    
    .content-cards, .testimonials, .conclusion-content {
        grid-template-columns: 1fr;
    }
    
    .card, .testimonial-card, .conclusion-card {
        padding: 20px;
    }
    
    .final-cta {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.card, .testimonial-card, .provider-card, .conclusion-card {
    animation: slideUp 0.6s ease forwards;
}

.hero-text h1, .hero-text p {
    animation: fadeIn 0.8s ease forwards;
}

.hero-image {
    animation: fadeIn 1s ease 0.3s forwards;
}