/* Base Styles & Reset */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b6b;
    --accent-color: #ffc107;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #444;
    --light-text: #666;
    --border-radius: 8px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #4a6bff 0%, #6b88ff 100%);
}

* {
    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: #3a5ae0;
}

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Section Styling */
section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.light-bg {
    background-color: var(--light-color);
}

.gradient-bg {
    background: var(--gradient);
    color: white;
}

.gradient-bg h2, 
.gradient-bg h3 {
    color: white;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Header & Navigation */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.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);
}

.main-nav {
    display: flex;
    align-items: center;
}

.language-selector {
    position: relative;
    margin-right: 2rem;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.selected-language:hover {
    background: rgba(0, 0, 0, 0.05);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 150px;
    padding: 0.5rem;
    display: none;
    z-index: 10;
}

.language-selector.active .language-dropdown {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.language-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background: #3a5ae0;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

.cta-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    border-radius: 3px;
    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;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: url('hero-bg.webp') no-repeat center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ZIP Code Search Forms */
.zip-search {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.primary-search {
    margin-top: 2rem;
}

.secondary-search {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
}

.zip-form {
    margin-top: 1.5rem;
}

.input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group .cta-button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-caption {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--light-text);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content h2, .content h3 {
    color: inherit;
}

.gradient-bg .content h2,
.gradient-bg .content h3 {
    color: white;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

.gradient-bg .text-link {
    color: white;
}

/* Neumorphism Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.card.neumorphism {
    background: var(--light-color);
    box-shadow: 
        8px 8px 16px rgba(200, 200, 200, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.card.neumorphism:hover {
    transform: translateY(-5px);
    box-shadow: 
        10px 10px 20px rgba(200, 200, 200, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.provider-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.provider-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.provider-logo img {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

.provider-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.provider-features span {
    background: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.provider-card .cta-button {
    width: 100%;
    margin-top: 1rem;
}

/* Process Steps */
.process-steps {
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.step-content h4 {
    margin-bottom: 0.3rem;
}

.step-content p {
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 2rem 0;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.benefits-list .icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefits-list h3 {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
}

.faq-content ul, 
.faq-content ol {
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* Popup Styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.loading-animation {
    margin: 2rem 0;
}

.loading-bar {
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0;
    border-radius: 3px;
    animation: loadingBar 5s forwards;
}

.searching-companies {
    margin-top: 1.5rem;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.company-logos img {
    height: 40px;
    width: auto;
}

.checkmark {
    font-size: 5rem;
    color: #4CAF50;
    margin: 1rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingBar {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    section {
        padding: 4rem 0;
    }
    
    .two-column {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-menu a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu .cta-button {
        margin-top: 1rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column .image {
        order: -1;
        text-align: center;
    }
    
    .two-column .image img {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .provider-cards {
        gap: 1.5rem;
    }
    
    .provider-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .input-group .cta-button {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}