/* CorporART'26 — dark registration wizard */

:root {
  --bg: #030303;
  --bg-elevated: #0c0c0e;
  --card: #121218;
  --ink: #ffffff;
  --ink-soft: #d2d2d2;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #d8b45b;
  --gold-bright: #ffd77a;
  --gold-link: #f3c964;
  --orange: #e95828;
  --magenta: #be4ba8;
  --danger: #f0a0a8;
  --danger-strong: #d35167;
  --success: #7dcea0;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --form-max: 760px;
  --cta: linear-gradient(115deg, rgb(233, 88, 40), rgb(190, 75, 168));
  --gold-line: linear-gradient(90deg, #d8b45b, #ffd77a);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(190, 75, 168, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(233, 88, 40, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 70%, rgba(216, 180, 91, 0.07), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-link);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #111;
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

[hidden] {
  display: none !important;
}

/* —— Header —— */
.site-header {
  padding: 16px 24px 0;
}

.site-header__inner {
  max-width: var(--form-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 180, 91, 0.14);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.92;
  filter: drop-shadow(0 0 14px rgba(216, 180, 91, 0.22));
}

.brand-logo__img {
  display: block;
  width: min(148px, 44vw);
  height: auto;
  mix-blend-mode: screen;
}

.page-intro__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}

.page-intro__logo {
  display: none;
}

.page-intro__kicker {
  display: none;
}

.footer-logo {
  display: none;
}

.footer-rule {
  width: min(96px, 28vw);
  height: 1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 91, 0.5), transparent);
}

.btn-team {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 1.5px solid rgba(216, 180, 91, 0.45);
  background: rgba(216, 180, 91, 0.1);
  color: var(--gold-bright);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-team:hover {
  background: rgba(216, 180, 91, 0.18);
  border-color: var(--gold);
}

.brand-logo__mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background-image: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo__year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-bright);
}

/* —— Page shell —— */
.page-shell {
  max-width: var(--form-max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.page-intro {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 0.55s ease both;
}

.page-intro__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-link);
}

.page-intro__lead {
  margin: 0 auto;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
}

.corporart-registration {
  animation: fadeUp 0.65s ease 0.05s both;
}

/* —— Wizard card —— */
.wizard-card {
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(165deg, rgba(26, 15, 36, 0.92), rgba(10, 10, 14, 0.96));
  border: 1px solid rgba(216, 180, 91, 0.28);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.corp-form.wizard {
  padding: 28px 28px 24px;
}

/* —— Progress —— */
.wizard-progress {
  margin-bottom: 28px;
}

.wizard-progress__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.wizard-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--gold-line);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.wizard-step.is-complete {
  cursor: pointer;
}

.wizard-step__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: all 0.25s ease;
}

.wizard-step__num {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.wizard-step.is-active .wizard-step__dot {
  border-color: transparent;
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 18px rgba(233, 88, 40, 0.35);
  transform: scale(1.05);
}

.wizard-step.is-complete .wizard-step__dot {
  border-color: var(--gold);
  background: rgba(216, 180, 91, 0.18);
  color: var(--gold-bright);
}

.wizard-step__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.wizard-step.is-active .wizard-step__label {
  color: var(--ink);
}

.wizard-step.is-complete .wizard-step__label {
  color: var(--gold-link);
}

.wizard-step.is-complete:hover .wizard-step__label {
  color: var(--ink);
}

/* —— Panels —— */
.wizard-panels {
  position: relative;
  min-height: 260px;
}

.wizard-panel {
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wizard-panel.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wizard-panel.is-leaving-forward {
  opacity: 0;
  transform: translateX(-18px);
}

.wizard-panel.is-leaving-back {
  opacity: 0;
  transform: translateX(18px);
}

.wizard-panel.is-entering-forward {
  animation: slideInForward 0.3s ease both;
}

.wizard-panel.is-entering-back {
  animation: slideInBack 0.3s ease both;
}

.wizard-panel__header {
  margin-bottom: 22px;
}

.wizard-panel__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wizard-panel__title:focus {
  outline: none;
}

.wizard-panel__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Fields —— */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}

.field-grid__full {
  grid-column: 1 / -1;
}

.corp-field {
  margin-bottom: 0;
}

.corp-field + .corp-field,
.corp-field + .categories-field,
.field-grid + .corp-field {
  margin-top: 16px;
}

.categories-field {
  margin-top: 20px;
  border: 0;
  min-width: 0;
  padding: 0;
}

.corp-field label,
.corp-field legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.label-optional {
  font-weight: 500;
  color: var(--muted);
}

.corp-field input[type="text"],
.corp-field input[type="email"],
.corp-field input[type="tel"],
.corp-field select,
.corp-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.corp-field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.45;
}

