/* =====================================================================
   Pena wizard — checkout flow styles.
   Reuses palette from site.css (--ink, --sun, --shell, --line).
   Layout: two-column shell (form left, sticky summary right).
   ===================================================================== */

.wizard-body { background: #fafafa; }

.hdr-back {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.hdr-back svg { width: 16px; height: 16px; }
.hdr-secure {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dim); font-size: 13px; font-weight: 500;
}
.hdr-secure svg { width: 18px; height: 18px; color: #16a34a; }

/* ---------- Wizard shell -------------------------------------------- */
.wz {
  padding: 40px 0 80px;
  min-height: calc(100vh - 72px);
}
.wz-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Stepper -------------------------------------------------- */
.wz-stepper {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 32px;
  counter-reset: step;
}
.wz-step {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font-weight: 500;
  font-size: 14px;
  transition: all 180ms ease;
  position: relative;
}
.wz-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-2); color: var(--dim);
  font-size: 13px; font-weight: 700;
  transition: all 180ms ease;
}
.wz-step--active {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}
.wz-step--active .wz-step-num {
  background: var(--sun); color: var(--ink);
}
.wz-step--done { color: var(--ink); background: #f4f9f4; border-color: #cfe4d1; }
.wz-step--done .wz-step-num {
  background: #16a34a; color: var(--white);
}
.wz-step--done .wz-step-num::before {
  content: "✓"; font-size: 15px;
}
.wz-step--done .wz-step-num { font-size: 0; }

/* ---------- Body: form + summary ------------------------------------ */
.wz-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: flex-start;
}
.wz-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 44px 32px;
}
.wz-panel { display: none; }
.wz-panel--active { display: block; }

.wz-h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px; font-weight: 500;
  margin: 0 0 8px; color: var(--ink);
}
.wz-lead { color: var(--dim); font-size: 15px; margin: 0 0 32px; }

/* ---------- Field primitives ---------------------------------------- */
.wz-field {
  display: flex; flex-direction: column;
  margin-bottom: 20px;
}
.wz-field legend {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  padding: 0; margin-bottom: 12px;
}
.wz-label {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.wz-field input:not([type=radio]):not([type=checkbox]):not([type=number]),
.wz-field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 15px; color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.wz-field input:focus, .wz-field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16,24,32,0.08);
}
.wz-help {
  margin-top: 6px; font-size: 12px; color: var(--dim);
}
.wz-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

/* ---------- Radio pills (ticket type) ------------------------------- */
.wz-radio-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.wz-radio {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 18px 16px;
  background: var(--white);
  cursor: pointer;
  transition: all 180ms ease;
}
.wz-radio input { position: absolute; opacity: 0; pointer-events: none; }
.wz-radio-body { display: block; }
.wz-radio-body .t { display: block; font-size: 16px; margin-bottom: 6px; }
.wz-radio-body .d { display: block; font-size: 13px; color: var(--dim); margin-bottom: 10px; line-height: 1.5; }
.wz-radio-body .p { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; color: var(--ink); }
.wz-radio-body .p em { font-family: "Inter", sans-serif; font-style: normal; font-size: 12px; color: var(--dim); margin-left: 4px; }
.wz-radio-body .badge {
  display: inline-block;
  background: var(--sun); color: var(--ink);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wz-radio:hover { border-color: #b7bec7; }
.wz-radio:has(input:checked) {
  border-color: var(--ink);
  background: var(--shell);
  box-shadow: 0 0 0 2px rgba(16,24,32,0.06);
}
.wz-radio--feat:has(input:checked) { border-color: var(--ink); background: var(--ink); }
.wz-radio--feat:has(input:checked) .t, .wz-radio--feat:has(input:checked) .p { color: var(--white); }
.wz-radio--feat:has(input:checked) .d { color: rgba(255,255,255,0.7); }
.wz-radio--feat:has(input:checked) .p em { color: rgba(255,255,255,0.6); }

/* ---------- Pax stepper --------------------------------------------- */
.wz-pax-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.wz-pax {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.wz-pax-t { display: flex; flex-direction: column; }
.wz-pax-t strong { font-size: 15px; color: var(--ink); }
.wz-pax-t em { font-style: normal; font-size: 12px; color: var(--dim); }
.wz-stepper-input { display: inline-flex; align-items: center; gap: 0; }
.wz-stepper-input button {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 18px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: background 100ms ease;
}
.wz-stepper-input button:first-child { border-radius: 4px 0 0 4px; }
.wz-stepper-input button:last-child { border-radius: 0 4px 4px 0; }
.wz-stepper-input button:hover { background: var(--shell); }
.wz-stepper-input input {
  width: 42px; height: 32px;
  border: 1px solid var(--line);
  border-left: 0; border-right: 0;
  text-align: center;
  font-size: 15px; font-weight: 600;
  -moz-appearance: textfield;
}
.wz-stepper-input input::-webkit-outer-spin-button,
.wz-stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Terms checkbox ------------------------------------------ */
.wz-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: var(--shell);
  border-radius: 4px;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.55;
  cursor: pointer;
}
.wz-check input {
  margin-top: 3px; flex: 0 0 auto;
  width: 18px; height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}
.wz-check a { color: var(--ink); text-decoration: underline; font-weight: 500; }

/* ---------- Review pane --------------------------------------------- */
.wz-review {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}
.wz-review-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.wz-review-section:last-child { border-bottom: 0; }
.wz-review-section h4 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); font-weight: 700;
  margin: 0 0 12px;
}
.wz-review-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 0;
  font-size: 14px;
}
.wz-review-row .k { color: var(--dim); }
.wz-review-row .v { color: var(--ink); font-weight: 500; }

