/* Booking enquiry page. Loaded after styles.css, so it reuses the site colours. */

.booking-form { max-width: 40rem; }

.booking-form fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
.booking-form legend {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  padding: 0;
  margin-bottom: 1rem;
}

.field { margin-bottom: 1.4rem; }
.field > label,
.field > .label,
.field > legend { display: block; font-weight: 700; margin-bottom: .25rem; }
.field fieldset { margin: 0; }
.field fieldset > legend { font-family: inherit; font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }

.hint { color: #3F4639; font-size: .95rem; margin: 0 0 .45rem; max-width: none; }

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="number"],
.booking-form input[type="date"],
.booking-form input[type="time"],
.booking-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink, #23291F);
  background: #fff;
  border: 1px solid var(--ink, #23291F);
  border-radius: .3rem;
  padding: .65rem .75rem;
  min-height: 3rem;
}
.booking-form textarea { min-height: 7rem; resize: vertical; }
.booking-form input[type="number"] { max-width: 10rem; }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 36em) {
  .field-row { grid-template-columns: repeat(3, 1fr); }
}

.choice { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .55rem; }
.choice input { flex: none; width: 1.4rem; height: 1.4rem; margin: .2rem 0 0; accent-color: var(--green, #2F5D46); }
.choice label { font-weight: 400; cursor: pointer; }
.other-text { margin: .35rem 0 0 2.05rem; }

/* Errors */
.field-error { color: #8C3820; font-weight: 700; margin: .35rem 0 0; max-width: none; }
.field-error::before { content: "Error: "; }
.has-error > input,
.has-error > textarea { border-color: #8C3820; border-width: 3px; }
.has-error { border-left: 4px solid #8C3820; padding-left: .85rem; }

.error-summary {
  border: 3px solid #8C3820;
  border-radius: .5rem;
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  max-width: 40rem;
}
.error-summary h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: #8C3820; font-weight: 700; }

/* Status line (checking / not available / try again) */
.form-status { margin: 1rem 0 0; max-width: 40rem; min-height: 1.6em; font-weight: 700; }
.form-status.is-problem { color: #8C3820; }

/* Spam trap: kept out of sight, but still in the page for bots to find */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Send button (the shared .button style was made for links) */
button.button { font: inherit; font-weight: 700; cursor: pointer; }
button.button[disabled] { opacity: .65; cursor: wait; }

/* Success message */
.booking-success {
  max-width: 40rem;
  border: 3px solid var(--green, #2F5D46);
  border-radius: .5rem;
  background: #fff;
  padding: 1.5rem;
}
.booking-success h2 { margin-top: 0; }
.booking-success dl { margin: 1rem 0; display: grid; gap: .6rem; }
.booking-success dt { font-weight: 700; }
.booking-success dd { margin: 0; }

/* Time drop-downs */
.booking-form select {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink, #23291F);
  background: #fff;
  border: 1px solid var(--ink, #23291F);
  border-radius: .3rem;
  padding: .65rem .75rem;
  min-height: 3rem;
}
.has-error > select { border-color: #8C3820; border-width: 3px; }
