/* The join box (Join Kinetic form), shared by the homepage and the club booking pages: join-form.js. */
/* What the pages don't share: section spacing, headings, buttons, the fine print. */
.join { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.join.grain { background-image: var(--grain); }
.join h2 { font-style: italic; font-variation-settings: "wdth" 125; font-weight: 850; line-height: 0.98; letter-spacing: -0.015em; margin: 0; }
.join .btn-lg { padding: 1.05rem 2rem; font-size: var(--step-1); }
.join .fine { margin-top: 1.5rem; font-size: var(--step--1); }

/* Join */
.join { background-color: var(--court); color: var(--line); position: relative; overflow: hidden; }
.join h2 { font-size: var(--step-4); max-width: 13ch; }
.join p { margin-top: 1.75rem; font-size: var(--step-1); max-width: 34rem; line-height: 1.45; }
.join .fine { color: rgba(255,255,255,0.75); }
.join .join-form .fine { color: var(--ink-soft, #4d5b6b); } /* inside the white form card */
.join .cta-row { margin-top: 2.5rem; }
.join .lines {
  position: absolute; right: -6rem; top: 50%; transform: translateY(-50%);
  width: 32rem; opacity: 0.18; pointer-events: none;
}
@media (max-width: 860px) { .join .lines { display: none; } }
.join-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; position: relative; z-index: 1; }
.join-grid > * { min-width: 0; }
.join-grid h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); max-width: 12ch; }
.join p.fine { font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }
.join .join-form { margin: 0; background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 40px 70px -30px rgba(0,0,0,0.5); }
.join-form .field { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.join-form label, .join-form legend { display: block; font-weight: 650; font-size: var(--step--1); margin-bottom: 0.4rem; padding: 0; }
.join-form input[type="text"], .join-form input[type="tel"], .join-form input[type="email"] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid #c7cbbd; border-radius: 6px; background: #fff;
}
.join-form input:focus { outline: 3px solid var(--ball); outline-offset: 1px; border-color: var(--ink); }
.join-form input[aria-invalid="true"] { border-color: #b3261e; }
.join-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .join-form .row2 { grid-template-columns: 1fr; } }
.join-form .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.join-form .chips label { margin: 0; font-weight: 500; cursor: pointer; }
.join-form .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.join-form .chips span {
  display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: var(--step--1);
  box-shadow: inset 0 0 0 1.5px #c7cbbd; background: #fff; transition: background-color 0.15s, box-shadow 0.15s;
}
.join-form .chips input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.join-form .chips input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 2px; }
.join-form .consent { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 500; margin: 0.4rem 0 0; cursor: pointer; }
.join-form .consent input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--court); flex: none; }
.join-form .err { margin: 0.35rem 0 0; font-size: 0.8125rem; color: #b3261e; min-height: 0; }
.join-form .err:empty { display: none; }
.join-form .submit { width: 100%; margin-top: 1.25rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: var(--step-1); }
.join-form .submit[disabled] { opacity: 0.6; cursor: wait; }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-form .form-status { margin: 0.9rem 0 0; font-size: var(--step--1); }
.join-form .hint { margin: 0.35rem 0 0; font-size: 0.8125rem; opacity: 0.75; }
.join-form #jf-email-known { margin: -0.4rem 0 1.1rem; opacity: 1; }
.join-form .hello { margin: 0 0 1.1rem; padding: 0.8rem 1rem; border-radius: 6px; background: #eef5c9; font-weight: 600; }
.join-form .linkish { font: inherit; font-weight: 400; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.join-form .next { margin-top: 0.25rem; }
.join-form [hidden] { display: none !important; }
.join-form .form-status:empty { display: none; }
.join-form.done .form-status { font-size: var(--step-0); font-weight: 600; padding: 1rem 1.1rem; border-radius: 6px; background: #eef5c9; }
.join-form .phone-row { display: flex; gap: 0.5rem; }
.join-form .phone-row select { flex: 0 0 auto; max-width: 9.5rem; font: inherit; }
.join-form .phone-row input { flex: 1; min-width: 0; }
.join-form .clubs-picked { margin: 0 0 1.1rem; padding: 0.8rem 1rem; border-radius: 6px; background: #eef5c9; font-size: var(--step--1); }
.founder-note {
  margin-top: 1.5rem; display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px;
  background: rgba(219,234,58,0.16); box-shadow: inset 0 0 0 1.5px var(--ball);
  font-size: var(--step--1); color: var(--line);
}
.join p.founder-note { font-size: var(--step--1); line-height: 1.4; }
.founder-note b { color: var(--ball); }

/* The level step: four questions instead of picking a level. */
.join-form .level-step { border-top: 1px solid rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.1); padding: 1rem 0 0.25rem; margin: 0.5rem 0 1rem; }
.join-form .step-title { font-weight: 750; margin: 0; }
.join-form .chips.stack { flex-direction: column; align-items: stretch; }
.join-form .chips.stack span { display: block; border-radius: 0.6rem; text-align: left; }
.join-form .quiz-result { margin: 0.25rem 0 1rem; padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: var(--ball, #dfe94a); color: var(--ink, #12221b); font-size: var(--step--1); }
.join-form .level-known { margin: 0 0 1rem; }
.join-form .chips.stack input:checked + span { background: #12221b; color: #fff; box-shadow: inset 0 0 0 1.5px #12221b; }
.join-form .level-step .hint { margin-bottom: 0.75rem; }

.join-form .invite-friends { display: inline-block; margin-top: 0.75rem; background: #25d366; color: #0b2e1a; text-decoration: none; }
