/* General Styles */
:root {
    --primary-color: #4a6baf;
    --secondary-color: #6fb9e8;
    --accent-color: #ff7e5f;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #4a6baf;
    --gradient-end: #6fb9e8;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.cta-btn, .submit-btn {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.3);
}

.cta-btn:hover, .submit-btn:hover {
    background: #ff6b4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 126, 95, 0.4);
    color: white;
}

.provider-btn {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.provider-btn:hover {
    background: #3e5a9c;
    color: white;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.light-bg {
    background-color: var(--bg-light);
}

section {
    padding: 80px 0;
}

ul {
    list-style-type: none;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.nav-toggle span:nth-child(1) {
    top: 0px;
}

.nav-toggle span:nth-child(2) {
    top: 10px;
}

.nav-toggle span:nth-child(3) {
    top: 20px;
}

.nav-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.nav-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    min-width: 80px;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 10;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    transform: translateY(5px);
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--bg-light);
}

.language-option.active {
    background-color: rgba(74, 107, 175, 0.1);
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="3" cy="3" r="1.5" fill="%234a6baf" opacity="0.1"/></svg>');
    background-size: 20px 20px;
    z-index: 0;
}

.hero-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-cta {
    margin-top: 40px;
}

/* ZIP Search Form */
.zip-search-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    transition: var(--transition);
}

.zip-search-form:hover {
    box-shadow: var(--box-shadow-hover);
}

.zip-search-container {
    margin: 40px 0;
}

.zip-search-container.centered {
    display: flex;
    justify-content: center;
}

.zip-search-container.large .zip-search-form {
    max-width: 700px;
}

.zip-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.zip-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 16px;
}

.zip-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 107, 175, 0.2);
}

.search-subtext {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Two-column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 250px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-icon {
    margin-bottom: 20px;
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.provider-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.provider-logo {
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: 15px;
}

.provider-features {
    margin: 20px 0;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.feature-icon {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.plan-icon {
    margin-bottom: 15px;
}

/* Cost Details */
.cost-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .cost-details {
        flex-direction: row;
    }
    
    .cost-image {
        flex: 1;
    }
    
    .cost-content {
        flex: 1;
    }
}

.comparison-table {
    margin-top: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
}

th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 12px 15px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e1e1;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* FAQ Section */
.faqs-container {
    margin-top: 40px;
}

details {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

summary:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 20px 20px;
}

/* Footer */
footer {
    background-color: #2a3f6a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
    
    .footer-logo {
        flex: 1;
    }
    
    .footer-nav {
        flex: 2;
        display: flex;
        justify-content: space-around;
    }
}

.footer-logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-nav-column h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav-column a:hover {
    color: white;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(37, 37, 37, 0.95);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 9999;
    font-size: 14px;
}

.cookie-consent p {
    margin: 0;
    padding-right: 20px;
}

.cookie-consent a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-btn {
    padding: 6px 12px;
    background: white;
    color: #333;
    border-radius: 4px;
    font-size: 14px;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.search-modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.search-animation {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.search-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: progress 5s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.company-logos img {
    max-width: 80px;
    height: 40px;
    object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .two-column-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        margin: 30px auto;
    }
    
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 400px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .zip-input-group {
        flex-direction: column;
    }
    
    .cookie-consent {
        flex-direction: column;
        padding: 15px;
    }
    
    .cookie-consent p {
        margin-bottom: 10px;
        padding-right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content h1,
.hero-content .subtitle,
.hero-cta {
    animation: slideInUp 0.8s forwards;
}

.hero-content .subtitle {
    animation-delay: 0.2s;
}

.hero-cta {
    animation-delay: 0.4s;
}

.hero-image img {
    animation: fadeIn 1s forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Parallax Effect */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transform: translateZ(-1px) scale(2);
}

/* Neumorphism Effects */
.neumorphic {
    border-radius: 15px;
    background: #f0f0f0;
    box-shadow: 5px 5px 10px #d1d1d1, -5px -5px 10px #ffffff;
    transition: var(--transition);
}

.neumorphic:hover {
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
.language-selector:focus,
details summary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

[tabindex="0"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}