@font-face { font-family:IRANSans; src:url("fonts/IRANSANSWEB(FANUM).TTF") format("truetype"); font-weight:400; font-display:swap; }
@font-face { font-family:IRANSans; src:url("fonts/IRANSANSWEB(FANUM)_MEDIUM.TTF") format("truetype"); font-weight:500; font-display:swap; }
@font-face { font-family:IRANSans; src:url("fonts/IRANSANSWEB(FANUM)_BOLD.TTF") format("truetype"); font-weight:700; font-display:swap; }
:root { color-scheme:dark; font-family:IRANSans,Tahoma,sans-serif; background:#030d19; color:#edf6ff; --cyan:#5edfff; --muted:#95a9bd; }
* { box-sizing:border-box; }
body { margin:0; min-height:100svh; overflow-x:hidden; }
input,button { font:inherit; }
button { cursor:pointer; }
svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
[hidden] { display:none !important; }
.scene { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; background:radial-gradient(ellipse at 12% 38%,#07354a80,transparent 58%),radial-gradient(ellipse at 98% 5%,#0b285660,transparent 55%),#030d19; }
.scene::after { content:""; position:absolute; inset:0; opacity:.1; background-image:linear-gradient(#5bafc533 1px,transparent 1px),linear-gradient(90deg,#5bafc533 1px,transparent 1px); background-size:72px 72px; mask-image:linear-gradient(transparent,#0008,transparent); }
.scene-orb { position:absolute; width:40vw; height:40vw; left:-20vw; top:15%; border-radius:50%; border:1px solid #52dbff20; box-shadow:0 0 0 80px #4bd7ff03,0 0 0 160px #4bd7ff02; }
.shell { width:min(1180px,100%); min-height:100svh; margin:auto; padding:24px 48px 16px; display:flex; flex-direction:column; }
header { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:44px; }
.logo { display:block; width:110px; height:auto; }
.header-label { display:flex; align-items:center; gap:9px; border:1px solid #a5d5ef1a; border-radius:30px; padding:8px 13px; font-size:10px; color:#bdd0df; background:#c1e9ff05; }
.header-label i { width:5px; height:5px; border-radius:50%; background:var(--cyan); box-shadow:0 0 12px #5edfff80; }
main { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(350px,440px); grid-template-areas:"intro form"; align-items:center; gap:clamp(36px,6vw,88px); padding:22px 0; }
.intro { grid-area:intro; min-width:0; position:relative; }
.eyebrow { display:flex; align-items:center; gap:9px; font-family:Arial,sans-serif; font-size:10px; letter-spacing:3px; direction:ltr; justify-content:flex-end; color:#95b7cc; margin:0 0 15px; }
.eyebrow span { width:22px; height:2px; background:var(--cyan); }
h1 { font-size:clamp(38px,4.8vw,64px); font-weight:700; line-height:1.55; margin:0; letter-spacing:-1.5px; }
h1 span { color:var(--cyan); }
.intro-caption { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:18px 2px 0; font-size:10px; color:#7694ad; }
.intro-caption b { font-weight:400; color:#b5cbdc; }
.panel-space { grid-area:form; min-width:0; }
.panel-frame { padding:1px; border-radius:25px; background:linear-gradient(145deg,#87d6f24d,#5c85a014 40%,#24475d66); box-shadow:0 24px 80px #0005; }
.panel { position:relative; padding:26px 28px; border-radius:24px; background:linear-gradient(155deg,#102336,#091727 65%); }
.panel-edge { position:absolute; top:0; left:25%; right:25%; height:1px; background:linear-gradient(90deg,transparent,#96edff99,transparent); }
.panel-corner { display:none; }
.journey { display:flex; gap:12px; margin-bottom:24px; }
.journey span { flex:1; display:flex; align-items:center; gap:7px; font-size:10px; white-space:nowrap; color:#768da3; }
.journey span b { display:grid; place-items:center; width:24px; height:24px; border:1px solid #708da038; border-radius:8px; color:#8297ac; font-weight:400; }
.journey span.active { color:#d0f3ff; }
.journey span.active b { background:#4ccfee16; border-color:#6ee2ff66; color:var(--cyan); }
h2 { font-size:24px; font-weight:700; line-height:1.65; margin:0 0 5px; letter-spacing:-.4px; }
.form-description { margin:0 0 22px; font-size:11px; color:var(--muted); line-height:1.9; }
.field { min-width:0; margin-top:15px; }
label { display:flex; align-items:center; gap:6px; font-size:11px; margin-bottom:7px; color:#d7e4ef; }
.field-unit { color:#829bb1; font-size:9px; }
.field-row { display:grid; grid-template-columns:minmax(0,1fr) 88px; gap:12px; }
.input-wrap { position:relative; background:#04101f99; border:1px solid #688eac36; border-radius:11px; transition:border-color .2s,box-shadow .2s; }
.input-wrap:focus-within { border-color:#5bdeff; box-shadow:0 0 0 3px #5bdeff10; }
.input-icon { position:absolute; right:13px; top:50%; transform:translateY(-50%); width:17px; height:17px; color:#728fa7; pointer-events:none; }
input { display:block; width:100%; min-width:0; height:48px; border:0; outline:0; background:transparent; color:#edf6ff; padding:0 40px 0 12px; border-radius:10px; font-size:16px; }
input[dir=ltr] { text-align:left; }
input::placeholder { color:#637e96; font-size:12px; opacity:1; }
input:-webkit-autofill { -webkit-text-fill-color:#edf6ff; box-shadow:0 0 0 1000px #071627 inset; }
.age-field .input-icon { display:none; }
.age-field input { text-align:center; padding:0 8px; }
.name-hint { margin:6px 0 0; font-size:9px; line-height:1.8; color:#859fb5; }
button { position:relative; display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:48px; margin-top:22px; padding:11px 16px; border:1px solid #7ee4ff40; border-radius:11px; background:linear-gradient(105deg,#08a8da,#27c0e5); color:#031421; font-size:13px; font-weight:700; box-shadow:0 6px 24px #0099cf18; transition:background .2s,box-shadow .2s; }
button:hover { background:linear-gradient(105deg,#25bde8,#64d9f2); box-shadow:0 6px 24px #0099cf30; }
button:focus-visible { outline:2px solid #8ee9ff; outline-offset:4px; }
button:disabled { opacity:.6; cursor:default; }
button svg { width:18px; height:18px; }
.spinner { display:none; width:16px; height:16px; border:2px solid #03142133; border-top-color:#031421; border-radius:50%; animation:spin .8s linear infinite; }
form[aria-busy=true] .spinner { display:block; }
form[aria-busy=true] .button-arrow { display:none; }
.captcha-card { padding:10px; border:1px solid #61bad42b; border-radius:13px; background:#03112180; }
.captcha-card img { display:block; width:100%; height:auto; max-height:110px; object-fit:contain; border-radius:8px; }
.captcha-meta { display:flex; justify-content:space-between; align-items:center; margin-top:8px; color:#91a8bc; font-size:10px; }
button.text-button { width:auto; min-height:30px; margin:0; padding:5px 8px; border:0; background:transparent; box-shadow:none; color:var(--cyan); font-size:10px; font-weight:400; }
.code-input { height:56px; padding:0 12px; text-align:center !important; letter-spacing:.4em; font-size:27px; }
.phone-row { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:10px; align-items:end; }
.phone-row input { padding:0 12px; }
.phone-row button { font-size:10px; padding:10px 6px; margin:0; min-height:50px; }
.secure-note { margin:9px 0 0; color:#91acbf; font-size:10px; text-align:center; line-height:1.9; }
#otp-timer { color:#75d8f0; font-variant-numeric:tabular-nums; margin-top:4px; }
.otp-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.otp-actions #otp-timer { margin:0; }
button.secondary { min-height:34px; margin-top:12px; padding:5px; font-weight:400; font-size:10px; background:transparent; border-color:transparent; color:#9fb6c9; box-shadow:none; }
button.secondary:hover { color:#ecfaff; }
#msg { font-size:11px; line-height:1.9; color:#ffb3be; background:#ff84940b; border:1px solid #ff84941a; border-radius:9px; padding:8px 10px; margin-top:12px; }
#auth-status { color:#8ee4dd; font-size:11px; margin:10px 0 0; line-height:1.8; }
#msg:empty,#auth-status:empty { display:none; }
footer { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:12px; border-top:1px solid #b2d5ed13; font-size:9px; color:#8298ad; }
.footer-mark { color:#657f98; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (min-width:761px) and (max-height:740px) {
  .shell { padding-top:14px; padding-bottom:12px; }
  main { padding:14px 0; }
  h1 { font-size:44px; }
  .panel { padding:22px 26px; }
  .journey { margin-bottom:18px; }
}
@media (max-width:1000px) and (min-width:761px) {
  .shell { padding-left:28px; padding-right:28px; }
  main { grid-template-columns:minmax(0,1fr) minmax(320px,390px); gap:30px; }
  h1 { font-size:43px; }
  .intro-caption { flex-direction:column; align-items:flex-start; gap:5px; }
}

/* Details and CAPTCHA share the first page. */
.captcha-section { margin-top:15px; }
.captcha-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.captcha-heading label { margin:0; }
.captcha-row { direction:ltr; display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:10px; align-items:center; }
.captcha-card { position:relative; padding:0; overflow:hidden; border-radius:10px; min-height:64px;
  background:radial-gradient(ellipse at 20% 30%,#0b3a52,transparent 65%),radial-gradient(ellipse at 90% 0,#0b2856,transparent 60%),#071a2c; }
/* Site-style grid behind the image (same look as the page scene). */
.captcha-card::before { content:""; position:absolute; inset:0; opacity:.35; pointer-events:none;
  background-image:linear-gradient(#5bafc533 1px,transparent 1px),linear-gradient(90deg,#5bafc533 1px,transparent 1px); background-size:18px 18px; }
.captcha-card img { position:relative; width:100%; height:64px; max-height:none; object-fit:contain; background:transparent; border-radius:0; color:transparent; font-size:0; }
/* While there is no image yet: hide the broken-image icon and show a themed loading state. */
.captcha-card img:not([src]), .captcha-card img[src=""] { visibility:hidden; }
.captcha-card:has(img:not([src]))::after, .captcha-card:has(img[src=""])::after { content:"در حال دریافت تصویر امنیتی…"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; direction:rtl;
  font-size:10px; color:var(--cyan); background:linear-gradient(100deg,transparent 30%,#5edfff1f 50%,transparent 70%) 0 0/200% 100%; animation:captcha-shimmer 1.4s linear infinite; }
@keyframes captcha-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce) { .captcha-card::after { animation:none !important; } }
.captcha-input { height:54px; padding:0 8px; text-align:center !important; letter-spacing:.13em; font-size:20px; }
@media (max-width:760px) {
  .shell { width:min(480px,100%); padding:12px 20px 10px; }
  header { min-height:38px; }
  .logo { width:92px; }
  .header-label { padding:6px 10px; font-size:9px; }
  main { grid-template-columns:1fr; grid-template-areas:"intro" "form"; align-content:center; align-items:start; gap:12px; padding:12px 0; }
  .intro { display:block; }
  .panel-frame { border-radius:21px; }
  .panel { padding:18px 20px; border-radius:20px; }
  .journey { margin-bottom:12px; }
  h2 { font-size:23px; }
  .form-description { margin-bottom:10px; }
  .field { margin-top:10px; }
  .captcha-section { margin-top:8px; }
  .captcha-heading .text-button { min-height:28px; padding:3px 0; }
  .captcha-card img { height:58px; }
  .captcha-input { height:50px; }
  button[type=submit] { margin-top:14px; }
  footer { font-size:8px; }
}
@media (max-width:760px) and (max-height:700px) {
  .shell { padding-top:10px; padding-bottom:8px; }
  main { gap:8px; padding:8px 0; }
  .panel { padding:12px 16px; }
  .journey { margin-bottom:6px; }
  h2 { font-size:20px; }
  .form-description { margin-bottom:5px; font-size:9px; }
  .field { margin-top:7px; }
  label { margin-bottom:4px; font-size:10px; }
  input { height:42px; }
  .name-hint { margin-top:3px; font-size:8px; }
  .captcha-card img { height:52px; }
  .captcha-input { height:44px; }
  .captcha-section { margin-top:5px; }
  button[type=submit] { min-height:42px; margin-top:10px; padding:8px; }
  footer { padding-top:7px; }
}
@media (max-width:360px) {
  .shell { padding-left:12px; padding-right:12px; }
  .journey { gap:6px; }
  .journey span { gap:5px; font-size:9px; }
  .field-row { grid-template-columns:minmax(0,1fr) 72px; gap:8px; }
  .phone-row { grid-template-columns:minmax(0,1fr) 98px; gap:8px; }
  .phone-row button { font-size:9px; }
}
@media (max-width:760px) and (max-height:600px) {
  main { padding:4px 0; }
  /* Labels and step numbers identify the form on the shortest screens. */
  h2 { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
  .form-description,.name-hint { display:none; }
  .journey { margin-bottom:5px; }
  .journey span b { width:22px; height:22px; }
  #otp-code { height:48px; }
  #otp-hint { font-size:9px; line-height:1.7; }
  .otp-actions { margin-top:4px; }
  #msg { margin-top:8px; padding:6px 9px; }
  button.secondary { min-height:30px; margin-top:8px; }
  .shell { padding-bottom:6px; }
  footer { padding-top:8px; }
}
@media (max-height:480px) {
  .shell { padding-top:10px; }
  footer { display:none; }
  main { align-content:start; }
}
/* Keep form controls compact on rotated phones. */
@media (orientation:landscape) and (min-width:560px) and (max-height:600px) and (max-width:1100px) {
  .shell { width:min(1040px,100%); padding:10px 20px 8px; }
  .panel { padding:12px 16px; }
  .journey { margin-bottom:6px; }
  .panel:not(.completion-panel) h2 { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
  .form-description,.name-hint { display:none; }
  .field { margin-top:7px; }
  label { margin-bottom:4px; font-size:10px; }
  input { height:42px; }
  .captcha-section { margin-top:5px; }
  .captcha-card img { height:52px; }
  .captcha-input { height:44px; }
  button[type=submit] { min-height:42px; margin-top:10px; padding:8px; }
}
/* POSTER CONTROLS: change these variables to adjust the top banner. */
:root {
  --poster-height:clamp(170px,26svh,230px);
  --poster-width:min(100%,440px);
  --poster-position:center;
  --poster-fit:contain;
}
.shell { padding-top:0; }
main { grid-template-columns:minmax(0,440px); grid-template-areas:"form"; justify-content:center; align-content:center; gap:0; padding:12px 0; }
.masthead { position:relative; flex:none; isolation:isolate; width:100vw; height:var(--poster-height); margin-inline:calc(50% - 50vw); overflow:hidden; background:radial-gradient(ellipse at 50% 0,#075582,#03172d 70%); }
.poster-showcase { position:absolute; inset:0; z-index:-1; width:100%; height:100%; margin:0; overflow:hidden; pointer-events:none; }
.event-poster { display:block; width:var(--poster-width); height:100%; margin:0 auto; object-fit:var(--poster-fit); object-position:var(--poster-position); mask-image:none; }
.masthead::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(180deg,#020c1e88,transparent 42%,#030d191a 75%,#030d19); }
.masthead header { width:min(1180px,100%); margin:auto; padding:18px 48px 0; }
.masthead .intro { width:min(1084px,calc(100% - 96px)); margin:18px auto 0; text-shadow:0 2px 16px #031023; }
.masthead h1 { font-size:34px; line-height:1.5; }
.masthead .eyebrow { margin-bottom:8px; }
.masthead .intro-caption { display:none; }
@media (max-width:760px) {
  .masthead header { padding:12px 20px 0; }
  .masthead .intro { display:none; }
}
@media (max-width:360px) {
  .masthead header { padding-inline:12px; }
}
@media (min-width:761px) and (max-height:800px) {
  .panel { padding:18px 24px; }
  .journey { margin-bottom:12px; }
  .form-description { margin-bottom:10px; }
  .field { margin-top:10px; }
  input { height:44px; }
  .captcha-section { margin-top:10px; }
  button[type=submit] { margin-top:14px; }
}
@media (max-width:760px) and (max-height:600px) {
  :root { --poster-height:144px; }
  main { padding:8px 0; }
}
@media (orientation:landscape) and (min-width:560px) and (max-height:600px) and (max-width:1100px) {
  :root { --poster-height:clamp(120px,32svh,160px); --poster-fit:contain; --poster-position:center; }
  .masthead header { padding:10px 20px 0; }
  .masthead .intro { display:none; }
  main { grid-template-columns:minmax(0,760px); padding:10px 0; }
  #f { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 16px; align-items:end; }
  #f > .field,#f > .field-row .field,#f .captcha-section { margin-top:0; }
  #f button[type=submit] { margin:0; min-height:44px; }
  .phone-row { grid-template-columns:minmax(0,1fr) 120px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }

/* Registration days, shared allowance, and sold-out state. */
#registration-fields { border:0; margin:0; padding:0; min-width:0; }
.registration-counts { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; margin:0 0 12px; font-size:10px; color:var(--muted); }
.registration-counts strong { color:var(--cyan); font-size:15px; margin:0 3px; }
.registration-days { border:0; padding:0; margin:14px 0 0; min-width:0; }
.registration-days legend { font-size:11px; color:#d7e4ef; margin-bottom:8px; }
.day-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.day-options label { display:flex; flex-direction:column; align-items:flex-start; gap:7px; margin:0; padding:10px 8px; border:1px solid #688eac36; border-radius:10px; background:#04101f99; cursor:pointer; font-size:10px; }
.day-options input { appearance:auto; display:inline-block; flex:0 0 auto; width:17px; height:17px; padding:0; margin:0; accent-color:var(--cyan); }
.day-options label:has(input:checked) { border-color:var(--cyan); background:#5edfff12; }
.panel.is-full #registration-fields { opacity:.4; filter:grayscale(1); }
.capacity-full { border:1px solid #e4b55e66; border-radius:10px; padding:12px; color:#f7dca9; background:#e4b55e12; font-size:12px; line-height:1.9; }

.day-choice { display:flex; align-items:center; gap:7px; }
.day-remainder { display:block; font-size:10px; color:var(--muted); padding-inline-start:24px; }
.day-remainder strong { color:var(--cyan); }
.day-options label:has(input:disabled) { opacity:.45; filter:grayscale(1); cursor:default; }
