:root {
  color-scheme: dark;
  --red: #af1e23;          /* Pantone 201 C: fills, stripes, rules only */
  --red-deep: #8c171b;
  --red-tint: #ff6b70;     /* small text, focus rings, checked states on dark (~7:1) */
  --grey: #64656a;         /* Cool Gray 10 C: borders, decoration */
  --grey-text: #a8a9ae;    /* secondary text on dark (~8:1) */
  --bg: #0d0d0f;
  --surface: #151518;
  --surface-2: #1c1c21;
  --line: #2c2c33;
  --text: #ffffff;
  --text-soft: #d9d9dc;
  --danger: #ff8a8e;
  --success: #7fd3a8;
  --heading-font: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--bg); }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 88% 8%, rgba(175, 30, 35, .16), transparent 34rem),
    radial-gradient(ellipse at 10% 90%, rgba(100, 101, 106, .12), transparent 30rem),
    var(--bg);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Poster-style red diagonal stripes, top-left corner */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 190px;
  height: 190px;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--red) 0 7px, transparent 7px 20px);
  -webkit-mask-image: linear-gradient(135deg, #000 30%, transparent 62%);
  mask-image: linear-gradient(135deg, #000 30%, transparent 62%);
  opacity: .9;
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 2px; }

.site-header, .site-footer, .page-shell { position: relative; z-index: 1; }

.site-header, .site-footer {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header { min-height: 94px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; border-radius: 4px; }
.wordmark:focus-visible { outline: 3px solid var(--red-tint); outline-offset: 4px; }
.wordmark-mark { font-family: var(--heading-font); font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: #c9cacd; }
.wordmark-mark span { color: var(--red-tint); }
.wordmark-name { padding-left: 10px; border-left: 1px solid var(--grey); color: var(--text-soft); font-size: 11px; font-weight: 700; letter-spacing: 2.1px; }
.header-note { color: var(--grey-text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.page-shell {
  width: min(1160px, calc(100% - 64px));
  min-height: calc(100vh - 168px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  padding: 24px 0 56px;
}

/* ---------- Intro / event details ---------- */
.intro { max-width: 520px; padding-top: 8px; }
h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 19px; color: var(--red-tint); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.intro .eyebrow {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--red);
  font-family: var(--heading-font);
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: .3em;
}
.intro-copy { margin: 24px 0 28px; padding-left: 16px; border-left: 2px solid var(--grey); color: var(--text-soft); font-size: 16px; line-height: 1.65; }

.event-details {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(21, 21, 24, .85);
  overflow: hidden;
}
.event-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 14px 18px; }
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-details dt { color: var(--red-tint); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.event-details dd { margin: 0; color: var(--text); font-family: var(--heading-font); font-size: 18px; font-weight: 700; line-height: 1.35; }
.event-details dd strong { display: block; font-size: 20px; letter-spacing: .02em; }
.event-address { display: block; margin-top: 2px; color: var(--grey-text); font-family: "Segoe UI", "Noto Sans", Arial, sans-serif; font-size: 14px; font-weight: 400; }

.poster { margin: 0; }
.poster img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ---------- Form card ---------- */
.form-card {
  position: relative;
  min-height: 510px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%);
  box-shadow: var(--shadow);
}
.loading-state { min-height: 410px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--grey-text); font-size: 14px; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--red-tint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.form-heading .eyebrow { margin-bottom: 10px; font-size: 10px; }
.form-heading h2, .error-panel h2, .saved-panel h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
}
.form-heading h2:focus { outline: none; }
.form-heading h2:focus-visible { outline: 3px solid var(--red-tint); outline-offset: 4px; }
.response-badge { padding: 7px 11px; border: 1px solid var(--grey); border-radius: 20px; color: var(--text-soft); background: rgba(255,255,255,.04); font-size: 11px; font-weight: 700; white-space: nowrap; }
.guest-greeting { margin: 14px 0 28px; color: var(--grey-text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.guest-greeting .guest-salutation { display: block; color: var(--text); font-size: 16px; font-weight: 600; }
.guest-greeting .guest-company { display: block; margin-top: 4px; color: var(--grey-text); font-size: 14px; overflow-wrap: anywhere; word-break: break-word; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 12px; color: var(--text); font-size: 14px; font-weight: 700; }
.choice-card {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice-card:hover { border-color: var(--grey); background: rgba(255,255,255,.05); }
.choice-card:has(input:checked) { border-color: var(--red-tint); background: rgba(175, 30, 35, .18); box-shadow: 0 0 0 1px var(--red-tint); }
.choice-card:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-indicator { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid var(--grey-text); border-radius: 50%; background: transparent; }
.choice-card input:checked + .radio-indicator { border: 5px solid var(--red-tint); background: #fff; }
.choice-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.choice-copy strong { color: var(--text); font-size: 14px; font-weight: 700; }
.choice-copy small { color: var(--grey-text); font-size: 12px; }
.choice-check { color: var(--red-tint); font-size: 16px; font-weight: 700; opacity: 0; }
.choice-card:has(input:checked) .choice-check { opacity: 1; }

.conditional-fields { margin-top: 22px; padding: 17px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.compact-group legend { margin-bottom: 10px; line-height: 1.5; }
.inline-choice { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; margin-right: 20px; color: var(--text-soft); font-size: 14px; cursor: pointer; }
.inline-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--red-tint); }
.inline-choice input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.field-wrap { margin-top: 13px; }
.field-wrap label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.field-wrap input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--grey); border-radius: 8px; outline: 0; background: var(--bg); color: var(--text); font-size: 15px; }
.field-wrap input::placeholder { color: #8a8b90; }
.field-wrap input:focus { border-color: var(--red-tint); box-shadow: 0 0 0 3px rgba(255, 107, 112, .35); }
.field-wrap input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { display: block; margin-top: 6px; color: var(--grey-text); font-size: 12px; }

.privacy-note { display: flex; gap: 9px; margin: 22px 0 18px; color: var(--grey-text); font-size: 12px; line-height: 1.5; }
.privacy-note span { color: var(--red-tint); font-size: 10px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.button-primary { width: 100%; padding: 0 18px; color: #fff; background: var(--red); box-shadow: 0 8px 22px rgba(175, 30, 35, .3); }
.button-primary:hover { background: var(--red-deep); transform: translateY(-1px); }
.button-primary:focus-visible, .button-secondary:focus-visible, .button-calendar:focus-visible, .text-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.button-primary:disabled { cursor: wait; opacity: .75; transform: none; }
.button-arrow { color: #fff; font-size: 18px; font-weight: 400; }
.form-status { min-height: 18px; margin: 10px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }
.form-status:focus { outline: none; }
.validation-message { margin: 14px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }
.text-button { display: inline-block; margin-top: 10px; padding: 4px 0; border: 0; color: var(--red-tint); background: transparent; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #fff; }
.button-secondary { margin-top: 17px; padding: 0 18px; color: var(--text); background: transparent; border: 1px solid var(--grey-text); }
.button-secondary:hover { background: rgba(255,255,255,.06); }

.button-calendar { margin-top: 22px; padding: 0 20px; color: #fff; background: var(--red); box-shadow: 0 8px 22px rgba(175, 30, 35, .3); }
.button-calendar:hover { background: var(--red-deep); }
.calendar-glyph { position: relative; width: 16px; height: 15px; border: 2px solid #fff; border-top-width: 4px; border-radius: 3px; }

/* ---------- State panels ---------- */
.error-panel, .saved-panel { min-height: 410px; display: flex; align-items: center; gap: 18px; }
.error-panel > div, .saved-panel > div { flex: 1; min-width: 0; }
.saved-panel:focus { outline: none; }
.saved-panel:focus-visible { outline: 3px solid var(--red-tint); outline-offset: 6px; border-radius: 8px; }
.error-panel p, .saved-panel p:not(.eyebrow) { max-width: 380px; margin: 12px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.state-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; align-self: flex-start; margin-top: 4px; border-radius: 50%; font-size: 18px; font-weight: 700; }
.error-icon { color: #fff; background: var(--red); }
.success-icon { color: #fff; background: var(--red); box-shadow: 0 0 0 5px rgba(175, 30, 35, .25); }
.saved-panel .saved-eyebrow { margin-bottom: 12px; font-size: 10px; }
.saved-panel h2 { font-size: clamp(28px, 3vw, 36px); }
.saved-panel .text-button { display: block; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { min-height: 80px; border-top: 1px solid var(--line); color: var(--grey-text); font-size: 12px; }
.footer-stripes { flex: 0 0 120px; height: 8px; background: repeating-linear-gradient(115deg, var(--red) 0 6px, transparent 6px 11px); }
.footer-tagline { color: var(--text-soft); font-size: 12px; letter-spacing: .5em; white-space: nowrap; }
.footer-note { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .page-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
  .event-row { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .page-shell { width: min(640px, calc(100% - 40px)); min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 20px 0 40px; }
  .site-header, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 80px; }
  .intro { max-width: none; padding-top: 12px; }
  h1 { font-size: clamp(44px, 11vw, 64px); }
  .form-card { min-height: 0; padding: clamp(24px, 6vw, 40px); }
  .loading-state, .error-panel, .saved-panel { min-height: 260px; }
  .site-footer { flex-wrap: wrap; justify-content: center; padding: 18px 0; text-align: center; }
  .footer-note { flex-basis: 100%; text-align: center; }
  body::before { width: 130px; height: 130px; }
}

@media (max-width: 480px) {
  .site-header, .site-footer { width: calc(100% - 32px); }
  .site-header { min-height: 70px; }
  .wordmark-mark { font-size: 28px; }
  .wordmark-name { font-size: 9px; letter-spacing: 1.7px; }
  .header-note { font-size: 10px; letter-spacing: .04em; }
  .page-shell { width: calc(100% - 32px); gap: 24px; padding-top: 12px; }
  h1 { font-size: 42px; }
  .intro .eyebrow { font-size: 14px; letter-spacing: .22em; }
  .intro-copy { margin: 18px 0 22px; font-size: 15px; padding-left: 12px; }
  .event-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; }
  .event-details dd { font-size: 17px; }
  .form-card { padding: 24px 18px; border-radius: 14px; }
  .form-heading h2 { font-size: 24px; }
  .response-badge { font-size: 10px; padding: 6px 9px; }
  .choice-card { min-height: 68px; padding: 11px 12px; }
  .conditional-fields { padding: 15px 13px; }
  .error-panel, .saved-panel { align-items: flex-start; }
  .button-calendar { width: 100%; }
  .footer-tagline { letter-spacing: .32em; font-size: 11px; }
  .footer-stripes { flex-basis: 80px; }
  body::before { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .choice-card:has(input:checked) { outline: 2px solid Highlight; }
  .radio-indicator { forced-color-adjust: none; }
}
