/* ------------------------------------------------------------------ */
/*  Credit Verification Modal                                         */
/* ------------------------------------------------------------------ */

.otp-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.otp-modal .modal-header {
    background-color: var(--finesa-color-3);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.otp-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.otp-modal .modal-body {
    padding: 1.5rem;
}

.otp-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--finesa-color-5);
    font-family: var(--finesa-font-family-1);
}

/* OTP Input */
.otp-inputs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--finesa-color-10);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input:focus {
    border-color: var(--finesa-color-1);
    box-shadow: 0 0 0 3px rgba(0,169,224,0.15);
}

.otp-input.error {
    border-color: var(--finesa-color-2);
    box-shadow: 0 0 0 3px rgba(235,87,87,0.15);
}

.otp-input.success {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
}

/* Error message */
.otp-error {
    text-align: center;
    color: var(--finesa-color-2);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    min-height: 1.4em;
    font-family: var(--finesa-font-family-1);
}

/* Step indicator */
.otp-step-info {
    text-align: center;
    color: var(--finesa-color-11);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: var(--finesa-font-family-1);
}

/* OTP modal buttons — match Finesa .btnPrimary style */
.otp-modal .btn-primary {
    background-color: var(--finesa-color-1);
    border: 2px solid var(--finesa-color-1);
    border-radius: 50px;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.1);
    color: var(--finesa-color-5);
    font-size: 16px;
    font-weight: bolder;
    padding: 12px 22px;
    font-family: var(--finesa-font-family-1);
}

.otp-modal .btn-primary:hover {
    background: var(--finesa-color-5);
    border: 2px solid var(--finesa-color-1);
    color: var(--finesa-color-1);
}

.otp-modal .btn-primary:disabled {
    background-color: var(--finesa-color-10);
    border-color: var(--finesa-color-10);
    color: var(--finesa-color-11);
    cursor: not-allowed;
}

/* Credit reference image */
.credit-ref-image-container {
    text-align: center;
    margin: 1rem 0 0.25rem;
}

.credit-ref-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .credit-ref-image {
        max-width: 100%;
    }
}

/* Success state after OTP validation */
.otp-success-message {
    text-align: center;
    color: #198754;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    font-family: var(--finesa-font-family-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.otp-success-message .otp-check-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #198754;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}
