/* ============================================================
   JÂN PLAZA — RESERVATION WIZARD LAYOUT
   Shared by both versions. The wizard's internals are identical
   in each — only its container differs (inline vs modal), so
   duplicating this into v1.css and v2.css would guarantee drift.

   Every value here is a token. Nothing overrides a design-system
   class; this file only lays out the wrappers the wizard adds.
   ============================================================ */

/* The design system has no visually-hidden utility; the wizard needs one
   for its live region. Clip-path rather than display:none, which would
   remove the text from the accessibility tree entirely. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wz {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.wz-head {
  padding-block-end: var(--sp-2);
}

.wz-body {
  min-height: 320px;
}

.wz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--c-border);
}

/* ---------- venue picker ---------- */

.wz-venues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.wz-venue {
  text-align: start;
  padding: 0 0 var(--sp-4);
  cursor: pointer;
}

.wz-venue .venue-img {
  aspect-ratio: 3 / 4;
}

.wz-venue-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--w-heading);
  line-height: var(--lh-heading);
  margin-block-end: var(--sp-1);
}

.wz-venue[aria-pressed='true'] {
  border-color: var(--c-border-brand);
  box-shadow: 0 0 0 2px var(--c-brand);
}

/* ---------- date and time ---------- */

.wz-when {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.wz-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

.wz-block .demo-label {
  margin-block-end: 0;
}

.wz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ---------- details ---------- */

.wz-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.wz-fields .field:last-of-type,
.wz-fields .wz-span {
  grid-column: 1 / -1;
}

.wz-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.wz-package {
  text-align: start;
  cursor: pointer;
  padding: 0;
}

.wz-package .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
}

.wz-package-name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--w-heading);
}

.wz-package-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.wz-package-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.wz-package-item .xmark {
  color: var(--c-brand);
}

.wz-package[aria-pressed='true'] {
  border-color: var(--c-border-brand);
  box-shadow: 0 0 0 2px var(--c-brand);
}

/* ---------- summary and success ---------- */

.wz-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 560px;
}

.wz-summary .confirm {
  max-width: none;
}

.wz-success {
  max-width: 520px;
  margin-inline: auto;
}

.wz-success .confirm-top h3 {
  font-size: var(--fs-h3);
}

.wz-success-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-block-start: 1px solid var(--c-border);
}

.wz-success-note p {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .wz-venues {
    grid-template-columns: repeat(2, 1fr);
  }
  .wz-when {
    grid-template-columns: 1fr;
  }
  .wz-packages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wz-venues {
    grid-template-columns: 1fr;
  }
  .wz-fields {
    grid-template-columns: 1fr;
  }
  .wz-body {
    min-height: 0;
  }
  .wz-foot .btn {
    flex: 1;
  }
  /* Four labels do not fit at 375px; the dots still carry the position. */
  .wz .step-label {
    display: none;
  }
}
