/* Illinois USSSA Hall of Fame — multi-step form wizard styles */

.form-intro { max-width: 720px; }
.form-intro .page-lede { color: var(--ink-muted); }

.wiz { max-width: 760px; margin: 1.6rem auto 0; }

/* progress */
.wiz-progress { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.8rem; }
.wiz-dot { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer; padding: .3rem .2rem; font: inherit; color: var(--ink-muted); opacity: .6; }
.wiz-dot[disabled] { cursor: default; }
.wiz-dot-num { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: all var(--t); }
.wiz-dot-label { font-size: .82rem; font-weight: 500; white-space: nowrap; }
.wiz-dot.is-done { opacity: 1; color: var(--ink); }
.wiz-dot.is-done .wiz-dot-num { background: var(--brand); border-color: var(--brand); color: var(--gold-soft); }
.wiz-dot.is-current { opacity: 1; color: var(--ink); }
.wiz-dot.is-current .wiz-dot-num { border-color: var(--gold); color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
[data-theme="dark"] .wiz-dot.is-current .wiz-dot-num { color: var(--gold); }
@media (max-width: 640px) { .wiz-dot-label { display: none; } .wiz-progress { gap: .5rem; } }

/* step head */
.wiz-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.wiz-step-head { margin-bottom: 1.4rem; }
.wiz-step-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin: 0 0 .5rem; }
.wiz-step-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: -.015em; margin: 0; }
.wiz-step-help { color: var(--ink-muted); font-size: .96rem; margin: .6rem 0 0; }

/* fields */
.wiz-fields { display: grid; gap: 1.15rem; }
.f-field { display: grid; gap: .4rem; }
.f-label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--accent); }
.f-help { font-size: .84rem; color: var(--ink-muted); margin: -.1rem 0 .2rem; }
.f-sublabel { font-size: .74rem; color: var(--ink-muted); font-weight: 500; display: block; margin-bottom: .2rem; }
.f-input { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--page-bg); border: 1px solid var(--line); border-radius: 10px; padding: .62rem .8rem; transition: border-color var(--t), box-shadow var(--t); }
.f-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.f-textarea { resize: vertical; min-height: 3rem; line-height: 1.6; }
.f-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236B675B' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem; cursor: pointer; }
.f-err { color: var(--accent); font-size: .82rem; margin: .1rem 0 0; }

.f-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.f-col { flex: 1 1 160px; min-width: 0; }
.f-col--sm { flex: 0 1 110px; }
.f-col--md { flex: 1 1 200px; }
.f-row .f-sublabel { }

/* classification grid */
.f-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.f-gridcell { display: grid; gap: .25rem; }
.f-gridkey { font-family: var(--font-display); font-weight: 600; color: var(--gold-text); text-align: center; font-size: 1.05rem; }
@media (max-width: 560px) { .f-grid { grid-template-columns: repeat(2, 1fr); } }

/* radio pills */
.f-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.f-choice { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; font-size: .92rem; transition: border-color var(--t), background var(--t); }
.f-choice:hover { border-color: var(--gold); }
.f-choice.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.f-choice input { accent-color: var(--brand); }

/* checkboxes / consent */
.f-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .95rem; }
.f-check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.f-consent { background: color-mix(in srgb, var(--gold) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: 10px; padding: .9rem 1rem; }
.f-check-label { line-height: 1.5; }

/* info line */
.f-info { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin: .6rem 0 -.3rem; }

/* repeater */
.f-rep-list { display: grid; gap: .7rem; }
.f-rep-item { position: relative; background: var(--page-bg); border: 1px solid var(--line); border-radius: 10px; padding: .85rem .9rem; }
.f-rep-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.f-rep-del { position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); cursor: pointer; line-height: 1; font-size: 1.1rem; }
.f-rep-del:hover { border-color: var(--accent); color: var(--accent); }
.f-rep-add { margin-top: .7rem; background: none; border: 1.5px dashed var(--line); color: var(--brand); font: inherit; font-weight: 600; font-size: .9rem; padding: .55rem 1rem; border-radius: 10px; cursor: pointer; transition: border-color var(--t), color var(--t); }
[data-theme="dark"] .f-rep-add { color: var(--gold); }
.f-rep-add:hover { border-color: var(--gold); }

/* nav */
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.wiz-autosave { font-size: .78rem; color: var(--ink-muted); }
@media (max-width: 520px) { .wiz-autosave { display: none; } }

/* review */
.wiz-review-sec { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.wiz-review-sec:first-of-type { border-top: 0; }
.wiz-review-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.wiz-review-head h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.wiz-edit { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.wiz-review-dl { margin: 0; display: grid; gap: .5rem; }
.wiz-review-dl > div { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 1rem; font-size: .92rem; }
.wiz-review-dl dt { color: var(--ink-muted); }
.wiz-review-dl dd { margin: 0; white-space: pre-line; }
@media (max-width: 520px) { .wiz-review-dl > div { grid-template-columns: 1fr; gap: .1rem; } .wiz-review-dl dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; } }
.wiz-total { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.05rem; }

/* done */
.wiz-done { max-width: 640px; margin: 1.6rem auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 2.8rem); box-shadow: var(--shadow-sm); }
.wiz-done-badge { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 999px; background: var(--brand); color: var(--gold-soft); display: grid; place-items: center; font-size: 1.6rem; }
.wiz-done h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 .5rem; }
.wiz-done-lead { color: var(--ink-muted); margin: 0 auto 1.4rem; max-width: 46ch; }
.wiz-done-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 1rem; }
.wiz-done-note { font-size: .82rem; color: var(--ink-muted); max-width: 44ch; margin: 0 auto 1rem; }
.wiz-done-text { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; background: var(--page-bg); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; color: var(--ink); resize: vertical; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