/* ---------- Nav ----------------------------------------------------- */
.wz-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.wz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, transform 100ms ease;
  border: 0;
  min-width: 140px;
}
.wz-btn[hidden] { display: none !important; }
.wz-btn--primary {
  background: var(--ink); color: var(--white);
}
.wz-btn--primary:hover { background: var(--ink-2); }
.wz-btn--ghost {
  background: transparent; color: var(--dim);
  border: 1px solid var(--line);
}
.wz-btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.wz-btn--pay {
  background: var(--sun); color: var(--ink);
  min-width: 200px;
  font-size: 15px;
}
.wz-btn--pay:hover { background: var(--sun-dark); }

/* ---------- Sticky summary ------------------------------------------ */
.wz-summary {
  position: sticky; top: 96px;
}
.wz-summary-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.wz-summary-head { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.wz-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); font-weight: 700;
  display: block; margin-bottom: 6px;
}
.wz-summary-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px; font-weight: 500; margin: 0; color: var(--ink);
}
.wz-summary-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  font-size: 14px;
}
.wz-summary-list li {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  color: var(--ink-2);
}
.wz-summary-list li .k { color: var(--dim); }
.wz-summary-list li:not(:last-child) { border-bottom: 1px solid var(--line-2); }

.wz-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: var(--dim);
}
.wz-summary-row--total {
  padding-top: 14px; margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 20px; color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
}
.wz-summary-row--total strong { font-size: 24px; }

.wz-summary-trust {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.wz-summary-trust .tr {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--dim);
}
.wz-summary-trust .tr svg {
  width: 16px; height: 16px; color: var(--dim); flex: 0 0 auto;
}

/* ---------- Splash -------------------------------------------------- */
.wz-splash {
  min-height: 400px;
  display: none;
  align-items: center; justify-content: center;
  text-align: center;
}
.wz-splash.wz-panel--active { display: flex; }
.wz-splash-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--line);
  border-top-color: var(--sun);
  border-radius: 50%;
  animation: wz-spin 900ms linear infinite;
  margin: 0 auto 24px;
}
@keyframes wz-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive --------------------------------------------- */
@media (max-width: 1024px) {
  .wz-body { grid-template-columns: 1fr; }
  .wz-summary { position: static; }
  .wz-form { padding: 32px 24px; }
  .wz-radio-row { grid-template-columns: 1fr; }
  .wz-pax-grid { grid-template-columns: 1fr; }
  .wz-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wz { padding: 24px 0 48px; }
  .wz-shell { padding: 0 16px; }
  .wz-stepper { flex-direction: column; }
  .wz-form { padding: 24px 20px; }
  .wz-h2 { font-size: 24px; }
  .wz-btn { padding: 12px 16px; min-width: 100px; font-size: 13px; }
}
