/* ═══════════════════════════════════════════════════════════════════════════
   16th Child Neurocon 2027 — Registration Portal UI
   Depends on design-system.css for tokens, buttons and badges.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   Page shell
   ─────────────────────────────────────────────────────────── */

.reg-page,
.abstract-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--ink);
}

/* body is a flex column: without this a wide child (the stepper, a table)
   inflates the flex line and pushes the whole page sideways. */
.reg-page > *,
.abstract-page > * { min-width: 0; }

.apple-section { padding: 56px 24px 96px; }
.apple-section.gray  { background-color: var(--surface-sunk); }
.apple-section.white { background-color: var(--surface); }

.apple-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

/* ───────────────────────────────────────────────────────────
   Announcement ribbon
   ─────────────────────────────────────────────────────────── */

.apple-promo-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 9px 20px;
  background: linear-gradient(100deg, var(--brand-navy-deep) 0%, var(--brand-indigo) 55%, var(--brand-navy) 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: center;
}

.apple-promo-ribbon .ribbon-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-badges);
  background: linear-gradient(135deg, var(--brand-gold-bright), var(--brand-gold));
  color: var(--brand-navy-deep);
  font-weight: 700;
  font-size: var(--text-micro);
  letter-spacing: 0.01em;
}

/* A quiet pulsing dot marks the ribbon as "live". */
.apple-promo-ribbon .ribbon-highlight::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-navy-deep);
  animation: ribbonPulse 2.4s var(--ease-out) infinite;
}
@keyframes ribbonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}

.apple-promo-ribbon a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.apple-promo-ribbon a:hover { border-bottom-color: #fff; text-decoration: none; }

/* ───────────────────────────────────────────────────────────
   Sticky navigation
   ─────────────────────────────────────────────────────────── */

.apple-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.apple-nav-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.apple-nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.apple-nav-brand:hover { text-decoration: none; }

.apple-nav-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.apple-nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.apple-nav-brand-text strong {
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 800;
  letter-spacing: -0.018em;
  white-space: nowrap;
}
.apple-nav-brand-text span {
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--ink-muted);
}

.apple-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apple-nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-buttons);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.apple-nav-link:hover {
  color: var(--ink);
  background-color: var(--surface-sunk);
  text-decoration: none;
}
.apple-nav-link.active {
  color: var(--brand-blue);
  background-color: var(--brand-blue-soft);
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────
   Logo masthead
   ─────────────────────────────────────────────────────────── */

.conf-masthead {
  position: relative;
  padding: 34px 20px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, var(--brand-gold-soft) 0%, transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.conf-masthead-logos {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  flex-wrap: wrap;
  margin-bottom: 0;
}
/* The seals align to the conference mark's optical centre, not its caption. */
.conf-masthead-logos > .conf-logo-seal { margin-top: clamp(8px, 2vw, 18px); }

.conf-logo {
  display: block;
  width: auto;
  object-fit: contain;
  transition: transform var(--dur-base) var(--ease-out);
}
.conf-logo:hover { transform: scale(1.04); }
/* The conference mark leads the group; the two institutional seals flank it. */
.conf-logo-conference { height: clamp(92px, 15vw, 150px); }
.conf-logo-seal       { height: clamp(74px, 12vw, 118px); }

/* The conference mark and its aegis caption travel together as one lockup. */
.conf-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Deliberately small: this is a credit line under the mark, not a banner. */
.conf-aegis {
  margin: 0;
  max-width: 30ch;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-subtle);
  text-align: center;
}
.conf-aegis strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
}

/* Sits above the logos: who is organising, then the marks. */
.conf-masthead-org {
  margin: 0 auto 22px;
  max-width: 640px;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--ink-muted);
}
.conf-masthead-org strong { color: var(--color-deep-gray); font-weight: 600; }

/* ───────────────────────────────────────────────────────────
   Hero
   ─────────────────────────────────────────────────────────── */

.apple-hero {
  position: relative;
  padding: 68px 24px 56px;
  text-align: center;
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Soft colour wash behind the headline. */
.apple-hero::before {
  content: '';
  position: absolute;
  /* Stays inside the hero box — a negative inset would widen the page. */
  inset: 0;
  background:
    radial-gradient(ellipse 58% 52% at 18% 22%, rgba(47, 98, 232, 0.10) 0%, transparent 72%),
    radial-gradient(ellipse 54% 50% at 84% 10%, rgba(232, 169, 46, 0.14) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.apple-hero > * { position: relative; z-index: 1; }

.apple-hero-eyebrow,
.apple-hero .badge-apple-nuevo {
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-ember);
  margin-bottom: 18px;
  display: inline-block;
}

.apple-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, var(--text-heading-lg));
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
  margin-bottom: 20px;
  background: linear-gradient(174deg, var(--ink) 18%, var(--brand-indigo) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink);
}

.apple-hero-sub {
  font-size: clamp(16px, 2vw, var(--text-body-lg));
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 auto 30px;
}

.apple-hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.apple-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: var(--radius-buttons);
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-deep-gray);
}
.apple-hero-pill svg { color: var(--brand-blue); flex-shrink: 0; }

/* ── Venue banner card ── */
.apple-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-cards);
  background-color: var(--brand-navy-deep);
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.apple-banner-media {
  margin: 0;
  position: relative;
  line-height: 0;
}

.apple-banner-media {
  --banner-media-h: clamp(240px, 38vw, 470px);
}
.apple-banner-media img {
  display: block;
  width: 100%;
  height: var(--banner-media-h);
  object-fit: cover;
}

/* Fade the photo into the navy body so the two read as one card. */
.apple-banner-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(13, 22, 47, 0.10) 0%,
    rgba(13, 22, 47, 0.55) 62%,
    var(--brand-navy-deep) 100%);
}

.apple-banner-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 1;
  padding: 0 32px;
  font-size: var(--text-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  /* Anchored over the photo, so it must never wrap past the image and
     collide with the heading underneath. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-banner-body { padding: 8px 32px 40px; }

.apple-banner-tag {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-bright);
  margin-bottom: 12px;
}

.apple-banner-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: #fff;
  margin-bottom: 14px;
  max-width: 720px;
}

.apple-banner-desc {
  font-size: var(--text-body);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  max-width: 660px;
  margin-bottom: 26px;
}

/* ── Start registration call to action ── */
.start-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.btn-start-registration {
  font-size: var(--text-body-lg);
  padding: 16px 34px;
}

.deadline-timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  border-radius: var(--radius-buttons);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.78);
}

.deadline-timer-label { font-weight: 500; }

.deadline-timer-clock {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--brand-gold-bright);
  letter-spacing: 0.02em;
}
.deadline-timer-clock b {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 800;
  color: #fff;
}

.deadline-timer.urgent {
  background: rgba(216, 85, 42, 0.18);
  border-color: rgba(232, 169, 46, 0.5);
}
.deadline-timer.expired .deadline-timer-clock { color: rgba(255, 255, 255, 0.6); }

.ribbon-cta {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
}
.ribbon-cta:hover { border-bottom-color: #fff; }

/* ───────────────────────────────────────────────────────────
   Focus mode — everything promotional folds away once the
   delegate taps Start Registration
   ─────────────────────────────────────────────────────────── */

body.registering .apple-hero,
body.registering .conf-masthead,
body.registering .apple-promo-ribbon {
  display: none;
}

body.registering .apple-stepper-wrap {
  padding-top: 26px;
}

/* ───────────────────────────────────────────────────────────
   Stepper
   ─────────────────────────────────────────────────────────── */

.apple-stepper-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 16px 4px;
  box-sizing: border-box;
}

.apple-stepper-pills {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

/* The connecting track sits behind the numbered circles. */
.apple-stepper-pills::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  z-index: 0;
}

