/* OTP Modal Overlay */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* Base styling inherited from theme, but we add specifics here */
.otp-modal-dialog {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.otp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.otp-modal-close:hover {
    color: #333;
}

.otp-modal-content {
    padding: 40px;
}

.otp-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.otp-modal-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.otp-step {
    transition: opacity 0.3s ease-in-out;
}

.otp-step.d-none {
    display: none !important;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

/* Ensure our inputs are styled nicely */
#otp-phone-input,
#otp-code-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.2s ease-in-out;
    box-sizing: border-box;
}

#otp-phone-input:focus,
#otp-code-input:focus {
    border-color: #0d6efd; /* Use primary color */
    outline: none;
}

.otp-submit-btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.otp-submit-btn:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    color: #fff !important;
}

#otp-countdown-text {
    font-weight: 600;
    color: #e53e3e;
}
