﻿.hp-bg-canvas {
    position: relative;
    isolation: isolate;
}

    .hp-bg-canvas::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: var(--bg-height, 900px);
        background-image: var(--hero-bg-image);
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        z-index: -1;
        -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    }

.if-services {
    background: #EDEEEF;
    color: #111111;
    max-width: none;
    padding: clamp(64px, 10vh, 130px) clamp(20px, 4.5vw, 72px) clamp(72px, 11vh, 140px);
}

.sa-services {
    max-width: 1400px;
    margin: 0 auto;
}

.if-services__title-container {
    text-align: left;
    max-width: 100%;
    margin: 0;
}

.if-services__title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.042em;
    color: var(--color-brand);
}

.mortgage .if-services__title {
    text-align: center;
}

.if-services__head {
    text-align: left;
    max-width: 1000px;
    margin: clamp(22px, 3vh, 36px) auto 0;
    border-radius: 20px;
    border: 1px solid rgba(87, 28, 42, 0.16);
    background: #ffffff;
    overflow: hidden;
}

.dep-info {
    text-align: left;
    max-width: 100%;
}

.dep-info__toggle-all {
    width: 100%;
    background: none;
    border: 0;
    padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.8vw, 32px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    font-family: inherit;
}

.dep-info__toggle-all-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--color-brand);
}

.dep-info__toggle-all-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: rgba(87, 28, 42, 0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: none;
}

    .dep-info__toggle-all-icon svg {
        width: 16px;
        height: 16px;
    }

.dep-info__toggle-all[aria-expanded="true"] .dep-info__toggle-all-icon {
    transform: rotate(180deg);
}

.dep-info__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.55s cubic-bezier(.16, 1, .3, 1);
}

.dep-info__body-inner {
    padding: clamp(4px, 1vw, 8px) clamp(20px, 2.8vw, 32px) clamp(20px, 2.6vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.72;
    color: rgba(17, 17, 17, 0.7);
}

    .dep-info__body-inner p {
        margin: 0;
        font-size: 14.5px;
        line-height: 1.72;
        color: rgba(17, 17, 17, .7);
        text-wrap: pretty;
    }

.dep-info__divider {
    display: block;
    height: 1px;
    background: rgba(87, 28, 42, 0.14);
    margin: 6px 0;
}

.dep-info__subheading {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -.012em;
    color: var(--color-brand) !important;
}

.dep-info__body-inner ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    counter-reset: dep-info-counter;
}

    .dep-info__body-inner ol li {
        counter-increment: dep-info-counter;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        align-items: baseline;
        padding: 11px 0;
        border-top: 1px solid rgba(87, 28, 42, .14);
        font-size: 14.5px;
        line-height: 1.6;
        color: rgba(17, 17, 17, .78);
    }

        .dep-info__body-inner ol li::before {
            content: counter(dep-info-counter, decimal-leading-zero);
            font-size: 11px;
            font-weight: 500;
            letter-spacing: .12em;
            color: rgba(87, 28, 42, .65);
        }

.dep-filters-panel .dep-filters#depFilters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.dep-filters-panel .dep-filter__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dep-filters-panel .dep-filter__input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 64px 13px 20px;
    background: #ffffff;
    border: 1px solid rgba(87, 28, 42, 0.42);
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 450;
    color: var(--color-brand);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:-internal-autofill-selected {
    background: #ffffff;
}

.dep-filters-panel .dep-filter__input:hover,
.dep-filters-panel .dep-filter__input:focus {
    border-color: var(--color-brand);
}

.dep-filters-panel .dep-filter__input:focus-visible {
    box-shadow: 0 0 0 3px rgba(87, 28, 42, 0.12);
}

.dep-filters-panel .dep-filter__icon {
    position: absolute;
    right: 20px;
    font-size: 13.5px;
    font-weight: 600;
    pointer-events: none;
}

.filter-label__required {
    color: #B3261E
}

.dep-filter__input-wrap.dep-filter--error .dep-filter__input {
    border-color: #c0392b;
}

.hp-select-wrap.dep-filter--error .hp-custom-select__trigger {
    border-color: #c0392b;
}

/* ── Results wrap ── */
#depResults {
    margin-top: clamp(18px, 2.6vh, 28px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.4vw, 16px);
}

.dep-result-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(12px, 1.6vw, 22px);
    align-items: stretch;
}

.dep-result-card {
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(87, 28, 42, .32);
    background: #fff;
    padding: clamp(14px, 1.6vw, 20px) clamp(16px, 2vw, 26px);
    transition: border-color .35s ease, box-shadow .35s ease;
}

    .dep-result-card:hover {
        border-color: rgba(87, 28, 42, 0.55);
        box-shadow: 0 14px 34px -18px rgba(87, 28, 42, 0.28);
    }

