/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2d62ab;
    --secondary-color: #6cb2eb;
    --accent-color: #ff6b6b;
    --dark-color: #2d3748;
    --light-color: #f8fafc;
    --gray-color: #a0aec0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --neu-shadow: 8px 8px 16px #dedede, -8px -8px 16px #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-dark);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    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);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-lang-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.language-selector:hover {
    box-shadow: var(--shadow-md);
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 10px;
    margin-top: 5px;
    display: none;
    z-index: 100;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    white-space: nowrap;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.lang-option:hover {
    background-color: #f0f9ff;
}

/* Buttons and CTAs */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: #e05454;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: white;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-sm);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-md);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-sm);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6cb2eb 0%, #3a7bd5 100%);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1,
.hero-text p {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0) scale(1.02);
}

/* ZIP Search */
.zip-search-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-md);
}

.zip-search-container.centered {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.zip-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.zip-search-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.zip-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Section Styling */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.alternate-bg {
    background-color: #f0f9ff;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-column {
    max-width: 600px;
}

.feature-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-column {
    display: flex;
    justify-content: center;
}

/* Card Layout */
.card-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.provider-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provider-logo {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #edf2f7;
}

.provider-logo img {
    max-height: 60px;
    object-fit: contain;
}

.provider-details {
    padding: 1.5rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pros ul, .cons ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

details:hover {
    box-shadow: var(--shadow-md);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 0 1.5rem 1.5rem;
}

/* Conclusion */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.conclusion-text {
    margin-bottom: 2rem;
}

.final-cta {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-nav h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: #a0aec0;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: white;
}

.footer-disclaimer {
    grid-column: 1 / -1;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: #2d3748;
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    transition: bottom 0.5s ease;
    z-index: 1000;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent p {
    margin-bottom: 0;
}

.cookie-consent a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-consent button {
    background-color: white;
    color: var(--dark-color);
    border: none;
    padding: 5px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition);
}

.cookie-consent button:hover {
    background-color: #f0f0f0;
}

/* 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;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.search-status h2 {
    margin-bottom: 1.5rem;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.company-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.5rem;
}

.company-logos img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.company-logos img.fade-in {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .image-column {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .two-column-grid {
        gap: 2rem;
    }
    
    .card-layout {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .zip-search-form input, 
    .zip-search-form button {
        width: 100%;
    }
}

/* Neumorphism effects */
.neumorphic {
    border-radius: 15px;
    background: #f0f0f0;
    box-shadow: var(--neu-shadow);
    padding: 20px;
}

.neumorphic-inset {
    border-radius: 15px;
    background: #f0f0f0;
    box-shadow: inset 5px 5px 10px #d1d1d1, inset -5px -5px 10px #ffffff;
    padding: 20px;
}