/* ================================
   HEADER SECTION
================================ */

.header-section {
    padding: 40px 0 20px 0;
}

/* 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;
    text-align: left;
}

/* ================================
   FORM SECTION
================================ */
.form-section {
    padding: 24px 0 40px 70px;
}

.form-section-takeover {
    padding: 0 0 40px 0;
}

.form-section-takeover .big-container {
    padding-left: 60px;
}

.form-title {
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 0;
}

.wrapper-border {
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 24px;
}

.wrapper-border hr {
    color: #E8E8E8;
    margin: 9px 0;
    opacity: unset;
}

.kpr-form-box {
    gap: 21px;
}

.kpr-upload-box {
    position: relative;
    background: white;
    gap: 16px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='%23E8E8E8' stroke-width='2' stroke-dasharray='9%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    border-radius: 24px !important;
}

.form-control {
    border-radius: 24px !important;
    background: #F7F7F7;
    border: none;
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    word-wrap: break-word;
    box-shadow: none;
    height: 47px;
    padding: 12px 18px;
}

.form-control:focus {
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 1px #77CCD1, 0 0 10px rgba(119, 204, 209, 0.6);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px 18px;
    padding-right: 40px;
}

select.form-control i {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #717171;
}

select.form-control:focus {
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 1px #77CCD1, 0 0 10px rgba(119, 204, 209, 0.6);
}

.form-control:focus {
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 1px #77CCD1, 0 0 10px rgba(119, 204, 209, 0.6);
}

.kpr-input-error {
    text-align: left;
    font-family: 'Lato', sans-serif;
    color: rgb(231, 76, 60);
    font-size: 13px;
    margin-top: 4px;
}

