/* ── Value Estimator ─────────────────────────────────────────
   Seller lead magnet. Trust-first. Instant gratification.
   ──────────────────────────────────────────────────────────── */

.bbi-estimator {
    max-width: 640px;
    margin: 2rem auto;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Hero ──────────────────────────────────────────────────── */
.bbi-estimator__hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bbi-estimator__badge {
    display: inline-block;
    background: #DCFCE7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.bbi-estimator__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0B0F14;
    margin: 0 0 0.5rem;
}

.bbi-estimator__subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Progress ──────────────────────────────────────────────── */
.bbi-estimator__progress {
    height: 6px;
    background: #E5E7EB;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.bbi-estimator__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #E11D2E, #1D4ED8);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.bbi-estimator__progress-text {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ── Steps ─────────────────────────────────────────────────── */
.bbi-estimator__step {
    display: none;
    animation: estFadeIn 0.3s ease;
}

.bbi-estimator__step.active {
    display: block;
}

.bbi-estimator__step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0B0F14;
    margin: 0 0 1rem;
    text-align: center;
}

.bbi-estimator__step-note {
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
    margin: -0.5rem 0 1.25rem;
}

@keyframes estFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Options (type selection + condition) ──────────────────── */
.bbi-estimator__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bbi-estimator__options--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bbi-estimator__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.bbi-estimator__option:hover {
    border-color: #1D4ED8;
    background: #EFF6FF;
}

.bbi-estimator__option.selected {
    border-color: #1D4ED8;
    background: #EFF6FF;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.bbi-estimator__option--wide {
    flex-direction: row;
}

.bbi-estimator__option-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 12px;
    color: #1D4ED8;
}

.bbi-estimator__option-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0B0F14;
    display: block;
}

.bbi-estimator__option-desc {
    font-size: 0.8125rem;
    color: #6B7280;
    display: block;
    margin-top: 0.125rem;
}

/* Condition grades */
.bbi-estimator__condition-grade {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: 12px;
    background: #EFF6FF;
    color: #1D4ED8;
}

/* ── Form Fields ──────────────────────────────────────────── */
.bbi-estimator__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bbi-estimator__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.bbi-estimator__field--full {
    grid-column: 1 / -1;
}

.bbi-estimator__field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.bbi-estimator__optional {
    font-weight: 400;
    color: #9CA3AF;
}

.bbi-estimator__input,
.bbi-estimator__select,
.bbi-estimator__textarea {
    padding: 0.625rem 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #0B0F14;
    background: #FFFFFF;
    transition: border-color 0.2s ease;
}

.bbi-estimator__input:focus,
.bbi-estimator__select:focus,
.bbi-estimator__textarea:focus {
    outline: none;
    border-color: #1D4ED8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.bbi-estimator__textarea {
    resize: vertical;
    min-height: 80px;
}

.bbi-estimator__next {
    display: block;
    width: 100%;
}

/* ── Privacy ──────────────────────────────────────────────── */
.bbi-estimator__privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* ── Results ──────────────────────────────────────────────── */
.bbi-estimator__results {
    text-align: center;
    animation: estFadeIn 0.4s ease;
}

.bbi-estimator__results-icon {
    margin-bottom: 1rem;
}

.bbi-estimator__results h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0B0F14;
    margin: 0 0 1rem;
}

.bbi-estimator__range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    border-radius: 16px;
    margin-bottom: 0.75rem;
}

.bbi-estimator__range-low,
.bbi-estimator__range-high {
    font-size: 2rem;
    font-weight: 900;
    color: #166534;
}

.bbi-estimator__range-divider {
    font-size: 1rem;
    color: #4ADE80;
    font-weight: 600;
}

.bbi-estimator__range-note {
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0 0 1.5rem;
}

.bbi-estimator__results-summary {
    text-align: left;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #4B5563;
}

/* ── Next Steps ───────────────────────────────────────────── */
.bbi-estimator__results-options {
    text-align: left;
    margin-bottom: 1.5rem;
}

.bbi-estimator__results-options h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0B0F14;
    margin: 0 0 1rem;
}

.bbi-estimator__next-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bbi-estimator__next-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.bbi-estimator__next-step .bbi-estimator__step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #1D4ED8;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbi-estimator__next-step strong {
    display: block;
    font-size: 0.875rem;
    color: #0B0F14;
}

.bbi-estimator__next-step p {
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0.125rem 0 0;
}

/* ── Results CTA ──────────────────────────────────────────── */
.bbi-estimator__results-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .bbi-estimator {
        margin: 1rem;
        padding: 1.25rem;
    }

    .bbi-estimator__options--grid {
        grid-template-columns: 1fr;
    }

    .bbi-estimator__form-grid {
        grid-template-columns: 1fr;
    }

    .bbi-estimator__range-low,
    .bbi-estimator__range-high {
        font-size: 1.5rem;
    }

    .bbi-estimator__results-cta {
        flex-direction: column;
    }
}
