:root {
  --bg: #f8f2e6;
  --surface: #fffdf8;
  --surface-warm: #fbf7ee;
  --ink: #18232e;
  --muted: #66717d;
  --line: #e7dccb;
  --brand: #102f4c;
  --brand-hover: #1e4768;
  --cta: #111111;
  --cta-hover: #2a2a2a;
  --accent: #f2c230;
  --accent-strong: #c88d10;
  --accent-soft: #fff4cb;
  --danger: #a33b3b;
  --success: #2d6a4f;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--brand); }

[hidden] { display: none !important; }

.site-footer,
.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  color: var(--ink);
  background: var(--accent);
  border-bottom: 1px solid rgba(16, 47, 76, 0.12);
}

.site-header-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 12px 0;
  font-weight: 500;
}

.site-header a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 132px;
  object-fit: contain;
}

.brand-mark span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell { padding: 28px 0 56px; }

.site-footer {
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 16px 38px rgba(16, 47, 76, 0.07);
}

.hero-card {
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 24px;
  color: var(--ink);
  background: var(--accent);
  border-color: rgba(16, 47, 76, 0.12);
}

.hero-card h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-event-description {
  max-width: 820px;
  margin: 12px 0 0;
  color: rgba(24, 35, 46, 0.76);
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.34;
}

.hero-card p:last-child {
  max-width: 100%;
  margin: 16px 0 0;
  color: rgba(24, 35, 46, 0.82);
  font-size: 1.02rem;
  line-height: 1.55;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.registration-form {
  display: grid;
  gap: 18px;
}

.form-card { padding: clamp(22px, 4vw, 34px); }

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: wizard-step;
  gap: 10px 12px;
}

.wizard-progress span {
  counter-increment: wizard-step;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 10px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.wizard-progress span::before {
  content: counter(wizard-step);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.76rem;
}

.wizard-progress span.is-active {
  border-color: var(--accent);
  color: var(--brand);
  background: var(--accent-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.wizard-progress span.is-complete {
  color: var(--brand);
  border-color: rgba(200, 141, 16, 0.38);
  background: var(--surface);
}

.wizard-progress span.is-complete::before {
  color: var(--brand);
  background: var(--accent);
  border-color: var(--accent);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.step-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--brand);
  background: var(--accent);
  font-weight: 800;
}

.step-heading p,
.step-heading h2 { margin: 0; }

.step-heading p,
.muted { color: var(--muted); }

.step-heading h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.field-grid,
.choice-grid,
.activities-grid,
.review-list,
.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
.role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

label > span:first-child,
.field-grid label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 800;
}

.optional-label {
  color: var(--muted);
  font-size: 0.84em;
  font-weight: 600;
}

.optional-label::before {
  content: "· ";
}

.required-label::after {
  content: " *";
  color: var(--danger);
  font-weight: 900;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #d6c7b2;
}

input::placeholder {
  color: #6f7884;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 194, 48, 0.42);
  outline-offset: 2px;
}

small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.choice-card,
.activity-card {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.choice-card,
.activity-card:not(.readonly-card) { cursor: pointer; }

.choice-card:hover,
.activity-card:not(.readonly-card):hover,
.choice-card:focus-within,
.activity-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(16, 47, 76, 0.08);
}

.choice-card.is-selected,
.activity-card.is-selected {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--accent), 0 10px 24px rgba(16, 47, 76, 0.06);
}

.choice-card input,
.activity-card input,
.program-row input,
.activity-controls input,
.check-row input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.choice-card strong,
.activity-card strong {
  color: var(--brand);
  font-size: 1.05rem;
}

.choice-card span,
.activity-card span,
.activity-card time,
.activity-card em { color: var(--muted); }

.attendance-card { min-height: 142px; }

.mode-pill {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--brand) !important;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.activity-card.is-hidden { display: none; }

.activity-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  background: var(--surface);
}

