/* Base Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #7e57c2;
    --accent-color: #ff9800;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f5f7fa;
    --success-color: #4caf50;
    --error-color: #f44336;
    --border-radius: 8px;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --neumorphism-shadow: 12px 12px 24px rgba(0, 0, 0, 0.1), -12px -12px 24px rgba(255, 255, 255, 0.5);
}

* {
    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: var(--bg-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(--secondary-color);
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Button & Form Styles */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.cta-button:active {
    transform: translateY(1px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 4px 12px 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: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav nav ul li {
    margin-right: 1.5rem;
}

.desktop-nav nav ul li a {
    font-weight: 500;
    position: relative;
}

.desktop-nav nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.desktop-nav nav ul li a:hover::after {
    width: 100%;
}

.language-selector {
    position: relative;
    margin-right: 1.5rem;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
}

.selected-language img {
    margin-right: 0.5rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 0.5rem 0;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.language-dropdown li a:hover {
    background-color: var(--bg-alt);
}

.language-dropdown li a img {
    margin-right: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav ul li {
    margin-bottom: 1rem;
}

.mobile-menu nav ul li a {
    font-size: 1.1rem;
    font-weight: 500;
}

.language-selector-mobile {
    display: flex;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.language-selector-mobile a {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.language-selector-mobile a.active {
    background-color: var(--bg-alt);
}

.language-selector-mobile a img {
    margin-right: 0.5rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.alternate-bg {
    background-color: var(--bg-alt);
}

.gradient-bg {
    background: linear-gradient(135deg, #4a6fa5, #6a5acd);
    color: white;
}

.gradient-bg h1, .gradient-bg h2, .gradient-bg h3, .gradient-bg p {
    color: white;
}

/* Hero Section */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.zip-search-form {
    display: flex;
    max-width: 500px;
    margin-bottom: 1rem;
}

.zip-search-form input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.zip-search-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.search-progress {
    text-align: center;
    margin-top: 1rem;
}

.company-logos-loader {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
}

.company-logos-loader img {
    margin: 5px;
    object-fit: contain;
    display: inline-block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 5s ease-in-out;
}

.search-complete {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.neumorphism {
    border-radius: 20px;
    background: #f5f7fa;
    box-shadow: var(--neumorphism-shadow);
    transition: transform 0.3s ease;
}

.neumorphism:hover {
    transform: translateY(-5px);
}

/* Flex Container */
.flex-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.content-half {
    flex: 1;
}

.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Parallax Section */
.parallax-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url('https://images.unsplash.com/photo-1600869009498-8d429f88d4f5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translateY(0);
}

.parallax-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 2rem;
    text-align: center;
}

.parallax-content h3, .parallax-content p {
    color: white;
}

/* Providers Section */
.providers-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.provider-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.provider-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.provider-logo img {
    max-height: 80px;
    margin: 0 auto;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pros-cons h4 {
    margin-bottom: 0.75rem;
}

.pros-cons ul {
    padding-left: 1.5rem;
}

.provider-card .cta-button {
    width: 100%;
}

/* Cost Factors */
.cost-factors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.factor {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.factor h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.factor p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Tips List */
.tips-list {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.tips-list li {
    margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.quote {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 2rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
}

.author {
    text-align: right;
    font-weight: 600;
    color: var(--text-light);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    background-color: var(--bg-alt);
    position: relative;
    transition: var(--transition);
}

summary:hover {
    background-color: #e9edf5;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 1rem;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
}

.final-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.zip-search-container.center-aligned {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zip-search-container.center-aligned .zip-search-form {
    max-width: 500px;
}

/* Conclusion Section */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.contact-link {
    color: var(--accent-color);
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.footer-disclaimer p, .footer-copyright p {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 0;
}

.footer-copyright p {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .flex-container {
        flex-direction: column;
    }
    
    .reverse-mobile .content-half:first-child {
        order: 2;
    }
    
    .reverse-mobile .content-half:last-child {
        order: 1;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .parallax-container {
        height: 250px;
    }
    
    .cost-factors {
        grid-template-columns: 1fr;
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .zip-search-form input {
        border-radius: var(--border-radius);
        border-right: 2px solid #ddd;
        margin-bottom: 0.75rem;
    }
    
    .zip-search-form button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
}