/* =========================================
   PUBLIC REGISTRATION FORM — go.rechero.app/register/:slug and the league
   website's Registration tab (epic 0035 §5). Mobile-first: single column,
   thumb-sized targets, choice options as tappable card rows. Also rendered
   read-only inside HQ (Form tab preview). Prefix: pf-
   ========================================= */

.pf-page { max-width: 560px; margin: 0 auto; padding: 0.5rem 0 2rem; }
.pf-page--embed { padding-top: 0; }
.pf-embed { max-width: 560px; margin: 0 auto; }

.pf {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(17,24,39,0.08);
  overflow: hidden;
}
.pf__head { border-bottom: 1px solid var(--line-2); }
.pf__banner { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.pf__head-text { padding: 1rem 1.25rem 0.25rem; }
.pf__org { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
.pf__title { font-size: 1.2rem; font-weight: 800; margin-top: 2px; line-height: 1.25; }
.pf__desc { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.35rem; }
.pf__desc p:last-child { margin-bottom: 0; }
.pf__steps { display: flex; gap: 4px; padding: 0.6rem 1.25rem 0.8rem; }
.pf__stepdot { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-3); }
.pf__stepdot--done { background: var(--accent); }
.pf__body { padding: 1rem 1.25rem; }
.pf__body p:last-child { margin-bottom: 0; }
.pf__closed { padding: 1rem 1.25rem; color: var(--ink-2); font-style: italic; }
.pf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pf-section { padding: 1rem 1.25rem 0.5rem; }
.pf__steplabel { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.5rem; }
.pf-section__title { font-size: 1.1rem; font-weight: 800; margin: 0 0 0.25rem; }
.pf-section__desc { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0.75rem; }
.pf-section__img, .pf-content__img, .pf-field__img { width: 100%; border-radius: var(--r-md); margin: 0.4rem 0 0.6rem; display: block; }

.pf-content { margin: 0.25rem 0 1rem; padding: 0.75rem 0.9rem; background: var(--surface-2); border-radius: var(--r-md); font-size: 0.9rem; color: var(--ink-2); }
.pf-content__body p:last-child { margin-bottom: 0; }

.pf-field { margin-bottom: 1rem; }
.pf-field__label { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.pf-field__hint { font-size: 0.78rem; color: var(--ink-3); font-weight: 500; }
.pf-field__desc { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 0.4rem; }
.pf-field__desc p:last-child { margin-bottom: 0; }
.pf-field__error { font-size: 0.78rem; color: var(--danger); font-weight: 600; margin-top: 3px; min-height: 0; }
.pf-field--error .pf-input, .pf-field--error .pf-choice { border-color: var(--danger); }
.pf-req { color: var(--danger); }

.pf-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.pf-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.pf-input--area { min-height: 88px; resize: vertical; }
.pf-input--other { margin-top: 6px; }
.pf-input--other[hidden] { display: none; }

/* Card-row choices (v13) */
.pf-choices { display: flex; flex-direction: column; gap: 6px; }
.pf-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 0.95rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  position: relative;
}
.pf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-choice:hover { border-color: var(--ink-4); }
.pf-choice.is-on { border-color: var(--accent); background: var(--accent-light); }
.pf-choice.is-disabled { opacity: 0.55; cursor: default; }
.pf-choice.is-static { cursor: default; }
.pf-choice__mark { width: 18px; height: 18px; border: 1.5px solid var(--ink-4); border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.pf-choice__mark--box { border-radius: 4px; }
.pf-choice.is-on .pf-choice__mark { background: var(--accent); border-color: var(--accent); }
.pf-choice.is-on .pf-choice__mark::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
/* Option image sits ABOVE its label (Kyle 2026-08-24), inside a column. */
.pf-choice__content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-choice__img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.pf-choice__label { font-weight: 600; }
.pf-choice__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pf-choice__sub { font-size: 0.78rem; color: var(--ink-3); font-weight: 500; font-style: italic; }
.pf-choice--wd .pf-choice__label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-chip { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; background: var(--bg-2); color: var(--ink-3); white-space: nowrap; vertical-align: middle; }
.pf-chip--accent { background: var(--accent-light); color: var(--accent); }
.pf-chip--success { background: var(--success-soft); color: var(--success-dark); }

/* Rating */
.pf-rating { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.pf-rating__item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; padding: 6px 4px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-4); font-size: 0.7rem; font-weight: 700; position: relative; }
.pf-rating__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-rating__item:hover { background: var(--bg-2); }
.pf-rating__icon { width: 28px; height: 28px; }
.pf-rating__icon svg { width: 100%; height: 100%; }
.pf-rating__item.is-on { color: var(--warning-dark); }
.pf-rating__item.is-on .pf-rating__icon { color: var(--warning); }

/* Footer / buttons */
.pf__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.pf__foot--wd { margin: 1rem -1.25rem -1rem; }
.pf__foot-spacer { flex: 1; }
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 1.1rem; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.pf-btn[hidden] { display: none; }
.pf-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-btn--primary:hover { background: var(--accent-dark); }
.pf-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.pf-btn--ghost { background: transparent; }
.pf-btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }

.pf-notice { border-radius: var(--r-md); padding: 0.7rem 1rem; font-size: 0.9rem; margin-bottom: 0.75rem; }
.pf-notice--error { background: var(--danger-soft); color: var(--danger-dark); }
.pf-notice--warn { background: var(--warning-soft); color: var(--warning-dark); }
.pf-done__hint { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.75rem; }
.pf-wd__who { font-size: 0.82rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.pf-wd__intro { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 0.6rem; }

/* Read-only preview inside HQ */
.pf--preview .pf-input, .pf--preview .pf-choice { cursor: default; }
.pf--message .pf__head-text { padding-bottom: 0.75rem; }