.activity-row + .activity-row { margin-top: 12px; }
.activity-row.is-hidden { display: none; }
.activity-row.is-selected { border-color: var(--accent); background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.activity-content { display: grid; gap: 6px; }
.activity-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.activity-row strong { color: var(--brand); font-size: 1.05rem; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); }
.activity-row time,
.activity-row em,
.activity-row span,
.activity-description { color: var(--muted); }
.activity-description { line-height: 1.35; }
.activity-disclaimer {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.activity-language {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.activity-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.activity-controls label,
.check-row { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.activity-controls label { min-height: 38px; cursor: pointer; }

.program-list {
  display: grid;
  gap: 10px;
}

.program-option {
  display: grid;
  gap: 8px;
}

.program-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface);
  cursor: pointer;
}

.program-row:focus-within,
.program-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.program-other {
  display: grid;
  gap: 8px;
  margin-left: 38px;
}

.travel-choice-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.travel-choice {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  min-width: 128px;
  min-height: 54px;
  padding: 14px 18px;
  gap: 10px;
  font-weight: 800;
}

.travel-details {
  display: grid;
  gap: 18px;
}

.travel-detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface);
}

.travel-detail-card.is-disabled {
  opacity: 0.58;
}

.travel-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.consent-card:hover,
.consent-card:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.consent-disclaimer {
  margin: 12px 0 0;
  font-size: 0.94rem;
}

.consent-disclaimer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-card input,
.companion-options input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.companions-block,
.comments-block {
  margin-top: 26px;
}

.companions-block h3 {
  margin: 0 0 12px;
  color: var(--brand);
}

.companion-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.companion-options label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 68px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.companion-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px rgba(242, 194, 48, 0.28);
}

.comments-block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.activity-day-list,
.activity-day { display: grid; gap: 18px; }

.activity-day h3,
.option-section h3,
.review-block h3 {
  margin: 0 0 10px;
  color: var(--brand);
}

.option-section { margin-top: 24px; }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.primary-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 24px;
  color: white;
  background: var(--cta);
  font-weight: 400;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.14);
}

.primary-button:hover { background: var(--cta-hover); }

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 20px;
  color: var(--brand);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--brand);
  background: var(--accent-soft);
}

.compact-button {
  justify-self: start;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.field-validation,
.validation-summary,
.validation-summary-errors,
.field-validation-error {
  color: var(--danger);
  font-weight: 700;
}

.field-validation {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
}

.status-card { border-color: rgba(216, 163, 40, 0.45); }
.confirmation-hero {
  color: white;
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.08);
}

.confirmation-hero .eyebrow { color: var(--accent); }

.confirmation-hero p:last-child { color: rgba(255, 255, 255, 0.88); }

.summary-list div,
.review-list div,
.review-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
}

.summary-list dt,
.review-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-list dd,
.review-list dd {
  margin: 6px 0 0;
  color: var(--brand);
  font-weight: 800;
}

.summary-list dd { font-size: 1.08rem; }

.summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-actions h2 { margin: 0; }

.summary-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-block ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .hero-card p:last-child {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero-card {
    padding: clamp(18px, 5vw, 24px);
    margin-bottom: 18px;
  }

  .hero-card h1 {
    font-size: clamp(1.48rem, 7vw, 1.9rem);
    line-height: 1.04;
  }

  .hero-event-description {
    margin-top: 8px;
    font-size: clamp(0.68rem, 2.35vw, 0.76rem);
    line-height: 1.2;
  }

  .hero-card p:last-child {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.7rem;
  }

  .wizard-progress {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .wizard-progress span:not(.is-active) {
    display: none;
  }

  .wizard-progress span.is-active {
    min-height: 42px;
    padding: 8px 10px;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-mark {
    gap: 10px;
  }

  .brand-mark img {
    height: 34px;
    max-width: 108px;
  }

  .brand-mark span {
    max-width: 170px;
    font-size: 0.92rem;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero-card {
    border-radius: 20px;
  }

  .wizard-progress,
  .field-grid,
  .choice-grid,
  .activities-grid,
  .summary-list,
  .review-list,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .wizard-progress span {
    min-height: 44px;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .travel-choice {
    flex: 1 1 140px;
    justify-content: center;
  }

  .travel-detail-grid {
    grid-template-columns: 1fr;
  }

  .summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-actions .primary-button,
  .wizard-actions .secondary-button,
  .summary-actions .primary-button,
  .summary-actions .secondary-button {
    width: 100%;
  }
}
