/* ==================================================================
   Run for the Mind - /register (stepped form; loads after styles.css)
   Steps, distance cards, +91 prefix, size chart, review rows, consents,
   step navigation and the bib preview, on the DESIGN.md system.
   ================================================================== */
.register-page .page-open { margin-bottom: 24px; }
.register-main .form { padding: clamp(16px, 3vw, 32px); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step > legend { display: block; width: 100%; margin: 0 0 16px; font-size: 2rem; font-weight: 500; line-height: 1.2; outline-offset: 6px; }
.step-intro { margin: -8px 0 24px; color: var(--charcoal); }
.step-notes { margin-top: 24px; color: var(--charcoal); font-size: .875rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.step-nav .btn-gold { margin-left: auto; }
.step-status { margin: 16px 0 0; }

/* Distance cards: square soft-cloud tiles; the chosen one takes a 2px black ring */
.distance-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.distance-pill { position: relative; cursor: pointer; }
.distance-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.distance-pill > span { display: flex; flex-direction: column; gap: 4px; min-height: 8.5rem; padding: 16px; background: var(--soft-cloud); }
.distance-pill strong { font-family: var(--font-display); font-weight: 400; font-size: 4rem; line-height: .9; color: var(--ink); }
.distance-pill strong small { font-size: .5em; margin-left: .06em; color: var(--mute); }
.distance-pill .dp-name { font-size: .875rem; font-weight: 500; color: var(--mute); }
.distance-pill .dp-fee { margin-top: auto; font-size: 1rem; font-weight: 500; color: var(--ink); }
.distance-pill input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.distance-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 30rem) {
  .distance-pills { grid-template-columns: 1fr; }
  .distance-pill > span { flex-direction: row; align-items: center; gap: 16px; min-height: 0; }
  .distance-pill strong { font-size: 3rem; min-width: 5rem; }
  .distance-pill .dp-fee { margin-top: 0; margin-left: auto; }
}

/* Fields */
.phone-wrap { position: relative; }
.phone-wrap .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.phone-wrap input { padding-left: 3.4rem; }
.size-chart { margin-top: 2px; font-size: .875rem; color: var(--mute); }
.size-chart summary { cursor: pointer; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; list-style: none; }
.size-chart summary::-webkit-details-marker { display: none; }
.size-chart p { margin: 8px 0 0; }

/* Review */
.review { margin: 0 0 24px; }
.review dd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.review dd .edit { font-size: .875rem; font-weight: 500; white-space: nowrap; }
.review dd .empty { color: var(--mute); font-weight: 400; }
.consents { display: grid; gap: 16px; margin: 24px 0; }
#turnstile-box { margin-top: 16px; }
#turnstile-widget { min-height: 65px; }

/* Bib preview: a white bib on the soft-cloud tile */
.bib { position: relative; overflow: hidden; padding: 20px 20px 16px; background: var(--canvas); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.bib-top { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; font-weight: 500; color: var(--mute); }
.bib-top .bib-event { color: var(--ink); }
.bib-number { margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(4rem, 10vw, 6rem); line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.bib-name { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-transform: uppercase; color: var(--ink); min-height: 1em; overflow-wrap: anywhere; }
.bib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: .75rem; font-weight: 500; color: var(--mute); }
.bib-meta [data-bib-distance] { color: var(--on-primary); background: var(--ink); padding: 2px 12px; border-radius: var(--radius-pill); }
.bib-holes { position: absolute; inset: 8px 10px auto; display: flex; justify-content: space-between; pointer-events: none; }
.bib-holes i { width: 8px; height: 8px; border-radius: 50%; background: var(--soft-cloud); box-shadow: inset 0 0 0 1px var(--hairline); }
.bib-hint { margin: 12px 0 0; font-size: .875rem; color: var(--mute); }
