/* ===== ROI CALCULATOR — scoped under .roi-calc ===== */

/* Section spacing — compact override (replaces .sp 70px) */
.roi-calc .roi-sp {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* ===== HERO SECTION ===== */
.roi-calc .roi-hero {
    text-align: center;
    padding: 10px 0 0;
}

.roi-calc .roi-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #222538;
    margin: 0 0 10px;
    line-height: 1.2;
}

.roi-calc .roi-hero p {
    font-size: 16px;
    color: #2d3666;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTION TITLES ===== */
.roi-calc .roi-section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: #222538;
    margin-bottom: 16px;
    text-align: center;
}

/* ===== CARDS ===== */
.roi-calc .roi-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 28px 24px;
    margin-bottom: 0;
}

.roi-calc .roi-card-header {
    margin-bottom: 16px;
}

.roi-calc .roi-card-title {
    font-size: 18px;
    font-weight: 400;
    color: #222538;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Info icon + tooltip */
.roi-calc .info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #2d3666;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.roi-calc .info-icon:hover {
    opacity: 1;
}

.roi-calc .info-icon svg {
    display: block;
}

.roi-calc .info-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #222538;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: 260px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.roi-calc .info-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #222538;
}

.roi-calc .info-icon:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== FORM STYLES ===== */
.roi-calc .roi-form-group {
    margin-bottom: 14px;
}

.roi-calc .roi-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222538;
    margin-bottom: 5px;
    line-height: 1.3;
}

.roi-calc .roi-label-multiline {
    line-height: 1.35;
}

.roi-calc .roi-select {
    width: 100%;
    height: 40px;
    padding: 8px 44px 8px 14px;
    font-size: 14px;
    color: #2d3666;
    background: #fff;
    border: 1px solid #cad4de;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L10 10L18 2' stroke='%232d3666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    transition: border-color 0.2s ease;
}

.roi-calc .roi-select:hover {
    border-color: #2d3666;
}

.roi-calc .roi-select:focus {
    outline: none;
    border-color: #4698ff;
}

/* ===== SECTION 2: REFINE PROJECTION — MDC SLIDER CARDS ===== */
.roi-calc .calculator-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    padding: 16px 24px 20px;
}

.roi-calc .calculator-card:last-child {
    margin-bottom: 0;
}

/* Section label row: icon + title + value */
.roi-calc .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #222538;
    margin-bottom: 4px;
}

.roi-calc .section-label-sub {
    font-size: 12px;
    font-weight: 400;
    text-transform: lowercase;
    color: #7d91aa;
}

/* Static icons next to titles */
.roi-calc .section-label-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.roi-calc .drive-icon-static {
    background-image: url("/assets/images/roi/drive-icon.png");
}

.roi-calc .money-icon-static {
    background-image: url("/assets/images/roi/money-icon.png");
}

/* Display number inline in the label row */
.roi-calc .display-number {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1;
    color: #4698ff;
    margin-left: auto;
    flex-shrink: 0;
}

/* Slider row: min — slider — max */
.roi-calc .roi-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roi-calc .roi-slider-min,
.roi-calc .roi-slider-max {
    font-size: 12px;
    font-weight: 500;
    color: #7d91aa;
    white-space: nowrap;
    flex-shrink: 0;
}

.roi-calc .roi-slider-track {
    flex: 1;
    min-width: 0;
}

/* MDC slider theme overrides scoped to .roi-calc */
.roi-calc .mdc-slider__track-container {
    height: 4px;
}

.roi-calc .mdc-slider__track {
    background-color: #4698ff;
}

.roi-calc .mdc-slider__track-container::after {
    background-color: #cad4de;
}

.roi-calc .mdc-slider__thumb circle {
    fill: #4698ff;
}

.roi-calc .mdc-slider__focus-ring {
    background-color: rgba(70, 152, 255, 0.25);
}

.roi-calc .mdc-slider__pin {
    background-color: #4698ff;
}

.roi-calc .mdc-slider__pin-value-marker {
    color: #fff;
}

/* ===== SECTION 3: SAVINGS BREAKDOWN ===== */
.roi-calc .savings-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px 24px 20px;
}

.roi-calc .cost-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    border-radius: 8px;
    margin-bottom: 3px;
    overflow: hidden;
}

.roi-calc .cost-bar.outsourcing {
    background-color: #2d3666;
}

.roi-calc .cost-bar.lsoft,
.roi-calc .cost-bar.breakeven {
    background-color: #4698ff;
    height: 62px;
}

