/*
 * Booking — /book-experience/ (two steps around Amelia) and /booking-confirmed/
 * (where Amelia sends people once they have paid). Loaded only on those two
 * pages, by their templates.
 */

/* --bw-header-gap: how much taller the fixed header is than the body's top
   padding allows for, set by partials/booking-header-gap.php. */
/* Wide, because step 2 is Amelia's catalogue: its category sidebar and list
   were cramped in a reading-width column. Both steps share the width so the
   title and the steps stay put when you move between them. */
.bw { max-width: 1180px; margin: 0 auto; padding: calc(40px + var(--bw-header-gap, 0px)) 22px 64px; }
.bw-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.3rem); color: var(--g1);
  line-height: 1.1; margin: 0 0 18px;
}
.bw-h {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.35rem; color: var(--g1); line-height: 1.2; margin: 0 0 6px;
}
.bw-h:focus { outline: none; }
.bw-lead { font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.bw-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bw a:not(.bw-btn):not(.bw-step-link) {
  color: var(--g2); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.bw a:not(.bw-btn):not(.bw-step-link):hover { color: var(--g1); }
.bw svg { flex: 0 0 auto; }

/* ── Steps ── */
.bw-head { margin-bottom: 26px; }
.bw-steps { list-style: none; display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; margin: 0; padding: 0; }
.bw-step { display: flex; align-items: center; }
.bw-step + .bw-step::before {
  content: ''; width: clamp(24px, 7vw, 64px); height: 2px; margin: 0 12px;
  background: var(--border); border-radius: 2px;
}
.bw-step.is-done + .bw-step::before { background: var(--g3); }
.bw-step-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 8px 4px 4px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 600; color: var(--text-soft);
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.bw-step-link:hover { background: var(--g-xpale); color: var(--g2); }
.bw-step-link:focus-visible { outline: 2px solid var(--g3); outline-offset: 2px; }
.bw-step-num {
  display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%; border: 2px solid var(--border); background: var(--white);
  font-size: 0.82rem; font-weight: 700; color: var(--text-soft);
}
.bw-step-num svg { display: none; width: 15px; height: 15px; }
.bw-step-link[aria-current="step"] { color: var(--g1); }
.bw-step-link[aria-current="step"] .bw-step-num { background: var(--g2); border-color: var(--g2); color: #fff; }
.bw-step.is-done .bw-step-link { color: var(--g2); }
.bw-step.is-done .bw-step-num { background: var(--g-pale); border-color: var(--g3); color: var(--g2); }
.bw-step.is-done .bw-step-num svg { display: block; }
.bw-step.is-done .bw-step-n,
.bw-step:not(.is-done) .bw-step-done { display: none; }

/* Without JavaScript both steps stay on the page, one after the other. */
.bw-panel + .bw-panel { margin-top: 48px; }
.bw.is-js .bw-panel + .bw-panel { margin-top: 0; }

/* ── Step 1: before you book ── */
.bw-facts {
  list-style: none; margin: 20px 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.bw-fact {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px 18px 16px; border-radius: 16px;
  background: var(--white); border: 1.5px solid var(--border);
}
.bw-fact-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px; background: var(--g-pale); color: var(--g2);
}
.bw-fact-icon svg { width: 22px; height: 22px; }
.bw-fact-h {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--g1); line-height: 1.35; margin: 1px 0 5px;
}
.bw-fact p { font-size: 0.88rem; line-height: 1.6; color: var(--text-mid); margin: 0; }
.bw-fact p strong { color: var(--text); font-weight: 700; }
/* The mistake people actually make is buying a package for one visit. */
.bw-fact--key { background: var(--amber-pale); border-color: #f0d49a; }
.bw-fact--key .bw-fact-icon { background: #fbe3b4; color: #8a5a0c; }

.bw-small {
  display: grid; gap: 8px; margin: 0;
  padding: 14px 18px; border-radius: 14px; background: var(--g-xpale);
  font-size: 0.84rem; line-height: 1.6; color: var(--text-mid);
}
.bw-small p { margin: 0; }
.bw-small strong { color: var(--text); }
@media (min-width: 900px) {
  .bw-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; padding: 16px 22px; }
}

.bw-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 24px; }
.bw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.bw-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.bw-btn--primary { background: var(--g2); color: #fff; }
.bw-btn--primary:hover { background: var(--g1); color: #fff; }
.bw-btn--primary:hover svg { transform: translateX(3px); }
.bw-btn--ghost { background: transparent; color: var(--g2); border-color: var(--g2); }
.bw-btn--ghost:hover { background: var(--g-xpale); color: var(--g1); }
.bw-btn:focus-visible { outline: 3px solid var(--g4); outline-offset: 2px; }
.bw-aside { margin: 18px 0 0; font-size: 0.86rem; color: var(--text-mid); }

/* ── Step 2: Amelia ── */
.bw-book-intro { margin-bottom: 14px; }
.bw-book-intro .bw-lead { font-size: 0.9rem; }
.bw-tips {
  list-style: none; margin: 0 0 22px; padding: 13px 18px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 26px;
  background: var(--g-xpale); border-radius: 14px;
}
.bw-tip { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; line-height: 1.45; color: var(--text-mid); }
.bw-tip svg { width: 16px; height: 16px; margin-top: 2px; color: var(--g3); }
.bw-tip strong { color: var(--g1); font-weight: 700; }
.bw-amelia { position: relative; min-height: 360px; }
/* The theme's old placeholder, should a content filter still print it. */
.bw-amelia .amelia-skeleton { display: none !important; }
.bw-skeleton { display: grid; gap: 14px; padding: 4px 0 24px; }
.bw-skeleton[hidden] { display: none; }
.bw-skel { border-radius: 14px; background: var(--g-xpale); animation: bw-pulse 1.4s ease-in-out infinite; }
.bw-skel--bar { height: 46px; }
.bw-skel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bw-skel--card { height: 230px; }
@keyframes bw-pulse { 50% { opacity: 0.55; } }

.bw-foot {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 0.82rem; line-height: 1.6; color: var(--text-mid);
}
.bw-foot p { margin: 0; max-width: 560px; }
.bw .bw-back {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-weight: 700; color: var(--g2); text-decoration: none;
}
.bw .bw-back:hover { text-decoration: underline; }
.bw-back svg { width: 16px; height: 16px; }

/*
 * Amelia's own checkout opens in a pop-up. For a single visit its first screen
 * offers 4-session packages, which is where people end up buying one by
 * mistake. A note at the top of that offer, from CSS alone, so nothing is added
 * to the DOM Amelia manages and nothing breaks if Amelia renames the class. It
 * goes in the package list rather than the heading: the heading is a fixed 40px
 * box that would hide it, while the list scrolls within its own height, so the
 * Skip button below it stays where it is.
 */
.am-fs__ps.am-fs__ps-popup::before {
  content: 'Coming just once? Choose \201C Skip packages and continue\201D  at the bottom. Packages are for coming four times.';
  display: block; flex: 0 0 auto; margin: 2px 0 12px;
  padding: 10px 14px; border-radius: 10px; border-left: 4px solid #e8a030;
  background: #fef6e4; color: #1a2e18;
  font-size: 13px; font-weight: 600; line-height: 1.5; text-align: left;
}

/* ── /booking-confirmed/ ── */
.bw--done { max-width: 760px; }
.bw-done-head { margin-bottom: 8px; }
.bw-done-badge {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 50%; background: var(--g-pale); color: var(--g2);
}
.bw-done-badge svg { width: 28px; height: 28px; }
.bw--done .bw-title { margin-bottom: 10px; }
.bw--done .bw-lead { font-size: 1rem; max-width: 560px; }
.bw-card {
  margin-top: 18px; padding: 22px 24px; border-radius: 18px;
  background: var(--white); border: 1.5px solid var(--border);
}
.bw-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-mid); margin: 0; }
.bw-card p + p { margin-top: 10px; }
.bw-card p strong { color: var(--text); }
.bw-card .bw-h { font-size: 1.2rem; margin-bottom: 12px; }
.bw-card--move { background: var(--g-xpale); }
.bw-next { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.bw-next li { display: flex; gap: 14px; align-items: flex-start; }
.bw-next-icon {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px; background: var(--g-pale); color: var(--g2);
}
.bw-next-icon svg { width: 20px; height: 20px; }
.bw-next h3 {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  color: var(--g1); line-height: 1.35; margin: 0 0 2px;
}
.bw-next p { font-size: 0.88rem; line-height: 1.6; }
.bw-trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.bw-trio .bw-card { margin-top: 0; }
.bw-trio .bw-h { font-size: 1.05rem; margin-bottom: 8px; }
.bw-contact { margin: 22px 0 0; font-size: 0.88rem; color: var(--text-mid); }

/*
 * ── Footer, on these two pages only ──
 * The site footer is a directory of the whole site: five columns of links, the
 * newsletter and PawSteps. Under a booking form that is a second page of noise,
 * so here it keeps only the legal line and the legal links. The sticky
 * "Book an experience" bar goes too — on these pages you are already booking,
 * or have just booked.
 */
/* Bottom (phones) and right (wider) padding keep it clear of the chat button,
   which is fixed in the bottom-right corner and sat over the last links. */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px; padding: 20px 22px 92px;
}
@media (min-width: 768px) { .site-footer { padding: 22px 112px 22px 44px; } }
.site-footer > div:first-child,
.site-footer .footer-signup,
.site-footer .footer-alsofrom,
.site-footer .footer-nav-col:not(:last-child),
.site-footer .footer-nav-h { display: none; }
.site-footer .footer-nav { display: block; order: 2; margin: 0; }
.site-footer .footer-nav-col:last-child { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer .footer-nav a { font-size: 0.74rem; }
.site-footer .footer-bottom { order: 1; border-top: 0; padding-top: 0; line-height: 1.8; }
.mobile-book-bar { display: none !important; }

/* ── Phones ── */
@media (max-width: 640px) {
  /* Without the measurement (no JavaScript), allow for the ~110px header most
     phones get. */
  .bw { padding: calc(28px + var(--bw-header-gap, 46px)) 16px 48px; }
  .bw-tips { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }
  .bw-head { margin-bottom: 22px; }
  .bw-step + .bw-step::before { margin: 0 8px; }
  .bw-step-link { gap: 8px; font-size: 0.86rem; }
  .bw-step-num { width: 28px; height: 28px; flex-basis: 28px; }
  .bw-facts { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .bw-fact { padding: 15px 15px 15px 13px; gap: 12px; }
  .bw-fact-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .bw-actions .bw-btn { width: 100%; }
  .bw-actions { gap: 14px; justify-content: center; }
  .bw-skel-grid { grid-template-columns: 1fr; }
  .bw-skel--card:nth-child(n+2) { display: none; }
  .bw-card { padding: 18px; }
  .bw-trio { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bw-skel { animation: none; }
  .bw-btn svg, .bw-btn--primary:hover svg { transition: none; transform: none; }
}

/* ── Dark ── */
[data-theme="dark"] .bw-title,
[data-theme="dark"] .bw-h,
[data-theme="dark"] .bw-fact-h,
[data-theme="dark"] .bw-next h3,
[data-theme="dark"] .bw-tip strong { color: #b8f0ac; }
[data-theme="dark"] .bw a:not(.bw-btn):not(.bw-step-link),
[data-theme="dark"] .bw .bw-back { color: #7cd470; }
[data-theme="dark"] .bw a:not(.bw-btn):not(.bw-step-link):hover { color: #b8f0ac; }
[data-theme="dark"] .bw-step-link[aria-current="step"],
[data-theme="dark"] .bw-step.is-done .bw-step-link { color: #b8f0ac; }
[data-theme="dark"] .bw-step-link:hover { background: rgba(184,240,172,0.08); color: #b8f0ac; }
[data-theme="dark"] .bw-step.is-done .bw-step-num { color: #7cd470; border-color: #4a9040; }
[data-theme="dark"] .bw-fact-icon,
[data-theme="dark"] .bw-next-icon,
[data-theme="dark"] .bw-done-badge { color: #7cd470; }
[data-theme="dark"] .bw-fact--key { border-color: #5a4720; }
[data-theme="dark"] .bw-fact--key .bw-fact-icon { background: #3a2f17; color: #f0b84e; }
[data-theme="dark"] .bw-fact p strong,
[data-theme="dark"] .bw-small strong,
[data-theme="dark"] .bw-card p strong { color: #dce8d8; }
[data-theme="dark"] .bw-btn--ghost { color: #7cd470; border-color: #5db850; }
[data-theme="dark"] .bw-btn--ghost:hover { background: rgba(184,240,172,0.08); color: #b8f0ac; }
