/* Step-by-step entry forms (form-wizard.js): student Part B form, teacher / non-teaching staff form */
.fw{--fw-accent:var(--amber-500,#f5a623); --fw-navy:var(--navy-900,#0b1b3f);}
.fw-top{position:sticky; top:-26px; z-index:5; background:var(--paper-card,#fff); margin:-6px -4px 14px; padding:10px 4px 0; border-bottom:1px solid var(--line,#e4e7ee);}
.fw-bar{display:flex; gap:4px; overflow-x:auto; scrollbar-width:thin; padding-bottom:10px;}
.fw-step{flex:1 1 0; min-width:96px; display:flex; align-items:center; gap:9px; text-align:left; border:0; background:transparent; padding:6px 8px; border-radius:10px; cursor:pointer; font:inherit; color:#516079;}
.fw-step:hover{background:rgba(11,27,63,.05);}
.fw-step:focus-visible{outline:2px solid var(--fw-accent); outline-offset:1px;}
.fw-dot{position:relative; width:30px; height:30px; flex:none; border-radius:50%; border:2px solid #c9d0dc; display:flex; align-items:center; justify-content:center; font-size:13px; background:#fff;}
.fw-dot b{font-weight:800;} .fw-tick{display:none; font-style:normal; font-weight:800;}
.fw-lbl{display:flex; flex-direction:column; min-width:0; line-height:1.2;}
.fw-lbl b{font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.fw-meta{font-size:11px; color:#8a94a6; white-space:nowrap;}
.fw-step.seen .fw-dot{background:#e8f6ee; border-color:#2e9e5b; color:#1d7a43;} .fw-step.seen .fw-dot b{display:none;} .fw-step.seen .fw-tick{display:inline;}
.fw-step.on{color:var(--fw-navy);} .fw-step.on .fw-dot{background:var(--fw-navy); border-color:var(--fw-navy); color:#fff; box-shadow:0 0 0 4px rgba(245,166,35,.28);}
.fw-progress{height:3px; background:#eef1f6; margin:0 -4px;} .fw-progress i{display:block; height:100%; width:0; background:var(--fw-accent); transition:width .25s;}
.fw-head{display:flex; justify-content:space-between; align-items:flex-end; margin:4px 0 12px;}
.fw-count{font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#b7791f;}
.fw-title{margin:2px 0 0; font-size:20px;} .fw-hint{color:#64748b; font-size:13px; margin-top:2px;}
.fw-err{background:#fdecec; border:1px solid #f3c0c0; color:#8f1d1d; border-radius:10px; padding:10px 14px; font-size:13.5px; margin-bottom:12px;}
.fw-err[hidden]{display:none;}
.fw-panel[hidden]{display:none !important;}
.fw-panel{animation:fwIn .18s ease-out;} @keyframes fwIn{from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;}}
.fw .fw-bad{outline:2px solid #d92d20 !important; outline-offset:1px; background:#fff5f5 !important;}
.fw-actions{position:sticky; bottom:0; z-index:5; padding-right:96px !important; background:var(--paper-card,#fff); padding:12px 0 6px; border-top:1px solid var(--line,#e4e7ee); display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.fw-actions [hidden]{display:none !important;}
.fw-actions .modal-cancel-btn{margin-right:auto;}
.fw-actions .fw-next, .fw-actions .modal-submit-btn{min-width:120px;}
.fw-status{font-size:12px; color:#64748b;}
/* review */
.fw-rv{margin-bottom:16px;} .fw-rv h4{margin:6px 0 8px; font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:#516079;}
.fw-rv-card{border:1px solid var(--line,#e4e7ee); border-radius:14px; padding:16px 18px; background:#fbfcfe;}
.fw-rv-who{display:flex; align-items:center; gap:14px; margin-bottom:12px;} .fw-rv-who b{font-size:18px;}
.fw-rv-who img, .fw-rv-ini{width:56px; height:56px; border-radius:50%; object-fit:cover; flex:none;}
.fw-rv-ini{display:flex; align-items:center; justify-content:center; background:var(--fw-navy); color:#fff; font-weight:800; font-size:18px; text-transform:uppercase;}
.fw-rv-tbl{width:100%; border-collapse:collapse; font-size:13.5px;} .fw-rv-tbl td{padding:6px 8px; border-top:1px solid #eef1f6; vertical-align:top;} .fw-rv-tbl td:first-child{color:#64748b; width:200px;}
.fw-rv-note{margin-top:10px; font-size:12.5px; background:#fff7e6; border:1px solid #f3d9a4; border-radius:8px; padding:8px 10px;}
.fw-rv-steps{width:100%; border-collapse:collapse; font-size:13.5px;} .fw-rv-steps td{padding:8px; border-top:1px solid #eef1f6;} .fw-rv-steps td:last-child{text-align:right;}
.fw-pill{display:inline-block; font-size:12px; border-radius:99px; padding:2px 10px; font-weight:600;} .fw-pill.ok{background:#e8f6ee; color:#1d7a43;} .fw-pill.bad{background:#fdecec; color:#9b1c1c; white-space:normal;}
@media (max-width: 760px){
  .fw-actions{padding-right:84px !important;}
  .fw-top{top:-16px;}
  .fw-step{min-width:auto; flex:0 0 auto;} .fw-step:not(.on) .fw-lbl{display:none;}
  .fw-title{font-size:17px;} .fw-rv-tbl td:first-child{width:120px;}
  .fw-actions .modal-cancel-btn{order:5; margin-right:0;} .fw-actions .fw-next, .fw-actions .modal-submit-btn{flex:1;}
}
body[data-theme="dark"] .fw-top, body[data-theme="dark"] .fw-actions{background:var(--paper-card);}
body[data-theme="dark"] .fw-dot{background:var(--paper);} body[data-theme="dark"] .fw-rv-card{background:rgba(255,255,255,.03);}
body[data-theme="dark"] .fw-step{color:#aab4c8;} body[data-theme="dark"] .fw-step.on{color:#fff;} body[data-theme="dark"] .fw-step.on .fw-dot{background:var(--fw-accent); border-color:var(--fw-accent); color:#111;}
