/* Base Styles & Reset */
:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2b5ea0;
    --secondary-color: #00d2ff;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-alt: #f5f9ff;
    --bg-gradient: linear-gradient(135deg, #3a7bd5, #00d2ff);
    --border-radius: 10px;
    --box-shadow: 0 10px 20px rgba(58, 123, 213, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --neu-shadow: 5px 5px 10px rgba(163, 177, 198, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    padding-left: 1.2rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-top: 1.2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: var(--bg-alt);
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-name {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    background: var(--bg-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 123, 213, 0.2);
    color: white;
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 123, 213, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 123, 213, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 123, 213, 0);
    }
}

.large-cta {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-nav {
    display: none;
    background-color: var(--bg-color);
    padding: 20px 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    display: block;
    color: var(--text-color);
    font-weight: 500;
}

.cta-button-mobile {
    background: var(--bg-gradient);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    margin-top: 10px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--primary-color);
    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, -6px);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    background: white;
}

.current-language img {
    border-radius: 3px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px 0;
    min-width: 150px;
    z-index: 100;
    display: none;
    list-style: none;
}

.language-selector.active .language-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-dropdown li {
    padding: 5px 15px;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.language-dropdown a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.language-dropdown a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: var(--bg-gradient);
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    color: white;
    margin-top: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image img {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ZIP Search Form */
.zip-search-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.benefit-zip-search, .costs-zip-search, .offer-zip-search {
    max-width: 600px;
    margin: 40px auto;
}

.offer-zip-search {
    background: rgba(255, 255, 255, 0.95);
}

.zip-search-form h3 {
    text-align: center;
    margin-top: 0;
    color: var(--primary-dark);
}

.input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.zip-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-help {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.card-icon svg {
    fill: currentColor;
}

/* Companies Section */
.company-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.company-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    align-items: center;
}

.company-card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 30px rgba(58, 123, 213, 0.15);
}

.company-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.company-logo img {
    max-height: 60px;
    object-fit: contain;
}

.company-details h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.company-features {
    margin-bottom: 15px;
}

/* Costs Section */
.costs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.costs-table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.costs-table th, .costs-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.costs-table th {
    background-color: var(--primary-color);
    color: white;
}

.costs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.costs-image img {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.costs-image img:hover {
    transform: scale(1.03);
}

/* Guide Section */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.guide-steps {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.guide-steps li {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.feature-list {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.feature-list li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.guide-image img {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transform: perspective(1000px) rotateY(15deg);
    transition: var(--transition);
}

.guide-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Special Offer Section */
.special-offer-section {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.special-offer-section h2, .special-offer-section p {
    color: white;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

details {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--neu-shadow);
    overflow: hidden;
}

summary {
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 20px;
}

/* Conclusion Section */
.conclusion-section {
    text-align: center;
    padding: 60px 0;
}

.final-cta {
    margin: 40px 0 20px;
}

/* Footer */
.site-footer {
    background-color: #1a2a42;
    color: #9eabc0;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9eabc0;
}

.footer-links a:hover {
    color: white;
}

.contact-link {
    color: var(--secondary-color);
    display: inline-block;
    margin-top: 10px;
}

.footer-disclaimer {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.copyright {
    margin-top: 15px;
    opacity: 0.7;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.company-logo-item {
    width: 80px;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.company-logo-item.visible {
    opacity: 1;
    transform: scale(1);
}

.search-result-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 10px;
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-grid, .costs-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content, .costs-content, .guide-content {
        order: 1;
    }
    
    .hero-image, .costs-image, .guide-image {
        order: 2;
        text-align: center;
        margin-top: 30px;
    }
    
    .costs-table th, .costs-table td {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .company-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .company-logo {
        margin-bottom: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .zip-input, .input-group .cta-button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-intro {
        font-size: 0.95rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Neumorphism & Modern Effects */
.benefit-card, details, .company-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.company-card:hover {
    transform: translateX(5px);
}

/* Accessibility */
button:focus, a:focus, input:focus, summary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #eee;
        --text-light: #bbb;
        --bg-color: #121212;
        --bg-alt: #1e1e1e;
        --neu-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.05);
    }
    
    .site-header, .mobile-nav, .current-language, .language-dropdown,
    .benefit-card, .company-card, details, .search-content, .zip-search-container {
        background-color: #1e1e1e;
    }
    
    .costs-table th {
        background-color: var(--primary-dark);
    }
    
    .costs-table tr:nth-child(even) {
        background-color: #2a2a2a;
    }
    
    .costs-table td, .costs-table th {
        border-color: #333;
    }
    
    .hamburger span {
        background-color: var(--primary-color);
    }
    
    .zip-input {
        background-color: #2a2a2a;
        border-color: #444;
        color: var(--text-color);
    }
}