/* Booking and thank-you pages, on the same system as the landing page (system.css, landing.css).
   These pages are not one-screen tiles: their sections and footer take the height of what they hold. */

.page-sub main > section.book, .page-sub footer.closing { height: auto; min-height: 0; }
.page-sub footer.closing { padding: var(--s-9) 0 var(--s-7); }
.page-sub footer.closing > .wrap { display: block; }
.page-sub .closing__links { margin: 0; }

/* the main action and the call buttons sit over the phone bar */
.page-booking { --bar: 0px; }
@media (max-width: 639px) { .page-booking { --bar: calc(76px + env(safe-area-inset-bottom)); } }

/* a gentle rise on load (the booking page has no hero) */
.rise { animation: rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.rise--2 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* =========================== Booking =========================== */
.book { position: relative; padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); background: var(--bg); }
.booking-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-8); align-items: start; }
.book-intro { grid-column: 1 / span 6; }
.booking-form-wrap { grid-column: 8 / -1; position: sticky; top: calc(var(--nav) + var(--s-6)); scroll-margin-top: calc(var(--nav) + var(--s-4)); }
.booking-grid.wide .book-intro { grid-column: 1 / span 4; }
.booking-grid.wide .booking-form-wrap { grid-column: 5 / -1; position: static; }

.profile { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-7); }
.profile__pic { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--p-accent); display: grid; place-items: center; }
.profile__pic img { width: 26px; height: auto; }
.profile__who { display: grid; gap: 2px; }
.profile__name { font: var(--display-weight) var(--t-card)/1.3 var(--font-display); color: var(--ink); }
.profile__title { font-size: var(--t-small); color: var(--muted); }

.book-intro h1 { margin-top: var(--s-4); font: var(--display-weight) clamp(34px, 3.4vw, 52px)/1.06 var(--font-display); letter-spacing: var(--display-tracking-xl); color: var(--ink); max-width: 16ch; }