.dep-result-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 26px auto;
    gap: clamp(12px, 1.8vw, 26px);
    align-items: center;
}

.dep-result-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 4px;
    border-radius: 9px;
    background: rgba(87, 28, 42, .06);
    box-sizing: border-box;
}

    .dep-result-logo-box img {
        display: block;
        max-width: 36px;
        max-height: 30px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.dep-result-bank-info,
.dep-result-cell {
    min-width: 0;
}

.dep-result-bank-name,
.dep-result-loan-name,
.dep-result-label,
.dep-result-value {
    margin: 0;
}

.dep-result-bank-name {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-brand);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.014em;
}

.dep-result-loan-name {
    margin-top: 4px;
    color: rgba(87, 28, 42, .78);
    font-size: 14px;
    font-weight: 450;
}

.dep-result-label {
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 600;
}

.dep-result-value {
    margin-top: 4px;
    color: rgba(87, 28, 42, .78);
    font-size: 14px;
    font-weight: 450;
}

.dep-result-info-cell {
    position: relative;
    justify-self: center;
    flex: none;
}

.dep-result-details {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid rgba(87, 28, 42, .5);
    background: none;
    color: var(--color-brand);
    font-size: 13.5px;
    font-weight: 450;
    white-space: nowrap;
    cursor: pointer;
    transition: color .3s, border-color .3s;
    font-family: inherit;
}

    .dep-result-details:hover {
        color: var(--color-brand);
        border-color: var(--color-brand);
        background: rgba(87, 28, 42, 0.06);
    }

.dep-result-cta-stack {
    display: flex;
    flex-flow: column wrap;
    align-items: stretch;
    gap: 8px;
}

.dep-result-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 24px;
    border: 1px solid var(--color-brand);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
    font-family: inherit;
    box-sizing: border-box;
}

.dep-result-cta--primary {
    background: var(--color-brand);
    color: #fff;
}

    .dep-result-cta--primary:hover {
        background: #451C31;
        transform: translateY(-1px);
    }

.dep-result-cta--secondary {
    border-color: rgba(87, 28, 42, .42);
    background: #fff;
    color: var(--color-brand);
}

    .dep-result-cta--secondary:hover {
        background: rgba(87, 28, 42, .05);
        transform: translateY(-1px);
    }

.dep-empty {
    margin-top: clamp(18px, 2.6vh, 28px);
    border-radius: 22px;
    border: 1px dashed rgba(87, 28, 42, 0.3);
    background: rgba(87, 28, 42, 0.03);
    padding: clamp(28px, 4vw, 52px);
    text-align: center;
}

.dep-empty__title {
    margin: 0;
    font-size: clamp(17px, 1.7vw, 21px);
    font-weight: 600;
    letter-spacing: -0.024em;
    color: var(--color-brand);
}

.dep-more-btn.hp-btn {
    align-self: center;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand);
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 14px 38px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}

    .dep-more-btn.hp-btn:hover {
        background: #4a1723;
    }

.dep-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 32px 0;
}

    .dep-loader[hidden] {
        display: none;
    }

.dep-loader__spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(87, 28, 42, 0.15);
    border-top-color: var(--color-brand);
    border-radius: 50%;
    animation: dep-spin 0.7s linear infinite;
}

.dep-info-icon {
    position: relative;
    justify-self: center;
}

.dep-info-icon__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

    .dep-info-icon__btn:hover {
        transform: scale(1.1);
    }

.dep-info-icon__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: -8px;
    width: min(300px, 72vw);
    background: #ffffff;
    border: 1px solid rgba(87, 28, 42, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: rgba(17, 17, 17, 0.5) 0px 24px 54px -26px;
    z-index: 40;
    text-align: left;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(17, 17, 17, .78);
}

    .dep-info-icon__tooltip p {
        margin: 0;
        font-size: 12.5px;
        line-height: 1.6;
        color: rgba(17, 17, 17, 0.78);
    }

.dep-info-icon:hover .dep-info-icon__tooltip,
.dep-info-icon.active .dep-info-icon__tooltip,
.dep-info-icon__btn:focus-visible ~ .dep-info-icon__tooltip {
    display: block;
    animation: dp-fade 0.25s ease both;
}

/* ── Details modal ── */
.dep-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
}

    .dep-modal[hidden] {
        display: none;
    }

