/* ============================================================
   TWIC Host Registration — field + wizard component styles
   ============================================================ */

/* ---------- App shell / wizard layout ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: oklch(0.972 0.006 85 / 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none; border: none; padding: 0; cursor: pointer;
  background: var(--accent); color: #ffffff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.02em;
  transition: transform 0.1s;
}
.brand__mark:hover { transform: scale(1.06); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; line-height: 1; }
.brand__sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.topbar__save { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.topbar__save .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* progress */
.progress { padding: 16px clamp(16px, 4vw, 40px) 0; max-width: 980px; margin: 0 auto; width: 100%; }
.progress__bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.progress__fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.progress__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.progress__step { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.progress__pct { font-size: 12.5px; color: var(--ink-faint); }

/* stepper dots variant */
.stepdots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stepdots__item { display: flex; align-items: center; gap: 8px; }
.stepdots__n {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  font-family: var(--font-display); border: 1.5px solid var(--line-strong); color: var(--ink-faint); background: var(--card);
}
.stepdots__item.is-active .stepdots__n { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.stepdots__item.is-done .stepdots__n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.stepdots__line { width: 18px; height: 2px; background: var(--line-strong); border-radius: 2px; }

/* main scroll area */
.main { flex: 1; padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 40px) 140px; }
.stage { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.step-head { margin: 8px 0 26px; }
.step-head__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 9vw, 64px); line-height: 0.9; color: var(--accent); }
.step-head__title { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; font-size: clamp(26px, 5vw, 38px); line-height: 1.02; margin: 6px 0 0; }
.step-head__blurb { color: var(--ink-soft); font-size: 16px; margin: 10px 0 0; max-width: 48ch; }

/* fieldset groups */
.group { margin-bottom: 30px; }
.group__title { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* ---------- Fields ---------- */
.field { margin-bottom: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.field__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); line-height: 1.35; }
.field__req { color: var(--error); font-weight: 700; }
.field__hint { font-size: 13px; color: var(--ink-faint); margin: 0 0 10px; max-width: 56ch; line-height: 1.45; }
.field__error { font-size: 13px; color: var(--error); margin: 8px 0 0; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.field__error::before { content: "!"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--error); color: white; font-size: 10px; font-weight: 800; flex: none; }

.input {
  width: 100%; padding: 13px 14px; font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-tint); }
.input--error { border-color: var(--error); }
.input--error:focus { box-shadow: 0 0 0 4px var(--error-tint); }
.textarea { resize: vertical; line-height: 1.5; min-height: 92px; }
.input--other { margin-top: 12px; }

.select-wrap { position: relative; }
.select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }

/* number stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 5px; background: var(--card); }
.stepper--error { border-color: var(--error); }
.stepper__btn { width: 42px; height: 42px; border: none; border-radius: 8px; background: var(--paper-2); font-size: 22px; line-height: 1; color: var(--ink); display: grid; place-items: center; transition: background 0.15s; }
.stepper__btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.stepper__btn:hover:not(:disabled) svg { color: inherit; }
.stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper__input { width: 64px; text-align: center; border: none; background: transparent; font-size: 22px; font-weight: 700; font-family: var(--font-display); color: var(--ink); outline: none; }
.stepper__unit { padding: 0 14px 0 6px; color: var(--ink-soft); font-size: 14px; }

/* option grids */
.optgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .optgrid { grid-template-columns: 1fr; } }

.opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 13px 15px; background: var(--card); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--ink); font-size: 14.5px; line-height: 1.25;
  transition: border-color 0.14s, background 0.14s, transform 0.08s;
}
.opt:hover { border-color: var(--ink-faint); }
.opt:active { transform: scale(0.99); }
.opt.is-active { border-color: var(--accent); background: var(--accent-tint); }
.opt__label { font-weight: 500; }
.opt__body { display: flex; flex-direction: column; gap: 2px; }
.opt__sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }

/* radio dot */
.opt__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; position: relative; transition: border-color 0.14s; }
.opt--radio.is-active .opt__dot { border-color: var(--accent); }
.opt--radio.is-active .opt__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }

/* checkbox */
.opt__box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; color: transparent; transition: all 0.14s; }
.opt--check.is-active .opt__box { background: var(--accent); border-color: var(--accent); color: var(--tick); }
.opt--exclusive { border-style: dashed; }

/* single check rows */
.checkrow { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 15px 17px; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); color: var(--ink); margin-bottom: 10px; transition: border-color 0.14s, background 0.14s; }
.checkrow:hover { border-color: var(--ink-faint); }
.checkrow.is-active { border-color: var(--accent); background: var(--accent-tint); }
.checkrow__box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; color: transparent; margin-top: 1px; transition: all 0.14s; }
.checkrow.is-active .checkrow__box { background: var(--accent); border-color: var(--accent); color: var(--tick); }
.checkrow__text { font-size: 14.5px; line-height: 1.5; }

/* callout (e.g. career-quiz nudge) */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 26px; border-radius: var(--r-lg); background: var(--accent-tint); border: 1.5px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.callout__mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.callout__title { margin: 0 0 3px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.callout__body { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* partnership sub-groups */.partner-group { margin-bottom: 18px; }
.partner-group__label { font-weight: 600; font-size: 13.5px; color: var(--ink); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.partner-group__label::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--accent); }

/* ---------- Location cards (repeatable) ---------- */
.loc-card { border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; background: var(--card); position: relative; }
.loc-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.loc-card__title { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; }
.loc-card__badge { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #ffffff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.loc-card__remove { border: none; background: transparent; color: var(--ink-faint); font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 8px; display: flex; align-items: center; gap: 5px; }
.loc-card__remove:hover { color: var(--error); background: var(--error-tint); }
.btn-add { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border: 1.5px dashed var(--line-strong); background: transparent; border-radius: var(--r-md); color: var(--ink); font-weight: 600; font-size: 14.5px; transition: border-color 0.14s, background 0.14s; }
.btn-add:hover { border-color: var(--ink); background: var(--accent-tint); }
.btn-add__plus { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #ffffff; display: grid; place-items: center; font-size: 16px; line-height: 1; }

/* ---------- Footer nav ---------- */
.footnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: oklch(0.972 0.006 85 / 0.9); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.footnav__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 99px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: transform 0.08s, background 0.15s, box-shadow 0.15s; font-family: var(--font-body); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { box-shadow: var(--shadow-md); }
.btn--hi { background: var(--pink); color: #00514a; }
.btn--hi:hover { box-shadow: var(--shadow-md); }
.btn--hero { background: var(--hero-cta-bg); color: var(--hero-cta-fg); }
.btn--hero:hover { box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 17px 34px; font-size: 16.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn__arrow { font-size: 17px; }
