/* Registration shares the public site palette; selectors stay within this modal. */
.website-enrollment{--enroll-ink:var(--ink,#151916);--enroll-brand:var(--brand,#960004);--enroll-brand-deep:var(--brand-deep,#690004);--enroll-muted:var(--muted,#696f69);--enroll-paper:var(--paper-light,#faf8f3);--enroll-surface:var(--surface,#fff);--enroll-warm:var(--surface-warm,#eee8dc);--enroll-line:var(--line,rgba(21,25,22,.12));--enroll-tint:#f8edef;--enroll-success:var(--green,#1d7650);position:fixed;inset:0;border:1px solid #fff9;border-radius:28px;padding:0;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;background:var(--enroll-paper);color:var(--enroll-ink);box-shadow:0 32px 100px #21131045;font-family:Vazirmatn,Tahoma,sans-serif;text-align:right;overscroll-behavior:contain;scrollbar-width:thin}
.website-enrollment::backdrop{background:rgba(21,25,22,.68);backdrop-filter:blur(6px)}
.website-enrollment *, .website-enrollment *::before, .website-enrollment *::after{box-sizing:border-box}
.website-enrollment [hidden]{display:none!important}
.website-enrollment__shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:560px;direction:rtl}
.website-enrollment__main{padding:32px clamp(22px,4vw,44px);min-width:0}
.website-enrollment[open].has-quote-actions{display:flex;flex-direction:column;overflow:hidden}
.website-enrollment.has-quote-actions .website-enrollment__shell{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:18px}
.website-enrollment__quote-footer{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;direction:rtl;background:var(--enroll-paper)}
.website-enrollment__quote-footer::after{content:"";background:var(--enroll-brand-deep)}
.website-enrollment__quote-actions{padding:16px clamp(22px,4vw,44px);border-top:1px solid var(--enroll-line);box-shadow:0 -8px 20px #21131008;min-width:0}
.website-enrollment__quote-actions>.website-enrollment__button{width:100%}
.website-enrollment__action-note{margin:8px 0 0;font-size:11px;line-height:1.85;color:var(--enroll-muted)}
@media(max-width:720px){.website-enrollment__quote-footer{grid-template-columns:minmax(0,1fr)}.website-enrollment__quote-footer::after{display:none}.website-enrollment__quote-actions{padding:12px 20px max(14px,env(safe-area-inset-bottom))}}
.website-enrollment__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.website-enrollment__header-actions{display:flex;align-items:center;gap:10px}
.website-enrollment .website-enrollment__restart-button{min-height:38px;padding:8px 12px;font-size:12px}
.website-enrollment.is-restarting .website-enrollment__main>:not(.website-enrollment__header):not(.website-enrollment__restart-menu),.website-enrollment.is-restarting .website-enrollment__quote-footer{display:none!important}
.website-enrollment__restart-menu{display:grid;gap:14px}
.website-enrollment .website-enrollment__restart-choice{display:grid;gap:8px;text-align:right;white-space:normal;padding:20px;border-radius:16px}
.website-enrollment__restart-choice strong{font-size:16px}
.website-enrollment__restart-choice span{font-size:12px;line-height:1.9;font-weight:400;color:var(--enroll-muted)}
.website-enrollment__previous-requests{padding:15px 0;border-top:1px solid var(--enroll-line);font-size:13px}
.website-enrollment__previous-requests button{margin-top:10px;width:100%}
.website-enrollment__summary-facts{display:grid;gap:12px;margin:26px 0 0;padding:20px 0 0;border-top:1px solid #ffffff30;font-size:12px;line-height:1.8}
.website-enrollment__summary-facts>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px}
.website-enrollment__summary-facts dt{color:#ffffffce}
.website-enrollment__summary-facts dd{margin:0;font-weight:700}
.website-enrollment__summary-facts .is-total{border-top:1px solid #ffffff30;padding-top:12px}
@media(max-width:720px){.website-enrollment__summary-facts{font-size:11px;gap:7px;margin-top:14px;padding-top:12px}}
.website-enrollment__eyebrow{font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--enroll-muted)}
.website-enrollment__close{width:42px;height:42px;flex:none;display:grid;place-items:center;padding:0;border:1px solid var(--enroll-line);border-radius:50%;font:28px/1 Arial,sans-serif;color:var(--enroll-ink);background:#fff;cursor:pointer}
.website-enrollment__steps{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0;margin:0 0 34px;list-style:none;counter-reset:enroll-step}
.website-enrollment__steps li{counter-increment:enroll-step;display:grid;gap:7px;justify-items:center;font-size:11px;color:var(--enroll-muted);position:relative;flex:1;text-align:center}
.website-enrollment__steps li::before{content:counter(enroll-step,persian);display:grid;place-items:center;width:28px;height:28px;background:var(--enroll-warm);border-radius:50%;font-size:12px;z-index:1}
.website-enrollment__steps li:not(:last-child)::after{content:"";position:absolute;right:calc(50% + 14px);top:14px;width:calc(100% - 20px);height:1px;background:var(--enroll-line)}
.website-enrollment__steps li[aria-current=step]{color:var(--enroll-brand);font-weight:800}
.website-enrollment__steps li[aria-current=step]::before{background:var(--enroll-brand);color:white;box-shadow:0 0 0 5px var(--enroll-tint)}
.website-enrollment__steps li.is-complete::before{content:"✓";background:var(--enroll-tint);color:var(--enroll-brand)}
.website-enrollment h2{font-size:clamp(22px,3vw,28px);line-height:1.6;margin:0 0 10px;color:var(--enroll-ink)}
.website-enrollment__intro{color:var(--enroll-muted);line-height:1.95;font-size:14px;margin:0 0 24px}
.website-enrollment__form{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:18px}
.website-enrollment__field{display:grid;gap:8px;min-width:0;font-size:13px;font-weight:600;color:var(--enroll-ink)}
.website-enrollment__field input,.website-enrollment__field select,.website-enrollment__field textarea{width:100%;min-height:50px;padding:12px 15px;border:1px solid #c8c3ba;border-radius:12px;background:var(--enroll-surface);color:var(--enroll-ink);font:inherit;outline:none;box-shadow:none}
.website-enrollment__field textarea{resize:vertical;min-height:88px}
.website-enrollment__field input:focus,.website-enrollment__field select:focus,.website-enrollment__field textarea:focus{border-color:var(--enroll-brand);box-shadow:0 0 0 3px var(--enroll-tint)}
.website-enrollment__field small{font-size:11px;font-weight:400;line-height:1.8;color:var(--enroll-muted)}
.website-enrollment__field [inputmode=numeric]{direction:ltr;text-align:center;font-size:20px;letter-spacing:2px}
.website-enrollment__profile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.website-enrollment__profile .is-wide{grid-column:1/-1}
.website-enrollment__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.website-enrollment__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border:1px solid var(--enroll-brand);border-radius:12px;padding:12px 20px;font:700 14px/1.6 Vazirmatn,Tahoma,sans-serif;background:var(--enroll-brand);color:white;cursor:pointer;text-decoration:none;transition:background .15s}
.website-enrollment__button.is-primary{width:100%}
.website-enrollment__button.is-secondary{background:var(--enroll-surface);color:var(--enroll-brand);border-color:#c8c3ba;font-weight:500}
.website-enrollment__button:hover:not(:disabled){background:var(--enroll-brand-deep);border-color:var(--enroll-brand-deep);color:white}
.website-enrollment__button.is-secondary:hover:not(:disabled){background:var(--enroll-tint);border-color:var(--enroll-brand);color:var(--enroll-brand-deep)}
.website-enrollment__close:hover:not(:disabled){background:var(--enroll-tint);border-color:var(--enroll-brand);color:var(--enroll-brand)}
.website-enrollment button:disabled{opacity:1;background:var(--enroll-warm);border-color:var(--enroll-line);color:#65615b;cursor:wait}
.website-enrollment :focus-visible{outline:3px solid var(--enroll-brand);outline-offset:4px}
.website-enrollment__error{padding:12px 15px;margin:0 0 20px;border:1px solid #ebbac0;background:#fff1f2;border-radius:12px;color:#961b2a;font-size:13px;line-height:1.9}
.website-enrollment__notice{padding:12px 15px;background:#f1ece4;border-radius:12px;font-size:12px;line-height:1.9;color:var(--enroll-ink);margin:16px 0}
.website-enrollment__notice.is-warning{background:#fff4e4;color:#71370c;border:1px solid #ecd0a6}
.website-enrollment__conflict{display:flex;align-items:flex-start;gap:10px;line-height:1.9;font-size:13px;margin-block:18px;color:#71370c}
.website-enrollment__conflict input{flex:none;width:20px;height:20px;accent-color:var(--enroll-brand);margin-top:3px}
.website-enrollment .website-enrollment__coupon+fieldset{margin-top:24px}
.website-enrollment .is-v2-quote>.website-enrollment__button+.website-enrollment__button{margin-top:12px}
.website-enrollment .is-v2-payment>.website-enrollment__button+.website-enrollment__button{margin-top:12px}
.website-enrollment__payment-amount{font-size:17px;font-weight:700;line-height:1.9;color:var(--enroll-ink);padding:14px 16px;border:1px solid var(--enroll-line);border-radius:12px;background:var(--enroll-tint);margin:0 0 20px}
.website-enrollment__quote dt{min-width:0;overflow-wrap:anywhere}
.website-enrollment button[data-stays-disabled=true]{cursor:not-allowed}
.website-enrollment__status{min-height:1.8em;color:var(--enroll-muted);font-size:12px;line-height:1.8}
.website-enrollment__summary{padding:clamp(28px,4vw,40px) 28px;background:var(--enroll-brand-deep);color:white;display:flex;flex-direction:column;justify-content:space-between;gap:30px;overflow-wrap:anywhere}
.website-enrollment__summary small{color:#f5dfe0;font-size:11px}
.website-enrollment__summary h3{font-size:23px;line-height:1.85;font-weight:700;margin:16px 0 12px}
.website-enrollment__mode{display:inline-block;border:1px solid #ffffff35;padding:5px 12px;border-radius:40px;font-size:11px}
.website-enrollment__summary-note{border-top:1px solid #ffffff25;padding-top:22px;font-size:12px;line-height:2.1;color:#f5dfe0;margin:0}
.website-enrollment__price{padding-top:30px}
.website-enrollment__price strong{display:block;font-size:23px;line-height:1.7;margin-top:5px;font-weight:700}
.website-enrollment__quote{margin:0 0 20px;display:grid;gap:0;font-size:13px}
.website-enrollment__quote>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid var(--enroll-line)}
.website-enrollment__quote dt,.website-enrollment__quote dd{margin:0}
.website-enrollment__quote dd{direction:rtl;white-space:nowrap}
.website-enrollment__quote .is-discount{color:var(--enroll-success)}
.website-enrollment__quote .is-total{font-weight:800;font-size:16px;border:0;padding-top:20px}
.website-enrollment__coupon{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.website-enrollment__payment-choice{border:1px solid var(--enroll-line);border-radius:16px;padding:18px;margin:22px 0;color:var(--enroll-ink)}
.website-enrollment__payment-choice legend{font-weight:700;padding:0 8px}
.website-enrollment__payment-choice>label{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--enroll-line);cursor:pointer}
.website-enrollment__payment-choice>label strong{margin-inline-start:auto;font-size:15px}
.website-enrollment__payment-choice input[type=radio]{width:20px;height:20px;accent-color:var(--enroll-brand);flex-shrink:0}
.website-enrollment__pay-now{font-weight:800;font-size:17px;margin:18px 0 4px}
.website-enrollment__support{margin-top:24px;padding-top:16px;border-top:1px solid var(--enroll-line);font-size:13px;line-height:1.9}
.website-enrollment__support summary{cursor:pointer;font-weight:600}.website-enrollment__support a{text-decoration:underline;color:var(--enroll-brand)}
@media(max-width:720px){.website-enrollment__summary h3{font-size:16px!important;line-height:1.6}.website-enrollment__summary{padding:12px 20px!important}.website-enrollment__summary small{display:none}.website-enrollment__steps{margin-bottom:20px!important}.website-enrollment__payment-choice{padding:12px}.website-enrollment__payment-choice>label{flex-wrap:wrap}.website-enrollment__payment-choice>label strong{font-size:14px}}
.website-enrollment__coupon .website-enrollment__button{min-height:50px;white-space:nowrap;padding-inline:16px}
.website-enrollment fieldset{border:1px solid var(--enroll-line);border-radius:12px;padding:12px 16px;margin:0 0 20px;display:block;min-inline-size:0;max-inline-size:100%;inline-size:100%}
/* Keep native legends in normal fieldset layout, including mobile Safari. */
.website-enrollment fieldset>:not(legend)~:not(legend){margin-block-start:12px}
.website-enrollment legend{font-size:13px;color:var(--enroll-ink);padding:0 6px;max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
.website-enrollment fieldset>*,.website-enrollment fieldset label>span{min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}
.website-enrollment fieldset .website-enrollment__field{display:flex;align-items:center;gap:10px;font-weight:400;line-height:1.8}
.website-enrollment .website-enrollment__field input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--enroll-brand);flex:none}
.website-enrollment__result-icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:20px;border-radius:50%;background:#edf5ef;color:var(--enroll-success);font-size:28px}
.website-enrollment__result-icon.is-pending{background:#f4ebd6;color:#8a6731}
.website-enrollment__result-icon.is-error{background:#fff1f2;color:#961b2a}
.website-enrollment__profile-progress,.website-enrollment__registration-progress{margin:0 0 24px;padding:18px;border:1px solid #e5c9cd;border-radius:16px;background:var(--enroll-tint)}
.website-enrollment__profile-progress[hidden]{display:none}
.website-enrollment__progress-label{margin:0 0 12px;font-size:13px;font-weight:700;line-height:1.9;color:var(--enroll-ink)}
.website-enrollment__progress-track{height:8px;position:relative;overflow:hidden;border-radius:999px;background:#e9d5d8;direction:ltr}
.website-enrollment__progress-track>span{display:block;width:35%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--enroll-brand),var(--enroll-brand-deep));animation:website-profile-progress 1.8s ease-in-out infinite alternate}
.website-enrollment__progress-hint{margin:12px 0 0;color:var(--enroll-muted);font-size:12px;line-height:1.9}
@keyframes website-profile-progress{from{transform:translateX(0)}to{transform:translateX(185%)}}
.website-enrollment__request-key{direction:ltr;overflow-wrap:anywhere;font:11px/1.8 ui-monospace,monospace;user-select:all;color:var(--enroll-muted)}
.website-enrollment[aria-busy=true] .website-enrollment__status::before{content:"";display:inline-block;width:12px;height:12px;margin-inline-end:8px;border:2px solid #e9d5d8;border-top-color:var(--enroll-brand);border-radius:50%;vertical-align:middle;animation:enrollment-spin .8s linear infinite}
@keyframes enrollment-spin{to{transform:rotate(360deg)}}
.website-enrollment__waiting-notice{margin:0 0 20px;padding:16px;border:1px solid var(--enroll-line);border-radius:14px;background:var(--enroll-soft,#f4f3ef);color:var(--enroll-ink,#151916);line-height:1.9}
.website-enrollment__waiting-notice[hidden]{display:none}
.website-enrollment__waiting-notice p{margin:0 0 12px}
.website-enrollment-class-list{display:grid;gap:18px;margin:28px 0}
.website-enrollment-class-list article{background:#fff;border:1px solid var(--line,rgba(21,25,22,.12));border-radius:18px;padding:24px;display:grid;gap:12px}
.website-enrollment-class-list h2{font-size:20px;margin:0}
.website-enrollment-class-list p{font-size:13px;color:var(--muted,#696f69);margin:0}
.website-enrollment-class-list button{justify-self:start}
@media(max-width:720px){.website-enrollment{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.website-enrollment__shell{grid-template-columns:1fr;min-height:0}.website-enrollment__main{padding:20px}.website-enrollment__header{margin-bottom:20px}.website-enrollment__steps{margin-bottom:25px}.website-enrollment__summary{padding:20px;gap:12px;order:-1}.website-enrollment__summary h3{font-size:17px;margin:6px 0}.website-enrollment__summary-note,.website-enrollment__price{display:none}.website-enrollment__summary-top{padding-inline-end:10px}.website-enrollment__mode{font-size:10px}.website-enrollment__close{width:38px;height:38px}.website-enrollment__profile{grid-template-columns:1fr}.website-enrollment__profile .is-wide{grid-column:auto}.website-enrollment__steps li{font-size:10px}.website-enrollment__coupon{gap:8px}.website-enrollment__coupon .website-enrollment__button{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.website-enrollment *{animation:none!important;transition:none!important}}
/* Desktop columns scroll independently: tuition stays visible beside the form. */
.website-class-picker{--enroll-ink:var(--ink,#151916);--enroll-brand:var(--brand,#960004);--enroll-muted:var(--muted,#696f69);--enroll-line:var(--line,#ded8ce);--enroll-surface:#fff;--enroll-paper:var(--paper-light,#faf8f3);padding:0;border:1px solid #ffffff99;border-radius:26px;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:hidden;background:var(--enroll-paper);color:var(--enroll-ink);font-family:Vazirmatn,Tahoma,sans-serif;text-align:right;box-shadow:0 32px 100px #21131045}
.website-class-picker[open]{display:flex;flex-direction:column}
.website-class-picker{--enroll-brand-deep:var(--brand-deep,#690004);--enroll-tint:#f8edef}
.website-class-picker::backdrop{background:#151916b0;backdrop-filter:blur(6px)}
.website-class-picker *{box-sizing:border-box}.website-class-picker [hidden]{display:none!important}
.website-class-picker__header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:26px 28px 20px;border-bottom:1px solid var(--enroll-line)}
.website-class-picker__header h2{font-size:22px;line-height:1.8;margin:4px 0}.website-class-picker__header p{font-size:13px;color:var(--enroll-muted);line-height:1.9;margin:0}
.website-class-picker__eyebrow{color:var(--enroll-brand);font-size:12px;font-weight:700}
.website-class-picker__body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:24px 28px;scrollbar-width:thin}
.website-class-picker__list{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.website-class-picker__list>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.website-class-picker__card{display:flex;align-items:flex-start;gap:12px;padding:20px;border:1px solid var(--enroll-line);border-radius:18px;background:#fff;cursor:pointer;min-width:0;transition:border-color .15s,box-shadow .15s}
.website-class-picker__card:hover{border-color:var(--enroll-brand)}.website-class-picker__card:has(input:checked){border-color:var(--enroll-brand);background:#fff7f7;box-shadow:inset 0 0 0 1px var(--enroll-brand)}
.website-class-picker__card:focus-within{outline:3px solid #96000444;outline-offset:3px}
.website-class-picker__card>input{flex:0 0 auto;width:18px;height:18px;margin:5px 0;accent-color:var(--enroll-brand)}
.website-class-picker__card-content{display:block;min-width:0;flex:1}.website-class-picker__card-top{display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-size:15px;line-height:1.9}
.website-class-picker__mode{font-size:11px;background:#f0ece4;border-radius:30px;padding:3px 10px}
.website-class-picker__card dl{display:grid;gap:11px;margin:20px 0;font-size:12px;line-height:1.9}.website-class-picker__card dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px}.website-class-picker__card dt{color:var(--enroll-muted)}.website-class-picker__card dd{margin:0;overflow-wrap:anywhere}
.website-class-picker__tuition{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;border-top:1px solid var(--enroll-line);padding-top:14px;font-size:12px}.website-class-picker__tuition>strong{width:100%;font-size:17px;color:var(--enroll-brand)}.website-class-picker__tuition del{color:var(--enroll-muted);font-size:11px}
.website-class-picker__footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--enroll-line);padding:18px 28px;background:#fff}.website-class-picker__footer p{margin:0;color:var(--enroll-muted);font-size:12px;line-height:1.8}.website-class-picker__footer button{min-width:200px}
.website-class-picker__notice{padding:12px;background:#fff0dc;border-radius:12px;font-size:13px}
.website-class-picker__footer .website-enrollment__button{width:auto;flex:0 0 240px}.website-class-picker__footer button:disabled{background:#eee8dc;border-color:var(--enroll-line);color:#65615b;cursor:not-allowed}
@media(max-width:720px){.website-class-picker{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.website-class-picker__header{padding:18px;gap:12px}.website-class-picker__header h2{font-size:18px}.website-class-picker__body{padding:16px}.website-class-picker__list{grid-template-columns:minmax(0,1fr)}.website-class-picker__card{padding:16px}.website-class-picker__footer{padding:14px 18px max(14px,env(safe-area-inset-bottom));flex-direction:column;gap:10px}.website-class-picker__footer button{width:100%}.website-class-picker__header .website-enrollment__close{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.website-class-picker *{transition:none!important}}
@media(max-width:720px){.website-class-picker__footer .website-enrollment__button{width:100%;flex:auto}}
@media(min-width:721px){
 .website-enrollment[open]{display:flex;flex-direction:column;height:min(900px,calc(100dvh - 32px));overflow:hidden}
 .website-enrollment .website-enrollment__shell{flex:1 1 auto;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
 .website-enrollment__main{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:18px}
 .website-enrollment__summary{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