.dep-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 10, 16, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.dep-modal__panel {
    position: relative;
    background: #ffffff;
    color: #111111;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(17, 17, 17, 0.6);
    animation: dp-pop 0.3s cubic-bezier(.16, 1, .3, 1) both;
}

.dep-modal__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.dep-modal__header {
    padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 32px) clamp(18px, 2.2vw, 24px);
}

.dep-modal__logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(87, 28, 42, 0.07);
    box-sizing: border-box;
}

    .dep-modal__logo-box .dep-modal__bank-logo {
        display: block;
        max-width: 78px;
        max-height: 36px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.dep-modal__bank-name {
    margin: 18px 0 0;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.02em;
    color: var(--color-brand);
}

.dep-modal__deposit-name {
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 450;
    color: rgba(87, 28, 42, 0.8);
}

.dep-modal__body a {
    color: var(--color-brand);
}

.dep-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: rgba(17, 17, 17, 0.6);
    border-radius: 50%;
}

    .dep-modal__close:hover {
        color: #000;
        background: rgba(87, 28, 42, 0.06);
    }

.dep-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border-top: 1px solid rgba(87, 28, 42, 0.12);
    padding: clamp(20px, 2.6vw, 26px) clamp(24px, 3vw, 32px);
}

.dep-details__attr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.dep-details__attr-label {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-brand);
}

.dep-details__attr-value {
    margin: 0;
    color: rgba(87, 28, 42, 0.85);
    overflow-wrap: anywhere;
}

.dep-details__attr--block {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

    .dep-details__attr--block .dep-details__attr-value {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
    }

.dep-details__choices {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.dep-details__choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dep-details__radio {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(87, 28, 42, 0.4);
    border-radius: 50%;
}

.dep-details__choice--on .dep-details__radio {
    border-color: var(--color-brand);
    background: var(--color-brand);
    box-shadow: inset 0 0 0 3px #fff;
}

.dep-details__choice--on .dep-details__choice-name {
    color: rgba(87, 28, 42, 0.85);
}

.dep-details__choice-name {
    font-size: 13.5px;
    font-weight: 450;
    color: rgba(87, 28, 42, 0.55);
}

.dep-details__source {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 14px;
    color: var(--color-brand);
    border-bottom: 1px solid rgba(87, 28, 42, 0.45);
    text-decoration: none;
}

body.dep-modal-open {
    overflow: hidden;
}

.hp-field__error {
    color: #c0392b;
    margin: 0;
}

/* Fixed-rate-by-year table (shared by the loan list and mortgage details modal) */
.dep-details__table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(87, 28, 42, 0.32);
    border-radius: 16px;
}

.dep-details__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: rgba(87, 28, 42, 0.85);
}

    .dep-details__table th,
    .dep-details__table td {
        border-right: 1px solid rgba(87, 28, 42, 0.32);
        padding: 8px 14px;
        text-align: center;
        white-space: nowrap;
    }

        .dep-details__table th:last-child,
        .dep-details__table td:last-child {
            border-right: none;
        }

    .dep-details__table th {
        border-bottom: 1px solid rgba(87, 28, 42, 0.32);
        font-weight: 700;
        color: var(--color-brand);
    }

.dep-details__plan-term {
    margin: 6px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand);
}

.dep-details__rate-term,
.dep-details__rate-value {
    color: var(--color-brand);
}

.dep-consult__title {
    margin: 0;
    max-width: 24ch;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.028em;
    color: var(--color-brand);
    text-wrap: balance;
}

.dep-consult__submit {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--color-brand);
    padding: 15px 28px;
    min-height: 52px;
    font-size: 14.5px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

    .dep-consult__submit:hover {
        background: #451C31 !important;
        transform: translateY(-1px) !important;
        color: #ffffff !important;
    }

.dep-consult__form {
    margin-top: clamp(22px, 3vh, 30px);
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vh, 24px);
}

.dep-consult__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .dep-consult__field label {
        font-size: 14px;
        font-weight: 450;
        color: var(--color-brand);
    }

    .dep-consult__field input {
        width: 100%;
        min-width: 0;
        background: none;
        border: 0;
        border-bottom: 1px solid rgba(87, 28, 42, .4);
        padding: 8px 0;
        min-height: 38px;
        font-size: 15px;
        color: #111111;
        box-sizing: border-box;
    }

        .dep-consult__field input:focus-visible, .dep-consult__textarea:focus-visible {
            outline: 2px solid var(--color-brand);
            outline-offset: 3px;
            border-radius: 2px;
        }

.dep-consult__textarea {
    width: 100%;
    min-width: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(87, 28, 42, .4);
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #111111;
    resize: vertical;
}

