/* The coach sign-up pop-up (BUGS #291, #278; 2026-10-29). Centered on phone and desk, never a bottom
   sheet or a long page. Uses style.css's tokens and form look; only the pop-up's own frame lives here. */

.su-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
  overflow: auto;
  overscroll-behavior: contain;
}
.su-dialog::backdrop { background: rgba(10, 14, 18, .55); backdrop-filter: blur(2px); }
.su-inner { padding: 28px 24px 24px; display: grid; gap: 16px; position: relative; }
.su-close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.su-close:hover { color: var(--text); background: var(--bg); }
.su-close:focus-visible { outline: 3px solid var(--main); outline-offset: 2px; }
.su-close svg { width: 22px; height: 22px; }
.su-inner h2 { font-size: 1.6rem; line-height: 1.2; margin: 0; padding-right: 40px; }
.su-lede { margin: 0; color: var(--muted); }
.su-gets { list-style: none; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--glow, rgba(10, 100, 168, .08)); display: grid; gap: 8px; }
.su-gets li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.su-gets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 2px; background: var(--main); transform: rotate(45deg); }
.su-gets li[hidden] { display: none; }
.su-gets .su-seat { font-size: 1.05rem; }
.su-step { display: grid; gap: 14px; }
.su-step .eyebrow { margin: 0; }
.su-step[hidden] { display: none !important; }
.su-code {
  font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums;
}
.su-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.su-links button { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--main); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.su-ok { margin: 0; color: var(--green); font-weight: 600; }
.su-ok:empty { display: none; }
.su-done { text-align: center; }
.su-done svg { width: 64px; height: 64px; margin: 4px auto 8px; color: var(--green); display: block; }
.su-door { margin-top: 4px; }
html.su-open { overflow: hidden; }
@media (max-width: 420px) {
  .su-inner { padding: 24px 18px 20px; }
  .su-inner h2 { font-size: 1.4rem; }
}
/* The Turnstile person check: invisible unless Cloudflare needs a tap, then a centered box that never
   overflows the pop-up (its widget is 300px wide; the pop-up is at least 358px at phone width). */
.su-turnstile { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.su-turnstile:empty { display: none; }
