/* Enrolment (script 150): the student form, the staff check and the form editor. */

/* Student mode: the form only, no menu or banner. */
body.enrolkiosk .apptop,body.enrolkiosk .appside,body.enrolkiosk #apptitle{display:none!important}
body.enrolkiosk .appshell{display:block}
body.enrolkiosk .appmain{max-width:760px;margin:0 auto;padding:18px 16px 60px}
.enkiosk{font-size:17px}
.enkioskhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.enformtitle{font-family:var(--f-brand);font-weight:700;font-size:clamp(24px,4vw,32px);line-height:1.1;margin:4px 0 0}
.ensteps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 18px;padding:0;font-size:13px}
.ensteps li{padding:4px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.ensteps li.done{background:var(--ok-soft);color:var(--ok)}
.ensteps li.now{background:var(--lilac-soft);color:var(--blue);font-weight:600}
.ensectitle{font-family:var(--f-brand);font-weight:700;font-size:21px;margin:0 0 12px}
.enintro{color:var(--muted);margin:0 0 16px}
.enpage{display:flex;flex-direction:column;gap:18px}
.enq{display:flex;flex-direction:column;gap:6px;border-radius:12px;padding:2px 0}
.enq.enmissing{outline:2px solid var(--absent);outline-offset:6px}
.enlabel{font-weight:600;line-height:1.3}
.enopt{font-weight:400;color:var(--muted);font-size:.9em}
.enhelp{font-size:.88em;color:var(--muted)}
.enq .cfield{font-size:17px;padding:11px 12px}
.enq .enshort{max-width:260px}
.enchoices{display:flex;flex-direction:column;gap:8px}
.enyesno{flex-direction:row}
.enchoice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:11px 14px;cursor:pointer;background:var(--surface)}
.enyesno .enchoice{min-width:110px;justify-content:center}
.enchoice input{width:20px;height:20px;margin:0;accent-color:var(--blue)}
.enchoice:has(input:checked){border-color:var(--peri);background:var(--lilac-soft)}
.enaddr{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.enaddr .enpc{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.enaddr .ensub{display:flex;flex-direction:column;gap:4px}
.enpcok{font-size:14px;color:var(--ok);font-weight:600;padding-bottom:10px}
.enthumbs{display:flex;flex-wrap:wrap;gap:10px}
.enthumb{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.enthumbs img{width:120px;height:120px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:var(--surface-2)}
.endeclare{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--surface-2);line-height:1.45}
.ensig{width:100%;max-width:600px;aspect-ratio:3/1;border:2px dashed var(--line);border-radius:12px;background:#fff;touch-action:none}
.ennav{display:flex;justify-content:space-between;gap:12px;margin-top:26px}
.ennav .btn{min-width:140px;padding:13px 22px;font-size:17px}
.endone{text-align:center;padding:60px 10px}
.endone h2{font-family:var(--f-brand);font-size:28px;margin:0 0 10px}
.eninfo{background:var(--surface-2);border-radius:12px;padding:12px 14px}
.enpreview{border:2px dashed var(--line);border-radius:16px;padding:16px 18px;max-width:760px}
.enpreview .ensectitle{margin-top:22px}
.enpreview .enq{margin-bottom:16px}

/* Staff check. */
.pill.rwait{background:var(--late-soft);color:var(--late)}
.enwarn{background:var(--late-soft);color:var(--ink);border-radius:12px;padding:10px 14px;margin:0 0 14px}
.enwarn ul{margin:6px 0 0;padding-left:20px}
.enanswers{display:grid;grid-template-columns:minmax(160px,34%) 1fr;gap:8px 16px;margin:0}
.enanswers dt{color:var(--muted);font-size:14px}
.enanswers dd{margin:0}
.ensigimg{max-width:300px;border:1px solid var(--line);border-radius:8px;background:#fff}
.enhistory summary{cursor:pointer;font-weight:600}
.enhistory ul{margin:8px 0 0;padding-left:18px;font-size:14px;color:var(--muted)}
.rpanel .enq+.enq{margin-top:14px}

/* Form editor. */
.efbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 14px}
.efgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px 14px;margin-top:8px}
.efgrid label{display:flex;flex-direction:column;gap:4px;min-width:0}
.efgrid .efwide{grid-column:1/-1}
.efgrid .efcheck{flex-direction:row;align-items:center;gap:8px;align-self:end;padding-bottom:10px}
.efsechead{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;justify-content:space-between}
.efmoves{display:flex;gap:10px;align-items:center;white-space:nowrap}
.efmoves .link-btn:disabled{opacity:.35;cursor:default}
.efqs{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:6px}
.efq{border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--surface)}
.efq.efopen{border-color:var(--peri);box-shadow:0 0 0 2px var(--lilac-soft)}
.efqhead{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.efqhead b{font-weight:600}
.efqhead .csub{display:block}
/* Handing over (script 151): this device, the student's phone, or a computer. */
.enways{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:10px}
.enway{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--surface);display:flex;flex-direction:column;gap:8px}
.enway h4{margin:0;font-size:15px}
.enway .unote{margin:0}
.enqr{display:flex;flex-direction:column;align-items:center}
.enqr svg{width:min(240px,70vw);height:auto;background:#fff;border-radius:8px}
.endevices{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:6px}
.endevices li{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--ok-soft);border-radius:10px;padding:8px 12px;font-size:14px}
.enebs{background:var(--lilac-soft);color:var(--ink);border-radius:12px;padding:10px 14px;margin:0 0 14px}
.enebs .btn{margin-left:6px}
.enwas{display:block;font-size:13px;color:var(--late);margin-top:2px}
.enpairmsg{background:var(--ok-soft);color:var(--ink);border-radius:12px;padding:10px 14px;margin:0 0 14px}
.enwalk{margin:6px 0 10px;background:var(--surface-2)}
.enebsnote{background:var(--lilac-soft);color:var(--ink);border-radius:12px;padding:10px 14px}

/* The student's own device (start/). */
.endevcode{text-align:center;padding:30px 10px}
.endevcode h2{font-family:var(--f-brand);font-size:28px;margin:0 0 8px}
.endigits{font-family:var(--f-mono,monospace);font-size:clamp(48px,12vw,84px);font-weight:500;letter-spacing:.08em;margin:14px 0}
.endevcode .enqr svg{width:min(200px,50vw)}
.endevcode .unote{max-width:460px;margin:14px auto 0}

@media (max-width:640px){.enaddr{grid-template-columns:1fr}.enanswers{grid-template-columns:1fr}.enanswers dt{margin-top:6px}}
