/* ==========================================================================
   ROI Calculator — Career Track Slider
   Purple gradient section, white card, two-column layout
   NO !important rules
   ========================================================================== */

/* Section — purple gradient */
.course-roi-section {
    background: linear-gradient(135deg, #5A1ECC 0%, #7324FF 40%, #9B59FF 100%);
    padding: 60px 0;
}

/* White card */
.roi-calculator {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 48px 36px;
    border-radius: 30px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Title */
.roi-calculator__title {
    font-size: 28px;
    font-weight: 700;
    color: #272B37;
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.3;
}
.roi-calculator__title-course {
    font-size: 22px;
    font-weight: 600;
    color: #7324FF;
}

/* Context line */
.roi-calculator__context {
    text-align: center;
    font-size: 15px;
    color: rgba(39, 43, 55, 0.6);
    line-height: 1.6;
    margin-bottom: 32px;
}
.roi-calculator__context strong {
    color: #272B37;
    font-weight: 600;
}

/* ---- Two-column body ---- */
.roi-calculator__body {
    display: flex;
    gap: 28px;
    align-items: stretch;
}

/* ---- Payback card (dark, left) ---- */
.roi-payback-card {
    flex: 0 0 260px;
    background: #272B37;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.roi-payback-card__text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}
.roi-payback-card__text strong {
    color: #fff;
    font-weight: 700;
}
.roi-payback-card__value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

/* ---- Salary track (right) ---- */
.roi-salary-track {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.roi-salary-track__header {
    font-size: 18px;
    font-weight: 600;
    color: #272B37;
    line-height: 1.4;
    margin-bottom: 4px;
}
.roi-salary-track__header strong {
    color: #272B37;
}
.roi-salary-track__source {
    font-size: 13px;
    color: rgba(39, 43, 55, 0.4);
    margin-bottom: 24px;
}

/* ---- Salary tooltip (follows slider) ---- */
.roi-salary-tooltip {
    position: relative;
    height: 44px;
    margin-bottom: 4px;
}
.roi-salary-tooltip__value {
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #E4E9F2;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #272B37;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: left 0.05s ease-out;
}
/* Small arrow pointing down */
.roi-salary-tooltip__value::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 7px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-bottom: 2px solid #E4E9F2;
}

/* ---- Native range input (career slider) ---- */
.roi-range-input--career {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    margin: 0;
    cursor: pointer;
    background: linear-gradient(
        to right,
        #7324FF 0%,
        #9B59FF var(--range-pct, 0%),
        #E4E9F2 var(--range-pct, 0%),
        #E4E9F2 100%
    );
}

/* Webkit thumb */
.roi-range-input--career::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #7324FF;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(115, 36, 255, 0.4);
    cursor: grab;
    transition: box-shadow 0.15s, transform 0.15s;
}
.roi-range-input--career::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.12);
    box-shadow: 0 2px 16px rgba(115, 36, 255, 0.55);
}

/* Firefox thumb */
.roi-range-input--career::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #7324FF;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(115, 36, 255, 0.4);
    cursor: grab;
}
.roi-range-input--career::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.12);
}

/* Firefox filled track */
.roi-range-input--career::-moz-range-progress {
    background: linear-gradient(90deg, #7324FF, #9B59FF);
    border-radius: 3px;
    height: 6px;
}

/* ---- Career level labels ---- */
.roi-career-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 2px;
}
.roi-career-label {
    text-align: center;
}
.roi-career-label:first-child {
    text-align: left;
}
.roi-career-label:last-child {
    text-align: right;
}
.roi-career-label strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #272B37;
    margin-bottom: 2px;
}
.roi-career-label span {
    font-size: 12px;
    color: rgba(39, 43, 55, 0.45);
}

/* ---- Skill mode: raise labels ---- */
.roi-raise-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(39, 43, 55, 0.5);
}
.roi-raise-hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(39, 43, 55, 0.45);
    line-height: 1.4;
}

/* ---- Footer ---- */
.roi-calculator__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #E4E9F2;
    text-align: center;
}
.roi-calculator__disclaimer {
    font-size: 12px;
    color: rgba(39, 43, 55, 0.4);
    margin-bottom: 16px;
}
.roi-calculator__cta {
    padding-top: 8px;
}
.roi-calculator__cta .button.skewed {
    display: inline-block;
    padding: 15px 46px 6px 40px;
}

/* Course banner shadow */
.course-banner.active {
    box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.15);
}

/* ---- Teaser in pricing block ---- */
.roi-teaser {
    margin-top: 16px;
    padding: 14px 16px;
    background: #F7F3FF;
    border: 1px solid rgba(115, 36, 255, 0.15);
    border-radius: 12px;
    text-align: center;
}
.roi-teaser__title {
    font-size: 13px;
    color: rgba(39, 43, 55, 0.6);
    margin-bottom: 4px;
}
.roi-teaser__value {
    font-size: 22px;
    font-weight: 700;
    color: #7324FF;
    line-height: 1.2;
}
.roi-teaser__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #7324FF;
    text-decoration: none;
    border-bottom: 1px dashed rgba(115, 36, 255, 0.4);
}
.roi-teaser__link:hover {
    border-bottom-style: solid;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .roi-calculator { padding: 32px 28px 28px; border-radius: 20px; }
    .course-roi-section { padding: 40px 0; }
    .roi-calculator__title { font-size: 24px; }
    .roi-payback-card { flex: 0 0 220px; padding: 24px 20px; }
    .roi-payback-card__value { font-size: 26px; }
    .roi-salary-track__header { font-size: 16px; }
}
@media (max-width: 767px) {
    .roi-calculator__body { flex-direction: column; gap: 20px; }
    .roi-payback-card {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 20px 24px;
    }
    .roi-payback-card__text { margin-bottom: 0; font-size: 14px; }
    .roi-payback-card__value { font-size: 24px; white-space: nowrap; }
    .roi-calculator { padding: 24px 20px 20px; border-radius: 16px; }
    .course-roi-section { padding: 32px 0; }
    .roi-calculator__title { font-size: 22px; }
    .roi-calculator__title-course { font-size: 18px; }
    .roi-calculator__context { font-size: 14px; margin-bottom: 24px; }
    .roi-salary-track__header { font-size: 15px; }
}
@media (max-width: 575px) {
    .roi-payback-card { flex-direction: column; }
    .roi-payback-card__value { font-size: 22px; }
    .roi-calculator__title { font-size: 20px; }
    .roi-career-label strong { font-size: 13px; }
    .roi-career-label span { font-size: 11px; }
}
