/* ==========================================================================
   Common OTP verification modal — dùng lại được ở nhiều form (mở tài khoản,
   sau này có thể ghép thêm ở nơi khác). Xem partials/common/otp-modal.htm.
   ========================================================================== */

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

.bt-otp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 32, 0.5);
}

.bt-otp-modal__box {
    position: relative;
    width: 500px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 24px;
    border: 1px solid #E7E0D2;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 20px 60px rgba(35, 31, 32, 0.2);
}

.bt-otp-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bt-otp-modal__title {
    margin: 0;
    color: #0E6666;
    font-family: "Minion Pro", "Noto Serif", "Times New Roman", serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.bt-otp-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #C5A059;
    border-radius: 50%;
    background: none;
    color: #C5A059;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.bt-otp-modal__close:hover {
    opacity: .75;
}

.bt-otp-modal__message {
    margin: 0;
    color: #231F20;
    font-family: var(--font-family-secondary);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}

.bt-otp-modal__message strong {
    color: #018D8D;
    font-weight: 600;
}

.bt-otp-modal__inputs {
    display: flex;
    gap: 12px;
}

.bt-otp-modal__input {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    border: 1px solid #E7E0D2;
    border-radius: 8px;
    text-align: center;
    color: #231F20;
    font-family: var(--font-family-secondary);
    font-size: 22px;
    font-weight: 600;
}

.bt-otp-modal__input:focus {
    outline: none;
    border-color: #CFB36C;
    border-width: 1.4px;
}

.bt-otp-modal__error {
    margin: 0;
    color: #C0392B;
    font-family: var(--font-family-secondary);
    font-size: 14px;
}

.bt-otp-modal__resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    color: #4B4B4B;
    font-family: var(--font-family-secondary);
    font-size: 15px;
    font-weight: 300;
}

.bt-otp-modal__resend {
    background: none;
    border: none;
    padding: 0;
    color: #785F22;
    font-family: var(--font-family-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.bt-otp-modal__resend:disabled {
    color: #B8ABAB;
    cursor: not-allowed;
}

.bt-otp-modal__confirm {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    border: none;
    border-radius: 60px;
    background: linear-gradient(90deg, #0E6666 0%, #004747 100%);
    color: #FFFFFF;
    font-family: "Minion Pro", "Noto Serif", "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s ease;
}

.bt-otp-modal__confirm:hover,
.bt-otp-modal__confirm:focus {
    opacity: .85;
}

.bt-otp-modal__confirm:disabled {
    opacity: .6;
    cursor: not-allowed;
}

body.bt-otp-modal-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .bt-otp-modal__box {
        gap: 20px;
        padding: 24px 16px;
    }

    .bt-otp-modal__inputs {
        gap: 8px;
    }

    .bt-otp-modal__input {
        height: 48px;
        font-size: 18px;
    }
}
