:root {
  color-scheme: light;
  --ink: #18233e;
  --muted: #65718c;
  --blue: #3553aa;
  --blue-soft: #62a7d9;
  --purple: #71358d;
  --orange: #f1aa55;
  --paper: #f6f8fc;
  --line: rgba(53, 83, 170, 0.15);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(52, 71, 125, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(145deg, #f8f6fb 0%, #eef6ff 42%, #f8fbff 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.ambient-one {
  width: 38rem;
  height: 38rem;
  top: -18rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(113, 53, 141, 0.19), transparent 68%);
}

.ambient-two {
  width: 42rem;
  height: 42rem;
  bottom: -24rem;
  left: -15rem;
  background: radial-gradient(circle, rgba(98, 167, 217, 0.27), transparent 70%);
}

.shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 26px 0 70px;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.brand { width: 138px; height: auto; display: block; }
.product-name {
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.event-hero { padding: 74px 8px 48px; }
.eyebrow, .section-number {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

h1, h2, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 7vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 { margin-bottom: 8px; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -0.025em; }
.deadline { color: var(--muted); font-size: 1.02rem; }
.deadline strong { color: var(--purple); }

.glass-card, .option-card, .state-card {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-card { padding: 30px; border-radius: 26px; }
.identity-card { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 32px; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label > span, .inline-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 4px rgba(98, 167, 217, 0.15); }

.notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  color: #53416a;
  background: rgba(113, 53, 141, 0.09);
}

.options-section { margin-top: 58px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 8px 20px;
}
.section-heading p:last-child { max-width: 260px; margin-bottom: 8px; color: var(--muted); text-align: right; }
.options-list { display: grid; gap: 16px; }

.option-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
}

.date-orbit {
  display: grid;
  place-content: center;
  align-self: center;
  justify-self: center;
  width: 98px;
  height: 98px;
  border: 8px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: white;
  text-align: center;
  background: linear-gradient(145deg, var(--blue-soft), var(--blue));
  box-shadow: 0 12px 28px rgba(53, 83, 170, 0.2);
}
.month { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; }
.day-number { margin-top: -3px; font-size: 2rem; line-height: 1; }

.option-content { padding: 25px 28px 19px 0; }
.option-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.weekday { margin-bottom: 3px; font-size: 1.18rem; font-weight: 800; text-transform: capitalize; }
.time-range { margin-bottom: 0; color: var(--muted); }
.place-pill {
  max-width: 46%;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(98, 167, 217, 0.08);
}

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 21px 0 16px; padding: 0; border: 0; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid;
  place-items: center;
  height: 43px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.64);
  transition: 150ms ease;
}
.choice input:focus-visible + span { outline: 3px solid rgba(98, 167, 217, 0.32); }
.choice input:checked + span { color: white; border-color: transparent; transform: translateY(-1px); }
.choice.prefer input:checked + span { background: var(--purple); }
.choice.can-attend input:checked + span { background: var(--blue); }
.choice.cannot-attend input:checked + span { background: #7d879b; }

.reserve-row { display: flex; align-items: center; justify-content: flex-end; gap: 13px; color: var(--muted); font-size: 0.75rem; }
.reserve-row > span { margin-right: auto; }
.calendar-link {
  padding: 0;
  border: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  background: none;
  cursor: pointer;
}
.calendar-link:disabled { opacity: 0.42; cursor: default; }

.submit-bar { padding-top: 24px; }
.submit-summary { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.submit-summary span { color: var(--muted); font-size: 0.83rem; }
.primary-button, .secondary-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { border: 0; color: white; background: linear-gradient(135deg, var(--blue), #536fc5); box-shadow: 0 12px 25px rgba(53, 83, 170, 0.22); }
.primary-button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.secondary-button { border: 1px solid var(--line); color: var(--blue); background: white; }

.state-card {
  max-width: 620px;
  margin: 90px auto 0;
  padding: 46px;
  border-radius: 30px;
  text-align: center;
}
.state-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: white;
  font-size: 1.35rem;
  font-weight: 850;
  background: var(--purple);
}
.state-icon.success { background: var(--blue); }
.state-card p { color: var(--muted); }
.loader {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  border: 3px solid rgba(53, 83, 170, 0.14);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.inline-form { display: flex; align-items: end; justify-content: center; gap: 10px; margin-top: 25px; text-align: left; }
.inline-form label { flex: 1; max-width: 290px; }
.feedback { margin: 12px 0; color: #a33c4d; font-size: 0.86rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .shell { width: min(100% - 22px, 980px); padding-top: 16px; }
  .brand { width: 116px; }
  .event-hero { padding: 55px 5px 32px; }
  .identity-card { grid-template-columns: 1fr; gap: 14px; padding: 23px; }
  .identity-fields { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p:last-child { max-width: none; text-align: left; }
  .option-card { grid-template-columns: 92px 1fr; min-height: 230px; border-radius: 22px; }
  .date-orbit { width: 72px; height: 72px; border-width: 6px; }
  .day-number { font-size: 1.45rem; }
  .option-content { padding: 22px 15px 16px 0; }
  .option-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .place-pill { max-width: 100%; }
  .choices { grid-template-columns: 1fr; gap: 6px; }
  .choice span { height: 40px; }
  .reserve-row { flex-wrap: wrap; justify-content: flex-start; }
  .reserve-row > span { flex-basis: 100%; }
  .submit-summary { align-items: stretch; flex-direction: column; gap: 10px; }
  .submit-summary span { text-align: center; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label { max-width: none; }
  .state-card { margin-top: 55px; padding: 32px 22px; }
}