.corp-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}

.corp-field select option {
  background: #1a1218;
  color: var(--ink);
}

.corp-field input::placeholder,
.corp-field textarea::placeholder {
  color: #888;
}

.corp-field input:hover,
.corp-field select:hover,
.corp-field textarea:hover {
  border-color: rgba(216, 180, 91, 0.4);
}

.corp-field input:focus,
.corp-field select:focus,
.corp-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 180, 91, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.corp-field input.is-invalid,
.corp-field select.is-invalid,
.corp-field textarea.is-invalid {
  border-color: var(--danger-strong);
  box-shadow: 0 0 0 3px rgba(211, 81, 103, 0.15);
}

.field-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

/* —— Category cards —— */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-chip {
  position: relative;
  display: block;
  margin: 0 !important;
  cursor: pointer;
  user-select: none;
}

.category-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.category-chip__face {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-height: 76px;
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease;
}

.category-chip__letter {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(216, 180, 91, 0.14);
}

.category-chip__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.category-chip__hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.category-chip:hover .category-chip__face {
  border-color: rgba(216, 180, 91, 0.5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.category-chip input:focus-visible + .category-chip__face {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.category-chip input:checked + .category-chip__face {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(233, 88, 40, 0.2), rgba(190, 75, 168, 0.22));
  box-shadow: 0 10px 24px rgba(216, 180, 91, 0.18);
}

.category-chip input:checked + .category-chip__face .category-chip__letter {
  background: var(--cta);
  color: #fff;
}

/* —— Subcategories —— */
.subcategory-panels {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.subcategory-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  border: 1px solid rgba(216, 180, 91, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 14px;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    padding 0.25s ease;
}

.subcategory-panel.is-open {
  max-height: 760px;
  opacity: 1;
  transform: translateY(0);
  padding: 14px;
}

.subpanel-title {
  margin: 0 0 10px;
  color: var(--gold-link);
  font-size: 0.85rem;
  font-weight: 700;
}

.subpanel-hint {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

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

.subcategory-chip {
  position: relative;
  display: block;
  margin: 0 !important;
  cursor: pointer;
  user-select: none;
}

.subcategory-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.subcategory-chip span {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.subcategory-chip:hover span {
  border-color: rgba(216, 180, 91, 0.45);
}

.subcategory-chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.subcategory-chip input:checked + span {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(233, 88, 40, 0.16), rgba(190, 75, 168, 0.18));
  box-shadow: 0 0 12px rgba(216, 180, 91, 0.12);
}

/* —— Review —— */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.review-block {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.review-block--full {
  grid-column: 1 / -1;
}

.review-block h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-link);
}

.review-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.review-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: baseline;
}

.review-list dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.review-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

/* —— Nav buttons —— */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.wizard-nav__spacer {
  flex: 1;
}

.btn-back,
.btn-next,
.btn-register {
  appearance: none;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-back {
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  padding: 12px 20px;
}

.btn-back:hover {
  border-color: rgba(216, 180, 91, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.btn-back:active {
  transform: scale(0.98);
}

.btn-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-next {
  border: 0;
  color: #111;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--gold-line);
  padding: 12px 28px;
  min-width: 124px;
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(216, 180, 91, 0.35);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-register {
  border: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  background-image: var(--cta);
  padding: 13px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(216, 180, 91, 0.35);
}

.btn-register:hover::after {
  transform: translateX(120%);
}

.btn-register--inline {
  text-decoration: none;
}

/* —— Flash / success —— */
.flash-stack {
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.flash {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  animation: fadeUp 0.35s ease both;
}

.flash-error {
  background: rgba(211, 81, 103, 0.18);
  border-color: rgba(211, 81, 103, 0.45);
  color: #ffd0d6;
}

.flash-success {
  background: rgba(216, 180, 91, 0.16);
  border-color: rgba(216, 180, 91, 0.45);
  color: #ffe9b5;
}

.success-panel {
  padding: 48px 36px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(216, 180, 91, 0.28);
  background:
    linear-gradient(165deg, rgba(36, 22, 40, 0.95), rgba(12, 10, 16, 0.98));
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeUp 0.55s ease both;
}

/* —— Participants modal —— */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.modal.is-open {
  display: flex !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(88vh, 88dvh, 720px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(216, 180, 91, 0.28);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(216, 180, 91, 0.12), transparent 55%),
    linear-gradient(180deg, #16121c 0%, #0c0b10 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.28s ease both;
}

.modal__dialog--team {
  width: min(580px, 100%);
}

.modal__header {
  flex: 0 0 auto;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.modal__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-link);
}

.modal__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.team-count {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(216, 180, 91, 0.1);
  border: 1px solid rgba(216, 180, 91, 0.28);
}

.team-count__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-bright);
}

.team-count__label {
  display: block;
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.modal__subtitle strong {
  color: var(--gold-link);
}

.modal__event-chip {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(233, 88, 40, 0.16);
  border: 1px solid rgba(233, 88, 40, 0.35);
  color: #ffc7a8;
  font-size: 0.78rem;
  font-weight: 700;
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 180, 91, 0.4) transparent;
}

.participant-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.participant-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.participant-row:focus-within {
  border-color: rgba(216, 180, 91, 0.45);
  background: rgba(216, 180, 91, 0.05);
}

.participant-row--lead {
  grid-column: 1 / -1;
  border-color: rgba(216, 180, 91, 0.35);
  background: linear-gradient(120deg, rgba(216, 180, 91, 0.12), rgba(190, 75, 168, 0.08));
}

.participant-row:has(.participant-row__remove) {
  grid-template-columns: 36px 1fr 34px;
}

.participant-row__badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(216, 180, 91, 0.12);
  border: 1px solid rgba(216, 180, 91, 0.22);
}

.participant-row--lead .participant-row__badge {
  background: var(--cta);
  border-color: transparent;
  color: #fff;
}

.participant-row__field {
  min-width: 0;
}

.participant-row__field label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.participant-row--lead .participant-row__field label {
  color: var(--gold-link);
}

.participant-row input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
}

.participant-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 180, 91, 0.16);
}

.participant-row input.is-locked {
  border-color: rgba(216, 180, 91, 0.3);
  background: rgba(216, 180, 91, 0.08);
  color: var(--gold-bright);
  font-weight: 650;
}

.participant-row__remove {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f0a0a8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.participant-row__remove:hover {
  background: rgba(211, 81, 103, 0.18);
  border-color: rgba(211, 81, 103, 0.4);
}

.btn-add-participant {
  appearance: none;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(216, 180, 91, 0.4);
  background: rgba(216, 180, 91, 0.05);
  color: var(--gold-link);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-add-participant__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(216, 180, 91, 0.18);
  font-size: 1rem;
  line-height: 1;
}

.btn-add-participant:hover {
  background: rgba(216, 180, 91, 0.1);
  border-color: var(--gold);
}

.modal__footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 12, 0.92);
}

