/* coach-apply.html — the public coach application (sign in, details, assessment, interview). */

.xt-ca-body {
  background: #08090d;
  font-family: 'Plus Jakarta Sans', var(--font-body), sans-serif;
  color: #fff;
}

.xt-ca {
  --ca-card: rgba(255, 255, 255, 0.04);
  --ca-line: rgba(255, 255, 255, 0.09);
  --ca-muted: #a3a3b5;
  --ca-orange: #ff7a00;
  max-width: 920px;
  margin: 0 auto;
  padding: 110px 16px 64px;
}

/* Components here set display; [hidden] must still win. */
.xt-ca [hidden], .xt-ca-body [hidden] { display: none !important; }

.xt-ca-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.xt-ca-account { color: var(--ca-muted, #a3a3b5); font-size: 0.85rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- hero + steps ---------------------------------------------------------------------- */

.xt-ca-hero { text-align: center; margin-bottom: 1.75rem; }
.xt-ca-eyebrow { color: var(--ca-orange); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.6rem; }
.xt-ca-eyebrow i { margin-right: 6px; }
.xt-ca-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.7rem; }
.xt-ca-lead { color: var(--ca-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 1.6rem; }

.xt-ca-steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
  margin: 0 auto; padding: 0; max-width: 820px; text-align: left;
}
.xt-ca-step {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  background: var(--ca-card); border: 1px solid var(--ca-line); border-radius: 14px;
}
.xt-ca-step__num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: rgba(255, 255, 255, 0.08); color: #fff;
}
.xt-ca-step__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.xt-ca-step__text strong { font-size: 0.95rem; }
.xt-ca-step__text small { color: var(--ca-muted); font-size: 0.78rem; }
.xt-ca-step.is-current { border-color: rgba(255, 122, 0, 0.55); background: rgba(255, 122, 0, 0.07); }
.xt-ca-step.is-current .xt-ca-step__num { background: var(--ca-orange); }
.xt-ca-step.is-done .xt-ca-step__num { background: rgba(76, 175, 80, 0.25); color: #7fdc83; }
.xt-ca-step.is-done .xt-ca-step__num::before { content: '\2713'; }
.xt-ca-step.is-done .xt-ca-step__num { font-size: 0; }
.xt-ca-step.is-done .xt-ca-step__num::before { font-size: 1rem; }

/* --- cards, forms ------------------------------------------------------------------------ */

.xt-ca-card {
  background: var(--ca-card); border: 1px solid var(--ca-line); border-radius: 18px;
  padding: 1.6rem; margin-top: 1rem;
}
.xt-ca-h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin-bottom: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.xt-ca-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ca-orange); background: rgba(255, 122, 0, 0.12); padding: 0.25rem 0.6rem; border-radius: 999px; }
.xt-ca-muted { color: var(--ca-muted); line-height: 1.6; margin-bottom: 1rem; }
.xt-ca-error { color: #ff8a80; background: rgba(244, 67, 54, 0.1); border: 1px solid rgba(244, 67, 54, 0.3); border-radius: 10px; padding: 0.6rem 0.85rem; margin: 0.8rem 0; }

.xt-ca-fieldset { border: none; padding: 0; margin: 0 0 1.4rem; }
.xt-ca-fieldset legend { font-weight: 700; color: #fff; margin-bottom: 0.7rem; font-size: 1rem; }
.xt-ca-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.xt-ca-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; font-size: 0.9rem; }
.xt-ca-grid .xt-ca-field { margin-bottom: 0; }
.xt-ca-field > span { font-weight: 600; color: #e6e6ef; }
.xt-ca-field em { color: var(--ca-orange); font-style: normal; }
.xt-ca-field small { color: var(--ca-muted); font-weight: 400; }
.xt-ca-field input, .xt-ca-field select, .xt-ca-field textarea {
  width: 100%; background: rgba(0, 0, 0, 0.35); color: #fff; border: 1px solid var(--ca-line);
  border-radius: 10px; padding: 0.7rem 0.85rem; font: inherit; font-size: 0.95rem; min-height: 44px;
}
.xt-ca-field textarea { resize: vertical; line-height: 1.5; }
.xt-ca-field select option { background: #15151d; }
.xt-ca-field input:focus, .xt-ca-field select:focus, .xt-ca-field textarea:focus { outline: none; border-color: rgba(255, 122, 0, 0.6); box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15); }
.xt-ca-field [aria-invalid="true"] { border-color: rgba(244, 67, 54, 0.7); }
.xt-ca-field__err { color: #ff8a80 !important; }
.xt-ca-count { align-self: flex-end; font-size: 0.75rem; }

.xt-ca-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.xt-ca-row--end { justify-content: flex-end; }

.xt-ca-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px;
  padding: 0.7rem 1.3rem; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.95rem; color: #fff; background: var(--ca-orange); text-decoration: none;
}
.xt-ca-btn:hover { background: #ff8a1f; }
.xt-ca-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.xt-ca-btn--ghost { background: transparent; border-color: var(--ca-line); }
.xt-ca-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.xt-ca-btn--google { background: #fff; color: #1f1f1f; width: 100%; max-width: 360px; }
.xt-ca-btn--google:hover { background: #f1f1f1; }
.xt-ca-link { background: none; border: none; padding: 0.4rem 0; color: var(--ca-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; }
.xt-ca-link:hover { color: #fff; }

.xt-ca-emailauth { margin-top: 1rem; max-width: 420px; }
.xt-ca-emailauth summary { cursor: pointer; color: var(--ca-muted); padding: 0.4rem 0; }
.xt-ca-emailauth form { margin-top: 0.8rem; }

.xt-ca-rules { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.75rem; }
.xt-ca-rules li { display: flex; gap: 0.8rem; align-items: flex-start; line-height: 1.55; color: #dcdce6; }
.xt-ca-rules i { color: var(--ca-orange); margin-top: 0.25rem; width: 18px; text-align: center; }

/* --- assessment ----------------------------------------------------------------------- */

.xt-ca-test__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.xt-ca-test__head .xt-ca-h2 { margin: 0; flex: 1 1 auto; }
.xt-ca-chip { font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.xt-ca-chip--tactical { background: rgba(255, 122, 0, 0.14); color: #ffb26b; }
.xt-ca-chip--positional { background: rgba(100, 160, 255, 0.14); color: #9cc3ff; }
.xt-ca-timer { font-variant-numeric: tabular-nums; color: var(--ca-muted); font-weight: 600; }
.xt-ca-timer.is-over { color: #ffb26b; }
.xt-ca-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); margin: 0.9rem 0 1.2rem; overflow: hidden; }
.xt-ca-progress span { display: block; height: 100%; width: 0; background: var(--ca-orange); transition: width 0.3s ease; }
.xt-ca-test__body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.4rem; align-items: start; }
.xt-ca-board { width: 100%; max-width: 520px; }
#ca-board-status { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.8rem; }
.xt-ca-confirm { background: rgba(255, 122, 0, 0.07); border: 1px solid rgba(255, 122, 0, 0.35); border-radius: 12px; padding: 0.85rem; margin-bottom: 0.8rem; }
.xt-ca-confirm p { margin-bottom: 0.6rem; }

/* --- interview -------------------------------------------------------------------------- */

.xt-ca-founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1.2rem; }
.xt-ca-founder {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.1rem; cursor: pointer;
  background: rgba(0, 0, 0, 0.25); border: 2px solid var(--ca-line); border-radius: 16px; color: #fff; font: inherit;
}
.xt-ca-founder:hover { border-color: rgba(255, 255, 255, 0.25); }
.xt-ca-founder.is-selected { border-color: var(--ca-orange); background: rgba(255, 122, 0, 0.08); }
.xt-ca-founder__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 0.3rem; }
.xt-ca-founder__name { font-weight: 800; font-size: 1.1rem; }
.xt-ca-founder__role { color: var(--ca-muted); font-size: 0.85rem; }
.xt-ca-book { display: grid; gap: 0.8rem; justify-items: start; }
.xt-ca-book .xt-ca-field { width: 100%; margin-bottom: 0; }
.xt-ca-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.xt-ca-embed iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (max-width: 640px) { .xt-ca-embed iframe { height: 720px; } }

.xt-ca-done { text-align: center; }
.xt-ca-done > i { font-size: 2.6rem; color: #7fdc83; margin-bottom: 0.6rem; }
.xt-ca-done .xt-ca-h2 { justify-content: center; }
.xt-ca-done p { color: #dcdce6; margin-bottom: 0.8rem; line-height: 1.6; }

@media (max-width: 760px) {
  .xt-ca { padding-top: 92px; }
  .xt-ca-steps { grid-template-columns: 1fr; }
  .xt-ca-grid { grid-template-columns: 1fr; }
  .xt-ca-card { padding: 1.15rem; }
  .xt-ca-test__body { grid-template-columns: 1fr; }
  .xt-ca-board { max-width: none; }
  .xt-ca-row .xt-ca-btn { flex: 1 1 auto; }
  .xt-ca-account { display: none; }
}

@media (max-width: 420px) {
  .xt-ca-founders { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .xt-ca-founder { padding: 0.8rem 0.5rem; }
  .xt-ca-founder__img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .xt-ca-progress span { transition: none; }
}

/* Application status after the interview is booked. */
.xt-ca-track { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0; }
.xt-ca-track__step { position: relative; display: flex; gap: 0.85rem; padding: 0 0 1.1rem; }
.xt-ca-track__step::before {
  content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.1);
}
.xt-ca-track__step:last-child::before { display: none; }
.xt-ca-track__step.is-done::before { background: rgba(127, 220, 131, 0.5); }
.xt-ca-track__dot {
  flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2); color: #0b0b12; font-size: 0.75rem;
}
.xt-ca-track__step.is-done .xt-ca-track__dot { background: #7fdc83; border-color: #7fdc83; }
.xt-ca-track__step.is-current .xt-ca-track__dot { border-color: #ff9d42; box-shadow: 0 0 0 4px rgba(255, 157, 66, 0.15); }
.xt-ca-track__text { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.2rem; }
.xt-ca-track__text strong { color: #fff; }
.xt-ca-track__step:not(.is-done):not(.is-current) .xt-ca-track__text strong { color: #8a8d9c; }
.xt-ca-track__text small { color: #a0a3b5; font-size: 0.82rem; }
.xt-ca-next { text-align: left; max-width: 46ch; margin: 0.6rem auto 1.2rem; padding-left: 1.2rem; color: #dcdce6; line-height: 1.6; }
.xt-ca-next li { margin-bottom: 0.4rem; }