.dep-consult__error {
    color: #c0392b;
    font-size: 14px;
    margin: 0;
}

.dep-consult__success {
    text-align: center;
    color: var(--color-brand);
    font-weight: 600;
    padding: 1rem 0;
}

.dep-consult__submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.dep-consult__optional {
    font-weight: 400;
    color: rgba(87, 28, 42, 0.6);
}

/* Mortgage "Këshillohu" / "Apliko" request: "Kontrollo të dhënat" with the reference number beside it. */
.hp-offer__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    /* Clear of the close button in the panel's top-right corner. */
    padding-right: 44px;
}

.hp-offer__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111111;
}

.hp-offer__ref {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(87, 28, 42, 0.22);
    border-radius: 999px;
    background: rgba(87, 28, 42, 0.09);
    color: var(--color-brand);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

    .hp-offer__ref[hidden] {
        display: none;
    }

.hp-offer__product {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-brand);
}

/* The calculator answers, shown read-only above the description. */
.hp-offer__answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vh, 18px) 22px;
}

    /* A label can wrap to two lines; pushing each value to the bottom keeps the two values of a row level. */
    .hp-offer__answers .dep-consult__field {
        justify-content: space-between;
        gap: 6px;
    }

        .hp-offer__answers .dep-consult__field label {
            font-size: 13px;
            line-height: 1.35;
            color: rgba(87, 28, 42, 0.75);
        }

.dep-consult__field input[readonly] {
    border-bottom: 1px dashed rgba(87, 28, 42, 0.25);
    color: rgba(17, 17, 17, 0.75);
    text-overflow: ellipsis;
    cursor: default;
}

    /* Read-only fields are out of the tab order, so a click is the only way to focus them: no "you can type here" ring. */
    .dep-consult__field input[readonly]:focus-visible {
        outline: none;
    }

.services-note {
    margin: clamp(20px, 2.8vh, 30px) 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(17, 17, 17, .55);
    text-wrap: pretty;
}

.services-mortgage-note {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(17, 17, 17, .55);
    text-wrap: pretty;
}

/* ── Mortgage ── */

.hp-bg-canvas.mortgage {
    background: #edeeef;
}

.mortgage .if-services {
    padding: clamp(64px, 10vh, 130px) clamp(20px, 4.5vw, 72px) 0;
}

.hp-section.hp-loan {
    background: #EDEEEF;
    color: #111111;
    padding: 0 clamp(64px, 10vh, 130px) clamp(20px, 4.5vw, 72px);
}

.mortgage .hp-section.hp-loan {
    max-width: calc(var(--fa-shell) + 2 * var(--fa-gutter));
    margin: 0 auto;
    padding: 0 var(--fa-gutter) clamp(20px, 4.5vw, 72px);
}

.mortgage .hp-loan-container {
    max-width: 100%;
    margin: 0 auto;
}

.hp-loan-container {
    max-width: 1400px;
    margin: 0 auto;
}

.hp-loan__layout {
    margin: clamp(30px, 4.4vh, 56px) auto 0px;
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0px, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}

.hp-loan__form-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vh, 22px);
}

#hpLoanFormFields {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vh, 26px);
}

