/* ══════════════════════════════════════════════════════════════════
   Application forms - tournament entry and membership.

   coaches-course.html carries its own copy of most of this inline,
   which was fine when there was one form. There are now three, and
   three copies of a stylesheet drift apart: one gets a fix, the others
   do not, and the site ends up with three slightly different ideas of
   what a required-field asterisk looks like.

   Loaded after styles.css and theme-2026.css, so it uses their tokens
   and only adds what a long form needs.
   ══════════════════════════════════════════════════════════════════ */

.form-card { max-width: 800px; margin: 0 auto; }

/* Two fields to a line on a desktop, one on a phone. Nothing here is
   ever narrower than a thumb. */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 620px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

.form-hint {
  display: block; font-weight: 500; font-size: .84rem;
  color: var(--muted); margin-top: 4px; line-height: 1.5;
}
.form-group label .req { color: var(--accent); }

.form-section-title {
  font-size: var(--t-label); font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--brand);
  margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--line);
}
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.form-section-title .sub {
  display: block; text-transform: none; letter-spacing: 0; font-weight: 500;
  font-size: .86rem; color: var(--muted); margin-top: 6px;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.choice-grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 620px) {
  .choice-grid, .choice-grid.three { grid-template-columns: 1fr; }
}
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-soft); cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.choice:has(input:checked) { border-color: var(--brand); background: var(--surface-tint); }
.choice input { margin-top: 3px; width: auto; accent-color: var(--brand); }
.choice span { font-size: .94rem; color: var(--ink); }

.consent-box {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--surface-tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 16px; margin: 20px 0; cursor: pointer;
}
.consent-box input { margin-top: 3px; width: auto; accent-color: var(--brand); flex: none; }
.consent-box span { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.consent-box b { color: var(--ink); }

/* The honeypot. Off-screen rather than display:none, because some bots
   skip hidden fields but fill in everything they can reach. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { display: none; border-radius: var(--radius); padding: 14px 16px; margin: 18px 0 0; font-size: .92rem; line-height: 1.6; }
.form-msg.ok  { display: block; background: var(--surface-tint); border: 1px solid var(--brand); color: var(--ink); }
.form-msg.err { display: block; background: #FDF2F2; border: 1px solid var(--accent); color: #8A1214; }

/* ── Find-yourself search ──────────────────────────────────────────
   A player who is already in the district's records should not be
   typed in a second time under a slightly different spelling. */
.finder { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.finder-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.finder-results li { margin: 0; }
.finder-hit {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; cursor: pointer; font: inherit; margin: 0;
  transition: border-color 160ms ease, background 160ms ease;
}
.finder-hit:hover { border-color: var(--brand); background: var(--surface-tint); transform: none; }
.finder-hit .nm { font-weight: 700; color: var(--ink); }
.finder-hit .meta { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.finder-hit .grp {
  margin-left: auto; flex: none; font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--green-tint);
  border-radius: 99px; padding: 4px 9px;
}
.finder-empty { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }

.linked-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px;
  background: var(--surface-tint); border: 1px solid var(--brand);
  border-radius: var(--radius); padding: 12px 14px; font-size: .9rem; color: var(--ink);
}
.linked-note button {
  margin: 0 0 0 auto; flex: none; background: none; border: 0; padding: 0;
  color: var(--brand); font-weight: 700; font-size: .86rem; text-decoration: underline; cursor: pointer;
}

/* ── Payment block ─────────────────────────────────────────────────
   Banking details are read off a phone at a kitchen table and typed
   into another app, so they are set in a monospaced face with room
   between the lines. Getting one digit wrong costs the organiser an
   afternoon of matching payments to people. */
.pay-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pay-head {
  background: var(--brand-dark); color: #fff; padding: 12px 16px;
  font-weight: 800; font-size: .95rem;
}
.pay-body { padding: 16px; background: var(--surface); }
.pay-lines { display: grid; gap: 8px; margin: 0; }
.pay-lines div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.pay-lines dt, .pay-lines .k {
  flex: 0 0 130px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 800; color: var(--muted);
}
.pay-lines dd, .pay-lines .v {
  margin: 0; font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: .02em;
}
.pay-note { font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
.pay-note b { color: var(--ink); }

.fee-line {
  font-size: 1.15rem; font-weight: 800; color: var(--brand-dark);
  margin: 0 0 14px;
}

/* Deadlines are the thing people miss, so they get their own block. */
.deadline-note {
  background: var(--surface-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px; margin: 0 0 22px; font-size: .93rem;
  color: var(--muted); line-height: 1.6;
}
.deadline-note strong { color: var(--ink); }

/* Two ways in, when an organiser has set up both. */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
@media (max-width: 700px) { .route-grid { grid-template-columns: 1fr; } }
.route { display: flex; flex-direction: column; }
.route p { flex: 1; }
