/* Base Styles & Variables */
:root {
    --primary-color: #4a6fdc;
    --secondary-color: #5d45e0;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --light-text: #666666;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --gray-bg: #f0f2f5;
    --border-color: #e1e4e8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    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(--secondary-color);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--dark-bg);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--light-text);
}

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: none;
    z-index: 100;
    min-width: 120px;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--gray-bg);
}

/* Navigation */
.mobile-nav {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark-bg);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 15px;
    min-width: 200px;
    z-index: 100;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.mobile-menu a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
}

.gradient-bg {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ZIP Code Search Form */
.zip-code-search {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.zip-code-search h2 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.accent-box {
    background-color: var(--primary-color);
    color: white;
    margin: 40px 0;
}

.accent-box h2 {
    color: white;
}

.zip-form {
    display: flex;
    gap: 10px;
}

.zip-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
}

.zip-form button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.zip-form button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.zip-code-search.large {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.gray-bg {
    background-color: var(--gray-bg);
}

/* Card Layouts */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.reverse {
    direction: rtl;
}

.reverse .column {
    direction: ltr;
}

.column img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.column img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.rounded-image {
    border-radius: 20px;
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.provider-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.provider-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.provider-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.provider-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.provider-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.provider-card li {
    margin-bottom: 8px;
}

.provider-card .cta-button {
    margin-top: auto;
    align-self: flex-start;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--gray-bg);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.step h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.additional-info {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--gray-bg);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 30px auto;
}

details {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

summary {
    padding: 15px 20px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 20px 20px;
}

/* Conclusion Section */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    margin-top: 0;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 800px;
    margin: 15px auto;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 300px;
    z-index: 1000;
    font-size: 0.9rem;
}

.cookie-notice p {
    margin-bottom: 0;
}

.cookie-notice button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Loading Overlay */
#loading-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;
}

.loading-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 90%;
    width: 500px;
}

#loading-message {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.loading-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.loading-logos img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hamburger {
        display: block;
    }
    
    section {
        padding: 40px 0;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .zip-form {
        flex-direction: column;
    }
    
    .zip-form input, .zip-form button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .cookie-notice {
        flex-direction: column;
        align-items: flex-start;
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }
}