.hp-loan__form-col .hp-field {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: center;
}

        .hp-loan__form-col .hp-field .hp-label__num {
            font-size: 15px;
            font-weight: 600;
            color: rgba(87, 28, 42, .55);
        }

        .hp-loan__form-col .hp-field .hp-label {
            font-size: 16px;
            font-weight: 600;
            letter-spacing: -.014em;
            color: var(--color-brand);
        }

        .hp-loan__form-col .hp-field .hp-custom-select__trigger {
            width: 100%;
            min-width: 0px;
            border: 1px solid rgba(87, 28, 42, 0.42);
            background: #fff;
            border-radius: 999px;
            padding: 15px 20px;
            min-height: 54px;
            font-size: 14.5px;
            font-weight: 450;
            color: rgb(87, 28, 42);
            cursor: pointer;
            appearance: none;
            box-shadow: none;
        }

        .hp-loan__form-col .hp-field .hp-custom-select__option {
            color: var(--color-brand);
        }

        .hp-loan__form-col .hp-field .hp-custom-select__option--selected {
            font-weight: 600;
        }

        .hp-loan__form-col .hp-field .hp-custom-select__option:hover {
            background: rgba(109, 54, 30, 0.06);
        }

    .hp-loan__form-col .hp-custom-select--open .hp-custom-select__trigger {
        outline: 2px solid var(--color-brand);
        outline-offset: 3px;
        box-shadow: rgba(87, 28, 42, 0.1) 0px 0px 0px 3px;
    }

    .hp-loan__form-col .hp-field .hp-input-wrap {
        position: relative;
        display: flex;
        align-items: stretch;
        min-width: 0;
    }

        .hp-loan__form-col .hp-field .hp-input-wrap input {
            width: 100%;
            min-width: 0px;
            background: rgb(255, 255, 255);
            border: 1px solid rgba(87, 28, 42, 0.42);
            border-radius: 999px;
            padding: 15px 68px 15px 20px;
            min-height: 54px;
            font-size: 14.5px;
            font-weight: 450;
            color: rgb(87, 28, 42);
            box-shadow: none;
            box-sizing: border-box;
        }

            .hp-loan__form-col .hp-field .hp-input-wrap input:focus-visible {
                outline: 2px solid var(--color-brand);
                outline-offset: 3px;
                box-shadow: rgba(87, 28, 42, 0.1) 0px 0px 0px 3px;
            }

        .hp-loan__form-col .hp-field .hp-input-wrap .hp-input-suffix {
            position: absolute;
            right: 22px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 13.5px;
            font-weight: 700;
            letter-spacing: .02em;
            color: var(--color-brand);
        }

    .hp-loan__form-col .hp-field--terms {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding-left: clamp(0px, 3vw, 48px);
        cursor: pointer;
    }

        .hp-loan__form-col .hp-field--terms input {
            width: 16px;
            height: 16px;
            margin: 3px 0 0;
            accent-color: var(--color-brand);
            cursor: pointer;
        }

        .hp-loan__form-col .hp-field--terms span p {
            font-size: 13px;
            line-height: 1.6;
            color: rgba(17, 17, 17, .72);
            text-wrap: pretty;
            margin: 0;
        }

        .hp-loan__form-col .hp-field--terms span a {
            color: var(--color-brand);
            border-bottom: 1px solid rgba(87, 28, 42, .4);
            text-decoration: none;
        }

/* ── Form-collapse toggle (the "‹" button shown once results exist) ── */

.hp-form-toggle {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-brand);
    transition: color .3s;
    font-family: inherit;
}

    .hp-form-toggle[hidden] {
        display: none;
    }

.hp-form-toggle__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(87, 28, 42, .3);
    background: #ffffff;
    font-size: 15px;
    line-height: 1;
    color: var(--color-brand);
    transition: background .3s, transform .3s cubic-bezier(.16, 1, .3, 1);
    box-sizing: border-box;
}

.hp-form-toggle:hover .hp-form-toggle__icon {
    background: rgba(87, 28, 42, .06);
}

.hp-form-toggle[aria-expanded="false"] .hp-form-toggle__icon {
    transform: rotate(180deg);
}

.hp-loan__layout--results.hp-loan__layout--form-collapsed {
    grid-template-columns: 74px minmax(0, 1fr);
}

.hp-field-button {
    padding-left: clamp(0px, 3vw, 48px);
}

.hp-btn--calculate {
    background: rgb(87, 28, 42);
    color: rgb(255, 255, 255);
    border: 0px;
    border-radius: 999px;
    padding: 15px 34px;
    min-height: 50px;
    font-size: 14.5px;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
    transform: none;
}

    .hp-btn--calculate:hover {
        background: rgb(107, 46, 77);
        transform: translateY(-2px);
    }

.hp-field .hp-field__error {
    color: #B3261E;
    margin: 0;
}

.hp-loan__layout--results {
    max-width: 1560px;
    grid-template-columns: minmax(0px, clamp(320px, 26vw, 400px)) minmax(0px, 1fr);
    gap: clamp(18px, 2vw, 32px);
}

.hp-loan__results-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.6vw, 18px);
    animation: kh-pop .6s cubic-bezier(.16, 1, .3, 1) both;
}

.hp-loan__results-list {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.6vw, 18px);
}

.hp-loan__results-summary {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    position: relative;
    z-index: 20;
}

.hp-loan__results-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(17, 17, 17, .72);
    white-space: nowrap;
}

.hp-sort__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 2px 0;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-brand);
    border-bottom: 1px solid rgba(87, 28, 42, .55);
    text-align: left;
}

    .hp-sort__trigger svg {
        width: 16px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

.hp-sort--open .hp-sort__trigger svg {
    transform: rotate(180deg);
}

/* Only the static, always-on visual props live here. The old file had a second "display: flex" and
   an unconditional "animation" inside this same rule, which silently overrode "display: none" and
   made the panel render open, animating in, on every page load. */
.hp-sort__panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: clamp(0px, 6vw, 110px);
    width: min(340px, calc(100% - 8px));
    z-index: 30;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, .08);
    box-shadow: 0 28px 60px -30px rgba(17, 17, 17, .45);
    padding: 10px;
}

