/* Base Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--light-color);
    font-display: swap;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 1em;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1.5em;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navigation */
.mobile-menu {
    position: relative;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-items {
    display: flex;
    gap: 20px;
}

.nav-items a {
    font-weight: 500;
}

.nav-items a:hover {
    color: var(--primary-color);
}

.mobile-cta {
    display: none;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    user-select: none;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    padding: 10px;
    transition: var(--transition);
}

.language-dropdown li:hover {
    background-color: var(--light-gray);
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6ab7ff 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2em;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.03);
}

/* ZIP Search Styles */
.zip-search-container {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.zip-search-form {
    display: flex;
    gap: 10px;
}

.zip-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.zip-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.zip-subtext {
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
    opacity: 0.9;
}

.center-zip {
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
}

/* Section Styles */
section {
    padding: 70px 0;
}

.gradient-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #e0e9f5 100%);
}

.light-section {
    background-color: white;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-column {
    max-width: 600px;
}

.image-column {
    display: flex;
    justify-content: center;
}

.center-content {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.neumorphism {
    background: #f0f4f8;
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
    border-radius: 16px;
}

.neumorphism-image {
    border-radius: 16px;
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
    transition: var(--transition);
}

.neumorphism-image:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px #d1d9e6, -15px -15px 30px #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Providers Section */
.providers-section {
    background-color: #f8f9fa;
}

.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.provider-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.provider-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.provider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-card h3 {
    margin-bottom: 10px;
}

.provider-card p {
    margin-bottom: 20px;
}

/* Steps Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* FAQ Section */
.faq-section {
    background-color: #f0f4f8;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    outline: none;
    transition: var(--transition);
}

.faq-item summary:hover {
    background-color: var(--light-gray);
}

.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-content {
    padding: 0 20px 20px;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #3498db 0%, #1a5276 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.final-cta h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.final-cta .zip-search-container {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 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;
}

.footer-logo p {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    margin-bottom: 10px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-disclaimer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 30px;
}

.searching-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    display: none;
}

.found-message {
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: none;
}

/* Media Queries */
@media (max-width: 992px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
        order: -1;
    }
    
    .content-column {
        max-width: 100%;
    }
    
    .desktop-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-items {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        padding: 50px 20px;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-items.active {
        right: 0;
    }
    
    .mobile-cta {
        display: block;
        margin-top: 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .zip-search-form .btn-primary {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-content, .hero-image {
    animation: fadeIn 1s ease-out, slideUp 1s ease-out;
}

.provider-card, .step-card, .faq-item {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility Focus Styles */
a:focus, button:focus, input:focus, summary:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}