/* Public tour-booking page. Self-contained and mobile-first — does not depend
   on the staff tooling styles, since prospects load it straight from an ad. */

:root {
  --tp-navy: #1f3864;
  --tp-green: #1d9e75;
  --tp-border: #e0e6f0;
  --tp-muted: #6b7280;
  --tp-bg: #f4f6fa;
  --tp-red: #c0392b;
}

* { box-sizing: border-box; }

.tp-page {
  margin: 0;
  min-height: 100vh;
  background: var(--tp-bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--tp-navy);
  padding: 24px 16px 48px;
  display: flex;
  justify-content: center;
}

.tp-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 18px 50px rgba(19, 35, 64, 0.08);
}

/* Sized by height so the wordmark's own 1.94:1 ratio drives the width. */
.tp-brand { display: block; height: 38px; width: auto; margin: 0 auto 22px; }

.tp-header { margin-bottom: 8px; }
.tp-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; color: var(--tp-green); margin: 0 0 4px; }
.tp-title { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.15; }
.tp-address { color: var(--tp-muted); margin: 6px 0 0; font-size: 15px; }

.tp-muted { color: var(--tp-muted); font-size: 15px; }
.tp-error { color: var(--tp-red); font-size: 14px; margin: 8px 0; }
.tp-link { background: none; border: 0; color: var(--tp-green); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

.tp-section { margin-top: 24px; border-top: 1px solid var(--tp-border); padding-top: 20px; }
.tp-section-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; }

.tp-field { display: block; margin-bottom: 14px; }
.tp-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tp-req { color: var(--tp-red); }
.tp-input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  padding: 12px 14px;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  background: #fff;
  color: var(--tp-navy);
}
.tp-input:focus { outline: none; border-color: var(--tp-green); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15); }

/* Honeypot — visually and to AT hidden, but still in the DOM for bots. */
.tp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.tp-day { margin-bottom: 18px; }
.tp-day-title { font-size: 14px; font-weight: 600; color: var(--tp-muted); margin: 0 0 8px; }
.tp-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-slot {
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  background: #fff;
  color: var(--tp-navy);
  cursor: pointer;
  min-width: 84px;
}
.tp-slot:hover { border-color: var(--tp-green); }
.tp-slot.is-selected { background: var(--tp-green); border-color: var(--tp-green); color: #fff; font-weight: 600; }
.tp-slot.is-grouped { border-color: var(--tp-green); background: #f0faf6; font-weight: 600; }
.tp-slot.is-grouped.is-selected { background: var(--tp-green); }
.tp-slot-legend { font-size: 13px; color: var(--tp-green); margin: 0 0 10px; }

/* Suite/unit-size picker */
.tp-units { display: flex; flex-direction: column; gap: 10px; }
.tp-unit {
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--tp-navy);
  cursor: pointer;
}
.tp-unit:hover { border-color: var(--tp-green); }
.tp-unit.is-selected { border-color: var(--tp-green); box-shadow: 0 0 0 1px var(--tp-green) inset; }
.tp-unit-type { font-size: 16px; font-weight: 700; }
.tp-unit-price { font-size: 15px; font-weight: 600; color: var(--tp-green); }
.tp-unit-note { font-size: 12px; color: #6b7280; }

/* In-person vs virtual */
.tp-modes { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-mode {
  font: inherit;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--tp-navy);
  cursor: pointer;
}
.tp-mode:hover { border-color: var(--tp-green); }
.tp-mode.is-selected { border-color: var(--tp-green); box-shadow: 0 0 0 1px var(--tp-green) inset; }
.tp-mode-label { font-size: 16px; font-weight: 700; }
.tp-mode-note { font-size: 12px; color: #6b7280; }

/* Confirmation extras */
.tp-confirm-how { font-size: 15px; color: var(--tp-navy); margin: 6px 0 4px; }
.tp-confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
/* Replaces the confirm button once they've answered — same slot, so the page
   doesn't jump, and it reads as settled rather than as a button they missed. */
.tp-confirmed-note {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e8f5ec;
  color: #1c6b3a;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.tp-button {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
.tp-button:disabled { opacity: 0.5; cursor: not-allowed; }
.tp-button-primary { background: var(--tp-navy); color: #fff; }
.tp-button-secondary { background: #fff; color: var(--tp-navy); border-color: var(--tp-border); }

.tp-confirm { text-align: center; padding: 12px 0; }
.tp-confirm-check {
  width: 56px; height: 56px; line-height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--tp-green);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.tp-confirm-line { font-size: 16px; margin: 10px 0; }
.tp-confirm-when { font-size: 18px; font-weight: 700; margin: 12px 0 16px; line-height: 1.4; }

/* Optional "why are you cancelling?" prompt on the cancel page. Optional on
   purpose — a required field here costs us the answer and the goodwill. */
.tp-reasons { border: 0; margin: 18px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tp-reasons-legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.tp-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d9d5ce;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.tp-reason.is-selected { border-color: #1d9e75; background: #f2faf6; }
.tp-reason input { width: 18px; height: 18px; accent-color: #1d9e75; flex: none; }
.tp-reason-note { margin-top: 2px; }

/* Heads-up shown when a pre-screen answer is the awkward one — e.g. needing
   parking at a building that has none. Advisory: it never blocks the booking,
   so it's a note rather than an error. */
.tp-answer-notice {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f0d9a8;
  background: #fdf6e6;
  color: #6b4e12;
  font-size: 14px;
  line-height: 1.45;
}
