.reg-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--f1-space-8) var(--f1-space-6);
  position: relative;
}

/* Staff-only event check-in reuses this fullscreen booth layout on purpose
   (rapid-fire check-ins, no sidebar to accidentally navigate away with) —
   but that left no way back to Live Control at all. Public /register/ never
   includes this link (no url to admin_tools for an anonymous driver). */
.reg-back-link {
  position: absolute;
  top: var(--f1-space-6);
  left: var(--f1-space-6);
}

.reg-step {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  animation: reg-fade-in 0.5s ease;
}

.reg-step-hidden {
  display: none;
}

@keyframes reg-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reg-brand-logo {
  width: 84px;
  height: 84px;
  border-radius: var(--f1-radius-full);
  margin-bottom: var(--f1-space-5);
  box-shadow: var(--f1-shadow-md);
}

.reg-heading {
  font-size: clamp(1.8rem, 4vw, var(--f1-text-2xl));
  font-weight: var(--f1-weight-black);
  letter-spacing: 0.03em;
  margin-bottom: var(--f1-space-2);
}

.reg-heading-sm {
  font-size: var(--f1-text-xl);
  font-weight: var(--f1-weight-black);
  margin-bottom: var(--f1-space-5);
}

.reg-sub {
  color: var(--f1-text-dim);
  font-size: var(--f1-text-base);
  margin-bottom: var(--f1-space-10);
}

.reg-sub--tight {
  margin-top: calc(var(--f1-space-2) * -1);
  margin-bottom: var(--f1-space-6);
}

.reg-sub--spaced {
  margin-top: var(--f1-space-3);
}

.reg-sub--spaced-flush {
  margin-top: var(--f1-space-3);
  margin-bottom: 0;
}

/* Paid/Walk-in/Event source picker (users:event_register only) — switches
   which .reg-cards block is visible below (see event_register.js's
   setRegTab). Same toggle-button look as Live Control's reset-booking
   tabs (admin_tools/static/admin_tools/css/live_control.css's
   .lc-view-toggle), duplicated here in miniature since the two pages
   don't share a stylesheet. */
.reg-tabs {
  display: inline-flex;
  gap: var(--f1-space-1);
  background: var(--f1-surface);
  border: 1px solid var(--f1-border);
  border-radius: var(--f1-radius-sm);
  padding: var(--f1-space-1);
  margin-bottom: var(--f1-space-6);
}

.reg-tab {
  background: none;
  border: none;
  color: var(--f1-text-dim);
  padding: var(--f1-space-2) var(--f1-space-4);
  border-radius: var(--f1-radius-xs);
  font-size: var(--f1-text-sm);
  font-weight: var(--f1-weight-bold);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.reg-tab.is-active {
  background: var(--f1-surface-strong);
  color: var(--f1-text);
}

.reg-datetime-row {
  max-width: 360px;
  margin: var(--f1-space-6) auto 0;
  text-align: left;
}

.reg-datetime-label {
  display: block;
  font-size: var(--f1-text-sm);
  color: var(--f1-text-dim);
  margin-bottom: var(--f1-space-2);
}

.reg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--f1-space-6);
  /* Matches .reg-step's own max-width — wide enough that all 4
     TRACK_TIME_PACKAGES entries (5/30/60/90 min) fit on one row instead
     of the 4th wrapping to a second row and pushing the page past one
     screen (820px only fit 3 columns at the 220px floor). */
  max-width: 1000px;
  margin: 0 auto;
}

/* Without this, [hidden]'s default display:none loses to the display:grid
   above — same specificity (one class vs one attribute selector), and
   author CSS always beats the browser's own [hidden] UA rule on a tie.
   Same fix design-system.css already applies to .modal-f1[hidden]. */
.reg-cards[hidden] {
  display: none;
}

.reg-card {
  padding: var(--f1-space-8) var(--f1-space-6);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(225, 6, 0, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reg-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 16px 40px rgba(225, 6, 0, 0.25);
}

.reg-card:hover::before {
  opacity: 1;
}

.reg-card-minutes {
  font-family: var(--f1-mono);
  font-size: var(--f1-text-3xl);
  font-weight: var(--f1-weight-bold);
  line-height: 1;
  position: relative;
}

.reg-card-minutes-label {
  font-size: var(--f1-text-sm);
  letter-spacing: 0.25em;
  color: var(--f1-text-dim);
  margin-bottom: var(--f1-space-6);
  position: relative;
}

.reg-card-price {
  font-size: var(--f1-text-2xl);
  font-weight: var(--f1-weight-black);
  color: var(--f1-red);
  margin-bottom: var(--f1-space-6);
  position: relative;
}

/* Event check-in (users:event_register) is staff-assisted, no-payment
   entry — the packages are the same duration options as the paid flow,
   but showing a rupee amount here would wrongly imply the driver's being
   charged. */
.reg-card-price--free {
  color: var(--f1-green);
}

.reg-book-btn {
  width: 100%;
  position: relative;
}

.reg-congrats {
  padding: var(--f1-space-12) var(--f1-space-10);
  max-width: 560px;
  margin: 0 auto;
}

.reg-congrats-icon {
  font-size: var(--f1-text-3xl);
  margin-bottom: var(--f1-space-4);
}

.reg-name-card {
  padding: var(--f1-space-12) var(--f1-space-10);
  max-width: 480px;
  margin: 0 auto;
}

.reg-input {
  margin-bottom: var(--f1-space-5);
}

.reg-submit-btn {
  width: 100%;
}

.reg-leaderboard-link {
  display: inline-block;
  margin-top: var(--f1-space-6);
  text-decoration: none;
}

.reg-submit-btn + .reg-submit-btn {
  margin-top: var(--f1-space-4);
}

/* Game-selection page (pod_game_select.html) — same .reg-cards grid as the
   package-price cards, just holding a game logo instead of a minutes/price
   readout. */
.reg-cards--game .reg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reg-game-logo {
  max-width: 140px;
  max-height: 90px;
  width: auto;
  height: auto;
  margin-bottom: var(--f1-space-6);
}

/* Booking detail (pod_payment.html step-detail) — label/value rows, not a
   table, since there are only a handful and a table's borders/headers
   would be overkill for something this short. */
.pod-booking-detail {
  text-align: left;
  max-width: 360px;
  margin: 0 auto var(--f1-space-6);
}

.pod-booking-detail-row {
  display: flex;
  justify-content: space-between;
  gap: var(--f1-space-4);
  padding: var(--f1-space-2) 0;
  border-bottom: 1px solid var(--f1-border);
}

.pod-booking-detail-row:last-child {
  border-bottom: none;
}

.pod-booking-detail-row span {
  color: var(--f1-text-dim);
}

/* Animated checkmark (pod_payment.html step-splash) — standard SVG
   stroke-dashoffset draw-in, no library. Circle draws first, then the
   check mark, timed back-to-back via animation-delay. */
.pod-checkmark {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--f1-space-6);
  display: block;
}

.pod-checkmark-circle {
  stroke: var(--f1-green, #00c853);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: pod-checkmark-circle 0.5s ease forwards;
}

.pod-checkmark-check {
  stroke: var(--f1-green, #00c853);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: pod-checkmark-check 0.4s ease 0.4s forwards;
}

@keyframes pod-checkmark-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes pod-checkmark-check {
  to { stroke-dashoffset: 0; }
}