.book-facts { list-style: none; margin: var(--s-7) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.book-facts li { display: grid; gap: var(--s-2); align-content: start; font-size: var(--t-small); line-height: 1.45; color: var(--ink); font-weight: 500; }
.book-facts svg { width: 22px; height: 22px; fill: none; stroke: var(--p-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.book-facts li.is-confirm { color: #6f5f30; }

.book-bold { margin-top: var(--s-7); font: var(--display-weight) var(--t-lead)/1.45 var(--font-display); color: var(--ink); max-width: 36ch; }
.book-p { margin-top: var(--s-4); color: var(--ink); max-width: 56ch; }
.book-note { margin-top: var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; color: var(--muted); font-size: var(--t-small); max-width: 56ch; }
.book-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--p-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.book-before { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.book-before h2 { font: var(--display-weight) clamp(22px, 1.8vw, 26px)/1.25 var(--font-display); letter-spacing: var(--display-tracking); }
.confirm-block { margin-top: var(--s-4); padding: var(--s-5); border-radius: var(--r-md); background: var(--p-surface); border: 1.5px dashed #c8b37a; color: #6f5f30; font-size: var(--t-small); font-weight: 500; letter-spacing: .03em; }

/* the form card: one card, the page's radius, a hairline, no shadow at rest */
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-7); }
.book-card h2 { font: var(--display-weight) clamp(26px, 2.2vw, 32px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.book-card__sub { display: inline-flex; margin-top: var(--s-3); padding: 4px 12px; border-radius: 999px; background: var(--p-surface); color: var(--p-accent); font-size: var(--t-small); font-weight: 500; }
.book-card .field { margin-top: var(--s-5); }
.book-card .field > label { font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.book-card .field :is(input, select) { width: 100%; height: 48px; font-size: 16px; }
.phone-group { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-3); }
.field-error { display: block; margin-top: 2px; font-size: 13px; color: #a8261d; font-weight: 400; }
.field-error:empty { display: none; }
.field.has-error :is(input, select) { border-color: #a8261d; }
.book-card__btn { width: 100%; height: 52px; margin-top: var(--s-6); justify-content: center; font-size: var(--t-body); }
.book-card__btn.is-loading { pointer-events: none; opacity: .75; }
.book-card__small { display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.book-card__small svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke: var(--p-accent); stroke-width: 1.8; stroke-linecap: round; }
.shake { animation: shake .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* steps: 1 your details, 2 choose a time */
.steps-ind { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); font-size: 13px; font-weight: 500; color: var(--muted); }
.steps-ind span { display: inline-flex; align-items: center; gap: var(--s-2); }
.steps-ind b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--p-surface); color: var(--p-accent); font-size: 12px; font-weight: 500; }
.steps-ind .is-current { color: var(--ink); }
.steps-ind :is(.is-current, .is-done) b { background: var(--p-accent); color: #fff; }
.steps-ind i { flex: 1; max-width: 40px; height: 1px; background: var(--line-strong); }

/* step 2: the calendar in the same card */
.cal-card[hidden] { display: none; }
.cal-card { animation: rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.cal-card__sub { margin-top: var(--s-2); color: var(--muted); }
.ok-badge { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); padding: 4px 12px; border-radius: 999px; background: var(--p-surface); color: var(--p-accent); font-size: var(--t-small); font-weight: 500; }
.ok-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.calendar { position: relative; min-height: 660px; margin: var(--s-5) calc(-1 * var(--s-4)) 0; }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s-3); color: var(--muted); font-size: var(--t-small); }
.spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--p-surface); border-top-color: var(--p-accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cal-missing { margin: var(--s-4) var(--s-4) 0; text-align: center; }
.cal-missing p + p { margin-top: var(--s-2); font-weight: 400; letter-spacing: 0; }
.cal-missing .btn { margin-top: var(--s-4); }
.cal-back { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: var(--s-3); padding: 0; background: none; border: 0; color: var(--p-accent); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; }
.cal-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* phone bar: the main action, scrolling to the form */
.mobile-cta { display: none; }

@media (max-width: 1023px) {
  .booking-grid, .booking-grid.wide { display: block; }
  .booking-form-wrap { position: static; max-width: 640px; margin-top: var(--s-8); }
  .booking-grid.wide .booking-form-wrap { max-width: none; }
}
@media (max-width: 639px) {
  .book { padding: calc(var(--nav) + var(--s-6)) 0 var(--s-8); }
  .book-facts { grid-template-columns: 1fr; gap: var(--s-3); }
  .book-facts li { grid-template-columns: 22px 1fr; align-items: center; gap: var(--s-3); }
  .book-card { padding: var(--s-6) var(--s-5); }
  .phone-group { grid-template-columns: 104px 1fr; }
  .calendar { margin: var(--s-4) calc(-1 * var(--s-3)) 0; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: var(--p-bg); border-top: 1px solid var(--line);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }
  .mobile-cta .btn { width: 100%; height: 48px; justify-content: center; }
  .mobile-cta.is-hidden, .mobile-cta[hidden] { transform: translateY(110%); }
  .page-booking footer.closing { padding-bottom: calc(var(--s-7) + 76px); }
}

/* =========================== Thank you =========================== */
.thanks-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); margin-bottom: var(--s-5); }
.thanks-check svg { width: 40px; height: 40px; fill: none; stroke: #e9d8a6; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.check-circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s cubic-bezier(.22, 1, .36, 1) .3s forwards; }
.check-tick { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .6s cubic-bezier(.22, 1, .36, 1) 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .check-circle, .check-tick { animation: none; stroke-dashoffset: 0; } }
.confirm-inline { display: inline-block; margin-top: var(--s-2); padding: 2px 10px; border-radius: 8px; border: 1.5px dashed rgb(233 216 166 / .7); color: #e9d8a6; font-size: var(--t-small); font-weight: 500; }
.thanks-note { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .2); font-size: var(--t-small); color: rgb(255 255 255 / .82); }
.thanks-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: #e9d8a6; stroke-width: 1.8; stroke-linecap: round; }
.page-thanks .hero.hero--photo h1 { max-width: 16ch; }
.page-thanks .btn .m-arrow--back { transform: scaleX(-1); }

/* the stacked logo from lydiabinil.com: the same size in the header and the footer */
.page-sub .brand-logo, .page-sub .nav__logo .brand-logo, .page-sub .footer .nav__logo .brand-logo { height: 60px; }
@media (max-width: 639px) { .page-sub .brand-logo, .page-sub .nav__logo .brand-logo, .page-sub .footer .nav__logo .brand-logo { height: 50px; } }

/* footers on the logo artboard teal, as on the landing page */
.page-sub footer.closing.ground-inverse { background: linear-gradient(90deg, #00404e 0%, #004342 100%); }

/* ---------- heading / text balance, matched to the landing page (home.css) ---------- */
.page-sub p { text-wrap: pretty; }
.page-sub h1, .page-sub h2 { text-wrap: balance; letter-spacing: -0.02em; }

/* booking: page title and the column of text beneath it share one measure */
.page-booking .book-intro h1 { font-size: clamp(32px, 1.5vw + 22px, 44px); line-height: 1.12; max-width: 18ch; }
.page-booking .book-bold { font-size: clamp(17px, .4vw + 13px, 19px); max-width: 46ch; }
.page-booking .book-p, .page-booking .book-note { max-width: 56ch; }
/* every secondary heading on the page at one size */
.page-booking .book-before h2, .page-booking .book-card h2 { font-size: clamp(24px, .8vw + 18px, 30px); line-height: 1.2; }
.page-booking .book-card__small { max-width: 44ch; }

/* thank-you: "Thank you." over "Your request is in.", text sized to the heading */
.page-thanks .hero.hero--photo h1 { font-size: clamp(30px, 1.5vw + 22px, 44px); line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; }
.page-thanks .hero__turn { display: block; }
.page-thanks .hero.hero--photo .hero__lead { font-size: clamp(16px, .4vw + 12.5px, 18px); line-height: 1.6; max-width: 46ch; }
.page-thanks .thanks-note { max-width: 52ch; }

/* footer tagline at the landing footer's size */
.page-sub .footer__line { font: 400 16.5px/1.6 var(--f-body, "Google Sans", sans-serif); max-width: 36ch; text-wrap: balance; color: rgb(255 255 255 / .74); }

/* ---------- site footer: a copy of the landing page footer (home.css .footer), for the booking page ---------- */
.site-footer { background: linear-gradient(90deg, #00404e 0%, #004342 100%); color: #fff; padding: 72px 0 32px; font-family: "Google Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
.site-footer :is(p, ul) { margin: 0; padding: 0; }
.site-footer ul { list-style: none; }
.site-footer a { color: inherit; text-decoration: none; }
.sf__grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.sf__logo { display: block; height: 64px; width: auto; }
.sf__brand p { margin-top: 24px; max-width: 420px; color: rgba(255, 255, 255, .74); font-size: 16.5px; text-wrap: pretty; }
.sf__reach { justify-self: end; min-width: 240px; }
.sf__label { font-size: 14px; font-weight: 600; color: #e9d8a6; margin-bottom: 12px !important; }
.sf__reach ul { display: grid; gap: 4px; }
.sf__reach :is(a, span) { display: inline-flex; align-items: flex-start; gap: 12px; padding: 8px 0; color: rgba(255, 255, 255, .9); transition: color .3s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.sf__reach a:hover { color: #e9d8a6; transform: translateX(4px); }
.sf__reach svg { width: 18px; height: 18px; margin-top: 4px; flex: none; fill: none; stroke: #e9d8a6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sf__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: rgba(255, 255, 255, .62); }
.sf__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sf__links a { color: rgba(255, 255, 255, .82); transition: color .3s; }
.sf__links a:hover { color: #e9d8a6; }
@media (max-width: 767px) {
  .site-footer { padding: 56px 0 calc(110px + env(safe-area-inset-bottom)); font-size: 16px; }
  .sf__grid { grid-template-columns: 1fr; gap: 36px; }
  .sf__reach { justify-self: start; }
  .sf__logo { height: 52px; }
  .sf__bottom { flex-direction: column; align-items: flex-start; }
}

/* header logo at the landing page's size, so header and footer logos match on every page */
.page-sub .nav__logo .brand-logo { height: 64px; }
@media (max-width: 767px) { .page-sub .nav__logo .brand-logo { height: 52px; } }
