/* ================================
   HEADER SECTION
================================ */

.header-section {
    padding: 40px 0 20px 0;
}

.col-md-10-custom {
    width: 80%;
}

.col-md-2-custom {
    width: 20%;
}

/* ICON */
.icon-back-btn {
    padding: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    min-width: 44px;
}

.icon-back-btn:hover {
    background: #F7F7F7;
    border-radius: 8px;
}

.icon-back-btn i {
    color: #717171;
    font-size: 22px;
}

/* TITLE */
.kpr-title {
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* BADGE */
.badge-kpr {
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
}

/* Active */
.badge-kpr.active {
    background: var(--Tosca-Primary-Tosca-100, #50C3CB);
    color: white;
}

/* Outline */
.badge-kpr.outline {
    border: 1px solid var(--Neutral-Grey-200, #717171);
    color: var(--Neutral-Grey-200, #717171);
}

.badge-kpr.outline:hover {
    background: #E8E8E8;
}

/* ================================
   FORM SECTION
================================ */
.form-section {
    padding: 0;
}

.card,
.card:hover {
    box-shadow: none;
    padding: 20px;
}

.form-label {
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    text-align: left;
    width: 100%;
}

.input-group {
    align-items: stretch;
}

.form-control,
.input-group-text {
    border-radius: 24px !important;
    background: #F7F7F7;
    border: 1px solid #E8E8E8;
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    word-wrap: break-word;
    box-shadow: none;
    height: 47px;
}

.form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    padding: 14px 18px 14px 8px;
    margin-left: 0 !important;
    font-weight: 400;
}

.input-group-text {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 14px 12px 14px 16px;
    font-weight: 600;
}

.form-control.prefix-input {
    border-top-left-radius: 24px !important;
    border-bottom-left-radius: 24px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 12px 18px;
}

.input-group-text.suffix-label {
    border-top-right-radius: 24px !important;
    border-bottom-right-radius: 24px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group {
    position: relative;
}

.input-group::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s ease;
}

.input-group:focus-within::after {
    opacity: 1;
    box-shadow: 0 0 0 1px #77CCD1, 0 0 10px rgba(119, 204, 209, 0.6);
}

.form-control:focus,
.input-group:focus-within .input-group-text {
    background: #fff;
    outline: none;
    box-shadow: none;
    border: 1px solid #E8E8E8;
}

.custom-margin-form {
    margin-bottom: 23px;
}

.text-muted {
    color: #717171 !important;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    text-align: left;
}

.text-info {
    color: #50C3CB !important;
}

.btn-info {
    background: radial-gradient(ellipse 143.59% 143.59% at 52.63% 123.08%,
            #ffffff 0%,
            #50C3CB 30%,
            #00A4CA 84%) !important;
    border: none;
    padding: 12px 18px;
    line-height: 1;
}

.btn-info:hover {
    background: radial-gradient(143.59% 143.59% at 52.63% 123.08%, #FFFFFF 0%, #0A8091 36.31%, #00A4CA 100%) !important;
}

.reset-btn {
    color: #717171 !important;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    margin-top: 32px;
    cursor: pointer;
    padding: 6px 18px;
}

.reset-btn:hover {
    color: #77CCD1 !important;
}

/* ================================
   FORM SECTION - TAKE OVER
================================ */
.form-title {
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 21px;
}

.kpr-takeover-form hr {
    margin: 30px 0;
    color: #E8E8E8;
    opacity: unset;
}

/* SECTION */
.kpr-bank-section {
    margin-top: 34px;
    margin-bottom: 40px;
}

.bank-takeover-title {
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    margin-bottom: 24px;
    text-align: left;
}

/* CARD */
.bank-card {
    border-radius: 12px;
    border: 1px solid #E8E8E8;
    padding: 12px 14px;
    background: #fff;
    height: 100%;
    cursor: pointer;
}

.bank-card:hover {
    background: #F7F7F7;
}

/* SELECTED STATE */
.bank-card.selected {
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(180deg, #00A4CA 0%, #50C3CB 100%) border-box;
    border: 1px solid transparent;
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
}

/* TOP */
.bank-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bank-logo {
    width: 70px;
    height: 40px;
    object-fit: contain;
}

.bank-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-text,
.bank-label,
.bank-price span {
    color: var(--Neutral-Grey-200, #717171);
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
    word-wrap: break-word;
    text-align: left;
}

/* DIVIDER */
.bank-card hr {
    border-color: #E8E8E8;
    margin: 12px 0;
    opacity: unset;
}

/* BOTTOM */
.bank-bottom {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

/* PRICE */
.bank-price {
    color: #3E3A39;
    font-size: 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: 0.48px;
    word-wrap: break-word;
    margin-top: 8px;
}

/* DISCOUNT */
.bank-discount {
    color: #50C3CB;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

/* ================================
   KPR RESULTS SECTION
================================ */
.kpr-result {
    margin-bottom: 40px;
}

.result-title {
    color: #3E3A39;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 20px;
}

/* CARD */
.kpr-card,
.kpr-card:hover {
    border-radius: 12px;
    border: 1px solid #E8E8E8;
    padding: 10px 14px 16px 14px;
}

.garis,
.garis-bank {
    border-top: 1.5px solid #E8E8E8;
    position: relative;
    height: 15px;
    width: 94%;
    margin-top: -8px;
}

.garis-bank {
    width: 85%;
}

.garis::after,
.garis-bank::after {
    content: '';
    position: absolute;
    top: 0px;
    right: 1px;
    width: 7%;
    height: 2.5px;
    background: #e0e0e0;
    transform: rotate(215deg) scaleY(.4);
    transform-origin: top right;
    border-top: 1px solid #E8E8E8;
}

.garis-bank::after {
    width: 20%;
}

/* BANK */
.bank-logo {
    width: 70px;
    max-width: 70px;
    max-height: 40px;
    border-radius: unset !important;
    object-fit: contain;
}

.bank-name {
    font-weight: 600;
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    line-height: 22px;
    letter-spacing: 0.32px;
    word-wrap: break-word;
    text-align: left;
}

/* BUTTON */
.btn-kpr {
    border-radius: 24px;
    padding: 6px 18px;
    color: #fff;
    background: radial-gradient(ellipse 192.31% 192.31% at 52.63% 123.08%, white 0%, #F57F20 23%, #F57F20 58%, white 100%) padding-box, radial-gradient(circle, #F57F20 0%, white 40%, #F57F20 100%) border-box;
    border: 1px solid transparent;
    line-height: 1.1;
}

.btn-kpr:hover {
    background: radial-gradient(ellipse 192.31% 192.31% at 52.63% 123.08%, white 0%, #F05728 23%, #F05728 58%, white 100%) padding-box, radial-gradient(circle, #F57F20 0%, white 40%, #F57F20 100%) border-box;
}

/* LABEL & TEXT */
.kpr-label {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
    word-wrap: break-word;
}

.value {
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    line-height: 22px;
    letter-spacing: 0.32px;
    word-wrap: break-word;
}

.sub {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
    word-wrap: break-word;
}

/* HIGHLIGHT BOX */
.kpr-highlight {
    background: rgba(0, 164, 202, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.kpr-highlight .title {
    color: #3E3A39;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 28px;
    word-wrap: break-word;
    text-align: left;
}

.kpr-highlight .desc {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
    word-wrap: break-word;
    text-align: left;
}

.kpr-highlight .price {
    font-size: 18px;
    font-weight: 600;
    color: #3E3A39;
    font-family: 'Lato', sans-serif;
    line-height: 28px;
    letter-spacing: 0.36px;
    word-wrap: break-word;
}

.kpr-highlight .price span {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
}

/* INFO */
.kpr-info {
    background: #F7F7F7;
    border-radius: 12px;
    padding: 8px;
}

.icon-info {
    font-size: 20px;
    color: orange;
    font-weight: 400;
}

/* DETAIL */
.kpr-detail,
.kpr-detail:hover {
    border-radius: 12px;
    border: 1px solid #E8E8E8;
    padding: 14px 18px;
}

.kpr-detail-title {
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 22px;
    word-wrap: break-word;
    text-align: left;
}

.kpr-detail>hr {
    margin: 12px 0;
    color: #E8E8E8;
    opacity: unset;
}

.kpr-detail-label {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 22px;
    word-wrap: break-word;
}

.kpr-detail-label i {
    font-size: 12px;
    padding: 2px 0;
}

.kpr-detail-value {
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 22px;
    word-wrap: break-word;
}

.kpr-detail .mb-2 {
    margin-bottom: 12px !important;
}

#biaya-lainnya-toggle.active .kpr-detail-label {
    color: #3E3A39;
}

#biaya-lainnya-toggle.active .kpr-detail-label i {
    color: #717171;
}

.biaya-lainnya-item:not(:last-child) {
    margin-bottom: 12px;
}

.biaya-lainnya-item .kpr-detail-value {
    color: #3E3A39;
}

/* ================================
   DROPDOWN PILIH BANK (SELECT STYLE)
================================ */
.select-bank-wrapper {
    margin-bottom: 21px;
}

.dropdown-bank-select-wrapper {
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.dropdown-bank-select {
    width: 100%;
    padding: 12px 18px;
    background: #F7F7F7;
    border-radius: 24px;
    outline: 1px solid #E8E8E8;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--Neutral-Grey-200, #717171);
    position: relative;
    z-index: 11;
}

.dropdown-bank-select.open {
    outline: 1px var(--Tosca-Primary-Tosca-100, #50C3CB) solid;
    outline-offset: -1px;
    background: #fff;
}

.dropdown-bank-select.has-selected {
    padding: 8px 14px;
}

.dropdown-bank-select-label {
    flex: 1 1 0;
    color: var(--Neutral-Grey-200, #717171);
    font-size: 16px;
    font-family: Lato, sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.dropdown-bank-select-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-bank-select-icon .icon-chevron {
    display: inline-block;
    width: 12px;
    height: 7px;
    background: var(--Neutral-Grey-200, #717171);
    mask: url('data:image/svg+xml;utf8,<svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23717171" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23717171" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
}

/* ================================
   DROPDOWN PILIH BANK
================================ */
.dropdown-bank-container {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
    position: relative;
    z-index: 10;
    margin-top: 8px;
}

.dropdown-bank-list-wrapper {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    display: flex;
    width: 100%;
    box-shadow: 0px 0px 2px rgba(113, 113, 113, 0.50);
    border-radius: 24px;
}

.dropdown-bank-list {
    align-self: stretch;
    padding: 4px;
    border-radius: 26px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
}

.dropdown-bank-item {
    align-self: stretch;
    padding: 8px 14px;
    background: var(--Neutral-White, #fff);
    border-radius: 24px;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.dropdown-bank-item:last-child {
    margin-bottom: 0;
}

.dropdown-bank-item:hover {
    background: #77CCD126;
}

.dropdown-bank-img {
    width: 30px;
    height: 30px;
    position: relative;
    flex-shrink: 0;
}

.dropdown-bank-img img,
.dropdown-bank-select .dropdown-bank-img.selected-bank-img img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.dropdown-bank-name {
    flex: 1 1 0;
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 16px;
    font-family: Lato, sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.dropdown-bank-rate {
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 16px;
    font-family: Lato, sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.dropdown-bank-select.open .dropdown-bank-select-icon .icon-chevron {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.dropdown-bank-select .dropdown-bank-img.selected-bank-img {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
}

.dropdown-bank-select .selected-bank-name,
.dropdown-bank-select .selected-bank-rate {
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 16px;
    font-family: Lato, sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.dropdown-bank-select .dropdown-bank-select-label {
    display: flex;
    align-items: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 480px) {
    .header-section {
        padding: 20px 0;
    }

    .card {
        margin-bottom: 40px !important;
    }

    .kpr-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .kpr-title {
        font-size: 20px;
    }

    .kpr-header .tabs-wrapper {
        margin-left: 60px;
        margin-top: 6px;
    }

    .bank-info {
        gap: 10px !important;
    }

    .kpr-card {
        margin-bottom: 20px !important;
    }

    .kpr-card-info {
        margin-bottom: 16px;
    }

    .kpr-highlight {
        padding: 14px 18px;
        margin-bottom: 10px !important;
    }

    .kpr-highlight-item {
        flex-direction: column;
        gap: 16px;
        text-align: left;
    }

    .kpr-highlight-item.mb-4 {
        margin-bottom: 30px !important;
    }

    .kpr-info {
        margin-bottom: 10px !important;
        gap: 12px !important;
    }

    .kpr-result {
        margin-bottom: 10px;
    }

    .garis {
        width: 88%;
    }

    .garis::after {
        width: 17%;
    }

    .col-md-10-custom {
        width: 60%;
    }

    .col-md-2-custom {
        width: 40%;
    }
}