/**
 * Medical Insurance Quote Calculator Styles
 *
 * This stylesheet contains all styles specific to the medical insurance
 * quote calculator page.
 */

/* Form Input Styling */
.buyonline-input {
    font-size: 13px;
}

.buyonline-input option {
    font-size: 11px;
}

select.form-control {
    font-size: 13px !important;
}

/* Cover Type Selector */
.cover-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cover-type-option {
    flex: 1;
    min-width: 120px;
}

.cover-type-option input[type="radio"] {
    display: none;
}

.cover-type-option label {
    display: block;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    background: #fff;
}

.cover-type-option label:hover {
    border-color: #f78930;
    background: #fff9f5;
}

.cover-type-option input[type="radio"]:checked + label {
    border-color: #f78930;
    background: linear-gradient(110deg, #eb232a, #f7921e);
    color: #fff;
}

/* Quote Results Styling */
.quote-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quote-header {
    padding: 15px 20px;
}

.quote-header h5 {
    color: #333;
    font-weight: 600;
}

.quote-section-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.quote-table {
    font-size: 14px;
}

.quote-table thead {
    background: #f8f9fa;
}

.quote-table th {
    font-weight: 600;
    color: #555;
}

.quote-subtotal {
    background: #fff9f5 !important;
    font-weight: 600;
}

.premium-highlight {
    background: linear-gradient(110deg, #eb232a, #f7921e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================
   Quote Result Card
   Typography: Poppins, 16px base, 1.25 ratio
   Scale: 12 → 13 → 14 → 16 → 20 → 25px
   Line-height: 1.4–1.6 for body text
   ============================ */

.quote-result-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.quote-result-header {
    /* background: linear-gradient(110deg, #eb232a, #f7921e); */
    padding: 24px 28px 20px;
    background: #f7921e;
}

.quote-result-heading {
    font-size: 1.25rem; /* 20px — clear primary heading */
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.quote-result-subheading {
    font-size: 0.813rem; /* 13px */
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* ---- Plan Details Bar ---- */
.quote-plan-details-bar {
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.quote-details-bar-heading {
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.quote-plan-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-plan-pills + .quote-plan-pills {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.quote-plan-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 130px;
}

.quote-plan-pill-label {
    font-size: 0.688rem; /* 11px — minimum for Poppins uppercase */
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.quote-plan-pill-value {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

/* ---- Compare Summary Card Body ---- */
.compare-summary-body {
    padding: 24px;
}

.compare-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.compare-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compare-info-label {
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.compare-info-value {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.compare-info-meta {
    font-size: 0.813rem; /* 13px */
    color: #9ca3af;
    font-weight: 400;
}

/* ---- Members Section ---- */
.compare-members-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.compare-members-heading {
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Member badge pills (rendered by JS) */
.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.813rem; /* 13px */
    line-height: 1.4;
}

.member-badge-name {
    font-weight: 600;
    color: #1f2937;
}

.member-badge-age {
    font-weight: 400;
    color: #6b7280;
}

.compare-download-hint {
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ---- Grand Total Row (single quote) ---- */
.quote-grand-total-row td {
    font-size: 1rem !important;
    font-weight: 800 !important;
    background: #fff !important;
    border-top: 2px solid #e5e7eb !important;
    color: #eb232a !important;
    padding: 16px 12px !important;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .quote-result-header {
        padding: 20px;
    }

    .quote-result-heading {
        font-size: 1.125rem; /* 18px */
    }

    .quote-plan-details-bar {
        padding: 16px;
    }

    .quote-plan-pills {
        flex-direction: column;
        gap: 8px;
    }

    .quote-plan-pill {
        min-width: auto;
    }

    .compare-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .compare-summary-body {
        padding: 16px;
    }
}

/* Plan Badges */
.badge-plan {
    background: #f78930;
    color: #fff;
    font-weight: 500;
    padding: 5px 12px;
}

/* Recommended Row Highlighting */
.recommended-row,
.table-striped > tbody > tr.recommended-row {
    background: #fde5cc !important;
}

.badge-recommended {
    background: #f78930;
    color: #fff;
    font-size: 11px;
}

/* Selection Buttons */
.btn-select {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 20px;
    min-width: 90px;
    color: #fff;
}

.btn-select-active {
    background: linear-gradient(110deg, #eb232a, #f7921e);
    border: none;
    color: #fff !important;
    cursor: default;
}

.btn-select-inactive {
    background: #f78930;
    border: 1px solid #f78930;
    color: #fff;
}

.btn-select-inactive:hover {
    background: #eb232a;
    border-color: #eb232a;
    color: #fff;
}
/* Horizontal Comparison Table */
.comparison-horizontal-table {
    font-size: 0.875rem; /* 14px base */
    line-height: 1.5;
    margin-bottom: 0;
}

.comparison-horizontal-table thead th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-align: center;
    padding: 14px 14px;
    font-size: 0.875rem; /* 14px */
    border: 1px solid #e5e7eb;
    border-bottom: 2px solid #d1d5db;
    vertical-align: middle;
    min-width: 110px;
}

.comparison-horizontal-table thead th:first-child {
    background: #f9fafb;
    color: #6b7280;
    text-align: left;
    min-width: 190px;
    font-size: 0.813rem; /* 13px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.comparison-horizontal-table thead th.selected-plan {
    background: #f0fdf4;
    color: #166534;
    border-bottom: 2px solid #22c55e;
}

.comparison-horizontal-table tbody td {
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem; /* 14px */
    color: #374151;
    line-height: 1.5;
}

.comparison-horizontal-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    background: #f8f9fa;
    color: #374151;
    font-size: 0.875rem; /* 14px — same as body for balance */
    padding-left: 16px;
}

.comparison-horizontal-table tbody td.selected-column {
    background: rgba(40, 167, 69, 0.1) !important;
}

.comparison-horizontal-table tbody tr.section-header td {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    padding: 10px 16px;
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #d1d5db;
}

.comparison-horizontal-table tbody tr.total-row td {
    background: #fff;
    font-weight: 700;
    font-size: 0.938rem; /* 15px */
    color: #eb232a;
    padding: 16px 14px;
    border-top: 2px solid #e5e7eb;
}

.comparison-horizontal-table tbody tr.total-row td:first-child {
    background: #fff9f5;
}

.comparison-horizontal-table tbody tr.total-row td.selected-column {
    background: rgba(40, 167, 69, 0.15) !important;
}

/* Plan name in header */
.plan-name {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    line-height: 1.4;
}

/* Selected indicator */
.selected-indicator {
    display: inline-block;
    background: #fff;
    color: #28a745;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.625rem; /* 10px */
    font-weight: 600;
    margin-top: 4px;
}

/* Button row in comparison table */
.comparison-horizontal-table tbody tr.button-row td {
    padding: 16px 12px;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

.comparison-horizontal-table tbody tr.button-row td:first-child {
    background: #f8f9fa;
}

.comparison-horizontal-table tbody tr.button-row td.selected-column {
    background: rgba(40, 167, 69, 0.1) !important;
}

/* V3 Fallback Badge */
.badge-fallback {
    display: inline-block;
    background: #ffc107;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    cursor: help;
}

.badge-fallback:hover {
    background: #ffb800;
}
