/* The Blend Bar — Book an Event (/book), in the homepage's "Atelier" design.

   Loaded after home.css, which supplies the fonts, colour tokens, header,
   footer, buttons, the occasions list (.occ) and the booking terms card
   (.terms). This file adds the page's intro band and the form. */

/* No hero photo runs under the header here, so it is solid. */
.book-page header.top { background: var(--noir); }

/* --- Intro band: the homepage's closing band, shorter --- */
.book-intro { position: relative; text-align: center; padding: clamp(3.5rem, 7vw, 5rem) 0; overflow: hidden; }
.book-intro .fl { position: absolute; top: 0; bottom: 0; object-fit: cover; height: 100%; pointer-events: none; z-index: -1; }
.book-intro .fl.l { left: 0; width: 58%; object-position: 0% 50%; -webkit-mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.55) 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.55) 62%, transparent 100%); }
.book-intro .fl.r { right: 0; width: 58%; object-position: 100% 50%; -webkit-mask-image: linear-gradient(270deg, #000 30%, rgba(0,0,0,.55) 62%, transparent 100%); mask-image: linear-gradient(270deg, #000 30%, rgba(0,0,0,.55) 62%, transparent 100%); }
.book-intro .inner { display: grid; gap: 1rem; justify-items: center; position: relative; }
.book-intro .eyebrow { color: var(--gold); font-size: .9rem; letter-spacing: .26em; }
.book-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .06em; color: #fffaf4; }
.book-intro p:last-child { font-size: 1.2rem; color: #efe4d3; max-width: 34rem; }

/* --- Body: why and terms on the left, the form on the right --- */
.book-body { background: var(--ivory); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.book-body > .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book-side { display: grid; gap: 1.2rem; }
.book-side h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.book-side .terms { margin-top: .6rem; }

.book-card {
  background: var(--paper);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 7px;
  margin: 7px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.book-card-h { font-size: 1.6rem; }
.book-card-sub { color: var(--muted); margin: .3rem 0 1.6rem; }

/* --- Form --- */
.book-form { display: grid; gap: 1.15rem; }
.book-form[hidden] { display: none; }
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > span, .book-captcha > span {
  font-size: .74rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--gold-deep); font-weight: 500;
}
.book-form input, .book-form textarea {
  width: 100%;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .75rem .9rem;
  min-height: 3rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.book-form textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.book-form input::placeholder, .book-form textarea::placeholder { color: #a8957f; }
.book-form input:hover, .book-form textarea:hover { border-color: var(--gold); }
.book-form input:focus, .book-form textarea:focus {
  outline: none; background: #fff; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, .22);
}
.field-hint { font-style: normal; font-size: .95rem; color: var(--muted); line-height: 1.45; }
.field-hint a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }

/* Off-screen, not display:none, so naive bots still see and fill it. */
.book-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.book-captcha { display: grid; gap: .4rem; padding-top: .3rem; }
.book-captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.book-captcha-q { flex: 1 1 100%; color: var(--ink); font-size: 1.05rem; }
.book-captcha-row input { flex: 0 0 6.5rem; width: 6.5rem; }
.book-captcha-new { min-height: 3rem; padding: .6rem 1.1rem; }

.error-text { color: var(--rose); font-size: 1rem; }
.error-text[hidden] { display: none; }
.book-submit { width: 100%; margin-top: .3rem; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* --- After sending (book.js) --- */
.book-panel { display: grid; gap: 1rem; justify-items: start; }
.book-panel h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.book-panel .muted { color: var(--muted); }
.book-panel .muted a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.book-recap { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: .4rem 0; padding: 1.2rem; width: 100%; background: var(--ivory); border: 1px solid var(--line); }
.book-recap dt { font-size: .72rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--gold-deep); padding-top: .2rem; }
.book-recap dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .book-body > .wrap { grid-template-columns: 1fr; }
  /* The form first on a phone: it's what they came for. The terms follow. */
  .book-card { order: -1; }
}
@media (max-width: 520px) {
  .book-row { grid-template-columns: 1fr; }
  .book-card { padding: 1.4rem 1.2rem; }
  .book-recap { grid-template-columns: 1fr; }
}
