:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #d8dee8;
  --brand: #b78518;
  --brand-2: #0f766e;
  --red: #c24130;
  --green: #15803d;
  --blue: #2563eb;
  --shadow: 0 14px 34px rgba(31, 41, 51, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--brand-2); text-decoration: none; }
.reg-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.reg-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.reg-logo,
.reg-logo-fallback {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}
.reg-logo-fallback { background: var(--brand); color: #fff; }
.reg-brand strong,
.reg-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reg-brand small { color: var(--muted); font-size: 12px; }
.reg-nav {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}
.reg-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e4e9f2;
  color: var(--muted);
  font-weight: 800;
}
.reg-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 18px 14px 34px;
}
.reg-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.reg-hero h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}
.reg-hero p { margin: 0; color: var(--muted); }
.notice {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.notice.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #7f1d1d;
}
.notice.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.notice.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.registration-closed-card {
  max-width: 720px;
  margin: 32px auto;
  padding: 34px 24px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: #fff7f7;
  color: #7f1d1d;
  text-align: center;
  box-shadow: 0 16px 40px rgba(127, 29, 29, .08);
}
.registration-closed-card h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 38px);
}
.registration-closed-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.choice-grid.split-choice,
.choice-grid.page-switch,
.sub-choice {
  grid-template-columns: 1fr !important;
}
.choice-button {
  width: 100%;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  color: var(--text);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  padding: 18px 20px;
  cursor: pointer;
}
.choice-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}
.choice-button.active {
  border-color: var(--brand-2);
  background: linear-gradient(180deg, #e7f7f4, #ffffff);
  color: #0f766e;
}
.choice-button:hover {
  text-decoration: none;
  border-color: var(--brand-2);
  transform: translateY(-1px);
}
.reg-footer {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 14px 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.registration-form,
.reg-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.registration-form[hidden],
.member-subform[hidden] {
  display: none;
}
.reg-card { padding: 16px; }
.form-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.form-head h2 { margin: 0; font-size: 19px; }
.form-head p { margin: 0; color: var(--muted); }
.step-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 16px 0;
}
.step-pill {
  appearance: none;
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
}
.step-pill:hover {
  background: #eef6ff;
  border-color: #9db6d4;
  color: var(--text);
}
.step-pill:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .18);
  outline-offset: 2px;
}
.step-pill.active {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #ecfeff;
}
.event-slot-container[hidden] {
  display: none !important;
}
.solo-event-selection-container {
  display: grid;
  gap: 13px;
}
.nearest-city-container {
  padding: 14px;
  border: 1px solid #b7d5cc;
  border-radius: 12px;
  background: #f2fbf8;
}
.nearest-city-container[hidden] {
  display: none !important;
}
.nearest-city-container .hint {
  margin-bottom: 0;
}
.form-step {
  display: none;
  padding: 16px;
}
.form-step.active { display: block; }
.form-step h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.field-grid,
.field-grid.two,
.field-grid.three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}
.parent-name-grid { margin-top: 13px; }
label {
  display: block;
  margin-bottom: 6px;
  color: #394150;
  font-size: 13px;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 92px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, .15);
  border-color: var(--brand-2);
}
input[readonly] {
  background: #f8fafc;
  color: #475467;
}
select:disabled,
input:disabled {
  background: #eef2f6;
  color: #98a2b3;
  cursor: not-allowed;
}
.hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.inline-status {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}
.inline-status.ok { color: var(--green); }
.inline-status.error { color: #b42318; }
.inline-status.warning { color: #a15c07; }
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #ef4444;
  background: #fff7f7;
}
.sub-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
}
.preview-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 8px;
  padding: 14px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.preview-item {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}
.preview-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.preview-item strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.actions .right {
  margin-left: auto;
  display: inline-flex;
  gap: 10px;
}
.actions button[hidden] {
  display: none !important;
}
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: #e8edf5;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.registration-form.is-submitting .submit-registration {
  position: relative;
  padding-left: 42px;
}
.registration-form.is-submitting .submit-registration::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: reg-spin .8s linear infinite;
}
@keyframes reg-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.readonly-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.readonly-details[hidden] { display: none; }
.lookup-events {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.lookup-events > span,
.lookup-event-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.lookup-event-row {
  display: grid;
  gap: 3px;
  padding-top: 7px;
  border-top: 1px dashed #bfdbfe;
}
.lookup-event-row strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.lookup-event-row small {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 800;
}
.checkline input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}
.receipt-shell {
  width: min(430px, 100%);
}
.success-card.portrait-receipt {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 41, 51, .12);
}
.receipt-top {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #071728;
  color: #fff;
  text-align: center;
}
.receipt-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255,255,255,.44);
  padding: 4px;
}
.receipt-logo-text {
  display: grid;
  place-items: center;
  padding: 0;
  color: #071728;
  font-size: 26px;
  font-weight: 950;
}
.receipt-kicker {
  color: #f2c14e;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.receipt-top h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: 0;
}
.receipt-top p {
  margin: 0;
  color: #bed0e4;
  font-size: 11px;
  font-weight: 750;
}
.receipt-uid {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  border-radius: 8px;
  background: #fff4d7;
  border: 1px solid #f3d48a;
  color: #7c5608;
  text-align: center;
}
.receipt-uid span,
.receipt-details span,
.receipt-event span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.receipt-uid strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}
.receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.receipt-details div,
.receipt-event {
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.receipt-details strong,
.receipt-event strong {
  color: var(--text);
  font-size: 10px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.receipt-events {
  display: grid;
  gap: 4px;
  min-height: 0;
}
.receipt-events h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
}
.receipt-event-list {
  display: grid;
  gap: 4px;
}
.receipt-note {
  margin-top: auto;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}
.receipt-actions {
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 0 0;
  border: 0;
}

@media (min-width: 720px) {
  .reg-shell { padding: 24px 18px 42px; }
  .choice-grid { grid-template-columns: 1fr; }
  .field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .participant-details-grid { grid-template-columns: 2fr 1fr .7fr; }
  .participant-details-grid > div:nth-child(n+4) { grid-column: auto; }
  .preview-grid,
  .readonly-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .participant-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .participant-details-grid > div:first-child,
  .participant-details-grid > div:nth-child(n+4) {
    grid-column: 1 / -1;
  }
}
.unified-group-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:16px}
.unified-group-row{display:grid;grid-template-columns:1fr;gap:9px;padding:12px 14px 8px;border:1px solid #dce5ef;border-radius:16px;background:#f8fafc}
.unified-group-row .group-leader-status{grid-column:1/-1}
@media(min-width:760px){.unified-group-row{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