.apple-step-item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--ink-subtle);
  text-align: center;
  user-select: none;
  transition: color var(--dur-base) var(--ease-out);
}

.apple-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-sm);
  font-weight: 700;
  background-color: var(--surface);
  color: var(--ink-subtle);
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--surface-sunk);
  transition: all var(--dur-base) var(--ease-spring);
}

.apple-step-item.active { color: var(--brand-blue); font-weight: 700; }
.apple-step-item.active .apple-step-num {
  background-image: linear-gradient(180deg, #3d6ff0, var(--brand-blue));
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--brand-blue-soft), var(--shadow-brand);
}

.apple-step-item.completed { color: var(--success); font-weight: 600; }
.apple-step-item.completed .apple-step-num {
  background-color: var(--success);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px var(--success-soft);
}

/* ───────────────────────────────────────────────────────────
   Step panels
   ─────────────────────────────────────────────────────────── */

.step-panel { display: none; }
.step-panel.active {
  display: block;
  animation: stepIn var(--dur-slow) var(--ease-out);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────────────────────────
   Form card & fields
   ─────────────────────────────────────────────────────────── */

.apple-form-card,
.abstract-form-card {
  max-width: 880px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.apple-form-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.apple-form-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.apple-form-sub {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-muted);
}

.apple-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-group.full-width { grid-column: 1 / -1; }

.apple-label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-deep-gray);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.required { color: var(--danger); font-weight: 700; }

/* ── Inputs ── */
.apple-input,
.apple-select,
.apple-textarea,
.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-inputs);
  padding: 13px 16px;
  min-height: 48px;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.apple-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

.apple-input::placeholder,
.apple-textarea::placeholder,
.form-input::placeholder { color: var(--ink-subtle); font-weight: 400; }

.apple-input:hover,
.apple-select:hover,
.apple-textarea:hover,
.form-input:hover { border-color: var(--ink-subtle); }

.apple-input:focus,
.apple-select:focus,
.apple-textarea:focus,
.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--brand-blue-ring);
  background-color: var(--surface);
}

/* Native chevron replaced so selects match the inputs exactly. */
.apple-select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6480' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ── Validation states ── */
.apple-input.error,
.apple-select.error,
.apple-textarea.error,
.form-input.error {
  border-color: var(--danger);
  background-color: var(--danger-soft);
  animation: fieldShake 0.32s var(--ease-out);
}
.apple-input.error:focus,
.apple-select.error:focus,
.apple-textarea.error:focus,
.form-input.error:focus {
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.14);
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  22%      { transform: translateX(-4px); }
  55%      { transform: translateX(4px); }
  80%      { transform: translateX(-2px); }
}

/* Fields the PIN code lookup filled in for the delegate. */
.apple-input.autofilled,
.apple-select.autofilled {
  border-color: var(--success-line);
  background-color: var(--success-soft);
}

.form-error {
  display: none;
  /* Top-aligned so the icon sits beside the first line of a wrapped message. */
  align-items: flex-start;
  gap: 6px;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--danger);
  margin-top: 7px;
}
.form-error.visible { display: flex; animation: fadeInUp var(--dur-base) var(--ease-out); }
.form-error.visible::before {
  content: '';
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12.5'/%3E%3Cline x1='12' y1='16.5' x2='12.01' y2='16.5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12.5'/%3E%3Cline x1='12' y1='16.5' x2='12.01' y2='16.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-helper {
  font-size: var(--text-caption);
  color: var(--ink-muted);
  margin-top: 7px;
  line-height: 1.5;
}

/* ── Radio pills ── */
.apple-radio-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.apple-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-buttons);
  border: 1.5px solid var(--line-strong);
  background-color: var(--surface);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-deep-gray);
  cursor: pointer;
  user-select: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.apple-radio-pill:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-soft);
}

.apple-radio-pill input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-out);
}
.apple-radio-pill input[type="radio"]:checked {
  border-color: var(--brand-blue);
  border-width: 5px;
}
.apple-radio-pill:has(input:checked) {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--brand-blue-ring);
}

/* ── Checkbox ── */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background-color: var(--surface);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
input[type="checkbox"]:hover { border-color: var(--brand-blue); }
input[type="checkbox"]:checked {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── PIN code status line ── */
.pincode-status {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption);
  font-weight: 600;
  margin-top: 7px;
}
.pincode-status.loading,
.pincode-status.success,
.pincode-status.error { display: flex; }
.pincode-status.loading { color: var(--ink-muted); }
.pincode-status.success { color: var(--success); }
.pincode-status.error   { color: var(--danger); }

.pincode-status.loading::before {
  content: '';
  width: 13px;
  height: 13px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.pincode-status.success::before { content: '✓'; font-size: 14px; }

/* ───────────────────────────────────────────────────────────
   Error summary banner
   ─────────────────────────────────────────────────────────── */

.form-error-banner {
  background-color: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-cards-sm);
  padding: 18px 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp var(--dur-base) var(--ease-out);
}

.form-error-banner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: #a4231a;
}

.form-error-banner-list {
  margin: 10px 0 0;
  padding-left: 30px;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: #8f2018;
}
.form-error-banner-list li { margin-bottom: 6px; }
.form-error-banner-list li:last-child { margin-bottom: 0; }
.form-error-banner-list li::marker { color: var(--danger); }

.form-error-banner-list button {
  /* Block so the list marker lines up with the first line of a wrapped
     message instead of drifting down to the last one. */
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.form-error-banner-list button:hover,
.form-error-banner-list button:focus-visible {
  color: var(--danger);
  text-decoration: underline;
  text-decoration-color: var(--danger);
  text-underline-offset: 3px;
}

/* ───────────────────────────────────────────────────────────
   Uploads (receipt, ID proof, photograph)
   ─────────────────────────────────────────────────────────── */

.upload-dropzone,
.photo-dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-inputs);
  padding: 26px 22px;
  text-align: center;
  cursor: pointer;
  background-color: var(--surface-sunk);
  transition: all var(--dur-base) var(--ease-out);
}
.upload-dropzone:hover,
.photo-dropzone:hover,
.upload-dropzone.dragover,
.photo-dropzone.dragover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-soft);
  transform: translateY(-1px);
}
.upload-dropzone.dragover,
.photo-dropzone.dragover { border-style: solid; box-shadow: 0 0 0 4px var(--brand-blue-ring); }

.upload-preview-box,
.photo-selected-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-inputs);
  background-color: var(--success-soft);
  border: 1px solid var(--success-line);
  margin-top: 10px;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: #0b6b42;
}
.upload-preview-box > span:first-child,
.photo-selected-row > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.upload-preview-box::before,
.photo-selected-row::before {
  content: '✓';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--success);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Delegate photograph ── */
.photo-note {
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: var(--brand-gold-soft);
  border-left: 3px solid var(--brand-gold-bright);
}

.photo-upload-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.photo-preview-frame {
  width: 108px;
  height: 132px;
  flex-shrink: 0;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background-color: var(--surface-sunk);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-preview-frame:has(img:not([hidden])) { border-style: solid; border-color: var(--success-line); }
.photo-preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-placeholder { font-size: var(--text-micro); color: var(--ink-subtle); font-weight: 500; }

.photo-upload-actions { flex: 1; min-width: 240px; }

/* ───────────────────────────────────────────────────────────
   Step 2 — booking
   ─────────────────────────────────────────────────────────── */

.apple-user-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  margin-bottom: 26px;
  border-radius: var(--radius-cards-sm);
  background: linear-gradient(100deg, var(--brand-navy-deep), var(--brand-indigo));
  box-shadow: var(--shadow-md);
}

