.wm-otp-container {
    max-width: 420px;
    margin: 40px auto;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.wm-otp-box {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.wm-otp-header {
    text-align: center;
    margin-bottom: 25px;
}

.wm-otp-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.wm-otp-header p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

.wm-modern-form .wm-form-group {
    margin-bottom: 20px;
}

.wm-modern-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.wm-modern-form input[type="text"],
.wm-modern-form input[type="tel"],
.wm-modern-form input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    background-color: #fcfcfc;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Customizing Placeholders to look distinctively gray */
.wm-modern-form input::-webkit-input-placeholder {
    color: #a0a0a0;
    font-size: 13px;
}
.wm-modern-form input::-moz-placeholder {
    color: #a0a0a0;
    font-size: 13px;
}
.wm-modern-form input:-ms-input-placeholder {
    color: #a0a0a0;
    font-size: 13px;
}

.wm-modern-form input:focus {
    background-color: #ffffff;
    border-color: #888;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
    outline: none;
}

/* Remove increment/decrement arrows from number inputs (Chrome, Safari, Edge, Opera) */
.wm-modern-form input[type=number]::-webkit-inner-spin-button, 
.wm-modern-form input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Remove increment/decrement arrows from number inputs (Firefox) */
.wm-modern-form input[type=number] {
    -moz-appearance: textfield;
}

.wm-letter-spaced {
    letter-spacing: 12px;
    font-size: 20px !important;
    text-align: center;
    font-weight: bold;
}

/* Captcha Integrated Design - Made 20% Larger */
.wm-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-captcha-wrapper input {
    flex: 1;
    text-align: center;
}

.wm-captcha-image-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 2px 8px;
    height: 56px; 
    box-sizing: border-box;
    overflow: hidden;
}

.wm-captcha-image-box img {
    height: 100%;
    width: auto;
    transform: scale(1.15); 
    transform-origin: center;
    border-radius: 6px;
    transition: opacity 0.3s;
}

#wm-refresh-captcha {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 5px 0 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    z-index: 2;
}

#wm-refresh-captcha:hover {
    color: #000;
}

/* Timer and Resend Elements */
.wm-otp-timer-action {
    text-align: right;
    font-size: 13px;
    margin-bottom: 20px;
    min-height: 20px;
}

#otp-countdown-wrapper {
    color: #666;
}

#otp-timer {
    color: #e74c3c;
    font-weight: bold;
    display: inline-block;
    min-width: 25px;
    text-align: center;
}

#wm-otp-resend-btn {
    background: none;
    border: none;
    color: #0073aa;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    transition: color 0.2s;
}

#wm-otp-resend-btn:hover {
    color: #005177;
    text-decoration: underline;
}

/* Primary Button */
.wm-btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #212121;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wm-btn-primary:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.wm-btn-primary:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Subtle Text-Only button for 'Edit Mobile Number' */
#wm-otp-back-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #888 !important;
    text-decoration: underline !important;
    font-size: 13px !important;
    padding: 0 !important;
    margin-top: 15px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

#wm-otp-back-btn:hover {
    color: #333 !important;
    background: transparent !important;
}

/* Message Box */
.wm-message-box {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.wm-message-box.success {
    background-color: #edfff4;
    color: #1aa053;
    border: 1px solid #c4f3d6;
}

.wm-message-box.error {
    background-color: #fff2f2;
    color: #d83c3c;
    border: 1px solid #fbd6d6;
}