/* Base Styles */
:root {
    --primary-color: #4e44ce;
    --primary-dark: #3a33a0;
    --secondary-color: #ffa726;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f9f9ff;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    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(--background-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--background-white);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), #8c7ae6);
    color: white;
}

.alternate-bg {
    background-color: var(--background-light);
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(78, 68, 206, 0.2);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 68, 206, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-white);
    padding: 20px;
    box-shadow: 0 5px 10px var(--shadow-color);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.selected-language:hover {
    background-color: var(--background-light);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background-color: var(--background-white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 10px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    transition: var(--transition);
}

.language-dropdown li a:hover {
    background-color: var(--background-light);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.search-container {
    margin: 30px 0;
}

.zip-search-form {
    display: flex;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    overflow: hidden;
    background-color: white;
}

.zip-search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.zip-search-form button {
    border: none;
    padding: 15px 25px;
    white-space: nowrap;
    border-radius: 0 50px 50px 0;
}

.hero-image {
    position: relative;
    text-align: right;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    padding: 30px;
    background-color: var(--background-white);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Comparison Section */
.comparison-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comparison-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--background-white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.comparison-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.comparison-feature .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Companies Section */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.company-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: var(--background-white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.company-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.company-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: contain;
}

.company-cta {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    align-self: flex-start;
    transition: var(--transition);
}

.company-cta:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Key Features Section */
.key-features .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.key-features-image img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.key-features-image img:hover {
    transform: scale(1.02);
}

/* Cost Section */
.cost-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.cost-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cost-table th, .cost-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cost-table th {
    background-color: var(--primary-color);
    color: white;
}

.cost-table tr:nth-child(even) {
    background-color: var(--background-light);
}

.cost-image img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.cost-image img:hover {
    transform: rotate(2deg);
}

/* FAQ Section */
.faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

details {
    background-color: var(--background-white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: 0 3px 10px var(--shadow-color);
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    transition: var(--transition);
}

details[open] summary::after {
    content: "-";
}

details p {
    padding: 0 20px 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #8c7ae6);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
}

.cta-section .search-container {
    max-width: 500px;
    margin: 30px auto;
}

/* Footer */
footer {
    background-color: #2d2747;
    color: white;
    padding: 60px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.contact-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-top: 15px;
    transition: var(--transition);
}

.contact-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Search Overlay */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

#search-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.search-processing {
    background-color: white;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.search-processing h3 {
    margin-bottom: 30px;
}

.loading-animation {
    width: 50px;
    height: 50px;
    border: 5px solid var(--background-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.company-logos img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.search-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .hero .container, 
    .key-features .container,
    .cost-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .key-features-image {
        order: -1;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .cost-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .features-grid,
    .comparison-features {
        grid-template-columns: 1fr;
    }
    
    .cost-table th, .cost-table td {
        padding: 10px;
    }
    
    .zip-search-form {
        flex-direction: column;
        border-radius: var(--radius);
    }
    
    .zip-search-form input {
        text-align: center;
    }
    
    .zip-search-form button {
        border-radius: 0 0 var(--radius) var(--radius);
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .search-processing {
        padding: 20px;
    }
    
    .company-logos img {
        width: 60px;
    }
}

/* Additional Modern Effects */
/* Neumorphism */
.feature-card {
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1), 
                -8px -8px 15px rgba(255, 255, 255, 0.5);
}

/* Parallax Effect */
.hero, .cta-section {
    background-attachment: fixed;
}

/* Hover Transform Effects */
.company-card:hover, 
.comparison-feature:hover,
.feature-card:hover {
    transform: translateY(-5px);
}

.key-features-image img:hover,
.cost-image img:hover,
.hero-image img:hover {
    transform: scale(1.05);
}

/* CSS Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.feature-card, .company-card, .comparison-feature {
    animation: fadeIn 0.5s ease-out forwards;
}

.key-features-content, .cost-content {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Accessibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Font Display Swap */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
}