.btn-modal-secondary,
.btn-modal-primary {
  appearance: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-modal-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--ink);
}

.btn-modal-secondary:hover {
  border-color: rgba(216, 180, 91, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.btn-modal-primary {
  border: 0;
  color: #111;
  background: var(--gold-line);
  min-width: 132px;
}

.btn-modal-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(216, 180, 91, 0.3);
}

.participant-list {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  color: #c8c8c8;
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .participant-fields {
    grid-template-columns: 1fr 1fr;
  }

  .participant-row--lead {
    grid-column: 1 / -1;
  }
}

.success-panel__icon {
  color: var(--gold-bright);
  margin: 0 auto 16px;
  animation: checkPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.success-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  background-image: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.success-panel p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 28rem;
  margin: 0 auto 22px;
}

.success-panel strong {
  color: var(--ink);
}

.cat-summary {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}

.cat-detail-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #c8c8c8;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cat-detail-list strong {
  color: var(--gold-link);
}

/* —— Footer —— */
.site-footer {
  padding: 8px 24px 36px;
}

.footer-inner {
  max-width: var(--form-max);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background-image: var(--gold-line);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Admin —— */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.admin-page h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 8px;
}

.admin-meta {
  color: var(--gold-link);
  margin-bottom: 24px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(216, 180, 91, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--gold-bright);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInForward {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInBack {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes checkPop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* —— Responsive —— */

/* Large phones / small tablets */
@media (max-width: 900px) {
  .page-shell {
    padding: 22px 18px 56px;
  }

  .corp-form.wizard {
    padding: 24px 20px 20px;
  }

  .page-intro__logo {
    width: min(400px, 82vw);
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subcategory-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .admin-page {
    padding: 28px 16px 56px;
  }
}

/* Phones */
@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    padding: max(12px, env(safe-area-inset-top)) 14px 0;
  }

  .brand-logo__img {
    width: min(128px, 48vw);
  }

  .page-shell {
    padding: 14px 12px calc(40px + env(safe-area-inset-bottom));
  }

  .page-intro {
    margin-bottom: 16px;
  }

  .page-intro__eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .page-intro__brand {
    font-size: 1.45rem;
    letter-spacing: 0.08em;
  }

  .wizard-card {
    border-radius: 18px;
  }

  .corp-form.wizard {
    padding: 18px 14px 16px;
  }

  .wizard-progress {
    margin-bottom: 20px;
  }

  .wizard-progress__track {
    margin-bottom: 14px;
  }

  .wizard-step__dot {
    width: 28px;
    height: 28px;
  }

  .wizard-step__num {
    font-size: 0.78rem;
  }

  .wizard-step__label {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .wizard-panel__title {
    font-size: 1.35rem;
  }

  .wizard-panel__subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .wizard-panel__header {
    margin-bottom: 16px;
  }

  .field-grid,
  .category-grid,
  .subcategory-grid,
  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-grid {
    gap: 14px;
  }

  .corp-field input[type="text"],
  .corp-field input[type="email"],
  .corp-field input[type="tel"],
  .corp-field select,
  .corp-field textarea,
  .participant-row input {
    font-size: 16px; /* prevent iOS zoom */
    padding: 13px 14px;
  }

  .category-chip__face {
    min-height: 68px;
    padding: 12px;
  }

  .category-chip__letter {
    width: 36px;
    height: 36px;
  }

  .review-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wizard-nav {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
  }

  .wizard-nav__spacer {
    display: none;
  }

  .btn-next,
  .btn-register,
  .btn-back {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .btn-back {
    order: 2;
  }

  .success-panel {
    padding: 32px 18px;
  }

  .success-panel h2 {
    font-size: 1.55rem;
  }

  .site-footer {
    padding: 4px 14px calc(24px + env(safe-area-inset-bottom));
  }

  .footer-logo {
    width: min(140px, 52vw);
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal.is-open {
    display: flex !important;
    justify-content: center;
  }

  .modal__dialog,
  .modal__dialog--team {
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 92vh);
    border-radius: 22px 22px 0 0;
  }

  .modal__header {
    padding: 16px 16px 10px;
  }

  .modal__body {
    padding: 12px 16px;
  }

  .modal__footer {
    flex-wrap: wrap;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .btn-modal-secondary,
  .btn-modal-primary {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .participant-fields {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.82rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 10px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .wizard-step__label {
    display: none;
  }

  .wizard-steps {
    gap: 4px;
  }

  .page-intro__logo {
    width: min(240px, 90vw);
  }

  .corp-form.wizard {
    padding: 16px 12px 14px;
  }

  .btn-modal-secondary,
  .btn-modal-primary {
    flex: 1 1 100%;
  }
}

/* Tablets and up keep 2-col categories */
@media (min-width: 681px) and (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landscape phones: keep modal usable */
@media (max-height: 480px) and (orientation: landscape) {
  .page-intro {
    margin-bottom: 12px;
  }

  .page-intro__logo {
    width: min(200px, 42vw);
  }

  .modal__dialog {
    max-height: 96vh;
    border-radius: 16px;
  }

  .wizard-panels {
    min-height: 180px;
  }
}