.apple-user-meta {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.apple-user-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold-bright);
  padding: 3px 9px;
  border-radius: var(--radius-badges);
  background-color: rgba(232, 169, 46, 0.14);
}

.apple-user-name {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #fff;
}

.apple-user-detail {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.68);
}

.apple-user-strip .btn-apple-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: none;
}
.apple-user-strip .btn-apple-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.apple-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.apple-booking-layout > * { min-width: 0; }

.apple-session-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.apple-session-stack > * { min-width: 0; }

/* ── Tier comparison ── */
.tier-switch-card,
.fee-table-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.tier-switch-head h3,
.fee-table-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 800;
  letter-spacing: -0.024em;
  margin: 0 0 5px;
}
.tier-switch-head p,
.fee-table-head p {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 20px;
}
.fee-table-head p strong { color: var(--color-deep-gray); font-weight: 600; }

.tier-switch-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background-color: var(--surface-sunk);
}

.tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 10px;
  border: 1.5px solid transparent;
  border-radius: 13px;
  background-color: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--dur-base) var(--ease-out);
}
.tier-btn:hover {
  background-color: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.tier-btn.active {
  background-image: linear-gradient(180deg, #3d6ff0, var(--brand-blue));
  border-color: transparent;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.tier-btn.active .tier-btn-name { color: #fff; }
.tier-btn.active .tier-btn-date { color: rgba(255, 255, 255, 0.82); }

.tier-btn-name {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tier-btn-date {
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.35;
}

/* Not a flex container: the message contains <strong>, and as a flex item
   that phrase became its own column and wrapped mid-name ("Early / Bird"). */
.tier-live-note {
  position: relative;
  margin-top: 16px;
  padding: 12px 16px 12px 40px;
  border-radius: 12px;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  background-color: var(--brand-blue-soft);
  color: #1f3f96;
  border-left: 3px solid var(--brand-blue);
}
.tier-live-note:empty { display: none; }
.tier-live-note::before {
  content: 'ⓘ';
  position: absolute;
  left: 15px;
  top: 11px;
  font-size: 15px;
}
.tier-live-note strong { font-weight: 700; }

.tier-live-note.preview {
  background-color: var(--warning-soft);
  color: #8a5c10;
  border-left-color: var(--brand-gold-bright);
}
.tier-live-note.preview::before { content: '👁'; }

/* ── Tables ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-cards-sm);
  max-width: 100%;
  background-color: var(--surface);
}

.fee-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
  background-color: var(--surface);
}

.fee-table thead th {
  position: relative;
  background-color: var(--surface-sunk);
  padding: 13px 14px;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.fee-table thead th small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-subtle);
}
.fee-table thead th.col-category { text-align: left; min-width: 240px; }
.fee-table .col-action { text-align: center; white-space: nowrap; }

/* The tier column being compared. */
.fee-table thead th.tier-active {
  background-color: var(--brand-blue-soft);
  color: var(--brand-blue);
}
.fee-table thead th.tier-active small { color: var(--brand-blue); }
.fee-table thead th.tier-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background-image: linear-gradient(90deg, #3d6ff0, var(--brand-blue));
}
.fee-table td.tier-active { background-color: rgba(234, 240, 255, 0.62); }

.fee-table tbody th,
.fee-table tbody td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
}
.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody th { text-align: left; font-weight: 600; }

.fee-table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.fee-table tbody tr:hover th,
.fee-table tbody tr:hover td { background-color: var(--surface-sunk); }
.fee-table tbody tr:hover td.tier-active { background-color: var(--brand-blue-soft); }

/* Chosen row: green wash plus an accent bar down the left edge. */
.fee-table tbody tr.selected th,
.fee-table tbody tr.selected td { background-color: var(--success-soft); }
.fee-table tbody tr.selected td.tier-active { background-color: #d5f2e3; }
.fee-table tbody tr.selected th:first-child {
  box-shadow: inset 3px 0 0 var(--success);
}

.row-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.row-sub {
  display: block;
  margin-top: 3px;
  font-size: var(--text-micro);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
}

.row-seats,
.row-flag {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 9px;
  border-radius: var(--radius-badges);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.row-seats { background-color: var(--success-soft); color: var(--success); }
.row-flag  { background-color: var(--danger-soft); color: #a4231a; }
/* Trailing gap wraps cleanly; a leading one strands badges on the next line. */
.row-seats, .row-flag { margin-right: 6px; }

.fee-table td.col-date {
  font-size: var(--text-caption);
  color: var(--color-deep-gray);
  white-space: nowrap;
}

.price-cell {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.fee-table td.col-price small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}
td.tier-active .price-cell { color: var(--brand-blue); }
.price-cell.free { color: var(--success); }

.btn-table-select {
  padding: 9px 20px;
  border-radius: var(--radius-buttons);
  border: 1.5px solid var(--brand-blue);
  background-color: var(--surface);
  color: var(--brand-blue);
  font-family: inherit;
  font-size: var(--text-caption);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-table-select:hover {
  background-color: var(--brand-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-table-select.selected {
  background-color: var(--success);
  border-color: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 138, 85, 0.28);
}
.btn-table-select.selected:hover { background-color: #0c7548; border-color: #0c7548; }

.btn-row-details {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--text-micro);
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-color: rgba(47, 98, 232, 0.3);
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-row-details:hover { text-decoration-color: var(--brand-blue); }

.addon-table { min-width: 560px; }

/* ── Quantity stepper ── */
.apple-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-buttons);
  background-color: var(--surface-sunk);
  border: 1px solid var(--line);
}

.apple-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: var(--surface);
  color: var(--brand-blue);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-fast) var(--ease-out);
}
.apple-qty-btn:hover { background-color: var(--brand-blue); color: #fff; transform: scale(1.08); }
.apple-qty-btn:active { transform: scale(0.94); }

.apple-qty-val {
  min-width: 30px;
  text-align: center;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
}

.accompanying-name-input { min-height: 44px; padding: 10px 14px; }

/* ───────────────────────────────────────────────────────────
   Cart drawer
   ─────────────────────────────────────────────────────────── */

.apple-cart-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  min-width: 0;
}

.apple-cart-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* Gold hairline across the top of the summary. */
.apple-cart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-image: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-bright), var(--brand-gold));
}

.apple-cart-title {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 800;
  letter-spacing: -0.024em;
  margin-bottom: 18px;
}

.apple-cart-empty {
  padding: 26px 12px;
  text-align: center;
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--ink-muted);
  background-color: var(--surface-sunk);
  border-radius: var(--radius-cards-sm);
  border: 1px dashed var(--line-strong);
}

.apple-cart-divider {
  height: 1px;
  background-color: var(--line);
  margin: 18px 0 16px;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.summary-item-row:last-child { border-bottom: none; }

.summary-item-name {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.summary-item-sub {
  font-size: var(--text-micro);
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.45;
}
.summary-item-price {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

.apple-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.apple-cart-total-label {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.apple-cart-total-value {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
}

/* Legacy cart item classes, kept for other pages. */
.apple-cart-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.apple-cart-item-name { font-size: var(--text-body-sm); font-weight: 600; }
.apple-cart-item-sub { font-size: var(--text-micro); color: var(--ink-muted); }
.apple-cart-item-price { font-weight: 700; }

/* ───────────────────────────────────────────────────────────
   Step 3 — review & payment
   ─────────────────────────────────────────────────────────── */

.apple-checkout-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* margin: 0 auto on the cards cancels flex stretch, so they size to max-content. */
.apple-checkout-wrap > * { min-width: 0; width: 100%; }

.apple-review-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: 32px 34px;
  box-shadow: var(--shadow-md);
}

.pay-step-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.pay-step-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 800;
  letter-spacing: -0.024em;
  margin: 0;
}
.pay-step-head p {
  font-size: var(--text-body-sm);
  color: var(--ink-muted);
  margin: 3px 0 0;
  line-height: 1.55;
}

/* superseded by the shared step chip */

.review-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
  background-color: var(--surface);
}
.review-table th,
.review-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.review-table tr:last-child th,
.review-table tr:last-child td { border-bottom: none; }
.review-table th {
  width: 34%;
  font-size: var(--text-micro);
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background-color: var(--surface-sunk);
}
.review-table td { font-weight: 600; color: var(--ink); }

.review-items-table { min-width: 460px; }
.review-items-table tfoot th,
.review-items-table tfoot td {
  padding: 16px 14px;
  background-color: var(--surface-sunk);
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 800;
  text-align: left;
}
.review-items-table tfoot td { text-align: center; }

.review-total {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
}

.pay-amount-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 26px;
  margin-bottom: 24px;
  border-radius: var(--radius-cards-sm);
  background: linear-gradient(100deg, var(--brand-navy-deep), var(--brand-indigo));
  box-shadow: var(--shadow-md);
}
.pay-amount-banner span {
  font-size: var(--text-micro);
  font-weight: 700;
  color: var(--brand-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pay-amount-banner strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

/* ── Payment method tabs ── */
.apple-payment-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 24px;
  border-radius: 16px;
  background-color: var(--surface-sunk);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.apple-payment-tabs::-webkit-scrollbar { display: none; }

.apple-tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 11px 18px;
  border: none;
  border-radius: 11px;
  background-color: transparent;
  font-family: inherit;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-base) var(--ease-out);
}
.apple-tab-btn:hover { color: var(--ink); background-color: rgba(255, 255, 255, 0.7); }
.apple-tab-btn.active {
  background-color: var(--surface);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.payment-tab-pane { display: none; }
.payment-tab-pane.active { display: block; animation: fadeInUp var(--dur-base) var(--ease-out); }

/* ───────────────────────────────────────────────────────────
   Payment method panes
   ─────────────────────────────────────────────────────────── */

.pay-method-card {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 28px;
  border-radius: var(--radius-cards-sm);
  background-color: var(--surface-sunk);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.pay-qr-frame {
  padding: 12px;
  border-radius: 16px;
  background-color: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.pay-qr-frame img { width: 164px; height: 164px; display: block; }

.pay-method-body { flex: 1; min-width: 240px; }
.pay-method-body h4 {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pay-method-body p {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* The merchant QR carries no amount, so the figure to type sits beside it and
   has to be the loudest thing in the panel. */
.pay-amount-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: var(--radius-inputs);
  background-color: var(--brand-gold-soft);
  border: 1px solid var(--brand-gold-bright);
}
.pay-amount-inline span {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8a5c10;
}
.pay-amount-inline strong {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pay-merchant-note {
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--ink-muted);
}
.pay-merchant-note strong { color: var(--color-deep-gray); font-weight: 600; }

/* The bank's QR is a plain black-and-white image; keep it crisp and square. */
.pay-qr-frame img {
  image-rendering: -webkit-optimize-contrast;
  background: #fff;
}

.pay-qr-missing {
  width: 164px;
  padding: 20px 12px;
  text-align: center;
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--danger);
}

.pay-copy-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-buttons);
  background-color: var(--surface);
  border: 1.5px solid var(--line-strong);
}
.pay-copy-field span {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink);
}

.btn-copy {
  padding: 6px 14px;
  border-radius: var(--radius-buttons);
  border: none;
  background-color: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-family: inherit;
  font-size: var(--text-micro);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-copy:hover { background-color: var(--brand-blue); color: #fff; }

.pay-detail-list {
  border-radius: var(--radius-cards-sm);
  background-color: var(--surface-sunk);
  border: 1px solid var(--line);
  padding: 8px 24px;
  margin-bottom: 24px;
}

.pay-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.pay-detail-row:last-child { border-bottom: none; }
.pay-detail-row > span {
  font-size: var(--text-body-sm);
  color: var(--ink-muted);
  font-weight: 500;
}
.pay-detail-row > strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ── Dropzone copy & remove buttons ── */
.dropzone-title {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}
.dropzone-hint {
  font-size: var(--text-caption);
  color: var(--ink-muted);
  margin-top: 4px;
}

.btn-remove-file {
  padding: 5px 13px;
  border-radius: var(--radius-buttons);
  border: 1px solid transparent;
  background-color: rgba(217, 45, 32, 0.09);
  color: var(--danger);
  font-family: inherit;
  font-size: var(--text-micro);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-remove-file:hover { background-color: var(--danger); color: #fff; }

/* ── Terms row ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 6px;
  border-radius: var(--radius-inputs);
  background-color: var(--surface-sunk);
  border: 1px solid var(--line);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--color-deep-gray);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.terms-row:hover { border-color: var(--line-strong); }
.terms-row:has(input:checked) {
  background-color: var(--success-soft);
  border-color: var(--success-line);
}
.terms-row input { margin-top: 1px; }

/* ── Step action rows ── */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.step-actions.end { justify-content: flex-end; }

/* ───────────────────────────────────────────────────────────
   Step 4 — confirmation
   ─────────────────────────────────────────────────────────── */

.success-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.success-check {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-image: linear-gradient(150deg, #17b06b, var(--success));
  box-shadow: 0 0 0 10px var(--success-soft), 0 12px 28px rgba(15, 138, 85, 0.28);
  animation: successPop 0.5s var(--ease-spring) both;
}
.success-check svg { width: 40px; height: 40px; }

@keyframes successPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.success-sub {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.success-card-panel {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 26px;
  border-radius: var(--radius-cards);
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.success-card-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background-image: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-bright), var(--brand-ember));
}

.success-id-label {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-muted);
}

.success-id {
  font-family: var(--font-mono);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-blue);
  margin: 8px 0 6px;
}

.success-id-hint {
  font-size: var(--text-caption);
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.success-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.success-facts dt {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.success-facts dd {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.success-facts dd.accent {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 800;
  color: var(--brand-blue);
}

.success-note {
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-inputs);
  background-color: var(--warning-soft);
  border-left: 3px solid var(--brand-gold-bright);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: #8a5c10;
  text-align: left;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  color: #128c4a;
  border-color: #9fdcbb;
}
.btn-whatsapp:hover { background-color: #e7f7ef; border-color: #128c4a; color: #0d7a3f; }

/* ───────────────────────────────────────────────────────────
   Modal
   ─────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn var(--dur-base) var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: min(84vh, 760px);
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--radius-cards);
  background-color: var(--surface);
  box-shadow: var(--shadow-xl);
  animation: modalIn var(--dur-slow) var(--ease-spring);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 800;
  letter-spacing: -0.024em;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-subtle);
  cursor: pointer;
  padding: 0 4px;
  border-radius: 8px;
  transition: color var(--dur-fast) var(--ease-out);
}
.modal-close:hover { color: var(--ink); }

.modal-body {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--color-deep-gray);
}
.modal-body .table-scroll { border-radius: 12px; }

.modal-foot { margin-top: 22px; text-align: right; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ───────────────────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────────────────── */

.apple-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 24px 32px;
}

.apple-footer-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.apple-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.apple-footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold-bright);
  margin-bottom: 16px;
}

.apple-footer-col p {
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 4px;
}
.apple-footer-col p strong { color: rgba(255, 255, 255, 0.92); font-weight: 600; }

.apple-footer-col a {
  display: block;
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.62);
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.apple-footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
  text-decoration: none;
}

/* Build credit. Quiet by default, legible on hover — it should sit under
   the conference's own copyright, not compete with it. */
.footer-credit {
  font-size: var(--text-micro);
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.01em;
}
.footer-credit a {
  display: inline;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.footer-credit a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
  transform: none;
  text-decoration: none;
}

.footer-contact { margin-top: 8px; }
.footer-contact a {
  display: inline;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}
.footer-contact a:hover { transform: none; border-bottom-color: #fff; }

.apple-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-micro);
  color: rgba(255, 255, 255, 0.45);
}

/* Toasts and the loading overlay now live in design-system.css, because
   utils.js renders them on every page — including the admin panel, which
   does not load this stylesheet. */

/* ───────────────────────────────────────────────────────────
   Shared pieces used by the abstract & contact pages
   ─────────────────────────────────────────────────────────── */

.glass-card,
.success-card,
.contact-card,
.guidelines-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-card-subtitle { font-size: var(--text-caption); color: var(--ink-muted); }
.contact-card-value { font-size: var(--text-body); font-weight: 600; color: var(--brand-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-buttons);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
}
.btn-primary {
  background-image: linear-gradient(180deg, #3d6ff0, var(--brand-blue));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; text-decoration: none; }
.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background-color: var(--surface-sunk); text-decoration: none; }
.btn-lg { padding: 15px 32px; font-size: var(--text-body); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-badges);
  background-color: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: var(--text-caption);
  font-weight: 600;
}
.tag-remove,
.author-remove {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  opacity: 0.6;
  padding: 0 2px;
}
.tag-remove:hover,
.author-remove:hover { opacity: 1; color: var(--danger); }

.word-counter { font-size: var(--text-caption); color: var(--ink-muted); }
.word-counter.warning { color: var(--warning); font-weight: 600; }
.word-counter.over { color: var(--danger); font-weight: 700; }

.file-upload-name { font-size: var(--text-body-sm); font-weight: 600; color: var(--success); }
.upload-dropzone.has-file { border-style: solid; border-color: var(--success-line); background-color: var(--success-soft); }

/* .verify-status is styled in abstract.css, which owns its two states. The
   blanket font-weight here was bolding the whole message body. */

/* ───────────────────────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .apple-booking-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
  .apple-booking-layout { grid-template-columns: minmax(0, 1fr); }
  .apple-cart-sticky { position: static; }
  .apple-cart-card { box-shadow: var(--shadow-md); }
}

/* ═══════════════════════════════════════════════════════════════
   Pinned mobile action bar
   The running total and the next step follow the thumb, the way a
   shopping cart does, instead of sitting several screens away.
   ═══════════════════════════════════════════════════════════════ */

.mobile-bar { display: none; }

@media (max-width: 900px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(19, 26, 46, 0.10);
  }

  .mobile-bar[hidden] { display: none; }

  .mobile-bar-summary {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .mobile-bar-total {
    font-family: var(--font-display);
    font-size: var(--text-subheading);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }

  .mobile-bar-items {
    font-size: var(--text-micro);
    color: var(--ink-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bar-cta {
    flex-shrink: 0;
    min-height: 50px;
    padding: 14px 24px;
    font-size: var(--text-body);
  }

  /* Clear the bar so it never covers the last field or button. */
  body.has-mobile-bar .apple-section { padding-bottom: 88px; }

  /* The sidebar's own buttons would duplicate the pinned bar. */
  body.has-mobile-bar #btn-proceed-to-checkout,
  body.has-mobile-bar .step-actions #btn-submit-final-registration { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Fee tables become cards on small screens
   A price table 720px wide inside a 320px viewport meant scrolling
   sideways to compare tiers. Each row becomes a self-contained card
   instead, with the three tier prices side by side.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .table-scroll { border: none; border-radius: 0; overflow: visible; }

  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table th,
  .fee-table td { display: block; width: auto; min-width: 0; }

  .fee-table thead { display: none; }

  /* ── Sleek option list ──
     One tappable row per category: a radio, the name, and the rate being
     charged. No card borders, no three-column price grid — the tier switcher
     above already handles comparison, so repeating it in every row is bulk. */
  .fee-table tbody tr {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 16px 4px;
    border: none;
    border-radius: 14px;
    background: none;
    box-shadow: none;
    position: relative;
    animation: rowIn var(--dur-slow, 420ms) var(--ease-out, cubic-bezier(.32,.72,0,1)) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition: background-color 240ms var(--ease-out, ease);
  }
  .fee-table tbody tr + tr::after {
    content: '';
    position: absolute;
    inset: 0 4px auto 40px;
    height: 1px;
    background: var(--line);
  }

  /* The radio. A hairline ring that fills in — nothing else moves. */
  .fee-table tbody tr::before {
    content: '';
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    transition: border-color 200ms var(--ease-out, ease),
                background-color 200ms var(--ease-out, ease),
                box-shadow 200ms var(--ease-out, ease);
  }
  .fee-table tbody tr.selected {
    background: var(--brand-blue-soft);
    padding-left: 12px;
    padding-right: 12px;
  }
  .fee-table tbody tr.selected::before {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    box-shadow: inset 0 0 0 4.5px var(--surface);
    animation: radioPop 340ms var(--ease-out, cubic-bezier(.32,.72,0,1));
  }
  .fee-table tbody tr.selected + tr::after,
  .fee-table tbody tr.selected::after { background: transparent; }

  .fee-table tbody th,
  .fee-table tbody td {
    border: none;
    padding: 0;
    text-align: left;
    background: none !important;
  }

  .fee-table tbody th { grid-column: 2; grid-row: 1; margin: 0; }
  .fee-table tbody .row-title { font-size: var(--text-body); font-weight: 650; }
  /* The full description lives behind "What's included"; repeating it here
     costs two lines per row and says nothing the label doesn't. */
  .fee-table tbody .row-sub { display: none; }
  /* One meta line: seats, any requirement, and the details link, inline. */
  .fee-table tbody .row-seats,
  .fee-table tbody .row-flag {
    display: inline;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
  }
  .fee-table tbody .row-seats { color: var(--success); }
  .fee-table tbody .row-flag { color: var(--ember); }
  .fee-table tbody .row-seats ~ .row-flag::before {
    content: '·';
    margin: 0 5px;
    color: var(--ink-subtle);
  }
  .fee-table .btn-row-details {
    display: block;
    font-size: 11px;
    padding: 0;
    margin: 2px 0 0;
    border: none;
    background: none;
    text-decoration: none;
    color: var(--brand-blue);
  }
  .fee-table .btn-row-details::after { content: ' ›'; }

  /* The desktop selected-row marker is a left edge bar; the radio says it here. */
  .fee-table tbody tr.selected th:first-child { box-shadow: none; }

  /* Only the rate actually charged; the rest is noise on a 390px screen. */
  .fee-table td.col-price { display: none; }
  .fee-table td.col-price.is-billed {
    display: block;
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    padding: 0 !important;
    background: none !important;
    box-shadow: none;
    white-space: nowrap;
  }
  .fee-table td.col-price.is-billed::before { content: none; }
  .fee-table td.col-price.is-billed .price-cell {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .fee-table tbody tr.selected .price-cell { color: var(--brand-blue); }
  .fee-table .price-was {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-subtle);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
  }
  .fee-table td.col-price small { display: none; }

  /* The row is the tap target; a button per row is redundant chrome. */
  .fee-table td.col-action { display: none; }

  /* Add-ons are not one-of-many, so they keep their own control rather than
     the radio, and they show the description a delegate needs to decide. */
  .addon-table td.col-date { display: none; }
  .addon-table tbody tr::before { display: none; }
  .addon-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 16px 4px;
  }
  .addon-table tbody tr + tr::after { inset: 0 4px auto 4px; }
  .addon-table tbody th { grid-column: 1; grid-row: 1; }
  .fee-table.addon-table tbody .row-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--text-caption);
    margin-top: 1px;
  }
  .addon-table td.col-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    margin-top: 6px;
  }
  .addon-table td.col-price .price-cell { font-size: 15px; font-weight: 700; }
  .addon-table td.col-price small { display: inline; font-weight: 500; font-size: 11px; }
  .addon-table td.col-action {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    justify-content: flex-end;
    align-items: center;
  }
  .addon-table .btn-table-select { width: auto; padding: 10px 20px; }

  /* Review tables read as label/value pairs rather than columns. */
  .review-table, .review-table tbody, .review-table tr, .review-table th, .review-table td { display: block; width: auto; min-width: 0; }
  .review-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .review-table tr:last-child { border-bottom: none; }
  .review-table th { width: auto; background: none; padding: 0 0 2px; }
  .review-table td { padding: 0; }

  .review-items-table thead { display: none; }
  .review-items-table, .review-items-table tbody, .review-items-table tr,
  .review-items-table th, .review-items-table td, .review-items-table tfoot { display: block; width: auto; min-width: 0; }
  /* This table carries .fee-table too, so the delegate-category option list
     rules reach it: they drew a selection radio on each line item and hid the
     price cell, which has no .is-billed here. Both are undone. */
  .review-items-table tbody tr::before,
  .review-items-table tbody tr + tr::after { content: none; display: none; }
  .review-items-table tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    background: none;
  }
  .review-items-table tbody th { flex: 1; padding: 0; }
  .review-items-table td.col-date { display: none; }
  .review-items-table td.col-price,
  .review-items-table tfoot td {
    display: block;
    text-align: right;
    white-space: nowrap;
  }
  .review-items-table td.col-price::before { content: none; }
  .review-items-table td.col-price { padding: 0; text-align: right; }
  .review-items-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 0; border-top: 2px solid var(--ink); }
  .review-items-table tfoot th, .review-items-table tfoot td { padding: 0; background: none; border: none; }
  /* The label wraps; the amount must not shrink or it clips at the edge. */
  .review-items-table tfoot th { flex: 1; min-width: 0; }
  .review-items-table tfoot td { flex-shrink: 0; font-size: var(--text-body-lg); }
}

