/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Compare Bar Styles */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e40af;
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.compare-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.compare-text {
    font-weight: 600;
    font-size: 1rem;
}

.compare-actions {
    display: flex;
    gap: 0.75rem;
}

.compare-actions .btn-secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.compare-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.compare-actions .btn-primary {
    background: white;
    color: #1e40af;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.compare-actions .btn-primary:hover {
    background: #f3f4f6;
}

/* Comparison Modal Styles */
.comparison-modal {
    max-width: 95vw;
    max-height: 95vh;
    overflow: auto;
    background: white;
    border-radius: 8px;
}

.comparison-container {
    padding: 0;
    background: white;
    height: 100%;
    overflow-y: auto;
}

.comparison-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: white;
    padding: 30px;
    color: #1f2937;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-header .plan-header-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    text-align: center;
}

.comparison-header .plan-header-card .plan-issuer {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-header .plan-header-card .plan-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.comparison-header .plan-header-card .plan-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.comparison-header .plan-header-card .plan-actions button {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.plan-header-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.plan-issuer {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 18px 0;
    line-height: 1.4;
    color: #1f2937;
}

.plan-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.plan-actions .btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.plan-actions .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.plan-actions .btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 11px 23px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-actions .btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.most-affordable {
    display: none !important;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.comparison-summary {
    padding: 30px;
    background: white;
    flex: 1;
    overflow-y: auto;
}

.comparison-summary h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: none;
}

.row-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.row-value {
    color: #1f2937;
    font-size: 0.875rem;
}

.premium-value {
    font-weight: 600;
    color: #1f2937;
}

.was-price {
    font-size: 0.75rem;
    color: #ef4444;
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.comparison-footer {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-actions .link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-actions .link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compare-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .plan-column {
        min-width: 200px;
    }
}

/* Filter Bar Styles */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.filter-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.filter-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-badge:empty,
.filter-badge[data-count="0"] {
    display: none;
}

.filter-popover {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin-top: 0.25rem;
}

.filter-popover.hidden {
    display: none;
}

.filter-content {
    padding: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}

.filter-option label {
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.range-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.range-filter label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.dual-range-slider {
    position: relative;
    height: 2rem;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #dc2626;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #fecaca;
}

/* Plan Details Modal Styling */
.benefit-category {
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.category-note {
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.network-tier-display {
    padding: 0.5rem 1.5rem;
    background: #dbeafe;
    border-bottom: 1px solid #e5e7eb;
}

.tier-label {
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.875rem;
}

.benefits-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

.table-row:hover {
    background: #f9fafb;
}

.col-service {
    font-size: 0.875rem;
    color: #374151;
}

.service-name {
    font-weight: 500;
}

.col-before, .col-after {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
    text-align: center;
}

.explanation-row {
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
}

.explanation-row .col-service {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.explanation, .limit {
    margin-bottom: 0.5rem;
}

.explanation:last-child, .limit:last-child {
    margin-bottom: 0;
}

.network-tier-selector {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.network-tier-selector h4 {
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.tier-selector-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tier-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.tier-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #374151;
    background: #f9fafb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #ffffff;
}

.key-plan-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.plan-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.detail-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.detail-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
}

.network-note {
    color: #6b7280;
    font-size: 0.8125rem;
    font-style: italic;
    margin-top: 0.5rem;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #06b6d4;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Quote Form */
.quote-form-container {
    position: relative;
}

.quote-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quote-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-group input,
.input-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    z-index: 30;
}

.quote-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quote-btn:active {
    transform: translateY(0);
}

.quote-btn.loading {
    pointer-events: none;
}

.quote-btn.loading .btn-text {
    opacity: 0;
}

.quote-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quote Results */
.quote-results {
    margin-top: 2rem;
    animation: slideIn 0.5s ease-out;
}

.quote-results.hidden {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.results-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quote-plans {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.plan-card.recommended {
    border-color: #e5e7eb;
    background: white;
    position: relative;
}

.plan-card.recommended::before {
    display: none !important;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.results-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.875rem;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* States Section */
.states-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.states-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.states-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.states-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.state-link {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.state-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

/* Trust Section */
.trust-section {
    background: white;
    padding: 4rem 0;
}

.trust-content {
    text-align: center;
}

.trust-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* State Info Section */
.state-info {
    padding: 4rem 0;
    background: white;
}

.state-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.state-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid #e9ecef;
}

.info-card li:last-child {
    border-bottom: none;
}

/* States Section */
.states-section {
    padding: 4rem 0;
    background: #f1f5f9;
}

.states-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
}

.states-section p {
    text-align: center;
    margin-bottom: 3rem;
    color: #64748b;
    font-size: 1.125rem;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.state-links-column ul {
    list-style: none;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.state-links-column li {
    margin-bottom: 0.75rem;
}

.state-links-column li:last-child {
    margin-bottom: 0;
}

.state-links-column a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.state-links-column li:last-child a {
    border-bottom: none;
}

.state-links-column a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Related Pages Section */
.related-pages-section {
    padding: 3rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.related-pages-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
    font-weight: 600;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.related-links-column h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.related-links-column ul {
    list-style: none;
}

.related-links-column li {
    margin-bottom: 0.5rem;
}

.related-links-column a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.related-links-column a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Modern State Cards */
.related-pages-section .state-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem;
    margin-bottom: 3rem;
    list-style: none;
    padding: 0;
}

.state-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.state-card-content {
    padding: 1.5rem;
    position: relative;
}

.state-card h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.state-card:hover h3 {
    color: #1e40af;
}

.state-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #cbd5e1;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.state-card:hover .card-arrow {
    color: #1e40af;
    transform: translateX(4px);
}

.back-to-home {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid #1e40af;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.home-link:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .state-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .state-card-content {
        padding: 1.25rem;
    }
    
    .card-arrow {
        top: 1.25rem;
        right: 1.25rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Additional styles for API integration */
.eligibility-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.aptc-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
}

.aptc-notice i {
    font-size: 1.25rem;
}

.plan-info {
    flex: 1;
}

.plan-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.plan-metal {
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.plan-pricing {
    text-align: right;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.savings {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

.no-plans {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #dc2626;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-message h3 {
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-message p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Quote Results Page Styles */
.quote-results-page {
    padding-top: 80px;
    min-height: 100vh;
    background: #f8fafc;
}

.results-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    background: white;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 2rem;
}

.loading-container h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.loading-container p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem;
    overflow-y: auto;
}

.filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.tab-btn {
    background: white;
    border: none;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tab-btn:last-child {
    border-bottom: none;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f7fafc;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.sidebar-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.savings-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.savings-note {
    color: #718096;
    font-size: 0.875rem;
}

.csr-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.slider-container {
    position: relative;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.slider-value {
    text-align: right;
    font-weight: 600;
    color: #2d3748;
}

.add-btn {
    width: 100%;
    background: white;
    border: 2px dashed #cbd5e0;
    padding: 1rem;
    border-radius: 8px;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.radio-label {
    color: #4a5568;
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.results-header {
    display: none;
}

#planCount {
    display: none !important;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
}

.plan-year {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 400;
    color: #718096;
}

.sort-dropdown {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

/* Eligibility Banner */
.eligibility-banner {
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.banner-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.banner-content i {
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.banner-text {
    color: #2d3748;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Plan Filters */
.plan-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-chip {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip.active {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.filter-chip:hover:not(.active) {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Plans Table */
.plans-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border-color: #e5e7eb;
    position: relative;
}

.plan-badges {
    padding: 0;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-badge {
    background: #10b981;
    color: white;
}

.lowest-premium-badge {
    background: #06b6d4;
    color: white;
}

.plan-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-header-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.plan-company-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.company-state {
    font-size: 12px;
    color: #666;
}

.plan-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.plan-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-bronze {
    background: #cd7f32;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-silver {
    background: #c0c0c0;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-gold {
    background: #ffd700;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-platinum {
    background: #e5e4e2;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-csr-yellow {
    background: #fbbf24;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-not-rated {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-rating-high {
    background: #10b981;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-rating-medium {
    background: #f59e0b;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-rating-low {
    background: #ef4444;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-easy-pricing {
    color: #2563eb;
    font-size: 10px;
    font-weight: 500;
}

.plan-right {
    flex: 1;
    min-width: 0;
}

.plan-title .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.plan-issuer-prominent {
    font-size: 16px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.plan-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-type, .metal-level, .network-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #374151;
}

.network-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Removed conflicting flex rule */

.detail-column {
    text-align: center;
    padding: 0 8px;
    min-width: 90px;
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    line-height: 1.3;
}

.detail-subtext {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin-top: 2px;
}

.premium-value .amount {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.premium-value .period {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}

.savings-text {
    font-size: 12px;
    color: #dc2626;
    text-decoration: line-through;
    margin-top: 2px;
}

.plan-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-compare {
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-checkbox {
    width: 16px;
    height: 16px;
}

.compare-checkbox + label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-primary {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
    color: var(--primary-color);
}

.step.completed {
    opacity: 0.7;
    color: var(--accent-color);
}

.results-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-summary {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.edit-quote-btn, .new-quote-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-quote-btn:hover, .new-quote-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.eligibility-notice {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-content i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.notice-text h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-group select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.plan-card.recommended {
    border-color: #e5e7eb;
    background: white;
}

.recommended-badge {
    position: absolute;
    top: -1px;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    margin-bottom: 1.5rem;
}

.plan-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.metal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.metal-badge.bronze {
    background: #cd7f32;
    color: white;
}

.metal-badge.silver {
    background: #c0c0c0;
    color: #333;
}

.metal-badge.gold {
    background: #ffd700;
    color: #333;
}

.metal-badge.platinum {
    background: #e5e4e2;
    color: #333;
}

.plan-pricing {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.current-price span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.savings-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.plan-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row .value {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-actions {
    display: flex;
    gap: 1rem;
}

.view-details-btn {
    flex: 1;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-details-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.enroll-btn {
    flex: 1;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.enroll-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.error-state, .no-plans-state {
    text-align: center;
    padding: 4rem 2rem;
}

.error-content, .no-plans-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-content i, .no-plans-content i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.retry-btn, .new-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.retry-btn:hover, .new-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.plan-modal, .search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.plan-modal.hidden, .search-modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.comparison-modal {
    width: 95vw;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 1001;
}

.close-btn:hover {
    color: #333;
}

.modal-scroll-content {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.issuer-name {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #1976d2;
    font-weight: 700;
}

.plan-name {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.plan-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.plan-type, .metal-level, .quality-rating {
    font-weight: 500;
}

.plan-separator {
    color: #ccc;
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin: 20px 0 0 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #1976d2;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 24px 0;
}

.tab-content.active {
    display: block;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.document-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.3s ease;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.document-card i {
    font-size: 24px;
    color: #1976d2;
    margin-top: 4px;
}

.document-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.document-info p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.document-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.document-link:hover {
    text-decoration: underline;
}

.csr-notice {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.csr-notice strong {
    color: #2e7d32;
    display: block;
    margin-bottom: 8px;
}

.csr-notice ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.csr-notice li {
    color: #2e7d32;
    margin-bottom: 4px;
}

.plan-costs-section,
.documents-section,
.coverage-section,
.cost-estimates-section {
    margin-bottom: 32px;
}

.plan-costs-section h4,
.documents-section h4,
.coverage-section h4,
.cost-estimates-section h4 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.costs-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.primary-cost {
    background: #f8f9fa;
    border: 2px solid #1976d2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.primary-cost .cost-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.plan-issuer {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.plan-issuer-prominent {
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-value-large {
    font-size: 32px;
    color: #1976d2;
    font-weight: 700;
}

.cost-value-large .period {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-left: 8px;
}

.secondary-costs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cost-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cost-value {
    font-size: 16px;
    color: #333;
}

.was-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

.documents-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.documents-links a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.documents-links a:hover {
    text-decoration: underline;
}

.documents-links a:last-child {
    border-bottom: none;
}

.coverage-note {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.coverage-table {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.coverage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.coverage-row:last-child {
    border-bottom: none;
}

.coverage-row:nth-child(even) {
    background: #fafafa;
}

.estimate-breakdown {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.estimate-breakdown h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #666;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0 0;
    margin-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 16px;
}

.plan-detail-section {
    margin-bottom: 2rem;
}

.plan-detail-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.original-premium {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.final-premium {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.final-premium .amount {
    font-size: 20px;
    font-weight: 700;
}

.final-premium .period {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.aptc-savings {
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
    margin-top: 2px;
}

.savings-info {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    margin-top: 2px;
}

.savings-text {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
    margin-top: 2px;
}

.original-price {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
    margin-top: 2px;
}

.savings-info {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    margin-top: 2px;
}

.subsidy-info-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subsidy-info-box h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.subsidy-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.subsidy-item {
    flex: 1;
    text-align: center;
}

.subsidy-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsidy-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.subsidy-value.primary {
    color: #28a745;
}

.subsidy-value.secondary {
    color: #1976d2;
}

.subsidy-note {
    font-size: 11px;
    color: #888;
    line-height: 1.2;
}

.subsidy-details {
    margin-top: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: #1976d2;
    font-weight: 600;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Costs row layout - exactly like Health Sherpa */
.costs-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cost-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.cost-column:first-child,
.cost-column:nth-child(2) {
    min-width: 120px;
}

.cost-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.cost-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.cost-big {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}

.cost-cents {
    font-size: 16px;
    font-weight: 400;
}

.was-price {
    font-size: 12px;
    color: #dc2626;
    text-decoration: line-through;
    margin-top: 2px;
}

/* Plan badges inline */
.plan-badges-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.badge-metal {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-metal.silver {
    background: #e5e7eb;
    color: #374151;
}

.badge-metal.bronze {
    background: #fbbf24;
    color: #92400e;
}

.badge-csr {
    background: #fbbf24;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-rating {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}

.badge-pricing {
    color: #2563eb;
    font-size: 11px;
    font-weight: 500;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
    
    .steps-container {
        gap: 2rem;
    }
    
    .results-footer {
        flex-direction: column;
    }
    
    .modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .costs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-scroll-content {
        padding: 16px;
    }
    
    .coverage-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .quote-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Search Modal Styles */
.search-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    width: 90vw;
    min-height: 600px;
}

.search-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.search-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.search-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
}

.search-filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    min-height: 200px;
    background: white;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.search-result-item:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-main h4 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.result-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.provider-type, .drug-strength, .drug-route {
    background: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.specialties {
    color: #6b7280;
    font-size: 0.875rem;
}

.accepting-status {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.accepting-status.accepting {
    background: #d1fae5;
    color: #065f46;
}

.add-result-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-result-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.selected-items {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.selected-items h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    min-height: 3rem;
}

.item-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.3;
    flex: 1;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #dc2626;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.secondary-btn, .primary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.primary-btn {
    background: #3b82f6;
    color: white;
    border: none;
}

.primary-btn:hover {
    background: #2563eb;
}

.loading, .no-results, .no-items {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Provider Coverage Section */
.provider-coverage-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.provider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.provider-name {
    font-weight: 500;
    color: #374151;
}

.coverage-status {
    color: #6b7280;
    font-size: 0.8rem;
}

.coverage-status.coverage-covered {
    color: #10b981;
    font-weight: 500;
}

.coverage-status.coverage-not-covered {
    color: #ef4444;
    font-weight: 500;
}

.coverage-status.coverage-unknown {
    color: #f59e0b;
    font-weight: 500;
}

.coverage-status.coverage-checking {
    color: #6b7280;
}

/* Mobile Responsiveness - Added at bottom to avoid desktop conflicts */
@media (max-width: 768px) {
    /* Sidebar becomes full-screen drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1000;
        padding: 1.5rem;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        
        /* Hidden offscreen initially */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-active {
        transform: translateX(0); /* Slides in */
    }

    /* Toggle button only shows on mobile */
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        background: #2563eb;
        color: #fff;
        border: none;
        padding: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        z-index: 1001;
        font-size: 0.75rem;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-toggle:hover {
        background: #1d4ed8;
        transform: scale(1.05);
    }

    /* Center the navbar logo on mobile */
    .nav-container {
        justify-content: center;
        position: relative;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links {
        display: none;
    }

    /* Overlay fades in/out */
    .sidebar-overlay {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
        background: rgba(0,0,0,0.5);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
    }

    /* Mobile close button - only shows on mobile */
    .mobile-close-btn {
        display: block !important;
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        background: #2563eb;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: white;
        font-size: 0.75rem;
        cursor: pointer;
        z-index: 1002;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-close-btn:hover {
        background: #1d4ed8;
        transform: scale(1.05);
    }
    
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    /* Plan grids - single column */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Results layout - full width when sidebar hidden */
    .results-layout {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .quote-btn {
        width: 100%;
    }
    
    /* Form adjustments */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        min-width: auto;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }

  /* =====================
     Mobile Plan Details Fixes
     ===================== */
  
  /* Make the modal full-screen on mobile */
  .comparison-modal,
  .plan-details-modal,
  .plan-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0;
    margin: 0;
  }

  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0;
    margin: 0;
  }

  /* Shrink modal header text */
  .plan-details-modal h2,
  .comparison-header h2,
  .modal-header h2 {
    font-size: 1.2rem;
  }

  /* Adjust buttons inside cards/modal */
  .plan-actions .btn-primary,
  .plan-actions .btn-secondary,
  .filter-btn,
  .add-btn,
  .network-option {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Shrink badges and tabs */
  .filter-badge,
  .tab-btn {
    font-size: 0.75rem;
  }

  /* Removed conflicting mobile rule */

  /* Shrink values in details */
  .detail-label {
    font-size: 0.75rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  /* Scrollable content */
  .comparison-container,
  .plan-details-modal .modal-content,
  .modal-body {
    padding: 1rem;
    overflow-y: auto;
  }

  /* Ensure the close button is always visible */
  .plan-details-modal .close-btn,
  .close-btn {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
  }
}

/* =====================
   Mobile Plan Details Fullscreen Fix
   ===================== */
@media (max-width: 768px) {
  /* Force modal container to fill viewport */
  .comparison-modal,
  .plan-details-modal,
  .plan-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Make modal body scrollable */
  .plan-details-modal .modal-content,
  .comparison-container,
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
  }

  /* Break wide grids into single-column - but NOT key plan details */
  .table-header,
  .table-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100% !important;
  }
  
  /* Removed conflicting exception rule */

  /* Prevent wide table rows */
  .col-service,
  .col-before,
  .col-after {
    width: 100% !important;
    text-align: left !important;
    font-size: 0.85rem;
  }

  /* Adjust header text */
  .plan-details-modal h2,
  .modal-header h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  /* Shrink content text */
  .plan-details-modal p,
  .plan-details-modal span,
  .plan-details-modal label,
  .modal-body p,
  .modal-body span,
  .modal-body label {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  /* Buttons smaller */
  .plan-actions .btn-primary,
  .plan-actions .btn-secondary,
  .network-option {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Keep close button accessible */
  .plan-details-modal .close-btn,
  .close-btn {
    font-size: 1.5rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  /* Hide desktop header row and section headers */
  .table-header {
    display: none;
  }

  /* Hide redundant before/after headers in benefit sections */
  .benefits-table .table-header,
  .benefits-section .table-header {
    display: none !important;
  }

  /* Each table row becomes a compact table */
  .table-row {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
  }

  /* Service name as table header */
  .table-row .col-service {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: block;
  }

  /* Create mini table for before/after */
  .table-row .col-before,
  .table-row .col-after {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    line-height: 1.2;
    border-bottom: 1px solid #f9fafb;
  }

  .table-row .col-before:last-child,
  .table-row .col-after:last-child {
    border-bottom: none;
  }

  /* Before deductible label */
  .table-row .col-before::before {
    content: "Before Deductible";
    font-weight: 500;
    color: #6b7280;
    flex: 1;
  }

  /* After deductible label */
  .table-row .col-after::before {
    content: "After Deductible";
    font-weight: 500;
    color: #6b7280;
    flex: 1;
  }

  /* Values aligned right */
  .col-before span,
  .col-after span {
    font-weight: 600;
    color: #1f2937;
  }

  /* Explanation block */
  .explanation-row {
    background: #f9fafb;
    border-left: 3px solid #2563eb;
    padding: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.5rem;
    line-height: 1.1;
    color: #6b7280;
  }

  /* Hide before/after labels in explanation rows */
  .explanation-row .col-before::before,
  .explanation-row .col-after::before {
    display: none;
  }

  .explanation-row .col-before,
  .explanation-row .col-after {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    font-size: inherit;
  }

  /* Removed duplicate mobile rule */
}

/* Hide toggle on desktop by default */
.sidebar-toggle {
    display: none;
}

/* Hide mobile close button on desktop */
.mobile-close-btn {
    display: none;
}

/* Force Key Plan Details into 2x2 grid on mobile */
@media (max-width: 768px) {
  body #planModal .modal-body .key-plan-details .plan-details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  body #planModal .modal-body .key-plan-details .plan-details-grid .detail-item {
    min-height: 70px !important;
    padding: 0.5rem !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.8rem !important;
    box-sizing: border-box !important;
  }
}

/* Tiny screen fallback - single column for very small devices */
@media (max-width: 400px) {
  body #planModal .modal-body .key-plan-details .plan-details-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(4, auto) !important;
  }
}

/* Mobile loading screen improvements */
@media (max-width: 768px) {
  .loading-container {
    padding: 2rem 1rem;
    text-align: center;
  }

  .loading-container h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .loading-container p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .loading-spinner {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 250px;
    margin: 0 auto;
  }

  .step {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .step i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  /* Mobile filter dropdowns - 3x2 grid */
  .filter-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 0.75rem !important;
  }

  .filter-dropdown {
    width: 100% !important;
  }

  .filter-btn {
    font-size: 0.85rem !important;
    padding: 0.75rem 0.5rem !important;
    width: 100% !important;
  }

  /* Fix mobile plan cards - ensure buttons are visible */
  .plans-grid {
    padding-bottom: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .plan-card {
    margin-bottom: 1.5rem !important;
    padding: 1rem 1rem 1.5rem 1rem !important;
  }

  /* Ensure plan card buttons area has enough space */
  .plan-card .plan-actions {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
  }

  /* Fix viewport height issues on mobile */
  .quote-results-page {
    min-height: auto !important;
    padding-bottom: 3rem !important;
  }

  /* Fix mobile plan comparison modal */
  .comparison-container {
    padding: 0.5rem !important;
  }

  .comparison-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.5rem !important;
    padding: 0.75rem 0 !important;
    align-items: center !important;
    font-size: 0.8rem !important;
  }

  .row-label {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.8rem !important;
    grid-column: 1 !important;
  }

  .comparison-row .plan-value {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Comparison modal header improvements - 2 column layout */
  .comparison-header {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    padding: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .comparison-header .plan-card {
    padding: 0.5rem !important;
    font-size: 0.65rem !important;
  }

  .comparison-header h3 {
    font-size: 0.7rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
  }

  .comparison-header .plan-card .plan-name {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
  }

  /* Hide Enroll buttons and badges on mobile plan comparison, keep Remove button */
  .comparison-header .plan-header-card .enroll-btn,
  .comparison-header .plan-header-card .btn-primary {
    display: none !important;
  }

  .comparison-header .plan-header-card .badge,
  .comparison-header .plan-header-card .green-badge,
  .comparison-header .plan-header-card .affordable-badge,
  .comparison-header .plan-header-card .most-affordable {
    display: none !important;
  }

  /* Style the remaining Remove button - symmetrical positioning */
  .comparison-header .plan-header-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
  }

  .comparison-header .plan-header-card .plan-actions {
    margin-top: auto !important;
    display: flex !important;
    justify-content: center !important;
    padding-top: 1rem !important;
  }

  .comparison-header .plan-header-card .remove-btn,
  .comparison-header .plan-header-card .btn-secondary {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.8rem !important;
    margin: 0 !important;
  }

  /* Plan links section - 2 column layout */
  .plan-links-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  .plan-links-container a {
    font-size: 0.8rem !important;
    padding: 0.5rem !important;
    text-align: center !important;
  }
}
