/* ============================================================
   SmileCare — Interactive ROI Calculator
   Lets dental practice owners estimate their annual savings
   from reducing no-shows, saving admin time, and recovering
   billing leakage & recall revenue.
   ============================================================ */

/* ---- Section wrapper ---- */
.roi-section {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    padding: 80px 0;
}
.roi-section .section-head {
    text-align: center;
    margin-bottom: 48px;
}
.roi-section .eyebrow {
    color: var(--teal-700);
}

/* ---- Calculator card ---- */
.roi-calc {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}
.roi-calc-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ---- Inputs panel (left) ---- */
.roi-inputs {
    padding: 40px 36px;
    background: #fbfdff;
    border-right: 1px solid var(--slate-200);
}
.roi-inputs h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 6px;
}
.roi-inputs .roi-hint {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 28px;
}

/* ---- Slider row ---- */
.roi-slider-row {
    margin-bottom: 26px;
}
.roi-slider-row:last-child {
    margin-bottom: 0;
}
.roi-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.roi-slider-label .label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
}
.roi-slider-label .label-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--teal-700);
    font-variant-numeric: tabular-nums;
}
.roi-slider-label .label-value .unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-400);
    margin-left: 2px;
}

/* ---- Custom range slider ---- */
.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: var(--slate-200);
    outline: none;
    cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal-600);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, .35);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(13, 148, 136, .45);
}
.roi-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal-600);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, .35);
    cursor: pointer;
}
.roi-slider:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

/* ---- Results panel (right) ---- */
.roi-results {
    padding: 40px 36px;
    background: linear-gradient(160deg, var(--teal-800) 0%, var(--teal-700) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.roi-results h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

/* ---- Big total number ---- */
.roi-total {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.roi-total .roi-currency {
    font-size: 28px;
    font-weight: 700;
    vertical-align: top;
    margin-right: 2px;
    color: var(--teal-100);
}
.roi-total-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 28px;
}

/* ---- Breakdown rows ---- */
.roi-breakdown {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 20px;
    margin-bottom: 28px;
}
.roi-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.roi-breakdown-row:last-child {
    border-bottom: none;
}
.roi-breakdown-row .br-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}
.roi-breakdown-row .br-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.roi-breakdown-row .br-value {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ---- ROI multiple badge ---- */
.roi-multiple {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}
.roi-multiple .rm-icon {
    font-size: 28px;
}
.roi-multiple .rm-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.4;
}
.roi-multiple .rm-text strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

/* ---- CTA ---- */
.roi-cta {
    width: 100%;
    text-align: center;
}
.roi-cta .btn {
    width: 100%;
    margin-bottom: 10px;
}
.roi-cta-note {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    text-align: center;
}

/* ---- Animated count-up ---- */
.roi-count-anim {
    transition: opacity .2s ease;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
    .roi-calc-inner {
        grid-template-columns: 1fr;
    }
    .roi-inputs {
        border-right: none;
        border-bottom: 1px solid var(--slate-200);
    }
    .roi-results {
        padding: 32px 28px;
    }
    .roi-total {
        font-size: 44px;
    }
}
@media (max-width: 480px) {
    .roi-inputs {
        padding: 28px 22px;
    }
    .roi-results {
        padding: 28px 22px;
    }
    .roi-total {
        font-size: 38px;
    }
    .roi-total .roi-currency {
        font-size: 22px;
    }
    .roi-breakdown-row .br-label {
        font-size: 13px;
    }
    .roi-breakdown-row .br-value {
        font-size: 15px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .roi-slider::-webkit-slider-thumb {
        transition: none;
    }
    .roi-count-anim {
        transition: none;
    }
}
