/* =========================================
   استایل کانتینر اصلی فرم OTP
   ========================================= */
.smsir-form-container {
    max-width: 420px;
    margin: 30px auto !important;
    padding: 35px 30px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.smsir-form-container h2 {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    font-size: 1.4em !important;
    color: #1a202c !important;
    font-weight: 700 !important;
}

/* =========================================
   استایل مراحل (گام‌ها)
   ========================================= */
.smsir-step {
    animation: smsirFadeIn 0.3s ease !important;
}

.smsir-step label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    font-size: 0.95em !important;
}

/* =========================================
   استایل فیلدهای ورودی
   ========================================= */
.smsir-input {
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 1em !important;
    color: #2d3748 !important;
    background: #f7fafc !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 2px !important;
    outline: none !important;
}

.smsir-input:focus {
    border-color: #4268C1 !important;
    box-shadow: 0 0 0 3px rgba(66, 104, 193, 0.15) !important;
    background: #fff !important;
}

/* استایل textarea */
textarea.smsir-input {
    resize: vertical !important;
    min-height: 80px !important;
}

/* =========================================
   استایل دکمه‌ها (رنگ #4268C1 با !important)
   ========================================= */
.smsir-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    margin-bottom: 10px !important;
    background: #4268C1 !important;
    color: #fff !important;
    border: 2px solid #4268C1 !important;
    border-radius: 12px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: normal !important;
}

.smsir-btn:hover {
    background: #3559A5 !important;
    border-color: #3559A5 !important;
}

.smsir-btn:active {
    transform: scale(0.98) !important;
}

.smsir-btn:disabled {
    background: #a0aec0 !important;
    border-color: #a0aec0 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* دکمه لینک مانند (ارسال مجدد) */
.smsir-btn-link {
    background: transparent !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 5px !important;
    font-weight: 500 !important;
}

.smsir-btn-link:hover {
    background: #edf2f7 !important;
    color: #2d3748 !important;
}

/* =========================================
   استایل تایمر و وضعیت‌ها
   ========================================= */
.smsir-status {
    display: block !important;
    margin-top: 8px !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    text-align: center !important;
    min-height: 20px !important;
}

.smsir-status:empty {
    display: none !important;
}

.smsir-timer {
    display: block !important;
    text-align: center !important;
    margin-top: 6px !important;
    font-size: 0.9em !important;
    color: #e53e3e !important;
    font-weight: 500 !important;
}

/* =========================================
   استایل نتیجه نهایی
   ========================================= */
.smsir-result-message {
    text-align: center !important;
    font-size: 1em !important;
    margin: 10px 0 !important;
}

/* =========================================
   لینک ورود با رمز عبور
   ========================================= */
.smsir-show-password-login {
    display: inline-block !important;
    cursor: pointer !important;
    color: #4268C1 !important;
    font-weight: 500 !important;
    margin-top: 12px !important;
    transition: color 0.2s !important;
}

.smsir-show-password-login:hover {
    color: #2c5282 !important;
    text-decoration: underline !important;
}

/* =========================================
   مرحله تکمیل اطلاعات (مرحله سوم)
   ========================================= */
.smsir-completion-fields {
    margin-bottom: 16px !important;
}

.smsir-completion-fields label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
}

.smsir-completion-fields .required {
    color: #e53e3e !important;
}

/* =========================================
   انیمیشن محو شدن
   ========================================= */
@keyframes smsirFadeIn {
    from { opacity: 0 !important; transform: translateY(10px) !important; }
    to   { opacity: 1 !important; transform: translateY(0) !important; }
}

/* =========================================
   استایل بخش تست ادمین
   ========================================= */
#smsir_test_send {
    padding: 8px 18px !important;
    font-size: 0.95em !important;
    vertical-align: middle !important;
    background: #4268C1 !important;
    border-color: #4268C1 !important;
    color: #fff !important;
}

#smsir_test_send:hover {
    background: #3559A5 !important;
}

#smsir_test_result {
    display: inline-block !important;
    vertical-align: middle !important;
    font-weight: 500 !important;
    margin-right: 12px !important;
}

/* =========================================
   استایل دکمه ارسال کد در فرم ثبت‌نام ووکامرس
   ========================================= */
.smsir-send-otp-btn[data-target] {
    margin-top: 8px !important;
    display: inline-block !important;
    width: auto !important;
    padding: 10px 15px !important;
    background: #4268C1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.9em !important;
}

.smsir-send-otp-btn[data-target]:hover {
    background: #3559A5 !important;
}

.smsir-send-otp-btn[data-target]:disabled {
    background: #a0aec0 !important;
    cursor: not-allowed !important;
}

/* وضعیت inline کنار دکمه */
.smsir-otp-status-inline {
    display: inline-block !important;
    margin-right: 10px !important;
    font-weight: 500 !important;
    font-size: 0.9em !important;
}

/* =========================================
   استایل صفحه ورود وردپرس (wp-login)
   ========================================= */
body.login #smsir-otp-login-form-wrapper {
    margin-bottom: 20px !important;
}

/* =========================================
   استایل صفحه حساب کاربری ووکامرس
   ========================================= */
.woocommerce-account .smsir-form-container {
    margin: 20px auto 40px !important;
}

/* =========================================
   ریسپانسیو
   ========================================= */
@media (max-width: 500px) {
    .smsir-form-container {
        margin: 20px 15px !important;
        padding: 25px 20px !important;
    }
}