.hp-sort--open .hp-sort__panel {
    display: flex;
    flex-direction: column;
    animation: dp-pop .26s cubic-bezier(.16, 1, .3, 1) both;
}

.hp-sort__option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 12px;
    padding: 13px 14px;
    cursor: pointer;
    transition: background .25s;
}

    .hp-sort__option:hover {
        background: rgba(87, 28, 42, 0.06);
    }

.hp-sort__option-label {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 450;
    color: rgba(87, 28, 42, .9);
    text-wrap: pretty;
}

.hp-sort__option--selected .hp-sort__option-label {
    color: var(--color-brand);
    font-weight: 600;
}

.hp-sort__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hp-sort__radio {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.5px solid var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-sort__option input[type="radio"]:checked + .hp-sort__radio::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-brand);
}

.hp-sort__option input[type="radio"]:focus-visible + .hp-sort__radio {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

.hp-loan__results-summary .resultDetails {
    margin: 0;
    font-size: 13px;
    font-weight: 450;
    color: rgba(17, 17, 17, .62);
    white-space: nowrap;
}

.hp-loan__result-badge {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-brand);
}

/* ── Result card top row + figures (Kësti i vitit të parë / Vlera në fund të periudhës,
   always shown together, side by side, per the mockup — no longer conditional on sort mode) ── */

.hp-loan__result-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px clamp(16px, 2vw, 28px);
    align-items: start;
}

