/* Golf Fellow — the coach page (`/coaches`).
 *
 * Loaded AFTER `site.css` and `landing.css`: the header, hero, phone frame and
 * feature rows are the landing page's own, so the two pages cannot drift. This
 * file holds only what the landing page has no use for — the deal cards, the
 * consent list, the three steps and the interest form.
 *
 * NO INLINE STYLE anywhere on these pages: their CSP is `style-src 'self'`,
 * which blocks a `style=""` attribute as surely as a <style> block.
 *
 * The one new colour is the error red, copied from `tokens.ts`'s light
 * `errorText` (#d70015, accessible systemRed) — errors are red, never green.
 */

:root {
  --error-text: #d70015;
  --error-subtle: rgba(255, 59, 48, 0.12);
}

[hidden] { display: none !important; }

/* ── the deal: four cards ───────────────────────────────── */
.deal { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.deal .card h3 { font-size: 17px; }

/* ── what you get: a compact list before the picture rows ─ */
.gets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 64px; }
.gets .card p { font-size: 15px; }

/* ── what the golfer agrees to ──────────────────────────── */
.consent { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.consent ul { margin: 0; padding-left: 20px; color: var(--ink-800); }
.consent li { margin: 6px 0; }
.consent .never li::marker { content: "✕  "; color: var(--ink-600); }

/* ── how the pilot works: three numbered steps ──────────── */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; margin-bottom: 12px;
  background: var(--green-100); color: var(--green-600); font-weight: 700;
}

.mock-note { font-size: 13px; color: var(--ink-600); margin: 24px 0 0; }

/* ── the interest form ──────────────────────────────────── */
.lead-form {
  background: var(--ground); border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg); padding: 24px;
  max-width: 640px; margin: 0 auto; text-align: left;
}
.lead-form .field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.lead-form label, .lead-form legend {
  display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; color: var(--ink-900);
}
.lead-form legend { padding: 0; }
.lead-form .opt { font-weight: 400; color: var(--ink-600); font-size: 14px; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"],
.lead-form select, .lead-form textarea {
  display: block; width: 100%;
  font: inherit; font-size: 17px; color: var(--ink-900);
  background: var(--ground); border: 1px solid var(--ink-300);
  border-radius: var(--radius); padding: 11px 14px;
  appearance: none; -webkit-appearance: none;
}
.lead-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-600) 50%),
    linear-gradient(135deg, var(--ink-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible,
.lead-form button:focus-visible, .lead-form .check input:focus-visible {
  outline: 2px solid var(--green-500); outline-offset: 2px;
}
.lead-form .pair { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lead-form fieldset .pair label { font-weight: 500; font-size: 14px; color: var(--ink-700); }
.lead-form .hint { font-size: 14px; color: var(--ink-600); margin: -8px 0 18px; }

.lead-form .check {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: 15px; color: var(--ink-800); margin: 4px 0 20px;
}
.lead-form .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green-600); }

.lead-form button {
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  width: 100%; justify-content: center;
}
.lead-form button:disabled { opacity: 0.55; cursor: default; }

/* The honeypot: out of sight and out of the tab order. Not `display: none`,
   which the laziest bots already skip. */
.lead-form .hp {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius);
  font-size: 16px; background: var(--ink-100); color: var(--ink-800);
}
.form-status[data-kind="ok"] { background: var(--green-100); color: var(--green-700); font-weight: 600; }
.form-status[data-kind="error"] { background: var(--error-subtle); color: var(--error-text); }

/* The form sits on the closing band, so its button is golf green, not sand —
   same rule as the landing page's closing CTA. */
.closing .lead-form .cta-primary { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.closing .lead-form .cta-primary:hover { background: var(--green-700); border-color: var(--green-700); }

@media (max-width: 460px) {
  .lead-form { padding: 18px 16px; }
}
