/* ==========================================================================
   AROOSYAR • فرم ورود/عضویت OTP + کارت شناور استپ‌ها
   ========================================================================== */
.page-template-page-blank header , .page-template-page-blank footer{
    display: none;
}
.aroosyar-auth-shell{
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px 0;
    min-height: 90vh;
}
/* ---------------- کارت شناور استپ‌ها ---------------- */
.aroosyar-stepper-card{
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #E3ECF2;
    border-radius: 24px;
    padding: 26px 22px;
    box-shadow: 0 20px 50px -18px rgba(15, 21, 51, .28);
    align-self: center;
    position: absolute;
    right: 20%;

}
.aroosyar-stepper-eyebrow{
    font-size: .74rem;
    font-weight: 800;
    color: #7099d6;
    letter-spacing: .02em;
    margin-bottom: 18px;
}
.aroosyar-step.is-active{
    background: #c3dbff59;
}
.aroosyar-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
}

.aroosyar-step-track{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aroosyar-step-dot{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 800;
    background: #F1F5F9;
    color: #A7B3C9;
    border: 2px solid #E3ECF2;
    transition: background .25s, border-color .25s, color .25s;
    position: relative;
}
.aroosyar-step-check{ display: none; font-style: normal; }
.aroosyar-step-num{ display: block; font-style: normal; }
.aroosyar-step-line{
    width: 2px;
    flex: 1;
    min-height: 34px;
    background: #E3ECF2;
    margin: 2px 0;
    transition: background .3s;
    display: none;
}
.return-home{
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7099d6, #A3BEE7);
    color:#fff;
    padding: 10px;
    border-radius: 10px;
}
.return-home svg{
    transform: rotate(90deg);
    margin-left: 20px;
}
.aroosyar-step-text{ padding-bottom: 5px; padding-top: 5px; }
.aroosyar-step:last-child .aroosyar-step-text{ padding-bottom: 0; }
.aroosyar-step-text b{
    display: block;
    font-size: .86rem;
    font-weight: 700;
    color: #A7B3C9;
    transition: color .25s;
    margin-bottom: 2px;
}
.aroosyar-step-text span{
    display: block;
    font-size: .74rem;
    color: #C3CCDE;
    line-height: 1.7;
    transition: color .25s;
}

/* حالت انجام‌شده */
.aroosyar-step.is-done .aroosyar-step-dot{
    background: linear-gradient(135deg, #7099d6, #A3BEE7);
    border-color: transparent;
    color: #fff;
}
.aroosyar-step.is-done .aroosyar-step-check{ display: block; }
.aroosyar-step.is-done .aroosyar-step-num{ display: none; }
.aroosyar-step.is-done .aroosyar-step-line{ background: linear-gradient(180deg, #7099d6, #A3BEE7); }
.aroosyar-step.is-done .aroosyar-step-text b{ color: #0F1533; }
.aroosyar-step.is-done .aroosyar-step-text span{ color: #7C88A8; }

/* حالت فعلی (جاری) */
.aroosyar-step.is-active .aroosyar-step-dot{
    background: #fff;
    border-color: #7099d6;
    color: #7099d6;
    box-shadow: 0 0 0 5px rgba(163, 190, 231, .3);
}
.aroosyar-step.is-active .aroosyar-step-text b{ color: #0F1533; }
.aroosyar-step.is-active .aroosyar-step-text span{ color: #7C88A8; }

.aroosyar-step-hidden{
    display: none;
}
.aroosyar-step-appear{
    display: flex;
    animation: aroosyarStepAppear .35s ease;
}
@keyframes aroosyarStepAppear{
    from{ opacity: 0; transform: translateY(-6px); }
    to{ opacity: 1; transform: translateY(0); }
}

/* ---------------- کارت فرم ---------------- */
.aroosyar-auth-card{
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid #E3ECF2;
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 20px 50px -18px rgba(15, 21, 51, .22);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aroosyar-auth-head{ margin-bottom: 22px; text-align: center; }
.aroosyar-auth-head h2{
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F1533;
    margin: 0 0 6px;
}
.aroosyar-auth-head p{
    font-size: .84rem;
    color: #7C88A8;
    margin: 0;
    line-height: 1.8;
}
.aroosyar-auth-head p b{ color: #0F1533; }

.aroosyar-otp-wrap{ direction: rtl; }

.aroosyar-form-row{ margin-bottom: 16px; }
.aroosyar-form-row label{
    display: block;
    font-weight: 700;
    font-size: .82rem;
    color: #43507A;
    margin-bottom: 7px;
}
.aroosyar-otp-wrap input[type="text"],
.aroosyar-otp-wrap input[type="tel"]{
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E3ECF2;
    border-radius: 14px;
    font-size: .92rem;
    font-family: inherit;
    color: #0F1533;
    box-sizing: border-box;
    background: #F7FAFC;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.aroosyar-otp-wrap input[type="text"]:focus,
.aroosyar-otp-wrap input[type="tel"]:focus{
    outline: none;
    border-color: #A3BEE7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(163, 190, 231, .25);
}
.aroosyar-otp-code-input{
    text-align: center;
    letter-spacing: .5em;
    font-size: 1.15rem !important;
    font-weight: 800;
}

.aroosyar-auth-divider{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 16px;
    color: #A7B3C9;
    font-size: .76rem;
    font-weight: 700;
}
.aroosyar-auth-divider::before,
.aroosyar-auth-divider::after{
    content: "";
    flex: 1;
    height: 1px;
    background: #E3ECF2;
}

.aroosyar-role-choice{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aroosyar-role-card{
    position: relative;
    display: block;
    cursor: pointer;
}
.aroosyar-role-card input{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.aroosyar-role-card-inner{
    display: block;
    border: 1.5px solid #E3ECF2;
    border-radius: 14px;
    padding: 12px 16px;
    transition: border-color .2s, background .2s;
}
.aroosyar-role-card-inner b{
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #0F1533;
}
.aroosyar-role-card-inner span{
    display: block;
    font-size: .74rem;
    color: #7C88A8;
    margin-top: 2px;
}
.aroosyar-role-card input:checked + .aroosyar-role-card-inner{
    border-color: #7099d6;
    background: #F4F8FB;
    box-shadow: 0 0 0 3px rgba(163, 190, 231, .22);
}

.aroosyar-submit-btn{
    background: linear-gradient(135deg, #7099d6, #A3BEE7);
    color: #fff;
    border: none;
    padding: 13px 25px;
    border-radius: 14px;
    font-size: .92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 10px 24px -10px rgba(112, 153, 214, .6);
}
.aroosyar-submit-btn:hover{ transform: translateY(-2px); }
.aroosyar-submit-btn--block{ width: 100%; }

.aroosyar-resend-btn{
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: #A7B3C9;
    font-size: .78rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
}
.aroosyar-resend-btn:not(:disabled){ color: #7099d6; font-weight: 700; }
.aroosyar-resend-btn:disabled{ cursor: default; }

.aroosyar-otp-error{
    background: #fdeeee;
    color: #a3232f;
    border: 1px solid #f3c2c5;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .8rem;
    margin-bottom: 14px;
}
.aroosyar-otp-success{
    background: #eaf7ee;
    color: #1e7a34;
    border: 1px solid #b9e6c4;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .8rem;
    margin-bottom: 14px;
}

/* نسخهٔ فشردهٔ موبایل (فقط تو صفحات کوچیک نمایش داده می‌شه) */
.aroosyar-stepper-mobile-bar{ display: none; }
.aroosyar-stepper-mobile-head{
    font-size: .82rem;
    font-weight: 700;
    color: #0F1533;
    margin-bottom: 10px;
}
.aroosyar-progress-track{
    height: 6px;
    background: #E3ECF2;
    border-radius: 10px;
    overflow: hidden;
}
.aroosyar-progress-fill{
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7099d6, #A3BEE7);
    border-radius: 10px;
    transition: width .35s ease;
}

/* ---------------- ریسپانسیو موبایل ---------------- */
@media (max-width: 767px){
    .aroosyar-auth-shell{
        flex-direction: column;
        gap: 16px;
        padding: 10px 4px;
    }
    .aroosyar-stepper-card{
        width: 100%;
        max-width: 380px;
        padding: 18px 20px;
        border-radius: 18px;
        position: unset;
    }
    .aroosyar-stepper-eyebrow{ display: none; }
    .aroosyar-stepper-mobile-bar{ display: block; }
    .aroosyar-step{ display: none !important; } /* نسخهٔ عمودی کامل فقط تو دسکتاپ */

    .aroosyar-auth-card{ padding: 26px 20px; border-radius: 18px; }
}