.roi-calc .cost-bar.breakeven {
    margin-bottom: 12px;
}

.roi-calc .cost-bar .roi-bar-label {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    display: inline-block;
}

.roi-calc .cost-bar.outsourcing .roi-bar-label {
    color: #fff;
}

.roi-calc .cost-bar.lsoft .roi-bar-label,
.roi-calc .cost-bar.breakeven .roi-bar-label {
    color: #fff;
}

.roi-calc .cost-bar .roi-bar-value {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.8px;
    display: inline-block;
}

.roi-calc .cost-bar.outsourcing .roi-bar-value {
    color: #fff;
}

.roi-calc .cost-bar.lsoft .roi-bar-value,
.roi-calc .cost-bar.breakeven .roi-bar-value {
    color: #fff;
}

/* Estimated Savings */
.roi-calc .savings-section {
    background-color: #f3f6fa;
    border-radius: 8px;
    overflow: hidden;
}

.roi-calc .savings-header {
    font-size: 16px;
    font-weight: 400;
    color: #222538;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    padding: 12px 20px;
}

.roi-calc .savings-chart {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 16px 20px 0;
    min-height: 220px;
    overflow: hidden;
    box-sizing: border-box;
}

.roi-calc .year-labels-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.roi-calc .year-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #222538;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    text-align: center;
}

.roi-calc .chart-bars-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex: 1;
}

.roi-calc .chart-bar {
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    overflow: hidden;
}

.roi-calc .chart-bar-fill {
    width: 100%;
    background-color: #4698ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 6px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    transition: height 0.6s ease;
}

.roi-calc .chart-bar-fill.year1 {
    height: 50px;
}

.roi-calc .chart-bar-fill.year2 {
    height: 120px;
}

.roi-calc .chart-bar-fill.year3 {
    height: 200px;
}

.roi-calc .amount {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.8px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

/* Methodology button */
.roi-calc .methodology-button-container {
    display: flex;
    justify-content: flex-end;
    padding: 14px 0 0;
}

.roi-calc .methodology-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 190px;
    height: 36px;
    background: #fff;
    color: #2d3666;
    border: 2px solid #4698ff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 32px;
    padding: 0 16px;
}

.roi-calc .methodology-button .fa {
    font-size: 16px;
    color: #e24444;
    transition: color 0.3s ease;
}

.roi-calc .methodology-button:hover {
    background: #4698ff;
    color: #fff;
}

.roi-calc .methodology-button:hover .fa {
    color: #fff;
}

/* ===== CTA + LINK BACK (merged) ===== */
.roi-calc .roi-cta {
    text-align: center;
    padding: 10px 0;
}

.roi-calc .roi-cta h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222538;
    margin: 0 0 12px;
    line-height: 1.2;
}

.roi-calc .roi-cta p {
    font-size: 16px;
    color: #2d3666;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto 20px;
}

