/* Public booking form + post-checkout result pages. Order-independent; owns its
   own selectors and its media queries live at the end (project CSS convention). */

.booking-form-section,
.booking-result-section {
  padding: 64px var(--pad-x) 88px;
  background: var(--sky-wash);
}

.booking-form-card,
.booking-result-card {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.booking-form-card .section-title {
  margin-top: 8px;
  text-align: left;
}

/* Recap of dates + price ------------------------------------------------- */
.booking-recap {
  margin: 24px 0 8px;
  padding: 20px 24px;
  background: var(--sky-wash);
  border-radius: var(--radius-md);
}

.booking-recap div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.booking-recap .booking-recap-line {
  padding: 3px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.booking-recap dt {
  color: var(--body);
  font-weight: 600;
}

.booking-recap dd {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 800;
  color: var(--ink);
}

.booking-recap-highlight dt {
  color: var(--ink); /* small label: ink (pink would be 3.4:1) */
}

.booking-recap-highlight dd {
  color: var(--pink);
  font-size: 1.25rem; /* ≥18.66px bold = WCAG large text, where pink's 3.4:1 passes */
}

/* Form ------------------------------------------------------------------- */
.booking-form {
  margin-top: 26px;
}

.booking-field {
  margin-bottom: 18px;
}

.booking-field-row {
  display: flex;
  gap: 16px;
}

.booking-field-row .booking-field {
  flex: 1;
}

/* City / State / ZIP: state is a fixed two-letter box, ZIP a short one. */
.booking-field-row--address .booking-field--city {
  flex: 2;
}

.booking-field-row--address .booking-field--state {
  flex: 0 0 72px;
}

.booking-field-row--address .booking-field--zip {
  flex: 0 0 120px;
}

.booking-field input[readonly] {
  background: #f3f6f8;
  color: var(--muted);
  cursor: default;
}

.booking-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--ink);
}

.booking-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2ecf2;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.booking-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62, 193, 255, 0.22);
}

/* Same pink pill as the contact form's "Send Message" (`.contact-submit`). */
.booking-submit {
  width: 100%;
  margin-top: 4px;
  text-align: center;
}

/* Honeypot field: off-screen for people, present for bots (see ReservationsController). */
.booking-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Terms agreement row above the submit. */
.booking-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 18px;
  color: var(--body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.booking-agree input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.booking-agree label {
  cursor: pointer;
}

.booking-agree a {
  color: var(--pink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-form-errors {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--no-bg);
  border-radius: var(--radius-sm);
  color: #b3243f;
  font-weight: 700;
}

.booking-form-errors ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.booking-form-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Result page ------------------------------------------------------------ */
.booking-result-card {
  text-align: center;
}

.booking-result-emoji {
  font-size: 3.4rem;
  line-height: 1;
}

.booking-result-lead {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Same green "paid" strip as the confirmation email's (#F0FBF4 / var(--paid-ink)). */
.booking-result-figures {
  display: inline-flex;
  gap: 40px;
  margin: 26px 0;
  padding: 20px 32px;
  background: var(--paid-bg);
  border-radius: var(--radius-md);
  text-align: center;
}

.booking-result-figures dt {
  color: var(--paid-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.booking-result-figures dd {
  margin: 4px 0 0;
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--paid-ink);
}

/* "What happens next" on the confirmed page: left-aligned block under the
   centred headline, same sky wash as the form cards. */
.booking-result-next {
  margin: 0 0 26px;
  padding: 22px 26px;
  background: var(--sky-wash);
  border-radius: var(--radius-md);
  text-align: left;
}

.booking-result-next h2 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}

.booking-result-next ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--body);
  font-weight: 600;
  line-height: 1.55;
}

.booking-result-next li + li {
  margin-top: 6px;
}

.booking-result-next p {
  margin: 0;
  color: var(--body);
  font-weight: 600;
}

.booking-result-number {
  color: var(--pink);
  font-family: var(--display-font);
  font-size: 1.15em;
}

.booking-result-note {
  margin: 0 0 26px;
  color: var(--muted);
  font-weight: 600;
}

/* Development-only test-checkout banner */
.dev-banner {
  margin: 0 0 22px;
  padding: 12px 16px;
  background: #fff4d6;
  border: 1px dashed #e0b23c;
  border-radius: var(--radius-sm);
  color: #8a5a00;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .booking-field-row {
    flex-direction: column;
    gap: 0;
  }

  /* City/State/ZIP stay on one row on phones; the fixed-width state and ZIP
     boxes leave the city enough room. */
  .booking-field-row--address {
    flex-direction: row;
    gap: 12px;
  }

  .booking-result-figures {
    flex-direction: column;
    gap: 16px;
  }
}
