/* GAMW Ensembles - public registration form.
   Scoped to .gamw-ens-form so it cannot leak into the theme. */

.gamw-ens-form {
  --gf-navy: #1A1F3C;
  --gf-pink: #FF325C;
  --gf-line: #E3E7F0;
  --gf-muted:#6B7280;
  --gf-ok:   #10B981;
  --gf-bad:  #EF4444;

  max-width: 720px; margin: 0 auto; padding: 4px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--gf-navy);
  -webkit-font-smoothing: antialiased;
}
.gamw-ens-form *, .gamw-ens-form *::before, .gamw-ens-form *::after { box-sizing: border-box; }
.gamw-ens-form button, .gamw-ens-form input, .gamw-ens-form select, .gamw-ens-form textarea { font: inherit; }

/* ── Header ──────────────────────────────────────────────────────── */
.gf-head { margin-bottom: 22px; }
.gf-badge {
  display: inline-block; background: var(--gf-pink); color: #fff;
  font-family: Syne, Georgia, serif; font-weight: 800; font-size: 15px;
  border-radius: 8px; padding: 4px 11px; margin-bottom: 12px;
}
.gf-head h2 {
  font-family: Syne, Georgia, serif; font-weight: 800;
  font-size: clamp(22px, 4.4vw, 30px); line-height: 1.15; margin: 0 0 6px;
  color: var(--gf-navy);
}
.gf-year { font-size: 14px; font-weight: 700; color: var(--gf-pink); letter-spacing: .04em; }
.gf-intro { color: var(--gf-muted); font-size: 15px; margin: 10px 0 0; }
.gf-lang { float: right; display: flex; gap: 3px; background: #EEF1F8; border-radius: 9px; padding: 3px; }
.gf-lang button {
  border: 0; background: transparent; cursor: pointer; border-radius: 7px;
  padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--gf-muted);
}
.gf-lang button.on { background: #fff; color: var(--gf-navy); box-shadow: 0 1px 3px rgba(26,31,60,.14); }

/* ── Language chooser ────────────────────────────────────────────── */
.gf-pick { margin-bottom: 14px; }
.gf-pick-head { text-align: center; margin-bottom: 18px; }
.gf-pick-q { margin: 0 0 3px; font-size: 16px; font-weight: 700; color: var(--gf-navy); }
.gf-pick-q + .gf-pick-q { font-weight: 600; font-size: 15px; color: #55607A; }
.gf-pick-q + .gf-pick-q + .gf-pick-q { font-weight: 600; font-size: 15px; color: #55607A; }

.gf-pick-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gf-pick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--gf-line); border-radius: 16px;
  padding: 22px 14px 18px; cursor: pointer; color: var(--gf-navy);
  box-shadow: 0 1px 2px rgba(26,31,60,.05), 0 10px 30px rgba(26,31,60,.06);
  transition: border-color .12s, transform .08s, box-shadow .12s;
}
.gf-pick-btn:hover {
  border-color: var(--gf-pink); transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(26,31,60,.08), 0 18px 40px rgba(255,50,92,.16);
}
.gf-pick-btn:active { transform: translateY(0); }
.gf-pick-flag { display: flex; }
.gf-pick-flag svg {
  border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.28);
  display: block;
}
.gf-pick-name { font-size: 17px; font-weight: 800; line-height: 1.1; }
.gf-pick-sub { font-size: 12.5px; color: var(--gf-muted); text-align: center; line-height: 1.3; }

@media (max-width: 560px) {
  .gf-pick-btns { grid-template-columns: 1fr; gap: 10px; }
  .gf-pick-btn { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; text-align: left; }
  .gf-pick-btn .gf-pick-name { flex: 0 0 auto; }
  .gf-pick-sub { text-align: left; }
}

/* the small in-form switcher keeps its flags too */
.gf-lang button { display: inline-flex; align-items: center; gap: 5px; }
.gf-lang svg { border-radius: 2px; display: block; }

