:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --light-color: #ffffff;
    --dark-color: #1a1a2e;
    --gray-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-color: #e2e2e2;
    --success-color: #38b000;
    --danger-color: #ff5a5f;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-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(--accent-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    line-height: 1.2;
    color: var(--dark-color);
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* Layout Components */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--gray-color);
}

.card {
    background: var(--light-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Navigation */
.main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.main-nav.active {
    max-height: 500px;
}

.main-nav ul {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-nav li a {
    color: var(--dark-color);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.main-nav li a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.language-current:hover {
    background-color: var(--gray-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 100;
}

.language-dropdown.active {
    max-height: 300px;
    padding: 0.5rem 0;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--text-color);
}

.language-dropdown li a:hover {
    background-color: var(--gray-color);
}

.language-dropdown li a.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #c9d9ff 0%, #f0f4ff 100%);
}

.hero-section .container {
    display: grid;
    gap: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ZIP search */
.zip-search-container {
    margin: 2rem 0;
}

.zip-search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.zip-search-form input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.zip-search-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.zip-search-form button {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.search-progress, .search-complete {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.search-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Intro Section */
.intro-section .container {
    display: grid;
    gap: 3rem;
}

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Provider Cards */
.providers-section {
    background-color: var(--light-color);
}

.section-intro {
    margin-bottom: 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.provider-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provider-logo {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.provider-logo img {
    max-width: 150px;
    margin: 0 auto;
}

.provider-content h3 {
    margin-bottom: 1rem;
}

.pros-cons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pros, .cons {
    background-color: var(--gray-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.pros h4 {
    color: var(--success-color);
}

.cons h4 {
    color: var(--danger-color);
}

.pros ul, .cons ul {
    margin-left: 1.5rem;
    list-style: disc;
}

.pros li, .cons li {
    margin-bottom: 0.5rem;
}

/* ZIP Search Section */
.zip-search-section {
    background: linear-gradient(135deg, #8338ec 0%, #3a86ff 100%);
    color: var(--light-color);
    text-align: center;
    padding: 5rem 0;
}

.zip-search-section h2 {
    color: var(--light-color);
}

.zip-search-bottom {
    margin-top: 3rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
}

summary:after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

details[open] summary:after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
}

/* Conclusion Section */
.conclusion-section {
    text-align: center;
}

.final-cta {
    margin-top: 3rem;
}

.final-cta .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo a {
    color: var(--light-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav a {
    color: var(--light-color);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-disclaimer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: bottom 0.5s ease;
    z-index: 9999;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent p {
    margin-bottom: 0;
}

.btn-cookie-accept {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background-color: var(--accent-color);
}

/* Utility Classes */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.card, .provider-card {
    animation: slideUp 0.5s ease forwards;
}

section {
    animation: fadeIn 0.8s ease forwards;
}

/* Media Queries */
@media (min-width: 768px) {
    .pros-cons {
        flex-direction: row;
    }
    
    .pros, .cons {
        flex: 1;
    }
    
    .provider-card {
        flex-direction: row;
    }
    
    .provider-logo {
        flex: 0 0 200px;
    }
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
    }
    
    .main-nav ul {
        flex-direction: row;
        padding: 0;
    }
    
    .main-nav li a {
        padding: 0.5rem 1rem;
    }
    
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    .hero-section .container,
    .intro-section .container,
    .choose-section .container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.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;
}

/* Focus styles */
a:focus, button:focus, input:focus, summary:focus {
    outline: 3px solid rgba(58, 134, 255, 0.6);
    outline-offset: 2px;
}

/* Neumorphic effects */
.card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.05),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

/* Transform effects */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover, .provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* High contrast for accessibility */
.btn-primary {
    background-color: #0056b3; /* Darker primary for 4.5:1 contrast ratio */
    color: white;
}

.site-footer {
    background-color: #0f172a; /* Darker for better contrast */
}