.olygam-reg{
    --olygam-orange:#ff9900;
    --olygam-orange-2:#ffb13b;
    --olygam-blue:#4b5fd7;
    --olygam-purple:#9a35cf;
    --olygam-text:#30384c;
    --olygam-muted:#778198;
    --olygam-soft:#f5f7ff;
    --olygam-line:#e5eaf5;
    --olygam-green:#18a766;
    position:relative;
    isolation:isolate;
    direction:rtl;
    max-width:1120px;
    margin:34px auto;
    padding:34px;
    overflow:hidden;
    border:1px solid rgba(229,234,245,.95);
    border-radius:34px;
    background:
        radial-gradient(circle at 10% 12%, rgba(255,153,0,.16), transparent 24%),
        radial-gradient(circle at 88% 6%, rgba(75,95,215,.14), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #ffffff 88%);
    box-shadow:0 24px 60px rgba(45,58,120,.12);
    color:var(--olygam-text);
    font-family:inherit;
}
.olygam-reg,
.olygam-reg *{
    box-sizing:border-box;
}
.olygam-reg__decor{
    position:absolute;
    z-index:-1;
    border-radius:999px;
    filter:blur(.2px);
    opacity:.85;
    pointer-events:none;
}
.olygam-reg__decor--one{
    width:190px;
    height:190px;
    right:-58px;
    top:-70px;
    background:linear-gradient(135deg, rgba(255,153,0,.28), rgba(255,255,255,0));
}
.olygam-reg__decor--two{
    width:230px;
    height:230px;
    left:-82px;
    bottom:-92px;
    background:linear-gradient(135deg, rgba(154,53,207,.18), rgba(75,95,215,.14));
}
.olygam-reg__head{
    text-align:center;
    max-width:760px;
    margin:0 auto 22px;
}
.olygam-reg__kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    margin-bottom:12px;
    border:1px solid rgba(255,153,0,.22);
    border-radius:999px;
    background:rgba(255,153,0,.09);
    color:var(--olygam-orange);
    font-size:13px;
    font-weight:800;
    letter-spacing:.2px;
}
.olygam-reg__kicker:before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--olygam-orange);
    box-shadow:0 0 0 5px rgba(255,153,0,.12);
}
.olygam-reg__head h2{
    margin:0 0 10px !important;
    color:#2f374b !important;
    font-size:34px !important;
    line-height:1.55 !important;
    font-weight:950 !important;
    letter-spacing:-.7px;
}
.olygam-reg__head p{
    margin:0 auto !important;
    max-width:690px;
    color:var(--olygam-muted) !important;
    font-size:15px !important;
    line-height:2 !important;
}
.olygam-reg__alert{
    max-width:760px;
    margin:0 auto 18px;
    padding:14px 16px;
    border-radius:18px;
    font-size:14px;
    font-weight:700;
    line-height:1.9;
    text-align:center;
}
.olygam-reg__alert--success{
    border:1px solid #bfeed7;
    background:#eefbf4;
    color:#147c4a;
}
.olygam-reg__alert--error{
    border:1px solid #ffd0d0;
    background:#fff1f1;
    color:#b32626;
}
.olygam-reg__steps{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    max-width:600px;
    margin:0 auto 26px;
}
.olygam-reg__line{
    flex:1;
    max-width:160px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(255,153,0,.55), rgba(75,95,215,.25));
}
.olygam-reg__step{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:142px;
    padding:9px 13px;
    border-radius:999px;
    border:1px solid var(--olygam-line);
    background:#fff;
    color:#8992a7;
    box-shadow:0 10px 24px rgba(45,58,120,.06);
}
.olygam-reg__step span{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#f1f4fb;
    color:#8892a8;
    font-weight:900;
}
.olygam-reg__step b{
    font-size:13px;
    font-weight:900;
}
.olygam-reg__step.is-active{
    border-color:rgba(255,153,0,.35);
    color:#31394e;
}
.olygam-reg__step.is-active span{
    background:linear-gradient(135deg, var(--olygam-orange), var(--olygam-orange-2));
    color:#fff;
    box-shadow:0 9px 18px rgba(255,153,0,.24);
}
.olygam-reg__phone-step[hidden],
.olygam-reg__form[hidden]{
    display:none !important;
}
.olygam-reg__phone-card,
.olygam-reg__form{
    max-width:860px;
    margin:0 auto;
    border:1px solid rgba(229,234,245,.96);
    border-radius:28px;
    background:rgba(255,255,255,.94);
    box-shadow:0 20px 45px rgba(45,58,120,.10);
}
.olygam-reg__phone-card{
    display:grid;
    grid-template-columns:auto 1fr minmax(230px, 320px) auto;
    align-items:center;
    gap:18px;
    padding:25px;
}
.olygam-reg__phone-icon{
    display:grid;
    place-items:center;
    width:66px;
    height:66px;
    border-radius:22px;
    color:#fff;
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,.42), transparent 28%),
        linear-gradient(135deg, var(--olygam-orange), var(--olygam-purple));
    font-size:27px;
    box-shadow:0 16px 30px rgba(255,153,0,.26);
}
.olygam-reg__phone-content h3{
    margin:0 0 4px !important;
    color:#30384c !important;
    font-size:21px !important;
    line-height:1.65 !important;
    font-weight:950 !important;
}
.olygam-reg__phone-content p{
    margin:0 !important;
    color:var(--olygam-muted) !important;
    font-size:14px !important;
    line-height:1.9 !important;
}
.olygam-reg__field{
    display:flex !important;
    flex-direction:column !important;
    gap:8px;
    min-width:0;
    margin:0 !important;
    color:var(--olygam-text);
    font-size:14px;
    font-weight:850;
    text-align:right;
}
.olygam-reg__field > span{
    display:block;
    color:#455069;
    font-size:13px;
    font-weight:900;
    line-height:1.6;
}
.olygam-reg__field b{
    color:var(--olygam-orange);
    font-weight:950;
}
.olygam-reg input[type="text"],
.olygam-reg input[type="tel"],
.olygam-reg select,
.olygam-reg textarea{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:52px;
    margin:0 !important;
    padding:12px 15px !important;
    border:1px solid var(--olygam-line) !important;
    border-radius:17px !important;
    outline:none !important;
    background:#fff !important;
    color:#293145 !important;
    font-family:inherit !important;
    font-size:14px !important;
    font-weight:700 !important;
    line-height:1.6 !important;
    box-shadow:0 10px 25px rgba(45,58,120,.045) !important;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    direction:rtl;
    text-align:right;
    appearance:auto;
}
.olygam-reg input[type="tel"],
.olygam-reg input[name="national_id"]{
    direction:ltr;
    text-align:left;
    letter-spacing:.5px;
}
.olygam-reg select{
    cursor:pointer;
}
.olygam-reg textarea{
    min-height:104px;
    resize:vertical;
}
.olygam-reg input::placeholder,
.olygam-reg textarea::placeholder{
    color:#a6afc0;
    font-weight:650;
}
.olygam-reg input:focus,
.olygam-reg select:focus,
.olygam-reg textarea:focus{
    border-color:var(--olygam-orange) !important;
    box-shadow:0 0 0 4px rgba(255,153,0,.13), 0 10px 25px rgba(45,58,120,.045) !important;
}
.olygam-reg__next,
.olygam-reg__submit,
.olygam-reg__back{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    border:0;
    border-radius:17px;
    font-family:inherit;
    font-size:14px;
    font-weight:950;
    line-height:1.4;
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space:nowrap;
}
.olygam-reg__next,
.olygam-reg__submit{
    padding:0 24px;
    color:#fff;
    background:linear-gradient(135deg, var(--olygam-orange), var(--olygam-orange-2));
    box-shadow:0 16px 32px rgba(255,153,0,.25);
}
.olygam-reg__next:hover,
.olygam-reg__submit:hover{
    transform:translateY(-2px);
    filter:saturate(1.04);
}
.olygam-reg__next:active,
.olygam-reg__submit:active,
.olygam-reg__back:active{
    transform:translateY(0);
}
.olygam-reg__phone-error{
    grid-column:3 / 5;
    min-height:20px;
    color:#c22b2b;
    font-size:12px;
    font-weight:800;
    line-height:1.7;
}
.olygam-reg__form{
    padding:24px;
}
.olygam-reg__mobile-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:0 0 20px;
    padding:14px 16px;
    border:1px solid rgba(255,153,0,.18);
    border-radius:20px;
    background:linear-gradient(135deg, rgba(255,153,0,.08), rgba(75,95,215,.06));
}
.olygam-reg__mobile-summary span{
    display:block;
    margin-bottom:3px;
    color:var(--olygam-muted);
    font-size:12px;
    font-weight:850;
}
.olygam-reg__mobile-summary strong{
    display:block;
    color:#30384c;
    font-size:18px;
    font-weight:950;
    direction:ltr;
    text-align:left;
}
.olygam-reg__back{
    min-height:42px;
    padding:0 16px;
    border:1px solid rgba(75,95,215,.18);
    background:#fff;
    color:var(--olygam-blue);
    box-shadow:0 8px 18px rgba(45,58,120,.06);
}
.olygam-reg__grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    align-items:start;
}
.olygam-reg__field--wide{
    grid-column:1 / -1;
}
.olygam-reg__date-selects{
    display:grid;
    grid-template-columns:1fr 1.2fr 1.1fr;
    gap:10px;
}
.olygam-reg__submit{
    width:100%;
    margin-top:20px;
    min-height:58px;
    font-size:16px;
    border-radius:19px;
}
@media (max-width: 980px){
    .olygam-reg{
        padding:26px 18px;
        border-radius:28px;
    }
    .olygam-reg__phone-card{
        grid-template-columns:auto 1fr;
    }
    .olygam-reg__field--phone-only,
    .olygam-reg__next,
    .olygam-reg__phone-error{
        grid-column:1 / -1;
    }
}
@media (max-width: 700px){
    .olygam-reg{
        margin:22px auto;
        padding:22px 14px;
        border-radius:24px;
    }
    .olygam-reg__head h2{
        font-size:25px !important;
    }
    .olygam-reg__steps{
        gap:8px;
    }
    .olygam-reg__line{
        max-width:60px;
    }
    .olygam-reg__step{
        min-width:auto;
        padding:8px 10px;
    }
    .olygam-reg__step b{
        display:none;
    }
    .olygam-reg__phone-card,
    .olygam-reg__form{
        padding:18px;
        border-radius:22px;
    }
    .olygam-reg__phone-card{
        grid-template-columns:1fr;
        text-align:center;
    }
    .olygam-reg__phone-icon{
        margin:0 auto;
    }
    .olygam-reg__grid{
        grid-template-columns:1fr;
        gap:13px;
    }
    .olygam-reg__mobile-summary{
        align-items:flex-start;
        flex-direction:column;
    }
    .olygam-reg__back{
        width:100%;
    }
    .olygam-reg__date-selects{
        grid-template-columns:1fr;
    }
}

