/*
 * Shared host-setup form components — the single source of truth for the Bingo,
 * scoreboard, mini, tournament, and bro setup screens. Bingo (the home create
 * form) is the canonical reference. Loaded LAST on each setup page so these shared
 * rules win over any remaining per-surface styling. All values use design tokens
 * (see docs/STYLE_GUIDE.md). Scoped to setup pages via the body class list.
 */

/* ---- Shared field labels ----
   Unify label typography to the Bingo gold standard across every setup surface
   (was text-xs/sm in Rajdhani on some, text-base Chakra Petch on home). Colour is
   left to each surface so its theme accent shows through. */
body.lockout-home-page .form-label,
body.scoreboard-setup-page .form-label,
body.mini-setup-page .form-label,
body.tournament-setup-page .form-label,
body.bro-join-page .form-label {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-2);
}

/* ---- Shared captcha ("Human Check") block ---- */
.captcha-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.captcha-question {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-heading);
}

.captcha-section .captcha-answer {
  width: 100%;
}

.captcha-refresh {
  line-height: 1;
}

/* ---- Shared select dropdown + chevron ----
   One chevron for every setup select, with comfortable edge spacing so it never
   crowds the field border (was the per-surface inconsistency). */
body.lockout-home-page .form-select,
body.scoreboard-setup-page .form-select,
body.mini-setup-page .form-select,
body.tournament-setup-page .form-select,
body.bro-join-page .form-select,
body.lockout-home-page select.form-input,
body.scoreboard-setup-page select.form-input,
body.mini-setup-page select.form-input,
body.tournament-setup-page select.form-input,
body.bro-join-page select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--app-select-chevron);
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

/* ---- Shared radio / checkbox option alignment ----
   Vertically centres the control with its label (fixes the scoreboard timer
   radios) and gives a consistent rhythm across surfaces. */
body.scoreboard-setup-page .option-checkbox,
body.mini-setup-page .option-checkbox,
body.tournament-setup-page .option-checkbox,
body.bro-join-page .option-checkbox,
body.lockout-home-page .option-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

body.scoreboard-setup-page .option-checkbox input[type='radio'],
body.scoreboard-setup-page .option-checkbox input[type='checkbox'] {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}