.kpr-btn-gradient {
    background: linear-gradient(90deg, var(--Tosca-Primary-Tosca-100, #50C3CB) 0%, var(--Tosca-Secondary-Blue-Tosca, #00A4CA) 100%);
    cursor: pointer;
}

.kpr-btn-gradient:hover {
    background: linear-gradient(90deg, var(--Tosca-Primary-Tosca-200, #0A8091) 0%, var(--Tosca-Secondary-Blue-Tosca, #00A4CA) 100%);
}

.kpr-input-box {
    height: 47px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--Neutral-Grey-50, #F7F7F7);
    border-radius: 24px;
}

.kpr-dropdown-icon {
    width: 24px;
    height: 24px;
    background: #D9D9D9;
    border-radius: 6px;
    position: relative;
}

.kpr-dropdown-icon::after {
    content: '';
    display: block;
    width: 11px;
    height: 7px;
    background: var(--Neutral-Grey-200, #717171);
    border-radius: 2px;
    position: absolute;
    left: 6px;
    top: 8px;
}

.kpr-income-box {
    background: var(--Neutral-Grey-50, #F7F7F7);
    border-radius: 24px;
    border: 1px solid var(--Neutral-Grey-100, #E8E8E8);
}

.kpr-income-label {
    background: var(--Neutral-Grey-50, #F7F7F7);
    font-weight: 600;
    color: var(--Neutral-Grey-200, #717171);
    font-size: 16px;
}

.kpr-income-input {
    color: var(--Neutral-Grey-200, #717171);
    font-size: 16px;
    font-family: Lato;
    font-weight: 400;
}

.kpr-bank-img img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.kpr-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--Neutral-Grey-200, #717171);
    background: #fff;
    position: relative;
}

.kpr-submit-btn {
    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.1;
    cursor: pointer;
}

.kpr-submit-btn:hover {
    background: radial-gradient(143.59% 143.59% at 52.63% 123.08%, #FFFFFF 0%, #0A8091 36.31%, #00A4CA 100%) !important;
}

/* Label for form section */
.kpr-label-form {
    font-size: 16px;
    font-family: Lato, Arial, sans-serif;
    color: var(--Neutral-Grey-300, #3E3A39);
    font-weight: 500;
    text-align: left;
}

.kpr-label-form-secondary {
    color: var(--Neutral-Grey-200, #717171);
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.kpr-label-form-white {
    color: #fff;
    font-weight: 500;
}

/* Dropdown Profesi Custom Styles */
.dropdown-custom-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
}

.dropdown-custom-select {
    display: flex;
    align-items: center;
    background: #F7F7F7;
    border-radius: 24px;
    height: 47px;
    padding: 12px 18px;
    cursor: pointer;
    position: relative;
    border: none;
    transition: box-shadow 0.2s, background 0.2s;
}

.dropdown-custom-select:focus,
.dropdown-custom-select.active {
    background: #fff;
    box-shadow: 0 0 0 1px #77CCD1, 0 0 10px rgba(119, 204, 209, 0.6);
}

.dropdown-custom-select-label {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    flex-grow: 1;
    text-align: left;
}

.dropdown-custom-select-icon {
    margin-left: auto;
    color: #717171;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.dropdown-custom-container {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
    padding: 8px 0;
    text-align: left;
    box-shadow: 0px 0px 2px rgba(113, 113, 113, 0.50);
    border-radius: 24px;
    padding: 4px;
}

.dropdown-custom-list-wrapper {
    overflow-y: auto;
}

.dropdown-custom-list {
    display: flex;
    flex-direction: column;
}

.dropdown-custom-item {
    font-size: 16px;
    color: #717171;
    font-family: 'Lato', sans-serif;
    align-self: stretch;
    padding: 8px 14px;
    background: var(--Neutral-White, #fff);
    border-radius: 24px;
    outline-offset: -1px;
    align-items: center;
    cursor: pointer;
}

.dropdown-custom-item:hover,
.dropdown-custom-item.selected {
    background: #77CCD126;
}

.selected-custom-name {
    font-size: 16px;
    color: #3E3A39;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    flex-grow: 1;
    display: block;
    text-align: left
}

.dropdown-custom-item-disabled {
    color: #bdbdbd;
    background: #f7f7f7;
    cursor: not-allowed;
    pointer-events: none;
}

.input-group .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;
}

.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,
.wrapper-border .input-group-custom .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,
.wrapper-border .input-group-custom .form-control.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);
}

.input-group .form-control:focus,
.input-group:focus-within .input-group-text {
    background: #fff;
    outline: none;
    box-shadow: none;
    border: 1px solid #E8E8E8;
}

.input-group .form-control {
    border-radius: 0 !important;
}

/* ================================
   DROPDOWN PILIH BANK (SELECT STYLE)
================================ */
.select-bank-wrapper {
    margin-bottom: 21px;
}

.dropdown-bank-select-wrapper {
    width: 100%;
    position: relative;
}

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   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;
    text-align: left;
}

.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;
}

.checkbox-wrapper input {
    width: 18px;
    height: auto;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #717171;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.checkbox-wrapper input:checked {
    background-color: #00A4CA;
    border-color: #00A4CA;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* Upload KTP Custom State */
.kpr-upload-box.has-file {
    background: #F7F7F7;
    outline: 1px solid var(--Neutral-Grey-100, #E8E8E8);
    outline-offset: -1px;
}

.kpr-upload-file-name {
    color: var(--Neutral-Grey-300, #3E3A39);
    font-size: 16px;
    font-family: Lato, Arial, sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.kpr-upload-progress {
    width: 239px;
    height: 4px;
    position: relative;
    margin-bottom: 8px;
}

.kpr-upload-progress-bg {
    width: 100%;
    height: 4px;
    background: var(--Neutral-Grey-100, #E8E8E8);
    border-radius: 999px;
    position: absolute;
    left: 0;
    top: 0;
}

.kpr-upload-progress-bar {
    height: 4px;
    background: var(--Neutral-Grey-200, #717171);
    border-radius: 999px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s;
}

.kpr-upload-file-size {
    color: var(--Neutral-Grey-200, #717171);
    font-size: 14px;
    font-family: Lato, Arial, sans-serif;
    font-weight: 400;
}

.kpr-upload-preview {
    max-width: 250px;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* Loading overlay for KPR form */
.kpr-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpr-loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: kpr-spin 1s linear infinite;
}

@keyframes kpr-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 480px) {
    .header-section {
        padding: 20px 0;
    }

    .checkbox-wrapper input {
        width: 65px;
    }

    .form-section {
        padding: 0 0 40px 0;
    }

    .form-section-takeover .big-container {
        padding: 0;
    }

    .kpr-title {
        font-size: 24px;
    }
}