/* Base Styles and CSS Reset */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --accent-color: #ff6b6b;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --container-padding: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button & CTA Styles */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.primary-btn {
    background: var(--bg-gradient);
}

.secondary-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    background: white;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo a:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    min-width: 150px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.language-dropdown.active .language-menu,
.language-dropdown:focus-within .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu li {
    margin: 0;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-dark);
}

.language-menu a:hover {
    background: var(--bg-off-white);
}

/* Hero Section */
.hero-section {
    background: var(--bg-gradient);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    transform: skewY(-3deg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-15deg);
    backface-visibility: hidden;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ZIP Search Form */
.zip-search-container {
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.secondary-search, .providers-search, .compare-search, .final-search {
    text-align: center;
}

.zip-search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.zip-search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.zip-search-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.zip-search-form button {
    white-space: nowrap;
}

/* Content Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--bg-off-white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-block img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.content-block img:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium), 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Provider Cards */
.providers-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.provider-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.provider-logo {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
}

.provider-logo img {
    max-height: 100%;
    object-fit: contain;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros h4, .cons h4 {
    margin-bottom: 10px;
}

.pros h4 {
    color: #28a745;
}

.cons h4 {
    color: #dc3545;
}

.pros ul, .cons ul {
    padding-left: 20px;
}

.pros li, .cons li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.pros li::before, .cons li::before {
    position: absolute;
    left: 0;
    top: 2px;
}

.pros li::before {
    content: '✓';
    color: #28a745;
}

.cons li::before {
    content: '✕';
    color: #dc3545;
}

/* Cost Tips */
.cost-tips {
    padding-left: 20px;
}

.cost-tips li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.cost-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Compare Table */
.compare-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin: 40px 0;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #e1e1e1;
}

.table-row:last-child {
    border-bottom: none;
}

.column {
    padding: 15px 20px;
}

.feature-column {
    font-weight: 600;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

details {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 20px 20px;
}

/* Final CTA Section */
.final-cta {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    margin-bottom: 20px;
}

.final-cta p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info {
    max-width: 600px;
}

.disclaimer {
    font-size: 0.85rem;
    color: #aaa;
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: white;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    font-size: 0.9rem;
    max-width: 400px;
}

.cookie-consent p {
    margin: 0;
}

#accept-cookies {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

#accept-cookies:hover {
    background: var(--secondary-color);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.search-content {
    text-align: center;
    max-width: 600px;
    padding: 30px;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.insurance-logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .content-grid, 
    .hero-content {
        gap: 30px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .header-container {
        height: 70px;
    }
    
    .hamburger {
        display: block;
        z-index: 1100;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        background: white;
        height: 100vh;
        width: 80%;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1050;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.show {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hero-content,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .provider-card {
        padding: 20px;
    }
    
    .table-header,
    .table-row {
        font-size: 0.85rem;
    }
    
    .column {
        padding: 10px;
    }
    
    .cookie-consent {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        left: 10px;
        right: 10px;
    }
}