﻿.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 {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 64px var(--site-padding, 40px);
}

.if-services__head {
    text-align: center;
    max-width: 80%;
    margin-inline: auto;
    margin-bottom: 3rem;
}

.dep-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

#depSearch,
#depClear {
    width: 160px;
}

.dep-filter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 160px;
    min-width: 0;
}

.dep-filter__label {
    color: var(--color-brand-mid);
    margin: 0;
    padding: 0 18px;
}

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

.dep-filter__input {
    width: 100%;
    padding: 12px 36px 12px 18px;
    border: 2px solid var(--color-brand);
    border-radius: 30px;
    font-size: 16px;
    background: transparent;
    color: var(--color-brand-mid);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .dep-filter__input::placeholder {
        color: var(--color-brand-mid);
    }

    .dep-filter__input:focus {
        border-color: var(--color-brand-mid);
    }

    .dep-filter__input::selection {
        background-color: transparent;
    }

    .dep-filter__input:-webkit-autofill,
    .dep-filter__input:-webkit-autofill:hover,
    .dep-filter__input:-webkit-autofill:focus,
    .dep-filter__input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px transparent inset;
        -webkit-text-fill-color: var(--color-brand-mid);
        transition: background-color 5000s ease-in-out 0s;
        caret-color: var(--color-brand-mid);
    }

.dep-filter__icon,
.dep-filter__suffix {
    position: absolute;
    right: 14px;
    font-weight: 600;
    color: var(--color-brand-mid);
    pointer-events: none;
}

.hp-custom-select__trigger {
    padding: 8px 18px;
    border: 2px solid var(--color-brand);
}

.dep-results {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

    .dep-results > div {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .dep-results button.hp-btn {
        width: 160px;
    }

.dep-row {
    width: 100%;
    display: flex;
    align-items: center;
    border: 2px solid var(--color-brand);
    border-radius: 30px;
    padding: 20px 30px;
    gap: 16px;
    background: transparent;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

    .dep-row:hover {
        box-shadow: 0 6px 24px rgba(109, 54, 30, 0.1);
    }

.dep-row__bank {
    flex: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dep-row__bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.dep-row__bank-info {
    min-width: 0;
}

.dep-row__bank-name, .dep-row__col-label {
    color: var(--color-brand-mid);
    margin: 0;
    font-weight: 600;
}

    .dep-row__col-label.dep-row_col-kesti {
        font-weight: 700;
    }

.dep-row__bank-type, .dep-row__col-value {
    color: var(--color-brand-mid);
    margin: 0;
}

.dep-row__col {
    flex: 1;
    min-width: 0;
}

.dep-row__action {
    flex-shrink: 0;
    margin-left: auto;
}

.dep-empty {
    text-align: center;
    color: var(--color-brand-mid);
    padding: 40px 0;
    font-size: 15px;
}

.hp-loan__form-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hp-label {
    display: block;
    font-weight: 600;
    font-size: clamp(18px, 2vw, 24px);
    color: #ffffff;
    margin-bottom: 0.35rem;
    padding: 0 2.2rem;
}

.hp-input::placeholder {
    color: #ffffff;
}

.hp-input:focus {
    border-color: #ffffff;
}

.hp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hp-input {
    width: 100%;
    padding: 1.2rem 2.2rem;
    border: 1.5px solid #ffffff;
    border-radius: 30px;
    font-size: 16px;
    background: transparent;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hp-input-suffix {
    position: absolute;
    right: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    pointer-events: none;
}

.hp-field-button {
    text-align: center;
    padding: 3rem;
}

    .hp-field-button button {
        width: 200px;
    }

#depAmount::-webkit-outer-spin-button,
#depAmount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#depAmount {
    -moz-appearance: textfield;
}

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

.dep-info__first-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dep-info__item--first {
    flex: 1;
}

.dep-info__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    cursor: pointer;
    list-style: none;
    color: var(--color-brand-mid);
}

    .dep-info__summary::-webkit-details-marker {
        display: none;
    }

    .dep-info__summary::marker {
        display: none;
    }

.dep-info__chevron {
    width: 18px;
    flex-shrink: 0;
    color: var(--color-brand);
    transition: transform 0.3s ease;
}

.dep-info__item[open] .dep-info__chevron {
    transform: rotate(180deg);
}

.dep-info__item:not([open]) .dep-info__body {
    display: none;
}

.dep-info__body p {
    padding: 0 4px;
    color: var(--color-brand-mid);
    line-height: 1.65;
    margin: 0;
}

.dep-info__body ul, .dep-info__body ol {
    margin: 8px 0 0 0;
    padding-left: 3rem;
}

.dep-info__body li {
    margin-bottom: 4px;
    color: var(--color-brand-mid);
}

.dep-info__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 28px 4px;
    cursor: pointer;
    color: var(--color-brand);
    white-space: nowrap;
}

.dep-info__toggle-chevron {
    width: 30px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.dep-info__more .dep-info__item .dep-info__body {
    display: block;
}

.dep-info__question {
    margin: 0;
    padding: 28px 4px 6px;
    color: var(--color-brand-mid);
}

.dep-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dep-info-icon__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    color: var(--color-brand-mid);
}

    .dep-info-icon__btn svg {
        width: 20px;
        height: 20px;
    }

    .dep-info-icon__btn:hover {
        color: var(--color-brand);
    }

.dep-info-icon__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 260px;
    max-width: 70vw;
    background: #fff;
    border: 1.5px solid var(--color-brand);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-brand);
    box-shadow: 0 8px 30px rgba(109, 54, 30, 0.15);
    z-index: 20;
    text-align: left;
}

.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;
}

.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(0,0,0,0.15);
    border-top-color: var(--color-brand-mid);
    border-radius: 50%;
    animation: dep-spin 0.7s linear infinite;
}

.dep-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.dep-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dep-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: calc(100% - 32px);
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 24px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: dep-modal-in 0.2s ease;
}

.dep-modal__body .dep-modal__bank-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

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

.dep-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-brand);
}

    .dep-modal__close:hover {
        color: #000;
    }

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

/* The rate rows ("Viti 1", variable-rate indicators like the treasury bill) are spans, which the global `p`
   color rule doesn't reach — color them explicitly so all modal text shares the brand color. */
.dep-details__rate-term,
.dep-details__rate-value,
.dep-details__plan-term {
    color: var(--color-brand);
}

.dep-more-btn {
    align-self: center;
    margin-top: 12px;
}

@keyframes highlight {
    to {
        transform: scaleX(1);
    }
}

@keyframes dep-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);
    }
}

@media (max-width: 900px) {
    .dep-filters {
        gap: 10px;
    }

    .dep-filter__field {
        flex: 1 1 calc(50% - 10px);
    }

    .if-services__head {
        max-width: 100%;
        margin-inline: 0;
    }

    .dep-filters .hp-btn {
        width: 24% !important;
        padding: 10px 30px;
    }

    .dep-results > div {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dep-row {
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 10px;
    }

    .dep-row__bank {
        flex: 0 0 100%;
    }

    .dep-results button.hp-btn {
        width: 100%;
        padding: 10px 30px;
    }

    .dep-more-btn {
        width: 160px !important;
    }
}

@media (max-width: 768px) {
    .dep-filter__field {
        flex: 1 1 100%;
    }

    .dep-filters .hp-btn {
        width: 48% !important;
        margin: 20px auto;
        margin-bottom: 0;
        padding: 10px 30px;
    }

    .dep-row__col {
        flex: 0 0 calc(50% - 5px);
        min-width: 0;
    }

    .dep-row__action {
        flex: 0 0 100%;
        margin-left: 0;
    }
}