/* Base Styles */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff4081;
    --accent-color: #ffbe0b;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --grey-color: #8d99ae;
    --error-color: #e63946;
    --success-color: #06d6a0;
    --gradient-start: #4361ee;
    --gradient-end: #3a86ff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --container-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gradient-start);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 20px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark-color);
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

section {
    padding: 80px 0;
}

.light-bg {
    background-color: var(--light-color);
}

.dark-bg {
    background-color: var(--dark-color);
    color: var(--light-text);
}

.dark-bg h2, .dark-bg h3 {
    color: var(--light-text);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--light-text);
}

.gradient-bg h2, .gradient-bg h3 {
    color: var(--light-text);
}

.hidden {
    display: none !important;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: #e03a73;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 64, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-nav ul li {
    margin: 0 15px;
}

.desktop-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    color: var(--dark-color);
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.language-selector {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background-color: var(--light-color);
}

.current-language img {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.language-selector:hover .language-dropdown,
.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    list-style: none;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--dark-color);
}

.language-dropdown li a img {
    margin-right: 10px;
}

.language-dropdown li a:hover {
    background-color: var(--light-color);
}

.desktop-only {
    display: inline-block;
}

/* Hero Section */
.hero {
    padding: 100px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    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(-15deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ZIP Code Search Styles */
.zip-search-container {
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.highlight-zip {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.alternate-zip {
    background-color: white;
    border: 1px solid var(--grey-color);
}

.zip-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zip-search-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
}

.zip-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
}

.search-progress {
    text-align: center;
}

.searching-message {
    margin-bottom: 20px;
    font-weight: 500;
}

.logo-carousel {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.progress {
    height: 100%;
    background-color: var(--success-color);
    width: 0%;
    transition: width 0.5s ease;
}

.results-message {
    font-weight: 600;
    color: var(--success-color);
    margin: 20px 0;
    font-size: 18px;
}

/* Intro Section */
.intro-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.intro-text {
    flex: 3;
}

.intro-image {
    flex: 2;
    display: flex;
    justify-content: center;
}

.intro-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.intro-image img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Providers Section */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.provider-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provider-logo {
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.provider-logo img {
    max-height: 80px;
    width: auto;
}

.provider-content {
    padding: 30px;
    flex: 1;
}

.provider-features {
    margin: 20px 0;
    list-style-type: none;
    padding-left: 5px;
}

.provider-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.provider-features li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.provider-cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.provider-cta:hover {
    background-color: var(--gradient-start);
    color: white;
    transform: translateY(-2px);
}

/* Compare Section */
.compare-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.compare-text {
    flex: 1;
}

.compare-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.compare-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotateZ(2deg);
    transition: var(--transition);
}

.compare-image img:hover {
    transform: rotateZ(0);
}

.comparison-table {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background-color: rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-cta {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.table-cta:hover {
    background-color: #e03a73;
    color: white;
}

/* Cost Analysis Section */
.cost-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.cost-text {
    flex: 1;
    min-width: 300px;
}

.cost-chart {
    flex: 1;
    min-width: 300px;
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 15px;
}

.chart-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey-color);
}

.factors-list li {
    margin-bottom: 12px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

details {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

details:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

summary {
    padding: 20px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px 20px;
}

/* Resources Section */
.resources-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.resources-text {
    flex: 2;
    min-width: 300px;
}

.methodology-box {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.resources-list li {
    margin-bottom: 12px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 2;
    min-width: 200px;
}

.footer-logo a {
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content, .intro-content, .compare-content {
        flex-direction: column;
    }
    
    .hero-image, .intro-image, .compare-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .hero-image img, .intro-image img, .compare-image img {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .desktop-nav ul, .desktop-only {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .language-selector {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .language-mobile {
        margin-top: 20px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image img, .intro-image img, .compare-image img {
        max-width: 300px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .zip-search-form {
        flex-direction: column;
    }
    
    .zip-search-form input, .zip-search-form button {
        width: 100%;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links, .footer-contact {
        width: 100%;
    }
}

/* Animations and Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Neumorphism Effects */
.benefit-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.03);
}

.provider-card {
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.05),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

/* Parallax Effect */
.hero, .compare {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Accessibility Focus Styles */
a:focus, button:focus, input:focus, [tabindex="0"]:focus {
    outline: 3px solid rgba(58, 134, 255, 0.5);
    outline-offset: 3px;
}

/* Additional High Contrast Focus for Accessibility */
.dark-bg a:focus, .dark-bg button:focus, .gradient-bg a:focus, .gradient-bg button:focus {
    outline-color: rgba(255, 255, 255, 0.7);
}