/* ============================================================
   NOT FEST 2026 — Order / checkout page
   Reuses tokens from style.css (:root variables, .btn, .nav, .footer)
   ============================================================ */

.order-body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 107, 200, 0.10), transparent 60%),
    var(--paper);
  min-height: 100vh;
}

.order-main {
  padding-top: calc(72px + 3rem);
  padding-bottom: 5rem;
}

.order-container {
  max-width: 760px;
}

/* ---------- Head ---------- */
.order-head { text-align: center; margin-bottom: 2.6rem; }

.order-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.order-title { font-size: clamp(2rem, 6vw, 3rem); }
.order-title-flavor {
  background: var(--flavor-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.order-sub { color: var(--text-soft); margin-top: 0.8rem; }

/* ---------- Form blocks ---------- */
.order-form { display: flex; flex-direction: column; gap: 1.6rem; }

.order-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}

.order-block-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.order-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--flavor-grad);
  color: #fff;
  font-size: 0.9rem;
  flex: none;
}
.order-block-hint { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 1rem; }
.opt { color: var(--text-soft); font-weight: 400; font-size: 0.85em; }
.req { color: var(--coral); }

/* ---------- Options ---------- */
.options-list { display: flex; flex-direction: column; gap: 0.8rem; }
.options-loading { color: var(--text-soft); }

.option-card,
.pay-method {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}
.option-card:hover,
.pay-method:hover { border-color: var(--primary-soft); }
.option-card input,
.pay-method input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--primary); flex: none; }

.option-card:has(input:checked),
.pay-method:has(input:checked) {
  border-color: var(--primary);
  background: rgba(46, 107, 200, 0.06);
}

.option-body, .pay-method-body { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; }
.option-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.option-name, .pay-method-name { font-weight: 600; color: var(--ink); }
.option-price { font-family: var(--font-display); font-weight: 700; color: var(--primary-deep); white-space: nowrap; }
.option-desc, .pay-method-desc { color: var(--text-soft); font-size: 0.88rem; }

.pay-fee, .pay-nofee {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.pay-fee { background: rgba(217, 138, 0, 0.14); color: #b8770a; }
.pay-nofee { background: rgba(27, 138, 90, 0.14); color: #1b8a5a; }

/* ---------- Payment methods ---------- */
.pay-methods { display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Fields ---------- */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 107, 200, 0.15);
}
.field-note { font-size: 0.8rem; color: var(--text-soft); }

/* ---------- Couple Pass: tag, seat hint, second participant ---------- */
.option-tag {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: rgba(46, 107, 200, 0.10);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}

.option-card.option-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--paper);
}
.option-card.option-disabled:hover { border-color: var(--line); }

.order-step-plus { background: var(--primary); }

/* These set an explicit `display` below, which would otherwise override the
   `hidden` attribute toggled from JS — keep [hidden] authoritative so the
   couple-only hint + add-ons stay hidden until Couple Pass is selected. */
.seat-hint[hidden],
.seat-addons[hidden] { display: none; }

.seat-hint {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: rgba(46, 107, 200, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* ---------- Per-person add-ons (couple mode) ---------- */
.seat-addons {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.seat-addons-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.1rem;
}
.seat-addon {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.seat-addon:hover { border-color: var(--primary-soft); }
.seat-addon:has(input:checked) { border-color: var(--primary); background: rgba(46, 107, 200, 0.06); }
.seat-addon input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex: none; }
.seat-addon-text { font-weight: 600; color: var(--ink); flex: 1; }
.seat-addon-price { font-family: var(--font-display); font-weight: 700; color: var(--primary-deep); white-space: nowrap; }

/* ---------- Promocode ---------- */
.promo-row { display: flex; gap: 0.7rem; }
.promo-row input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-transform: uppercase;
}
.promo-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 107, 200, 0.15);
}
.promo-row .btn { padding: 0.8rem 1.4rem; }
.promo-feedback { margin-top: 0.7rem; font-size: 0.9rem; font-weight: 600; }
.promo-ok { color: #1b8a5a; }
.promo-error { color: #c0392b; }

/* ---------- Summary ---------- */
.order-summary {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-lg);
}
.order-summary h3 { color: #fff; font-family: var(--font-display); margin-bottom: 1rem; }
.summary-lines { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.8rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.summary-empty { color: rgba(255,255,255,0.6); }
.summary-discount { border-top: 1px dashed rgba(255,255,255,0.25); padding-top: 0.7rem; margin-bottom: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.summary-line-strike { display: flex; justify-content: space-between; color: rgba(255,255,255,0.6); text-decoration: line-through; }
.summary-line-promo { display: flex; justify-content: space-between; color: var(--mango); font-weight: 600; }
.summary-line-fee { display: flex; justify-content: space-between; color: #f0b65a; font-weight: 600; }
.summary-fee-note { margin-top: 0.7rem; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}
.summary-total span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }

/* ---------- Consent + submit ---------- */
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.consent input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex: none; }
.consent a { color: var(--primary-deep); }

.order-submit { width: 100%; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.02rem; }

/* ---------- Errors / result ---------- */
.field-error { color: #c0392b; font-size: 0.88rem; font-weight: 600; margin-top: 0.5rem; }

.order-result {
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  text-align: center;
}
.order-result-ok { background: rgba(27, 138, 90, 0.12); color: #1b8a5a; border: 1px solid rgba(27,138,90,0.3); }
.order-result-error { background: rgba(192, 57, 43, 0.10); color: #c0392b; border: 1px solid rgba(192,57,43,0.3); }

.order-footer { padding: 2.5rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .fields-grid { grid-template-columns: 1fr; }
  .promo-row { flex-direction: column; }
  .promo-row .btn { width: 100%; }
}