@media (max-width: 768px) {
  .apple-section { padding: 36px 16px 64px; }

  /* Two payment tabs fit side by side; a scrolling strip hides the second one. */
  .apple-payment-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .apple-tab-btn { min-width: 0; padding: 10px 8px; white-space: normal; line-height: 1.25; }
  .apple-tab-btn:nth-child(3) { grid-column: 1 / -1; }

  /* The UPI id is longer than the viewport in monospace; let it wrap. */
  .pay-copy-field { display: flex; width: 100%; padding-left: 12px; }
  .pay-copy-field span { min-width: 0; overflow-wrap: anywhere; font-size: var(--text-caption); }

  /* The links sat off the right edge of a phone: only the first one was
     reachable. They get their own row, flush left, scrollable. */
  /* The ribbon wrapped to three lines and took a fifth of the screen before
     any content. On a phone it carries the status chip and the action only —
     the dates are repeated in the page itself. */
  .apple-promo-ribbon {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 11px;
  }
  .apple-promo-ribbon > span:first-child { display: none; }
  .apple-promo-ribbon .ribbon-highlight { font-size: 10px; padding: 3px 10px; }
  .apple-promo-ribbon .ribbon-cta,
  .apple-promo-ribbon a { font-size: 11px; white-space: nowrap; }

  .apple-nav-inner { flex-wrap: wrap; padding: 8px 0 0; gap: 0; }
  .apple-nav-brand { padding: 0 16px 8px; }
  .apple-nav-logo { height: 26px; }
  .apple-nav-brand-text strong { font-size: var(--text-caption); }
  .apple-nav-brand-text span { font-size: 11px; }

  .apple-nav-links {
    order: 2;
    width: 100%;
    gap: 2px;
    padding: 0 10px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
  .apple-nav-links::-webkit-scrollbar { display: none; }
  /* Fade the right edge so it reads as scrollable rather than clipped. */
  .apple-nav-links {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .apple-nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: var(--text-caption);
    padding: 7px 12px;
  }

  .conf-masthead { padding: 22px 14px 22px; }
  .conf-masthead-logos {
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: nowrap;      /* three marks read as one lockup, never stacked */
  }
  .conf-logo { min-width: 0; }
  .conf-aegis { font-size: 9px; max-width: 26ch; }
  .conf-logo-block { gap: 6px; }
  .conf-masthead-org { margin-bottom: 16px; font-size: var(--text-caption); }

  .apple-hero { padding: 40px 16px 36px; }
  .apple-banner-body { padding: 8px 22px 32px; }
  .apple-banner-media figcaption { padding: 0 22px; font-size: 11px; }
  .btn-start-registration { width: 100%; font-size: var(--text-body); }
  .start-block { align-items: stretch; }
  .deadline-timer { justify-content: center; }

  .apple-stepper-wrap { padding: 26px 8px 0; }
  .apple-step-item { font-size: 11px; gap: 6px; }
  .apple-step-num { width: 32px; height: 32px; font-size: var(--text-caption); }

  .apple-form-card,
  .abstract-form-card { padding: 24px 20px; border-radius: var(--radius-cards-sm); }
  .apple-review-card { padding: 24px 20px; border-radius: var(--radius-cards-sm); }
  .tier-switch-card,
  .fee-table-card { padding: 22px 18px; border-radius: var(--radius-cards-sm); }

  /* Stacked, these three took 400px to say one thing. A segmented control
     keeps the comparison side by side, which is the whole point of it. */
  .tier-switch-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .tier-btn { padding: 9px 4px; gap: 1px; }
  .tier-btn .tier-btn-name { font-size: var(--text-caption); }
  .tier-btn .tier-btn-date { font-size: 10px; line-height: 1.3; }

  /* Section headings on a phone: a line, not a paragraph. */
  .tier-switch-head h3,
  .fee-table-head h3 { font-size: 19px; }
  .tier-switch-head p,
  .fee-table-head p { font-size: var(--text-caption); line-height: 1.5; margin-bottom: 14px; }

  /* The "booking for" card was a 240px navy block restating what the delegate
     just typed. It becomes one line: who, and a way back to change it. */
  .apple-user-strip {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 16px;
  }
  .apple-user-meta {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    min-width: 0;
  }
  .apple-user-tag { display: none; }
  .apple-user-name { font-size: var(--text-body-sm); }
  .apple-user-detail { font-size: 11px; }
  /* Step 2 drops the phone number for space; step 3's last detail is the
     chosen pass, which must stay. */
  #step-panel-2 .apple-user-detail:last-child { display: none; }
  .apple-user-strip .btn-apple-ghost {
    flex-shrink: 0;
    padding: 6px 12px !important;
    font-size: 11px !important;
    min-height: 0;
  }

  /* The footer ran nearly a full screen. Tighter type, tighter rhythm,
     and the navigation column reads as a wrapped link row, not a list. */
  /* 96px of bottom padding on a phone is a dead screen before the footer. */
  .apple-section { padding: 28px 16px 32px; }

  .apple-footer { padding: 26px 18px 20px; }
  .apple-footer-grid { gap: 20px; padding-bottom: 18px; }
  .apple-footer-col h4 { font-size: 10px; margin-bottom: 8px; }
  .apple-footer-col p {
    font-size: var(--text-caption);
    line-height: 1.5;
    margin-bottom: 2px;
  }
  /* Five stacked links ran 150px. As a wrapped row they take two lines. */
  .apple-footer-col:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
  }
  .apple-footer-col:nth-child(2) h4 { flex-basis: 100%; margin-bottom: 2px; }
  .apple-footer-col a {
    display: inline;
    font-size: var(--text-caption);
    padding: 2px 0;
  }
  .apple-footer-col a:hover { transform: none; }
  .footer-tagline { font-style: italic; }
  .apple-footer-bottom {
    padding-top: 14px;
    gap: 4px;
    font-size: 10px;
    line-height: 1.45;
  }
  .footer-credit {
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .toast-container { top: 12px; right: 12px; left: 12px; max-width: none; }
}

@media (max-width: 640px) {
  .apple-grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .photo-preview-frame { width: 92px; height: 114px; }
  .apple-radio-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .apple-radio-pill { justify-content: center; padding: 11px 6px; gap: 5px; font-size: var(--text-body-sm); }
  .pay-step-head { gap: 12px; }
  .pay-amount-banner { padding: 16px 20px; }
}

/* Rajasthani welcome line in the dark footer. */
.footer-tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 600;
  font-style: italic;
  color: var(--brand-gold-bright) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Motion
   Short, single-purpose transitions. Everything here is decoration,
   so all of it is switched off under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

/* The struck-through rate is mobile-only context; the desktop table
   already shows every tier side by side. */
.price-was { display: none; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes radioPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@keyframes barUp {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

@keyframes totalBump {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes checkDraw {
  from { stroke-dashoffset: 30; }
  to   { stroke-dashoffset: 0; }
}

@keyframes ringIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* Step changes are a jump, not a scroll, so the panel itself carries the
   sense of movement — otherwise the new step appears with no transition. */
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.step-panel.active { animation: panelIn 380ms cubic-bezier(.32, .72, 0, 1) both; }

.mobile-bar { animation: barUp 320ms cubic-bezier(.32, .72, 0, 1) both; }
.mobile-bar-total.bump { animation: totalBump 380ms cubic-bezier(.32, .72, 0, 1); }

/* The success tick draws itself once, then sits still. */
.success-check { animation: ringIn 460ms cubic-bezier(.32, .72, 0, 1) both; }
.success-check svg polyline {
  stroke-dasharray: 30;
  animation: checkDraw 520ms cubic-bezier(.65, 0, .35, 1) 240ms both;
}

/* Icons that respond to the pointer rather than animating on their own. */
.btn-apple-primary svg:last-child,
.btn-apple-ghost svg:last-child { transition: transform 240ms cubic-bezier(.32, .72, 0, 1); }
.btn-apple-primary:hover svg:last-child,
.btn-apple-ghost:hover svg:last-child { transform: translateX(3px); }

/* Submitting an abstract is the natural next step after registering, so it
   reads as an invitation rather than another grey utility button. */
.btn-submit-abstract {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.btn-submit-abstract:hover {
  background-color: var(--brand-blue-soft);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.btn-submit-abstract svg {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  transition: transform 240ms cubic-bezier(.32, .72, 0, 1);
}
.btn-submit-abstract:hover svg { transform: translateY(-2px); }

.mobile-bar-cta { transition: transform 160ms cubic-bezier(.32, .72, 0, 1); }
.mobile-bar-cta:active:not(:disabled) { transform: scale(0.97); }
.fee-table tbody tr[data-cat-row]:active { transform: scale(0.995); }

@media (prefers-reduced-motion: reduce) {
  .fee-table tbody tr,
  .step-panel.active,
  .mobile-bar,
  .success-check,
  .success-check svg polyline,
  .mobile-bar-total.bump,
  .fee-table tbody tr.selected::before { animation: none !important; }
  .fee-table tbody tr[data-cat-row]:active,
  .mobile-bar-cta:active:not(:disabled) { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Hero motifs
   The headline left a wide gutter either side on desktop. It is filled
   with the jharokha detail from the conference's own key artwork —
   carved sandstone, Mehrangarh and the blue city — mirrored on the
   right. Purely decorative, so it is aria-hidden and drops out on
   phones, where the headline needs the full width.
   ═══════════════════════════════════════════════════════════════ */

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}
.hero-title-row .apple-hero-headline { margin: 0; }

.hero-motif {
  flex: 0 0 auto;
  width: clamp(72px, 9vw, 132px);
  height: clamp(190px, 24vw, 320px);
  object-fit: cover;
  border-radius: 999px 999px 14px 14px;
  box-shadow: 0 14px 34px rgba(19, 26, 46, 0.16);
  opacity: 1;
  animation: motifIn 900ms var(--ease-out) 150ms both;
}
.hero-motif-right { transform: scaleX(-1); }

@keyframes motifIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* The mirrored one must keep its flip when the entrance finishes. */
@keyframes motifInFlip {
  from { opacity: 0; transform: scaleX(-1) translateY(14px); }
  to   { opacity: 1; transform: scaleX(-1); }
}
.hero-motif-right { animation-name: motifInFlip; }

@media (max-width: 900px) {
  .hero-motif { width: 62px; height: 170px; }
  .hero-title-row { gap: 14px; }
}
@media (max-width: 620px) {
  /* On a phone the headline needs every pixel. */
  .hero-motif { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Venue gallery
   ═══════════════════════════════════════════════════════════════ */

/* Matches .apple-banner-media img exactly. An aspect-ratio here fought that
   rule: the slides box came out shorter than the images inside it, and the
   dots row below added height the navy gradient covered — the empty band. */
/* Taller than the old 380px banner: the venue photos are 3:2, and a 3:1 frame
   was cropping half of each one away — the auditorium lost both its sign and
   its fountain. */
.venue-slides {
  position: relative;
  height: var(--banner-media-h);
  overflow: hidden;
  background-color: var(--brand-navy-deep);
}
.venue-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.venue-slide.is-active { opacity: 1; }

/* Where a photo's subject is not centred, say so rather than cropping blind.
   The auditorium's signboard sits near the top of the frame; centring the crop
   sliced it off. 18% keeps the sign, the lit entrance and the fountain jets. */
.venue-slide[data-focus="top"] { object-position: 50% 18%; }

/* Over the photo, not below it, so the gallery adds no height of its own. */
.venue-dots {
  position: absolute;
  right: clamp(18px, 3vw, 32px);
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 0;
}
.venue-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background-color 220ms var(--ease-out), width 220ms var(--ease-out);
}
.venue-dot.is-active { width: 20px; border-radius: 4px; background-color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   Photograph upload
   The placeholder read "No photo": as a flex item it was squeezed
   below its own min-content width, so the text wrapped and spilled
   past the frame's right edge, where overflow:hidden clipped it.
   A grid-centred icon cannot wrap, and reads better besides.
   ═══════════════════════════════════════════════════════════════ */

.photo-preview-frame {
  width: 104px;
  height: auto;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background-color: var(--surface-sunk);
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.photo-preview-frame:has(img:not([hidden])) {
  border-style: solid;
  border-color: var(--success);
  background-color: var(--surface);
}
/* `display: block` here would override the browser's own [hidden] rule, so the
   empty <img> kept rendering as a thin box inside the frame — that was the
   stray vertical line beside the placeholder. */
.photo-preview-frame img[hidden] { display: none; }
.photo-preview-frame img:not([hidden]) {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preview-placeholder {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  color: var(--ink-subtle);
}
.photo-preview-placeholder svg { width: 30px; height: 30px; }
.photo-preview-frame:has(img:not([hidden])) .photo-preview-placeholder { display: none; }

/* The dropzone was three lines tall for a field marked optional. */
.photo-dropzone { padding: 18px 16px; }
.photo-upload-row { align-items: stretch; gap: 14px; }
.photo-upload-actions { display: flex; flex-direction: column; justify-content: center; }

.success-actions-note {
  max-width: 44ch;
  margin: 4px auto 0;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ink-subtle);
  text-align: center;
}

@media (max-width: 640px) {
  .photo-upload-row { flex-wrap: nowrap; }
  .photo-preview-frame { width: 84px; }
  .photo-upload-actions { min-width: 0; flex: 1; }
  .photo-dropzone { padding: 14px 12px; }
  .dropzone-title { font-size: var(--text-body-sm); }
}


/* ═══════════════════════════════════════════════════════════════
   Registration form — overhaul
   ---------------------------------------------------------------
   The step read as a 2015 form: a white slab floating on grey, one
   flat grid of thirteen equally-weighted boxes, chunky 48px fields
   and chatty placeholders restating each label.

   It is now built like a modern settings page — each section states
   its purpose in a column beside its own fields, so the eye has a
   spine to travel down and the fields are the only thing competing
   for attention.
   ═══════════════════════════════════════════════════════════════ */

.apple-form-card.booking-card,
.apple-form-card.checkout-card,
#step-panel-1 .apple-form-card {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(19, 26, 46, 0.04), 0 12px 32px -12px rgba(19, 26, 46, 0.12);
}

/* ── Card header ── */
#step-panel-1 .apple-form-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 26px 32px 22px;
  border-bottom: 1px solid var(--line);
}
.form-header-text { min-width: 0; }
#step-panel-1 .apple-form-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
#step-panel-1 .apple-form-sub {
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  max-width: 46ch;
}

/* ── Completion meter ── */
.form-progress {
  flex-shrink: 0;
  width: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-progress-track {
  height: 4px;
  border-radius: 999px;
  background-color: var(--surface-sunk);
  overflow: hidden;
}
.form-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-indigo));
  transition: width 420ms var(--ease-out);
}
.form-progress.is-complete .form-progress-fill {
  background: linear-gradient(90deg, var(--success), #12a05f);
}
.form-progress-text {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}
.form-progress.is-complete .form-progress-text { color: var(--success); }

/* ── Sections: purpose on the left, fields on the right ── */
.form-section {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px 40px;
  padding: 28px 32px;
}
.form-section + .form-section { border-top: 1px solid var(--line); }

.form-section-head { position: sticky; top: 96px; align-self: start; }
.form-section-icon { display: none; }   /* the heading is enough; chips were clutter */
.form-section-head h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.form-section-head p {
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--ink-subtle);
  margin: 5px 0 0;
  max-width: 30ch;
}

.form-section .apple-grid-2 { gap: 16px 16px; }

/* ── Fields ──
   Lighter and more precise: 44px tall, 15px value text, a hairline
   that only darkens on hover and turns blue on focus. */
.apple-input,
.apple-select,
.apple-textarea {
  min-height: 44px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.apple-textarea { min-height: 96px; }
.apple-input::placeholder,
.apple-textarea::placeholder { color: var(--ink-subtle); font-weight: 400; }

.apple-input:hover:not(:focus),
.apple-select:hover:not(:focus),
.apple-textarea:hover:not(:focus) { border-color: var(--ink-subtle); box-shadow: none; }

.apple-input:focus,
.apple-select:focus,
.apple-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-ring);
  outline: none;
}

/* Labels step back so the values lead. */
.apple-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.apple-label .required { color: var(--ink-subtle); font-weight: 400; margin-left: 1px; }

.form-helper { font-size: 11px; line-height: 1.45; color: var(--ink-subtle); margin-top: 5px; }

/* A satisfied field earns a quiet tick. */
.form-group { position: relative; }
.form-group.is-valid > .apple-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  padding-right: 34px;
}
/* A select paints its own chevron, so the tick has to be layered beside it —
   setting background-image alone would erase the arrow. */
.form-group.is-valid > .apple-select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6480' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right 34px center, right 14px center;
  background-size: 14px 14px, 13px 13px;
  padding-right: 56px;
}

/* ── Segmented gender control ── */
.apple-radio-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background-color: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.apple-radio-pill {
  justify-content: center;
  gap: 0;
  padding: 8px 6px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.apple-radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.apple-radio-pill:hover { color: var(--ink); }
.apple-radio-pill:has(input:checked) {
  background-color: var(--surface);
  color: var(--brand-blue);
  box-shadow: 0 1px 2px rgba(19, 26, 46, 0.10);
}
.apple-radio-pill:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-blue-ring); }

/* ── Actions rail ── */
.booking-card .step-actions,
.checkout-card .step-actions,
#step-panel-1 .step-actions {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  background-color: var(--surface-sunk);
  margin: 0;
}

