/* ============================================================
   SHIPPED. — reserve a seat (form page)
   Extends shipped-poster.css
   ============================================================ */

.reserve-page {
  background: var(--paper);
  min-height: 100svh;
  padding: 150px 0 90px;
}

.reserve-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

/* ----- left column ----- */

.reserve-intro .tag {
  color: rgba(17, 17, 20, 0.55);
  display: block;
  margin-bottom: 22px;
}

.reserve-intro h1 {
  font-size: clamp(3rem, 7.5vw, 6.2rem);
}

.reserve-intro h1 .l2 { display: block; color: var(--poster); }

.reserve-facts {
  margin-top: clamp(30px, 4vw, 48px);
  border-top: 2px solid var(--ink);
}

.fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 0.94rem;
}

.fact dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.55);
  padding-top: 3px;
}

.fact dd { font-weight: 600; }

.reserve-guarantee {
  margin-top: 26px;
  font-size: 0.88rem;
  color: rgba(17, 17, 20, 0.7);
  max-width: 40ch;
  text-wrap: pretty;
}

.reserve-guarantee b { color: var(--ink); }

/* ----- form ----- */

.reserve-form { border-top: 2px solid var(--ink); }

.field {
  padding: 26px 0;
  border-bottom: 1px solid var(--paper-line);
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.field-num {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--poster);
  line-height: 1;
}

.field-label label,
.field-label .label-text {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-hint {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.5);
  margin-left: auto;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 15px 16px;
  transition: box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(17, 17, 20, 0.35);
  font-weight: 400;
}

/* segmented radio */

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  background: #fff;
}

.seg input { position: absolute; opacity: 0; pointer-events: none; }

.seg label {
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 8px;
  cursor: pointer;
  border-right: 1px solid var(--paper-line);
  transition: background 0.15s ease, color 0.15s ease;
}

.seg label:last-of-type { border-right: none; }

.seg input:checked + label { background: var(--ink); color: var(--accent); }

.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: -3px; }

/* errors */

.field.invalid input,
.field.invalid textarea,
.field.invalid .seg {
  border-color: #d92a18;
}

.field-error {
  display: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d92a18;
  margin-top: 10px;
}

.field.invalid .field-error { display: block; }

/* submit row */

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  flex-wrap: wrap;
}

.submit-row .btn { font-size: 1rem; padding: 18px 34px; }

.submit-note {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.5);
  max-width: 26ch;
}

/* ----- confirmation (replaces the form) ----- */

.success {
  display: none;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 10px 10px 0 var(--accent);
}

.reserve-form.sent { display: none; }

.success.on {
  display: block;
  animation: confirm-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes confirm-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.success-band {
  background: var(--accent);
  border-bottom: 2px solid var(--ink);
  padding: 30px 28px;
}

.success-band .display {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.success-body { padding: 28px; background: #fff; }

.success-body p {
  max-width: 48ch;
  font-size: 0.98rem;
  color: rgba(17, 17, 20, 0.8);
  text-wrap: pretty;
}

.success-body p + p { margin-top: 14px; }

.success-body .mono-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.55);
  margin-top: 24px;
  display: block;
}

.confirm-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .success.on { animation: none; }
}

/* ----- production additions (honeypot, server states) ----- */

.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.server-error {
  display: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d92a18;
  margin-top: 16px;
}

.server-error.on { display: block; }

.reserve-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* sold-out variant of the confirmation block */

.success.soldout { box-shadow: 10px 10px 0 var(--ink); }

.success.soldout .success-band {
  background: var(--ink);
  color: var(--accent);
}

.success.soldout .success-body a:not(.btn) {
  color: var(--ink);
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .reserve-page { padding-top: 120px; }
  .reserve-grid { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seg label { border-right: none; border-bottom: 1px solid var(--paper-line); }
  .seg label:last-of-type { border-bottom: none; }
}
