/* ====== INSTALLMENT TERMS (customer/installments) ====== */
.inst-page {
    --inst-orange: #ff690f;
    --inst-orange-d: #e95a04;
    --inst-line: #e3e3e3;
    --inst-muted: #6d6d6d;
    max-width: 1088px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    color: #1e1e1e
}

/* Buttons */
.inst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s
}

.inst-btn--primary {
    background: var(--inst-orange);
    color: #fff
}

.inst-btn--primary:hover {
    background: var(--inst-orange-d);
    color: #fff
}

.inst-btn--outline {
    background: #fff;
    border-color: var(--inst-line);
    color: #525252
}

.inst-btn--outline:hover {
    border-color: #a3a3a3;
    color: #1e1e1e
}

.inst-btn--block {
    width: 100%
}

/* Hero */
.inst-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px
}

.inst-hero__title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px
}

.inst-hero__main {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5
}

.inst-hero__sub {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5
}

.inst-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.inst-hero__img {
    width: 310px;
    height: 310px;
    flex-shrink: 0;
    object-fit: contain
}

/* Calculator */
.inst-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-content: space-between;
    margin-top: 56px;
    padding: 16px;
    background: #f1f1f1;
    border-radius: 24px
}

.inst-calc__form,
.inst-calc__result {
    background: #fff;
    border: 1px solid var(--inst-line);
    border-radius: 16px;
    padding: 16px
}

.inst-calc__form {
    max-width: 380px;
    width: 100%
}

.inst-calc__result {
    max-width: 380px;
    width: 100%;
    justify-self: end
}

.inst-field {
    border: 0;
    margin: 0 0 28px;
    padding: 0;
    min-width: 0
}

.inst-field:last-child {
    margin-bottom: 0
}

.inst-field__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 0
}

.inst-amount {
    display: flex;
    gap: 8px
}

.inst-amount__btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--inst-line);
    background: #fff;
    color: #1e1e1e;
    cursor: pointer
}

.inst-amount__btn:disabled {
    background: #f1f1f1;
    border-color: #f1f1f1;
    color: #c7c7c7;
    cursor: default
}

.inst-amount__input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--inst-line);
    border-radius: 8px;
    text-align: center;
    font: inherit;
    font-size: 14px;
    color: var(--inst-muted);
    outline: none
}

.inst-amount__input:focus {
    border-color: var(--inst-orange)
}

.inst-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px
}

.inst-range__label {
    font-size: 12px;
    color: var(--inst-muted);
    white-space: nowrap
}

/* RTL range: the filled part grows from the right; --fill is set by JS */
.inst-range__input {
    --fill: 0%;
    flex: 1;
    min-width: 0;
    height: 16px;
    margin: 0;
    background: transparent;
    direction: rtl;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer
}

.inst-range__input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to left, var(--inst-orange) var(--fill), #e2e4e9 var(--fill))
}

.inst-range__input::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e4e9
}

.inst-range__input::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--inst-orange)
}

.inst-range__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -5px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--inst-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15)
}

.inst-range__input::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--inst-orange)
}

.inst-options {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), 1fr);
    gap: 8px
}

.inst-options--single {
    grid-template-columns: 1fr
}

.inst-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.inst-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    border: 1px solid var(--inst-line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--inst-muted);
    cursor: pointer;
    transition: border-color .2s, color .2s
}

.inst-option span img {
    width: 20px;
    height: 20px;
    object-fit: contain
}

.inst-option input:disabled + span {
    background: #f7f7f7;
    border-color: #f1f1f1;
    color: #c7c7c7;
    cursor: not-allowed
}

.inst-option input:checked + span {
    border-color: var(--inst-orange);
    color: var(--inst-orange)
}

.inst-option input:focus-visible + span {
    outline: 2px solid var(--inst-orange);
    outline-offset: 2px
}

/* Result card */
.inst-summary {
    margin: 0
}

.inst-summary--meta {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--inst-line)
}

.inst-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px
}

.inst-summary__row dt {
    font-size: 13px;
    color: var(--inst-muted)
}

.inst-summary__row dd {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px
}

.inst-summary__value {
    font-size: 16px !important;
    font-weight: 700
}

.inst-summary__logo {
    display: block;
    height: 18px;
    width: auto
}

.inst-calc__result .inst-btn {
    margin-top: 16px
}

.inst-reqs {
    margin-top: 12px;
    font-size: 12px;
    color: var(--inst-muted)
}

.inst-reqs summary {
    cursor: pointer;
    width: fit-content
}

.inst-reqs ul {
    margin: 8px 0 0;
    padding-inline-start: 18px;
    line-height: 2
}

.inst-tip__text b {
    display: block;
    font-weight: 600;
    margin-bottom: 4px
}

.inst-tip__row {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.inst-tip {
    position: relative;
    display: inline-flex;
    color: #8a8a8a;
    cursor: help;
    outline: none
}

.inst-tip__text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: -8px;
    width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1e1e1e;
    color: #fff;
    font-size: 12px;
    line-height: 1.7;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s;
    z-index: 5
}

.inst-tip:hover .inst-tip__text,
.inst-tip:focus .inst-tip__text {
    visibility: visible;
    opacity: 1
}

/* Intro + guide */
.inst-intro {
    margin-top: 56px;
    font-size: 15px;
    line-height: 2.1;
    color: #333
}

.inst-section {
    margin-top: 56px
}

.inst-section__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px
}

.inst-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0
}

.inst-step {
    border: 1px solid #c7c7c7;
    border-radius: 16px;
    padding: 24px
}

.inst-step__icon {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 16px
}

.inst-step__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px
}

.inst-step__text {
    font-size: 15px;
    color: #333;
    line-height: 2
}

@media (max-width: 768px) {
    .inst-page {
        padding-top: 24px
    }

    .inst-hero {
        flex-direction: column-reverse;
        gap: 16px;
        text-align: center
    }

    .inst-hero__img {
        width: 220px;
        height: 220px
    }

    .inst-hero__main {
        font-size: 22px
    }

    .inst-hero__sub {
        font-size: 16px
    }

    .inst-hero__actions {
        justify-content: center
    }

    .inst-hero__actions .inst-btn {
        flex: 1 1 100%
    }

    .inst-calc {
        grid-template-columns: 1fr;
        margin-top: 32px;
        padding: 12px;
        border-radius: 20px;
        gap: 12px
    }

    .inst-calc__form,
    .inst-calc__result {
        max-width: none
    }

    .inst-intro {
        margin-top: 32px;
        font-size: 14px
    }

    .inst-section {
        margin-top: 40px
    }

    .inst-section__title {
        font-size: 16px
    }

    .inst-steps {
        grid-template-columns: 1fr
    }

    .inst-step {
        padding: 20px
    }

    .inst-step__title {
        font-size: 16px
    }

    .inst-step__text {
        font-size: 14px
    }
}