/* OTP step */
.olygam-reg__otp-step[hidden]{
    display:none !important;
}
.olygam-reg__otp-card{
    max-width:860px;
    margin:0 auto;
    padding:25px;
    display:grid;
    grid-template-columns:auto 1fr minmax(210px, 290px);
    gap:18px;
    align-items:center;
    border:1px solid rgba(229,234,245,.96);
    border-radius:28px;
    background:rgba(255,255,255,.96);
    box-shadow:0 20px 45px rgba(45,58,120,.10);
}
.olygam-reg__otp-icon{
    display:grid;
    place-items:center;
    width:66px;
    height:66px;
    border-radius:22px;
    color:#fff;
    background:linear-gradient(135deg, var(--olygam-blue), var(--olygam-purple));
    font-size:28px;
    font-weight:950;
    box-shadow:0 16px 30px rgba(75,95,215,.23);
}
.olygam-reg__otp-content h3{
    margin:0 0 4px !important;
    color:#30384c !important;
    font-size:21px !important;
    line-height:1.65 !important;
    font-weight:950 !important;
}
.olygam-reg__otp-content p{
    margin:0 !important;
    color:var(--olygam-muted) !important;
    font-size:14px !important;
    line-height:1.9 !important;
}
.olygam-reg__otp-mobile{
    color:var(--olygam-blue);
    direction:ltr;
    unicode-bidi:embed;
}
.olygam-reg__field--otp input{
    direction:ltr !important;
    text-align:center !important;
    font-size:22px !important;
    letter-spacing:8px !important;
    font-weight:950 !important;
}
.olygam-reg__otp-actions{
    grid-column:1 / -1;
    display:flex;
    gap:10px;
    justify-content:flex-end;
    flex-wrap:wrap;
}
.olygam-reg__verify,
.olygam-reg__resend,
.olygam-reg__change-phone{
    min-height:48px;
    padding:0 20px;
    border-radius:16px;
    font-family:inherit;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
    transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.olygam-reg__verify{
    border:0;
    color:#fff;
    background:linear-gradient(135deg, var(--olygam-orange), var(--olygam-orange-2));
    box-shadow:0 13px 26px rgba(255,153,0,.22);
}
.olygam-reg__resend,
.olygam-reg__change-phone{
    border:1px solid var(--olygam-line);
    color:#4b5fd7;
    background:#fff;
}
.olygam-reg__verify:hover:not(:disabled),
.olygam-reg__resend:hover:not(:disabled),
.olygam-reg__change-phone:hover:not(:disabled){
    transform:translateY(-2px);
}
.olygam-reg button:disabled{
    cursor:not-allowed;
    opacity:.58;
}
.olygam-reg button.is-loading{
    cursor:wait;
}
.olygam-reg__otp-error{
    grid-column:1 / -1;
    min-height:20px;
    color:#c22b2b;
    font-size:12px;
    font-weight:800;
    line-height:1.7;
    text-align:center;
}
.olygam-reg__timer{
    white-space:nowrap;
}

@media (max-width:980px){
    .olygam-reg__otp-card{
        grid-template-columns:auto 1fr;
    }
    .olygam-reg__field--otp,
    .olygam-reg__otp-actions,
    .olygam-reg__otp-error{
        grid-column:1 / -1;
    }
}
@media (max-width:700px){
    .olygam-reg__otp-card{
        grid-template-columns:1fr;
        padding:18px;
        border-radius:22px;
        text-align:center;
    }
    .olygam-reg__otp-icon{
        margin:0 auto;
    }
    .olygam-reg__otp-actions{
        display:grid;
        grid-template-columns:1fr;
    }
    .olygam-reg__verify,
    .olygam-reg__resend,
    .olygam-reg__change-phone{
        width:100%;
    }
}

/* حساب کاربری دانش‌آموز */
.olygam-reg__back--link{
    text-decoration:none !important;
}
.olygam-reg__account{
    padding:24px;
}
.olygam-reg__account-top{
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:16px;
    align-items:center;
    padding:20px;
    border:1px solid rgba(75,95,215,.12);
    border-radius:24px;
    background:linear-gradient(135deg, rgba(75,95,215,.08), rgba(255,153,0,.08));
}
.olygam-reg__account-avatar{
    display:flex;
    align-items:center;
    justify-content:center;
    width:66px;
    height:66px;
    border-radius:22px;
    color:#fff;
    background:linear-gradient(135deg, var(--olygam-orange), var(--olygam-purple));
    box-shadow:0 14px 28px rgba(75,95,215,.2);
    font-size:28px;
    font-weight:950;
}
.olygam-reg__account-top span{
    display:block;
    color:var(--olygam-muted);
    font-size:12px;
    font-weight:850;
}
.olygam-reg__account-top h3{
    margin:3px 0 2px !important;
    color:#30384c !important;
    font-size:23px !important;
    line-height:1.55 !important;
    font-weight:950 !important;
}
.olygam-reg__account-top p{
    margin:0 !important;
    color:var(--olygam-blue) !important;
    direction:ltr;
    text-align:right;
    font-size:14px !important;
    font-weight:900 !important;
}
.olygam-reg__status{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 13px;
    border-radius:999px;
    white-space:nowrap;
    color:#4b5fd7 !important;
    background:#eef1ff;
    font-size:12px !important;
    font-weight:950 !important;
}
.olygam-reg__status--registered{
    color:#147c4a !important;
    background:#e9fff4;
}
.olygam-reg__status--cancelled{
    color:#b32626 !important;
    background:#fff0f0;
}
.olygam-reg__status--contacted{
    color:#925b00 !important;
    background:#fff6df;
}
.olygam-reg__account-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
    margin-top:16px;
}
.olygam-reg__account-grid > div{
    min-height:92px;
    padding:16px;
    border:1px solid var(--olygam-line);
    border-radius:19px;
    background:#fff;
    box-shadow:0 10px 24px rgba(45,58,120,.045);
}
.olygam-reg__account-grid span,
.olygam-reg__account-note span{
    display:block;
    margin-bottom:8px;
    color:var(--olygam-muted);
    font-size:12px;
    font-weight:850;
}
.olygam-reg__account-grid strong{
    display:block;
    color:#30384c;
    font-size:15px;
    line-height:1.8;
    font-weight:950;
    overflow-wrap:anywhere;
}
.olygam-reg__account-note{
    margin-top:16px;
    padding:16px 18px;
    border-radius:19px;
    background:#f7f8ff;
}
.olygam-reg__account-note p{
    margin:0 !important;
    color:#4c5569 !important;
    font-size:14px !important;
    line-height:2 !important;
}
.olygam-reg__account-actions{
    display:flex;
    gap:12px;
    margin-top:18px;
}
.olygam-reg__submit--link{
    width:auto;
    flex:1;
    margin-top:0;
    text-decoration:none !important;
}
.olygam-reg__logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:58px;
    padding:0 24px;
    border:1px solid rgba(179,38,38,.15);
    border-radius:19px;
    color:#b32626 !important;
    background:#fff5f5;
    font-size:14px;
    font-weight:950;
    text-decoration:none !important;
}
.olygam-reg__logout:hover{
    background:#ffeaea;
}

@media (max-width:800px){
    .olygam-reg__account-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}
@media (max-width:560px){
    .olygam-reg__account{
        padding:16px;
    }
    .olygam-reg__account-top{
        grid-template-columns:auto 1fr;
        padding:16px;
    }
    .olygam-reg__status{
        grid-column:1 / -1;
    }
    .olygam-reg__account-grid{
        grid-template-columns:1fr;
    }
    .olygam-reg__account-actions{
        display:grid;
        grid-template-columns:1fr;
    }
    .olygam-reg__submit--link,
    .olygam-reg__logout{
        width:100%;
    }
}