/* ── Wizard ──────────────────────────────────────────────────────── */
.gf-wiz { margin-bottom: 14px; }
.gf-wiz-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gf-wiz-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: 0; padding: 6px 2px 0; cursor: pointer;
  border-top: 3px solid var(--gf-line); color: var(--gf-muted);
  font-size: 12px; font-weight: 700; transition: border-color .15s, color .15s;
}
.gf-wiz-step:disabled { cursor: default; }
.gf-wiz-step.done { border-top-color: var(--gf-ok); color: var(--gf-navy); }
.gf-wiz-step.on   { border-top-color: var(--gf-pink); color: var(--gf-navy); }
.gf-wiz-nr {
  width: 22px; height: 22px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  background: #EEF1F8; color: var(--gf-muted);
}
.gf-wiz-step.done .gf-wiz-nr { background: var(--gf-ok); color: #fff; }
.gf-wiz-step.on .gf-wiz-nr   { background: var(--gf-pink); color: #fff; }
.gf-wiz-lb { line-height: 1.15; text-align: center; }
.gf-wiz-of { margin-top: 10px; font-size: 12px; color: var(--gf-muted); text-align: center; }

.gf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.gf-nav .gf-submit { width: auto; min-width: 190px; }
.gf-btn-back {
  background: none; border: 1.5px solid var(--gf-line); border-radius: 11px;
  padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--gf-navy);
  cursor: pointer;
}
.gf-btn-back:hover { border-color: #C7CEE0; background: #FAFBFE; }

/* ── Already registered ──────────────────────────────────────────── */
.gf-dup-title { font-family: Syne, Georgia, serif; font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.gf-dup-text { color: var(--gf-muted); font-size: 14.5px; margin: 0 0 16px; }
.gf-dup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gf-sum {
  border: 1.5px solid var(--gf-line); border-radius: 13px; padding: 14px;
  background: #FAFBFE; font-size: 13.5px;
}
.gf-sum.is-new { border-color: var(--gf-ok); background: #F3FCF8; }
.gf-sum-title { font-weight: 800; margin-bottom: 8px; }
.gf-sum-when { font-size: 12px; color: var(--gf-muted); margin-bottom: 8px; }
.gf-sum-instr { display: flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 8px; }
.gf-sum-prefs { margin: 0 0 8px; padding-left: 20px; line-height: 1.55; }
.gf-sum-note { font-size: 12.5px; color: var(--gf-muted); margin-top: 4px; }
.gf-dup-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.gf-dup-btns .gf-submit { width: auto; flex: 1 1 220px; }
.gf-dup-btns .gf-btn-back { flex: 1 1 180px; }

@media (max-width: 560px) {
  .gf-dup { grid-template-columns: 1fr; }
  .gf-wiz-lb { display: none; }
  .gf-nav .gf-submit { min-width: 0; flex: 1 1 auto; }
}

/* ── Fields ──────────────────────────────────────────────────────── */
.gf-card {
  background: #fff; border: 1.5px solid var(--gf-line); border-radius: 16px;
  padding: 20px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(26,31,60,.05), 0 10px 30px rgba(26,31,60,.05);
}
.gf-q { margin-bottom: 18px; }
.gf-q:last-child { margin-bottom: 0; }
.gf-q > label, .gf-legend {
  display: block; font-weight: 700; font-size: 15px; margin-bottom: 3px;
}
.gf-q .gf-en, .gf-legend .gf-en { display: block; font-weight: 500; font-size: 13px; color: var(--gf-muted); }
.gf-hint { font-size: 13px; color: var(--gf-muted); margin: 4px 0 8px; }
.gf-req { color: var(--gf-pink); }

.gf-input, .gf-select, .gf-textarea {
  width: 100%; background: #fff; color: var(--gf-navy);
  border: 1.5px solid var(--gf-line); border-radius: 11px;
  padding: 11px 13px; font-size: 16px; outline: none; margin-top: 7px;
  transition: border-color .12s, box-shadow .12s;
}
.gf-input:focus, .gf-select:focus, .gf-textarea:focus {
  border-color: var(--gf-navy); box-shadow: 0 0 0 3px rgba(26,31,60,.08);
}
.gf-input.is-bad, .gf-select.is-bad { border-color: var(--gf-bad); }
.gf-textarea { min-height: 84px; resize: vertical; }
.gf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.gf-err { color: var(--gf-bad); font-size: 13px; font-weight: 600; margin-top: 5px; display: none; }
.gf-err.on { display: block; }

/* ── Instrument picker ───────────────────────────────────────────── */
.gf-instr {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px;
}
.gf-instr-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--gf-line); border-radius: 12px;
  padding: 12px 6px 10px; cursor: pointer; color: var(--gf-navy);
  transition: border-color .12s, background .12s, transform .06s;
}
.gf-instr-btn:hover { border-color: #C7CEE0; background: #FAFBFE; }
.gf-instr-btn:active { transform: translateY(1px); }
.gf-instr-btn.on { border-color: var(--gf-pink); background: #FFF5F7; }
.gf-instr-btn.on .gf-instr-ic { color: var(--gf-pink); }
.gf-instr-ic { color: #6B7280; display: flex; }
.gf-instr-ic .ge-emoji, .gf-with-icon .ge-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal; line-height: 1;
}
.gf-instr-btn.on .gf-instr-ic .ge-emoji { filter: none; }
.gf-instr-lb {
  font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center;
  overflow-wrap: anywhere;
}
.gf-with-icon { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.gf-with-icon .gf-select { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.gf-with-icon svg { flex: 0 0 auto; color: var(--gf-navy); }

@media (max-width: 560px) { .gf-instr { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 360px) { .gf-instr { grid-template-columns: repeat(2, 1fr); } }

/* ── Slot picker ─────────────────────────────────────────────────── */
.gf-slots { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gf-slot {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid var(--gf-line); border-radius: 12px;
  padding: 11px 13px; cursor: pointer; color: var(--gf-navy);
  transition: border-color .12s, background .12s;
}
.gf-slot:hover { border-color: #C7CEE0; background: #FAFBFE; }
.gf-slot.on { border-color: var(--gf-navy); background: #F7F9FD; }
.gf-rank {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  background: #EEF1F8; color: #B9C0D2; border: 1.5px dashed #D8DEEB;
}
.gf-slot.on .gf-rank { background: var(--gf-navy); color: #fff; border-style: solid; border-color: var(--gf-navy); }
.gf-slot-txt { flex: 1 1 auto; min-width: 0; }
.gf-slot-when { display: block; font-weight: 700; font-size: 14.5px; color: var(--gf-navy); }
.gf-slot-who  { display: block; font-size: 13px; color: var(--gf-muted); }

/* day heading above each group of hours */
.gf-day {
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gf-pink); margin: 14px 0 2px; padding-left: 2px;
}
.gf-day:first-child { margin-top: 2px; }

/* the time is the loudest thing on the row */
.gf-time {
  flex: 0 0 auto; font-weight: 800; font-size: 15px; color: var(--gf-navy);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.gf-slot.on .gf-time { color: var(--gf-navy); }
.gf-slot-who2 { display: block; font-size: 13.5px; font-weight: 600; color: var(--gf-navy); }
.gf-slot-loc  { display: block; font-size: 12px; color: var(--gf-muted); }

@media (max-width: 420px) {
  .gf-slot { flex-wrap: wrap; }
  .gf-time { font-size: 14px; }
}

/* ── Checkbox ────────────────────────────────────────────────────── */
.gf-check {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  background: #FAFBFE; border: 1.5px solid var(--gf-line); border-radius: 12px;
  padding: 13px; margin-top: 10px;
}
.gf-check:hover { border-color: #C7CEE0; }
.gf-check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--gf-pink); flex: 0 0 auto; cursor: pointer; }
.gf-check span { font-size: 14px; }
.gf-check span small { display: block; color: var(--gf-muted); font-size: 12.5px; margin-top: 2px; }

/* ── Submit ──────────────────────────────────────────────────────── */
.gf-submit {
  width: 100%; border: 0; border-radius: 13px; padding: 15px;
  background: var(--gf-pink); color: #fff; font-size: 16px; font-weight: 800;
  cursor: pointer; box-shadow: 0 6px 20px rgba(255,50,92,.32);
  transition: background .12s, transform .06s;
}
.gf-submit:hover { background: #ED2B52; }
.gf-submit:active { transform: translateY(1px); }
.gf-submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.gf-foot { font-size: 12.5px; color: var(--gf-muted); text-align: center; margin-top: 12px; }

.gf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Messages ────────────────────────────────────────────────────── */
.gf-msg { border-radius: 14px; padding: 18px; font-size: 15px; }
.gf-msg--bad { background: #FEECEC; color: #B42318; border: 1.5px solid #F8B4B4; }
.gf-msg--closed { background: #FEF6E7; color: #92600B; border: 1.5px solid #F5D89B; text-align: center; }

.gf-done { text-align: center; padding: 34px 20px; }
.gf-done .gf-tick {
  width: 58px; height: 58px; border-radius: 50%; background: var(--gf-ok); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 16px; font-weight: 700;
}
.gf-done h3 { font-family: Syne, Georgia, serif; font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.gf-done p { color: var(--gf-muted); margin: 0 0 6px; }
.gf-done strong { display: block; margin-bottom: 6px; font-size: 14px; }
.gf-done ol {
  text-align: left; width: fit-content; max-width: 100%;
  margin: 0 auto; padding-left: 22px; font-size: 14.5px; line-height: 1.7;
}

@media (max-width: 540px) {
  .gf-row { grid-template-columns: 1fr; }
  .gf-card { padding: 16px; border-radius: 14px; }
}