/* The error banner sits inside the card now, so it needs its own gutter. */
#step-panel-1 .form-error-banner { margin: 20px 32px 0; }

/* ── Phones ── */
@media (max-width: 900px) {
  .form-section { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px 20px; }
  .form-section-head { position: static; }
  .form-section-head p { max-width: none; }
  #step-panel-1 .apple-form-header { padding: 20px 20px 16px; gap: 14px; flex-direction: column; align-items: stretch; }
  .booking-card .step-actions,
  .checkout-card .step-actions,
  #step-panel-1 .step-actions { padding: 16px 20px; }
  #step-panel-1 .form-error-banner { margin: 16px 20px 0; }
  .form-progress { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .form-progress-fill { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Steps 2 and 3 — same system as step 1
   Each step was a stack of separately floating white cards, which
   made the page read as a pile of widgets. Both are now one surface
   with hairline bands, using the shared .form-section grid. Sections
   whose content needs the full width (price tables, the QR panel)
   opt out with .is-wide and put the header above instead.
   ═══════════════════════════════════════════════════════════════ */

.form-section-body { min-width: 0; }

/* Full-width variant: header above, content below. */
.form-section.is-wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.form-section.is-wide .form-section-head { position: static; }
/* Only the numbered heads are a row; a plain head must stack its heading
   above its subtitle rather than setting them side by side. */
.form-section.is-wide .form-section-head:has(.pay-step-num) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-section.is-wide .form-section-head > div { min-width: 0; flex: 1; }
.form-section.is-wide .form-section-head p { max-width: 62ch; }

/* .pay-step-num — see the shared step chip in design-system.css. */
.form-section-head #btn-edit-from-step-3 {
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  min-height: 0;
}

/* ── Step 2: the cards inside the surface lose their own chrome ── */
.booking-card .tier-switch-card,
.booking-card .fee-table-card {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.booking-card .table-scroll { border-radius: 12px; }
.booking-card .tier-live-note { margin-top: 14px; }
.form-section-head h3 { text-wrap: balance; }

/* ── Step 3 ── */
.checkout-card .apple-review-card,
.checkout-card .payment-tab-pane { padding: 0; border: none; background: none; box-shadow: none; }
.checkout-card .apple-grid-2 { gap: 16px; }
.checkout-card .pay-amount-banner { margin-top: 0; }

.checkout-card .step-actions,
.booking-card .step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.checkout-card .step-actions .btn-apple-primary { min-width: 220px; }

@media (max-width: 900px) {
  .form-section.is-wide { gap: 12px; }
  .checkout-card .step-actions .btn-apple-primary { min-width: 0; flex: 1; }
}

/* Membership number — revealed only for categories priced on membership. */
.member-no-block {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--brand-blue);
  border-radius: 12px;
  background-color: var(--brand-blue-soft);
  animation: panelIn 320ms var(--ease-out) both;
}
.member-no-block.hidden { display: none; }
.member-no-block .form-group { margin: 0; }
.member-no-block .apple-input { background-color: var(--surface); }
.member-no-block .form-helper { color: #1f3f96; }

@media (prefers-reduced-motion: reduce) {
  .member-no-block { animation: none; }
}
