/* EMI Calculator page layout and calculator UI */

.emi-calculator-section {
    background-image: url(../images/press-release-bg.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #cecece;
}

.emi-calculator-wrap {
    max-width: 100%;
    margin: 0 auto;
}

.emi-calculator-header {
    margin-bottom: 2.5vw;
}

.emi-calculator-header h1 {
    margin-bottom: 0.5vw;
}

.emi-calculator-header p {
    margin-bottom: 0;
}

.emi-calculator-body {
    align-items: flex-start;
    margin-top: 3vw;
    margin-bottom: 3vw;
}

.emi-calculator-inputs {
    padding-right: 2.5vw;
}

.emi-slider-group {
    margin-bottom: 2.2vw;
}

.emi-slider-group:last-child {
    margin-bottom: 0;
}

.emi-slider-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6vw;
}

.emi-slider-value {
    white-space: nowrap;
}

.emi-slider-track-wrap {
    padding: 0.35vw 0;
    position: relative;
}

.emi-slider-input {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    display: block;
    height: 1.6vw;
    margin: 0;
    width: 100%;
}

.emi-slider-input:focus {
    outline: none;
}

.emi-slider-input::-webkit-slider-runnable-track {
    background: #b1b2b3;
    border: none;
    border-radius: 999px;
    box-shadow: inset 0px 3px 6px #00000029;
    height: 0.65vw;
}

.emi-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--text-orange);
    border: 0.28vw solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0.12vw 0.45vw rgba(0, 0, 0, 0.18);
    height: 1.45vw;
    margin-top: -0.4vw;
    width: 1.45vw;
}

.emi-slider-input::-moz-range-track {
    background: #b1b2b3;
    border: none;
    border-radius: 999px;
    box-shadow: inset 0px 3px 6px #00000029;
    height: 0.65vw;
}

.emi-slider-input::-moz-range-thumb {
    background: var(--text-orange);
    border: 0.28vw solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0.12vw 0.45vw rgba(0, 0, 0, 0.18);
    height: 1.45vw;
    width: 1.45vw;
}

.emi-slider-scale {
    margin-top: 0.15vw;
}

.emi-slider-ticks {
    --tick-steps: 34;
    --tick-width: 1px;
    background-image: repeating-linear-gradient(
        to right,
        #a8adb2 0,
        #a8adb2 var(--tick-width),
        transparent var(--tick-width),
        transparent calc(100% / (var(--tick-steps) - 1))
    );
    background-position: center;
    background-repeat: repeat-x;
    height: 0.8vw;
    margin-bottom: 0.35vw;
    margin-left: calc(100% / var(--tick-steps));
    margin-top: -1vw;
    width: calc(100% * (var(--tick-steps) - 1) / var(--tick-steps));
}

.emi-slider-ticks--22 {
    --tick-steps: 21;
}

.emi-slider-ticks--31 {
    --tick-steps: 30;
}

.emi-slider-ticks--34 {
    --tick-steps: 34;
}

.emi-slider-range-row {
    display: flex;
    justify-content: space-between;
}

.emi-calculator-results-card {
    background: #ffffff;
    border-radius: 0.6vw;
    box-shadow: 0 0.4vw 1.5vw rgba(0, 0, 0, 0.06);
    padding: 2vw;
}

.emi-results-grid {
    display: grid;
    gap: 1.5vw;
    grid-template-columns: 1fr 1fr;
}

.emi-result-box {
    border-radius: 0.6vw;
    padding: 1.4vw 1.2vw;
}

.emi-result-box--neutral {
    background: #E7E9EB;
}

.emi-result-box--accent {
    background: var(--text-orange);
}

.emi-result-box p {
    margin-bottom: 0.35vw;
}

.emi-result-box h3 {
    margin-bottom: 0;
}

.emi-calculator-disclaimer {
    margin-top: 1vw;
}

@media screen and (max-width: 991px) {
    .emi-calculator-inputs {
        margin-bottom: 24px;
        padding-right: 0;
    }

    .emi-calculator-header {
        margin-bottom: 28px;
    }

    .emi-calculator-header h1 {
        margin-bottom: 8px;
    }

    .emi-slider-group {
        margin-bottom: 28px;
    }

    .emi-slider-label-row {
        margin-bottom: 10px;
    }

    .emi-slider-track-wrap {
        padding: 6px 0;
    }

    .emi-slider-input {
        height: 32px;
    }

    .emi-slider-input::-webkit-slider-runnable-track {
        background: #b1b2b3;
        box-shadow: inset 0px 3px 6px #00000029;
        height: 8px;
    }

    .emi-slider-input::-webkit-slider-thumb {
        border-width: 3px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
        height: 24px;
        margin-top: -8px;
        width: 24px;
    }

    .emi-slider-input::-moz-range-track {
        background: #b1b2b3;
        box-shadow: inset 0px 3px 6px #00000029;
        height: 8px;
    }

    .emi-slider-input::-moz-range-thumb {
        border-width: 3px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
        height: 24px;
        width: 24px;
    }

    .emi-slider-scale {
        margin-top: 4px;
    }

    .emi-slider-ticks {
        --tick-width: 1px;
        height: 10px;
        margin-top: -22px;
    }

    .emi-calculator-results-card {
        border-radius: 12px;
        padding: 20px 16px;
    }

    .emi-results-grid {
        gap: 20px;
    }

    .emi-result-box {
        border-radius: 8px;
        padding: 18px 14px;
    }

    .emi-result-box p {
        margin-bottom: 6px;
    }

    .emi-calculator-disclaimer {
        margin-top: 14px;
    }
}

@media screen and (max-width: 575px) {
    .emi-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .emi-slider-ticks {
        --tick-width: 1px;
        height: 6px;
        margin-bottom: 5px;
        margin-top: -22px;
    }
}
