/* بایو پیام - استایل‌های عمومی */
:root {
    --bp-primary: #2c7a2f;
    --bp-primary-light: #3fa644;
    --bp-danger: #e74c3c;
    --bp-success: #27ae60;
    --bp-gray: #f5f5f5;
    --bp-border: #ddd;
    --bp-text: #333;
    --bp-radius: 8px;
    --bp-transition: 0.25s ease;
}

/* کانتینر اصلی فرم */
.bio-payam-form-wrap {
    max-width: 380px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    font-family: 'Tahoma', 'Vazirmatn', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.bio-payam-form-wrap h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--bp-text);
    font-size: 1.4em;
}

/* مراحل فرم */
.bio-step {
    display: none;
}
.bio-step.active {
    display: block;
}

/* گروه فیلد */
.bio-field-group {
    margin-bottom: 16px;
}

.bio-field-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

/* اینپوت‌ها */
.bio-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--bp-border);
    border-radius: var(--bp-radius);
    font-size: 1em;
    font-family: inherit;
    direction: ltr;
    text-align: center;
    box-sizing: border-box;
    transition: border-color var(--bp-transition);
    outline: none;
}

.bio-input:focus {
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 3px rgba(44,122,47,0.12);
}

/* دکمه‌ها */
.bio-btn {
    width: 100%;
    padding: 13px;
    background: var(--bp-primary);
    color: #fff;
    border: none;
    border-radius: var(--bp-radius);
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--bp-transition), transform 0.1s;
    margin-top: 4px;
}

.bio-btn:hover  { background: var(--bp-primary-light); }
.bio-btn:active { transform: scale(0.98); }
.bio-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.bio-btn-link {
    background: none;
    border: none;
    color: var(--bp-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    text-decoration: underline;
    padding: 0;
}

/* تب‌های لاگین/ثبت‌نام */
.bio-tabs {
    display: flex;
    border-bottom: 2px solid var(--bp-border);
    margin-bottom: 24px;
}

.bio-tabs .bio-tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
    color: #777;
    transition: color var(--bp-transition), border-color var(--bp-transition);
}

.bio-tabs .bio-tab-btn.active {
    color: var(--bp-primary);
    border-bottom-color: var(--bp-primary);
    font-weight: bold;
}

/* تایمر */
.bio-timer-wrap {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9em;
    color: #777;
}

.bio-timer {
    font-weight: bold;
    color: var(--bp-primary);
}

/* پیام‌ها */
.bio-message {
    padding: 10px 14px;
    border-radius: var(--bp-radius);
    margin: 12px 0;
    font-size: 0.9em;
    display: none;
}

.bio-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bio-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bio-message.show {
    display: block;
}

/* اینپوت کد OTP */
.bio-otp-input {
    letter-spacing: 6px;
    font-size: 1.4em;
    font-weight: bold;
}

/* لینک‌های پایین */
.bio-form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88em;
    color: #666;
}

/* تب‌های ووکامرس */
.bio-payam-woo-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    gap: 4px;
}

.bio-payam-woo-tabs .bio-tab {
    flex: 1;
    padding: 10px;
    background: var(--bp-gray);
    border: 1px solid var(--bp-border);
    border-bottom: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    border-radius: 4px 4px 0 0;
    transition: background var(--bp-transition);
}

.bio-payam-woo-tabs .bio-tab.active {
    background: #fff;
    border-bottom-color: #fff;
    color: var(--bp-primary);
    font-weight: bold;
}

/* اسپینر لودینگ */
.bio-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bp-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .bio-payam-form-wrap {
        padding: 20px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
