/* Base Styles and Reset */
:root {
    --primary-color: #3563E9;
    --secondary-color: #05103A;
    --accent-color: #FF7A50;
    --light-color: #F5F7FF;
    --dark-color: #222732;
    --gray-color: #768396;
    --light-gray: #E9ECF5;
    --success-color: #2AC769;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px base size for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

button {
    cursor: pointer;
    font-family: var(--font-main);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 2rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

h1 {
    font-size: 3.6rem;
    margin-bottom: 2.4rem;
}

h2 {
    font-size: 3rem;
    margin-top: 4rem;
}

h3 {
    font-size: 2.2rem;
    margin-top: 3rem;
}

p {
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4.8rem;
    }
    
    h2 {
        font-size: 3.6rem;
    }
    
    h3 {
        font-size: 2.6rem;
    }
    
    .subtitle {
        font-size: 2.2rem;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: none;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.2rem;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transform: translateY(-100vh);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 99;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
    margin-left: 2rem;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.language-selector:hover .current-language {
    background-color: var(--light-gray);
}

.flag-icon {
    width: 2rem;
    height: auto;
    border-radius: 2px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 10;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    transition: background-color var(--transition-fast);
    color: var(--dark-color);
}

.language-option:hover {
    background-color: var(--light-gray);
}

/* Buttons and CTAs */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    text-align: center;
    transition: all var(--transition-fast);
    font-size: 1.6rem;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #2953d1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.cta-button.large {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(53, 99, 233, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(53, 99, 233, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(53, 99, 233, 0);
    }
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, #3563E9 0%, #6E8FFF 100%);
    color: #fff;
}

.gradient-bg h1, 
.gradient-bg h2, 
.gradient-bg h3,
.gradient-bg .subtitle {
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-normal);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* ZIP Search */
.zip-search-container {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.zip-search-container.primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.zip-search-container.primary h3 {
    color: #fff;
}

.zip-search-container.secondary {
    background-color: var(--light-gray);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.zip-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input {
    padding: 1.2rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1.6rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(53, 99, 233, 0.2);
}

.trusted-by {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    color: var(--gray-color);
    text-align: center;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.alt-bg {
    background-color: #f8f9fc;
}

/* Card Layouts */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.info-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card.wide {
    margin-bottom: 2rem;
}

.info-card h3 {
    margin-top: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.feature-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.feature-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.feature-list {
    margin-top: 2rem;
    list-style-type: none;
}

.feature-list li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Provider Cards */
.providers-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.provider-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.provider-logo {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fc;
    min-height: 12rem;
}

.provider-logo img {
    max-height: 8rem;
    width: auto;
    margin: 0 auto;
}

.provider-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.provider-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.provider-info p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.provider-cta {
    align-self: flex-start;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.step-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-top: 4rem;
}

.step-number {
    position: absolute;
    top: -2rem;
    left: 3rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.image-feature {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.image-feature img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 2rem 2rem;
}

/* Conclusion Section */
.conclusion-content {
    max-width: 900px;
    margin: 0 auto;
}

.final-cta {
    margin-top: 4rem;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.copyright {
    font-weight: 600;
}

.disclaimer {
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav a {
    color: #fff;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
    opacity: 1;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    font-size: 1.4rem;
    max-width: 400px;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.cookie-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.cookie-button:hover {
    background-color: #2953d1;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(5, 16, 58, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.search-processing {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 4rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.search-processing h3 {
    margin-top: 0;
    margin-bottom: 3rem;
}

.logo-carousel {
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.company-logo {
    max-height: 8rem;
    max-width: 20rem;
}

.loading-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.loader {
    width: 4.8rem;
    height: 4.8rem;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .providers-grid {
        flex-direction: column;
    }
    
    .provider-card {
        flex-direction: row;
    }
    
    .provider-logo {
        width: 20rem;
        padding: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
    
    .zip-search-form {
        flex-direction: row;
        align-items: flex-end;
    }
    
    .form-group {
        flex-grow: 1;
    }
    
    .cookie-notice {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 2rem;
        left: 2rem;
        right: auto;
        max-width: 500px;
    }
    
    .cookie-actions {
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    .info-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Accessibility Focus Styles */
a:focus, button:focus, input:focus, summary:focus, [tabindex="0"]:focus {
    outline: 3px solid rgba(53, 99, 233, 0.5);
    outline-offset: 3px;
}