.roi-calc .roi-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.roi-calc .cta-button {
    display: inline-block;
    font-size: 16px;
    line-height: 40px;
    padding: 0 32px;
    border: 2px solid #4698ff;
    background-color: #4698ff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.roi-calc .cta-button:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}


/* ===== RESPONSIVE: TABLET (768px) ===== */
@media (max-width: 768px) {
    .roi-calc .roi-sp {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .roi-calc .roi-hero h1 {
        font-size: 26px;
    }

    .roi-calc .roi-hero p {
        font-size: 15px;
    }

    .roi-calc .roi-section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .roi-calc .roi-card {
        padding: 18px 20px 22px;
    }

    .roi-calc .roi-card-title {
        font-size: 17px;
    }

    .roi-calc .roi-label {
        font-size: 13px;
    }

    .roi-calc .roi-select {
        height: 38px;
        font-size: 13px;
        padding-right: 40px;
    }

    /* Form row stacking */
    .roi-calc .form-row-half {
        flex-direction: column;
    }

    /* Slider cards */
    .roi-calc .calculator-card {
        padding: 14px 18px 16px;
        margin-bottom: 12px;
    }

    .roi-calc .section-label {
        font-size: 14px;
        gap: 8px;
    }

    .roi-calc .section-label-icon {
        width: 24px;
        height: 24px;
    }

    .roi-calc .display-number {
        font-size: 24px;
    }

    .roi-calc .roi-slider-wrap {
        gap: 10px;
    }

    /* Savings */
    .roi-calc .savings-card {
        padding: 20px 18px 16px;
    }

    .roi-calc .cost-bar {
        height: 56px;
        padding: 0 18px;
    }

    .roi-calc .cost-bar.lsoft,
    .roi-calc .cost-bar.breakeven {
        height: 54px;
    }

    .roi-calc .cost-bar .roi-bar-label {
        font-size: 14px;
    }

    .roi-calc .cost-bar .roi-bar-value {
        font-size: 26px;
    }

    .roi-calc .savings-header {
        font-size: 14px;
    }

    .roi-calc .savings-chart {
        padding: 14px 16px 0;
        min-height: 180px;
    }

    .roi-calc .year-label {
        font-size: 14px;
    }

    .roi-calc .amount {
        font-size: 18px;
    }

    .roi-calc .methodology-button {
        min-width: 150px;
        font-size: 12px;
        height: 34px;
        line-height: 30px;
    }

    /* CTA */
    .roi-calc .roi-cta h2 {
        font-size: 24px;
    }

    .roi-calc .roi-cta p {
        font-size: 15px;
    }

}

/* ===== RESPONSIVE: MOBILE (576px) ===== */
@media (max-width: 576px) {
    .roi-calc .roi-sp {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .roi-calc .roi-hero {
        padding: 6px 0 0;
    }

    .roi-calc .roi-hero h1 {
        font-size: 22px;
    }

    .roi-calc .roi-hero p {
        font-size: 14px;
    }

    .roi-calc .roi-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .roi-calc .roi-card {
        padding: 16px 16px 20px;
    }

    .roi-calc .roi-card-header {
        margin-bottom: 12px;
    }

    .roi-calc .roi-card-title {
        font-size: 16px;
    }

    .roi-calc .roi-form-group {
        margin-bottom: 12px;
    }

    .roi-calc .roi-label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .roi-calc .roi-select {
        height: 36px;
        font-size: 13px;
    }

    /* Slider cards */
    .roi-calc .calculator-card {
        padding: 12px 14px 14px;
        margin-bottom: 10px;
    }

    .roi-calc .section-label {
        font-size: 13px;
        gap: 6px;
    }

    .roi-calc .section-label-icon {
        width: 22px;
        height: 22px;
    }

    .roi-calc .display-number {
        font-size: 20px;
    }

    .roi-calc .roi-slider-wrap {
        gap: 8px;
    }

    .roi-calc .roi-slider-min,
    .roi-calc .roi-slider-max {
        font-size: 11px;
    }

    /* Savings */
    .roi-calc .savings-card {
        padding: 16px 12px 14px;
    }

    .roi-calc .cost-bar {
        height: auto;
        padding: 12px 16px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .roi-calc .cost-bar.lsoft,
    .roi-calc .cost-bar.breakeven {
        height: auto;
    }

    .roi-calc .cost-bar .roi-bar-label {
        font-size: 13px;
    }

    .roi-calc .cost-bar .roi-bar-value {
        font-size: 22px;
    }

    .roi-calc .savings-header {
        font-size: 13px;
        padding: 10px 14px;
    }

    .roi-calc .savings-chart {
        padding: 12px 12px 0;
        min-height: 160px;
    }

    .roi-calc .year-label {
        font-size: 13px;
    }

    .roi-calc .chart-bar-fill {
        border-radius: 6px;
        padding: 10px 4px;
    }

    .roi-calc .amount {
        font-size: 15px;
    }

    .roi-calc .methodology-button {
        min-width: 130px;
        height: 32px;
        line-height: 28px;
        font-size: 11px;
        padding: 0 12px;
    }

    .roi-calc .methodology-button .fa {
        font-size: 14px;
    }

    /* CTA */
    .roi-calc .roi-cta h2 {
        font-size: 20px;
    }

    .roi-calc .roi-cta p {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .roi-calc .roi-cta-buttons {
        gap: 10px;
    }

}

/* ===== RESPONSIVE: SMALL DEVICES (420px) ===== */
@media (max-width: 420px) {
    .roi-calc .section-label-icon {
        width: 20px;
        height: 20px;
    }

    .roi-calc .display-number {
        font-size: 18px;
    }

    .roi-calc .cost-bar {
        padding: 10px 14px;
    }

    .roi-calc .cost-bar .roi-bar-label {
        font-size: 12px;
    }

    .roi-calc .cost-bar .roi-bar-value {
        font-size: 20px;
    }

    .roi-calc .amount {
        font-size: 13px;
    }
}
