/* Base Styles & CSS Reset */
:root {
    --primary-color: #3a73c9;
    --primary-hover: #2a5ba0;
    --secondary-color: #f9a01b;
    --secondary-hover: #e68a00;
    --text-color: #333333;
    --light-text: #666666;
    --lightest-text: #999999;
    --background: #ffffff;
    --light-background: #f7f9fc;
    --border-color: #e6e6e6;
    --box-shadow: 0 8px 24px rgba(149, 157, 165, 0.15);
    --success-color: #4CAF50;
    --error-color: #f44336;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-family);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color);
    font-weight: 600;
}

h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

button, .cta-button {
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1.6rem;
    border: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* Utility Classes */
.neumorph {
    background: var(--background);
    box-shadow: 8px 8px 16px rgba(174, 174, 192, 0.2),
                -8px -8px 16px rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.neumorph:hover {
    box-shadow: 12px 12px 20px rgba(174, 174, 192, 0.3),
                -12px -12px 20px rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(58, 115, 201, 0.2);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 115, 201, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 115, 201, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 115, 201, 0);
    }
}

.section-intro {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--light-text);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo a {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-nav li {
    margin-left: 2.5rem;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.compare-btn-desktop .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--background);
    padding: 8rem 2rem 2rem;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 500;
    display: block;
    padding: 1rem 0;
}

.language-selector {
    position: relative;
}

.lang-dropdown {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background);
    min-width: 150px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    z-index: 100;
    padding: 1rem 0;
    margin-top: 1rem;
}

.lang-dropdown.active .lang-options,
.lang-dropdown:focus .lang-options {
    display: block;
}

.lang-options a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.lang-options a:hover {
    background-color: var(--light-background);
}

.language-selector-mobile h4 {
    margin-top: 2rem;
    color: var(--light-text);
}

.lang-options-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.lang-options-mobile a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
}

/* Hero Section */
.hero {
    padding-top: 15rem;
    position: relative;
    overflow: hidden;
}

.haro-section {
    background: linear-gradient(135deg, #eef2f7 0%, #d4e1f5 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: perspective(800px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(800px) rotateY(0deg);
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.8rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

/* ZIP Search Form */
.zip-search-container {
    margin: 4rem 0;
    text-align: center;
    padding: 3rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.zip-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.zip-form input {
    flex: 1;
    min-width: 200px;
    padding: 1.2rem 1.6rem;
    font-size: 1.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.zip-form.large input {
    padding: 1.6rem 2rem;
    font-size: 1.8rem;
}

.zip-form.large button {
    padding: 1.6rem 3rem;
    font-size: 1.8rem;
}

/* Section Intro Cards */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.card {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-bottom: 1.5rem;
}

.card p {
    margin-bottom: 0;
    color: var(--light-text);
}

/* Policy Section */
.policy-section {
    background-color: var(--light-background);
}

.policy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.policy-image, .policy-text {
    flex: 1;
    min-width: 300px;
}

.policy-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.policy-image img:hover {
    transform: scale(1.05);
}

.cta-inline {
    margin-top: 2.5rem;
}

/* Companies Section */
.company-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.company-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-logo {
    margin-bottom: 1.5rem;
}

.company-card h3 {
    margin-bottom: 1rem;
}

.company-card p {
    margin-bottom: 2rem;
    color: var(--light-text);
}

.company-card .cta-button {
    margin-top: auto;
}

/* ZIP Large Section */
.zip-large-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
}

.zip-large-section .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.zip-large-content, .zip-large-image {
    flex: 1;
    min-width: 300px;
}

.zip-large-content h2 {
    margin-bottom: 2rem;
}

.zip-large-content p {
    margin-bottom: 3rem;
    color: var(--light-text);
    font-size: 1.8rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto 4rem;
}

details {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

summary {
    padding: 1.8rem 2rem;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    font-size: 1.8rem;
    background-color: var(--light-background);
    transition: var(--transition);
}

summary:hover {
    background-color: #e9eff9;
}

summary::marker {
    content: "";
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
}

details[open] summary::after {
    content: "−";
}

.faq-content {
    padding: 2rem;
    background-color: var(--background);
}

.faq-content p {
    margin-bottom: 0;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #3a73c9 0%, #2a5ba0 100%);
    text-align: center;
    color: white;
}

.final-cta h2, .final-cta p {
    color: white;
}

.final-cta p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.8rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about h3 {
    color: white;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #a3b1c2;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    transition: var(--transition);
}

.footer-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-disclaimer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
    font-size: 1.4rem;
    color: #a3b1c2;
}

.footer-copy {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copy p {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: #a3b1c2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--background);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.search-progress h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.company-logos img {
    transition: var(--transition);
    opacity: 0.8;
}

.company-logos img:hover {
    opacity: 1;
}

.search-result-message {
    text-align: center;
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.8rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1500;
    max-width: 300px;
}

.cookie-consent p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.cookie-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    transition: var(--transition);
}

.cookie-button:hover {
    background-color: var(--primary-hover);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .policy-content {
        flex-direction: column-reverse;
    }
    
    .policy-image {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    h1 {
        font-size: 3.8rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .hero {
        padding-top: 12rem;
    }
    
    section {
        padding: 6rem 0;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    .hero {
        padding-top: 10rem;
    }
    
    .zip-form {
        flex-direction: column;
    }
    
    .zip-form input, .zip-form button {
        width: 100%;
    }
    
    .card {
        padding: 2rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .cookie-consent {
        flex-direction: column;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
    }
}