.hp-loan__result-bank-details {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.hp-loan__result-logo-box {
    width: 44px;
    height: 44px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(87, 28, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hp-loan__result-card--best .hp-loan__result-logo-box {
    background: rgba(87, 28, 42, .1);
}

.hp-loan__result-logo {
    max-width: 34px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.hp-loan__result-bank-info {
    min-width: 0;
}

.hp-loan__result-bank-name {
    margin: 0;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 600;
    letter-spacing: -.024em;
    line-height: 1.2;
    color: var(--color-brand);
}

.hp-loan__result-loan-name {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(87, 28, 42, .72);
    text-wrap: pretty;
}

.hp-loan__result-card--best .hp-loan__result-loan-name {
    color: rgba(87, 28, 42, .78);
}

.hp-loan__result-figs {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px clamp(18px, 2.2vw, 32px);
}

.hp-loan__result-fig {
    min-width: 0;
    text-align: right;
}

.hp-loan__result-fig--end {
    padding-left: clamp(14px, 1.8vw, 26px);
    border-left: 1px solid rgba(87, 28, 42, .18);
}

.hp-loan__result-fig-label {
    margin: 0;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(87, 28, 42, .7);
    white-space: nowrap;
}

.hp-loan__result-card--best .hp-loan__result-fig-label {
    color: rgba(87, 28, 42, .75);
}

.hp-loan__result-fig-label .dep-info-icon__tooltip {
    text-transform: none;
    letter-spacing: normal;
    text-wrap: auto;
}

.hp-loan__result-fig-label .dep-info-icon__btn {
    padding: 0;
    width: 20px;
    height: 20px;
    font-size: 11px;
}

    .hp-loan__result-fig-label .dep-info-icon__btn svg {
        width: 14px;
        height: 14px;
    }

.hp-loan__result-fig-value {
    margin: 4px 0 0;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--color-brand);
}

.hp-loan__result-fig-value--sm {
    font-size: clamp(20px, 2.1vw, 27px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.hp-loan__result-fig-currency {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(87, 28, 42, .7);
}

.hp-loan__result-card--best .hp-loan__result-fig-currency {
    color: rgba(87, 28, 42, .75);
}

.hp-loan__result-card {
    border-radius: 22px;
    border: 1px solid rgba(87, 28, 42, 0.28);
    background: rgb(255, 255, 255);
    padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
    transition: box-shadow 0.4s, border-color 0.4s;
    box-shadow: none;
}

    .hp-loan__result-card:hover {
        box-shadow: 0 14px 34px -18px rgba(87, 28, 42, .28);
        border-color: rgba(87, 28, 42, .5);
    }

.hp-loan__result-card--best {
    background: #FAF1F3;
    border-color: rgba(87, 28, 42, .38);
}

.hp-loan__result-divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(87, 28, 42, .14);
    margin: 0;
}

.hp-loan__result-card--best .hp-loan__result-divider {
    border-top-color: rgba(87, 28, 42, .18);
}

.hp-loan__result-bottom {
    margin-top: clamp(16px, 2vw, 22px);
    padding-top: clamp(14px, 1.8vw, 18px);
    border-top: 1px solid rgba(87, 28, 42, .18);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.hp-loan__result-details-text {
    padding: 2px 0;
    border-bottom: 1px solid rgba(87, 28, 42, .4);
    color: var(--color-brand);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}

.hp-loan__result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .hp-loan__result-actions .hp-btn {
        border-radius: 999px;
        min-height: 44px;
        padding: 11px 24px;
        font-size: 13.5px;
        font-weight: 450;
        transition: background .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
        font-family: inherit;
    }

    .hp-loan__result-actions .hp-btn--outline-dark {
        background: #ffffff;
        border: 1px solid rgba(87, 28, 42, .5);
        color: var(--color-brand);
    }

        .hp-loan__result-actions .hp-btn--outline-dark:hover {
            background: rgba(87, 28, 42, .05);
        }

    .hp-loan__result-actions .hp-btn--solid-dark {
        background: var(--color-brand);
        border: 0;
        color: #ffffff;
        font-weight: 500;
    }

        .hp-loan__result-actions .hp-btn--solid-dark:hover {
            background: #4a1723;
        }

/* ── "Më shumë" / "Më pak" — previously entirely unstyled, which is also why [hidden] wasn't
   reliably hiding them: nothing here beat whatever global button rule was forcing display. ── */

.hp-loan__more-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.hp-loan__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 32px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

    .hp-loan__more-btn[hidden] {
        display: none !important;
    }

    .hp-loan__more-btn.hp-btn--solid-dark {
        background: var(--color-brand);
        border: 0;
        color: #ffffff;
    }

        .hp-loan__more-btn.hp-btn--solid-dark:hover {
            background: #4a1723;
        }

    /* Not in the mockup (it only has "Më shumë") — styled to match your existing secondary button
   pattern since you're keeping it; say the word if you'd rather drop it to match the mockup exactly. */
    .hp-loan__more-btn.hp-btn--outline-dark {
        background: #ffffff;
        border: 1px solid rgba(87, 28, 42, .5);
        color: var(--color-brand);
    }

        .hp-loan__more-btn.hp-btn--outline-dark:hover {
            background: rgba(87, 28, 42, .05);
        }

.hp-loan__loader {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

    .hp-loan__loader[hidden] {
        display: none;
    }

.mortgage .services-note[hidden], .mortgage .services-mortgage-note[hidden] {
    display: none;
}

.hp-loan__spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(87, 28, 42, 0.15);
    border-top-color: var(--color-brand);
    border-radius: 50%;
    animation: hp-spin 0.7s linear infinite;
}

/* ── Mortgage details modal ── */
.hp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
}

    .hp-modal[hidden] {
        display: none;
    }

.hp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 10, 16, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.hp-modal__panel {
    position: relative;
    background: #ffffff;
    color: #111111;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(17, 17, 17, 0.6);
    animation: hp-modal-in 0.3s cubic-bezier(.16, 1, .3, 1) both;
}

.hp-modal__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

    .hp-modal__body .dep-modal__bank-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 52px;
        padding: 8px 14px;
        border-radius: 10px;
        background: rgba(87, 28, 42, 0.07);
        max-width: 78px;
        max-height: 36px;
        object-fit: contain;
        box-sizing: border-box;
    }

    .hp-modal__body a {
        color: var(--color-brand);
    }

.hp-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: rgba(17, 17, 17, 0.6);
    border-radius: 50%;
    transition: background 0.25s, color 0.25s;
}

    .hp-modal__close:hover {
        color: #000;
        background: rgba(87, 28, 42, 0.06);
    }

body.hp-modal-open {
    overflow: hidden;
}

/* ── Bank picker, shown while sorting by bank ── */

.hp-bank-filter {
    border: 1px solid rgba(87, 28, 42, .4);
    border-radius: 22px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .hp-bank-filter[hidden] {
        display: none;
    }

.hp-bank-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-bank-filter__title {
    margin: 0;
    color: var(--color-brand);
    font-weight: 600;
}

.hp-bank-filter__note {
    color: rgba(87, 28, 42, .65);
    font-weight: 450;
}

.hp-bank-filter__actions {
    display: flex;
    gap: 20px;
}

.hp-bank-filter__link {
    padding: 2px 0;
    border: none;
    border-bottom: 1px solid rgba(87, 28, 42, .5);
    background: transparent;
    color: var(--color-brand);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

    .hp-bank-filter__link:hover {
        color: #4a1723;
    }

.hp-bank-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hp-bank-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(87, 28, 42, .4);
    border-radius: 999px;
    color: var(--color-brand);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

    .hp-bank-chip:hover {
        border-color: var(--color-brand);
        background: rgba(87, 28, 42, .04);
    }

.hp-bank-chip--selected {
    border-color: var(--color-brand);
    background: rgba(87, 28, 42, .08);
}

.hp-bank-chip__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hp-bank-chip__box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1.5px solid rgba(87, 28, 42, .5);
    border-radius: 5px;
    position: relative;
}

.hp-bank-chip__input:checked + .hp-bank-chip__box {
    background: var(--color-brand);
    border-color: var(--color-brand);
}

    .hp-bank-chip__input:checked + .hp-bank-chip__box::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 5px;
        height: 10px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.hp-bank-chip__input:focus-visible + .hp-bank-chip__box {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

.hp-bank-chip__count {
    color: rgba(87, 28, 42, .6);
}

.hp-bank-filter__hint {
    margin: 0;
    color: rgba(87, 28, 42, .75);
    font-size: 13px;
    line-height: 1.55;
}

@keyframes dp-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dp-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hp-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dep-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes kh-pop {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
@media (max-width: 1250px) {
    .hp-section.hp-loan {
        padding: 0 clamp(20px, 4.5vw, 72px) clamp(20px, 4.5vw, 72px);
    }
}

@media (max-width: 1080px) {
    .dep-row__main {
        grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    .dep-row__details-btn.hp-btn {
        grid-column: 1 / -1;
    }

    .dep-filters-panel .dep-filters#depFilters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .hp-loan__layout {
        grid-template-columns: 1fr !important;
        gap: clamp(20px, 3vw, 36px);
    }

    .hp-loan__results-col {
        position: static;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .hp-loan__layout .hp-input {
        padding: 14px 32px;
    }

    .hp-loan__layout .hp-field .hp-input,
    .hp-loan__layout .hp-field .hp-select-wrap,
    .hp-loan__layout .hp-field .hp-checkbox-label,
    .hp-loan__layout .hp-field-button {
        margin-left: 0;
    }

    .hp-loan__layout .hp-label__num {
        min-width: 1.8rem;
    }

    .hp-field-button .hp-btn {
        padding: 10px 30px;
    }

    .hp-loan__result-actions .hp-btn {
        padding: 10px 30px;
    }

    .hp-loan__result-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 860px) {
    .dep-result-wrap {
        grid-template-columns: minmax(0px, 1fr);
    }

    .dep-result-cta-stack {
        flex-flow: wrap;
    }
}

@media (max-width: 768px) {
    .dep-modal__panel,
    .hp-modal__panel {
        max-height: 90vh;
    }

    .dep-modal__header {
        padding: 24px 44px 14px 16px;
    }

    .dep-details {
        padding: 14px 16px 20px;
    }

    .dep-details__attr {
        gap: 12px;
    }

    .hp-loan__layout .hp-label {
        font-size: 18px;
    }

    .hp-loan__result-card {
        padding: 18px 16px;
    }

    .hp-bank-filter {
        padding: 16px;
        border-radius: 20px;
    }

    .hp-bank-filter__list {
        gap: 8px;
    }

    .hp-bank-chip {
        flex: 1 1 100%;
        padding: 10px 14px;
    }

    .hp-sort__panel {
        min-width: 0;
        width: auto;
    }

    .hp-loan__result-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-loan__result-figs {
        justify-content: flex-start;
    }

    .hp-loan__result-fig {
        text-align: left;
    }
}

@media (max-width: 700px) {
    .dep-result-row {
        grid-template-columns: 44px minmax(0px, 1fr);
        gap: 16px clamp(12px, 1.8vw, 26px);
    }

    .dep-result-cell {
        grid-column: 1 / -1;
    }

    .dep-result-details {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .dep-info-icon__tooltip {
        right: auto;
        left: 0;
    }

    .mortgage .dep-info-icon__tooltip {
        right: -8px;
        left: auto;
    }

    .dep-result-info-cell {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
        top: auto;
        bottom: 24px;
        transform: translateX(-50%);
    }

    .dep-filters-panel .dep-filters#depFilters {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .dep-modal__header {
        padding: 24px 20px 16px;
    }

    .dep-details {
        padding: 18px 20px;
    }

    .dep-details__attr {
        gap: 12px;
    }
}

@media (max-width: 468px) {
    .mortgage .dep-info-icon__tooltip {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: auto;
        transform: translateY(calc(-100% - 30px));
    }
}