/* Host an event: buy and set up on the web (Stripe Checkout), or ask us first. Midnight ground, foam controls.
   Radii stay 24px and 999px. Choice buttons stay plain: no drawn art (AGENTS.md design rules). */
.host {
  background: var(--midnight);
  color: var(--foam);
}
.host__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-800);
  align-items: start;
}
.host .lede {
  margin-top: var(--s-300);
  color: var(--spray);
}
.host__screen {
  width: min(260px, 70%);
  margin-top: var(--s-700);
}
.host__panel {
  padding: var(--s-300);
  border-radius: var(--r);
  background: rgba(3, 10, 23, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--spray-18);
}

/* Segmented control, like the app's. */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-50);
  padding: var(--s-50);
  border-radius: var(--pill);
  background: rgba(127, 169, 232, 0.1);
}
.seg button {
  min-height: 40px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--spray);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.seg button[aria-selected="true"] {
  background: var(--foam);
  color: var(--midnight);
}

.pane {
  display: grid;
  gap: var(--s-300);
  margin-top: var(--s-300);
}
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-100);
  margin: 0;
  padding: 0;
  border: 0;
}
.choice legend {
  margin-bottom: var(--s-100);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--spray);
}
.opt {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-50);
  padding: var(--s-200);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--spray-28);
  cursor: pointer;
  transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.opt:hover {
  box-shadow: inset 0 0 0 1px var(--spray-58);
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt:has(input:checked) {
  background: var(--foam);
  color: var(--midnight);
  box-shadow: none;
}
.opt:has(input:focus-visible) {
  outline: 2px solid var(--spray);
  outline-offset: 3px;
}
.opt__name {
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
}
.opt__line {
  font-size: 14px;
  line-height: 20px;
  color: var(--spray);
}
.opt:has(input:checked) .opt__line {
  color: var(--midnight-72);
}
.opt--row {
  grid-template-columns: 1fr auto;
  align-items: baseline;
  border-radius: var(--pill);
  padding: var(--s-100) var(--s-300);
}
.opt__price {
  font-weight: 200;
  font-style: italic;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-200) var(--s-100);
}
.field {
  display: grid;
  gap: var(--s-75);
  min-width: 0;
}
.field--wide {
  grid-column: 1 / -1;
}
.field > span {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--spray);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--s-100) var(--s-200);
  border: 0;
  border-radius: var(--pill);
  background: rgba(127, 169, 232, 0.1);
  box-shadow: inset 0 0 0 1px var(--spray-20);
  color: var(--foam);
  font: inherit;
  font-size: 16px; /* no zoom on iPhone */
  color-scheme: dark;
  transition: box-shadow 300ms var(--ease);
}
.field textarea {
  border-radius: var(--r);
  resize: vertical;
  min-height: 96px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(127, 169, 232, 0.55);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237fa9e8' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-200) center;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--spray);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px #ff9aa8;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pill--wide {
  width: 100%;
  min-height: 52px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.pill--wide[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.pill [data-total] {
  margin-left: var(--s-50);
  font-weight: 200;
  font-style: italic;
}
.status {
  min-height: 20px;
  margin-top: calc(var(--s-200) * -1);
  font-size: 14px;
  line-height: 20px;
  color: #ffb3bd;
  text-align: center;
}
.status:empty {
  display: none;
}
.status a {
  color: var(--foam);
}
.fine {
  margin-top: calc(var(--s-200) * -1);
  font-size: 13px;
  line-height: 18px;
  font-weight: 200;
  font-style: italic;
  color: var(--spray);
  text-align: center;
}

.done {
  display: grid;
  justify-items: center;
  gap: var(--s-100);
  padding: var(--s-700) var(--s-300);
  text-align: center;
  outline: none;
}
.done__mark {
  width: 48px;
  margin-bottom: var(--s-200);
  color: var(--spray);
}
.done__line {
  color: var(--spray);
}

/* Turnstile sits here once its key is set; with "interaction-only" it stays empty unless Cloudflare asks. */
.ts:empty {
  display: none;
}

/* Waive for groups: the same form on the light ground. Fields after shadcn/ui's input: a quiet fill, a hairline
   ring and a 2px focus ring, in Waive's colors and pill radius. */
.groups__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-800);
  align-items: start;
}
.groups__panel {
  padding: var(--s-300);
  border-radius: var(--r);
  background: rgba(211, 222, 245, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--midnight-14), 0 24px 60px -32px rgba(6, 21, 77, 0.4);
}
.groups .pane {
  margin-top: 0;
}
.groups .field > span {
  color: var(--midnight-78);
}
.groups .field input,
.groups .field textarea,
.groups .field select {
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(6, 21, 77, 0.18);
  color: var(--midnight);
  color-scheme: light;
}
.groups .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2306154d' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
}
.groups .field select:invalid {
  color: var(--midnight-66);
}
.groups .field input:focus,
.groups .field textarea:focus,
.groups .field select:focus {
  box-shadow: inset 0 0 0 2px var(--cobalt);
}
.groups .field [aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px #b3263e;
}
.groups .status {
  color: #9e1c33;
}
.groups .status a {
  color: var(--midnight);
}
.groups .done__mark {
  color: var(--cobalt);
}
.groups .done__line {
  color: var(--midnight-78);
}

@media (max-width: 900px) {
  .groups__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-500);
  }
  .host__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-500);
  }
  .host__screen {
    display: none;
  }
}
@media (max-width: 480px) {
  .host__panel,
  .groups__panel {
    margin-inline: calc(var(--s-100) * -1);
    padding: var(--s-200);
  }
  .choice:not(.choice--size) {
    grid-template-columns: 1fr;
  }
  .choice--size {
    grid-template-columns: 1fr;
  }
  .groups .field {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .seg button,
  .opt,
  .field input,
  .field textarea,
  .field select {
    transition: none;
  }
}
