/* ══════════════════════════════════════════════════════════
   American Beneficiary — Quote Calculator Widget Styles
   ══════════════════════════════════════════════════════════ */

/* ─── Quote Page Specific Styles ─────────────────── */

/* Multi-step form card */
.quote-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.quote-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

/* Step progress bar — now used as background fill */
.quote-progress {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.quote-progress-bar {
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 0.6s var(--ease-out);
    margin-bottom: var(--space-lg);
}

/* Progress dots */
.quote-progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.quote-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-light);
    transition: all var(--duration) var(--ease-out);
    flex-shrink: 0;
}

.quote-progress-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.quote-progress-dot.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* Quote Steps */
.quote-step {
    display: none;
}

.quote-step.active {
    display: block;
    animation: fadeInStep 0.4s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quote-step__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.quote-step__header h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

.quote-step__header p {
    color: var(--text-light);
    font-size: var(--fs-sm);
}

/* Navigation buttons */
.quote-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.quote-nav__prev,
.quote-nav__next {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Option card grid (gender, tobacco, etc.) */
.quote-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.quote-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    text-align: center;
    min-height: 120px;
}

.quote-option-card:hover {
    border-color: var(--primary-200);
    background: var(--primary-50);
    transform: translateY(-2px);
}

.quote-option-card.selected {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.quote-option-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.quote-option-card__label {
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--dark);
}

.quote-option-card__sublabel {
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Health questions — container */
.health-questions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.health-question {
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--light);
}

.health-question p {
    font-size: var(--fs-base);
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.health-question__btns {
    display: flex;
    gap: var(--space-md);
}

.health-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    min-height: 48px;
    color: var(--text);
}

.health-btn:hover {
    border-color: var(--primary-200);
}

.health-btn.selected-yes {
    border-color: #27AE60;
    background: rgba(39, 174, 96, 0.08);
    color: #27AE60;
}

.health-btn.selected-no {
    border-color: var(--primary);
    background: var(--primary-50);
    color: var(--primary);
}

/* Coverage selector */
.coverage-selector {
    text-align: center;
    padding: var(--space-xl) 0;
}

.coverage-display {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.coverage-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--progress, 50%), var(--border) var(--progress, 50%), var(--border) 100%);
    outline: none;
    cursor: pointer;
}

.coverage-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.coverage-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary);
    cursor: pointer;
}

.coverage-range {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--text-light);
}

/* Age input */
.age-input {
    text-align: center;
    padding: var(--space-xl) 0;
}

.age-input__display {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.age-input__label {
    font-size: var(--fs-md);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.age-input__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.age-input__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.age-input__slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.age-input__range {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--text-light);
}

/* Quote contact form */
.quote-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.quote-contact-form .form-group {
    margin-bottom: var(--space-lg);
}

.quote-contact-form .form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.quote-contact-form .form-group input,
.quote-contact-form .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text);
    transition: all var(--duration-fast) ease;
    min-height: 48px;
}

.quote-contact-form .form-group input:focus,
.quote-contact-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Quote review grid */
.quote-review__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.quote-review__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
}

/* ─── Inline calculator (on home page) ──────────── */
.inline-calc {
    padding: var(--space-lg);
}

.inline-calc__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 576px) {
    .inline-calc__row {
        grid-template-columns: 1fr;
    }

    .quote-option-cards {
        grid-template-columns: 1fr;
    }
}

/* ─── Age input (number + slider hybrid) ─────────── */
.age-input-wrap {
    text-align: center;
}

.age-input__display {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.age-input__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.age-input__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.age-input__range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--text-light);
}
