/* Tailwise — Book a visit (pages/book.html). Prefix: .bk-*
   Loads after brand.css. Overrides the Serenity .bk-* rules in base.css for this page only. */

/* ───────── Hero: sun panel with headline + form/aside grid ───────── */
.page-hero.bk-hero { min-height: 0; padding: 72px 48px 56px; align-items: stretch; overflow: clip; }
.bk-hero > .tt, .bk-hero > p { align-self: center; }
.bk-hero > p { font-size: 18px; max-width: 560px; }
.bk-hero .h1 { max-width: 760px; }

.bk-layout { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 32px; align-items: start; text-align: left; }

/* form card */
.bk-card {
  margin-top: 0; width: auto; padding: 44px 44px 40px; background: var(--white);
  border-radius: var(--r-xl); box-shadow: var(--pop);
}
.bk-form { gap: 36px; }
.bk-form__head { display: flex; flex-direction: column; gap: 6px; }
.bk-form__head p { color: var(--cocoa); }

.bk-step { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; border-top: 2px dashed rgba(20, 33, 61, .22); }
.bk-step__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 560; font-size: 24px; line-height: 1.2; letter-spacing: -.4px; color: var(--ink); font-variation-settings: "SOFT" 100; }
.bk-step__num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--butter); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: 0;
}

.bk-row { gap: 20px 24px; }
.bk-row--pet { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.bk-field > label, .bk-choice legend { font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--ink); }
.bk-opt { font-weight: 500; color: var(--cocoa); }
.bk-choice legend { margin-bottom: 8px; }

/* inputs: crisp ink outline, sun focus ring */
.bk-input { min-height: 52px; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.bk-input::placeholder, .bk-phone input::placeholder { color: #6B7086; }
.bk-input:hover { border-color: var(--ink); }
.bk-input:focus, .bk-phone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--butter); }
textarea.bk-input { height: 128px; }
.bk-phone select { color: var(--ink); font-weight: 600; }
.bk-err { color: #C2361A; font-weight: 600; }
.bk-field.is-invalid .bk-input, .bk-field.is-invalid .bk-phone { border-color: #C2361A; box-shadow: 0 0 0 4px rgba(255, 90, 54, .16); }

/* chips (species · services · dates · slots) — grid, so base flex rules don't apply */
.bk-chips { display: grid; gap: 10px; }
.bk-chips--species { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-chips--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-chips--dates { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bk-chips--slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bk-chip { display: flex; }
.bk-chip span {
  width: 100%; min-height: 52px; padding: 12px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); color: var(--cocoa);
  font-size: 15px; line-height: 1.3; text-align: center; white-space: normal;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.bk-chip b { font-weight: 800; color: var(--ink); }
.bk-chip small { font-size: 12.5px; font-weight: 600; color: var(--cocoa); transition: color .2s var(--ease); }
.bk-chip em { font-style: normal; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.bk-chip:hover span { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); background: var(--white); }
.bk-chip input:checked + span { background: var(--ink); color: var(--butter); box-shadow: 3px 3px 0 var(--peach); transform: translate(-2px, -2px); }
.bk-chip input:checked + span b { color: var(--white); }
.bk-chip input:checked + span small { color: rgba(255, 255, 255, .78); }
.bk-chip input:focus-visible + span { outline: 3px solid var(--peach); outline-offset: 3px; }
.bk-chip input:disabled + span { opacity: .4; text-decoration: line-through; transform: none; box-shadow: none; border-color: var(--ink); background: var(--cream); }

.bk-chips--services .bk-chip span { align-items: flex-start; text-align: left; padding: 12px 16px; min-height: 64px; }
.bk-chips--dates .bk-chip span { padding: 10px 4px 12px; gap: 0; }
.bk-chips--dates .bk-chip b { font-family: var(--font-display); font-size: 30px; font-weight: 560; line-height: 1.1; letter-spacing: -.5px; font-variation-settings: "SOFT" 100; }
.bk-chips--dates .bk-chip small { font-size: 13px; }
.bk-chips--slots .bk-chip span { padding: 12px 8px; }

/* message + consent */
.bk-msg { gap: 18px; }
.bk-check { font-size: 14.5px; color: var(--cocoa); gap: 10px; }
.bk-check input { width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 6px; }
.bk-check input::after { width: 10px; height: 5px; }
.bk-check input:checked { background: var(--peach); }
.bk-check input:focus-visible { outline: 3px solid var(--butter); }
.bk-check a { text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 3px; }
.bk-submit { padding-block: 16px; font-size: 17px; }

/* success card */
.bk-done { padding: 40px 0 16px; gap: 18px; }
.bk-done__icon {
  width: 84px; height: 84px; background: var(--peach) url("../assets/brand/paw-white.svg") center / 44px no-repeat;
  border: 2px solid var(--ink); box-shadow: var(--pop-sm); margin-bottom: 4px;
}
.bk-done .h3s { max-width: 560px; }
.bk-done p { color: var(--cocoa); max-width: 560px; }
.bk-bring { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bk-bring li { padding: 6px 14px 6px 10px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--butter); font-weight: 700; font-size: 14px; color: var(--ink); }
.bk-bring li::before { content: ""; width: 14px; height: 14px; background: url("../assets/brand/mark.svg") center / contain no-repeat; }
.bk-done .bk-again { margin-top: 8px; }

/* ───────── Aside: contact strip + illustrated map ───────── */
.bk-aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1025px) and (min-height: 800px) { .bk-aside { position: sticky; top: 124px; } }
.bk-contact { background: var(--white); border: var(--outline); border-radius: var(--r-lg); box-shadow: var(--pop); padding: 28px 26px; }
.bk-contact .h4 { font-size: 24px; }
.bk-contact__list { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.bk-contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.bk-contact__list li > div { display: flex; flex-direction: column; min-width: 0; }
.bk-contact__list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--peach); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bk-contact__list a:hover { color: var(--peach); }
.bk-contact__k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cocoa); }
.bk-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); border: 2px solid var(--ink); }
.bk-contact__list li:nth-child(2) .bk-ic { background: var(--mint); }
.bk-contact__list li:nth-child(3) .bk-ic { background: var(--lilac); }
.bk-contact__list li:nth-child(4) .bk-ic { background: var(--butter); }
.bk-ic svg, .bk-tile svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bk-map { position: relative; border: var(--outline); border-radius: var(--r-lg); box-shadow: var(--pop); overflow: hidden; background: #FFF3D1; }
.bk-map__svg { display: block; width: 100%; height: auto; }
.bk-map__pin { position: absolute; left: 44.1%; top: 36.8%; width: 44px; height: 54px; translate: -50% -100%; z-index: 2; }
.bk-map__pin::before {
  content: ""; position: absolute; inset: 0 0 10px; background: var(--peach) url("../assets/brand/paw-white.svg") center 42% / 22px no-repeat;
  border: 2px solid var(--ink); border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: -2px 3px 0 var(--ink);
}
.bk-map__pin i { position: absolute; left: 50%; bottom: -4px; width: 16px; height: 8px; translate: -50% 0; border-radius: 50%; background: rgba(20, 33, 61, .25); }
.bk-map__pin i::after { content: ""; position: absolute; inset: -6px -10px; border-radius: 50%; border: 2px solid var(--peach); animation: bk-ping 2.2s var(--ease) infinite; }
@keyframes bk-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.bk-map__label {
  position: absolute; left: calc(44.1% + 26px); top: 42%; z-index: 2; display: flex; flex-direction: column; padding: 6px 12px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--ink); font-variation-settings: "SOFT" 100;
}
.bk-map__label small { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--cocoa); }
.bk-map__link {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 800; font-size: 14px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--peach);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.bk-map__link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--peach); }
.bk-sticker {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 88px; height: 88px; border-radius: 50%; rotate: 12deg;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--peach); color: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em;
}
.bk-sticker b { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.5px; line-height: 1.05; text-transform: none; }

/* ───────── Why pet parents love their first visit ───────── */
.bk-why { gap: 88px; max-width: none; }
.bk-why__media { position: relative; flex: 0 0 480px; height: 600px; }
.bk-why__media::before { content: ""; position: absolute; inset: 36px -28px -24px 28px; border-radius: 999px 999px 36px 36px; background: var(--sky); border: var(--outline); }
.bk-why__img { position: relative; height: 100%; border-radius: 999px 999px 36px 36px; border: var(--outline); box-shadow: none; background: var(--sand); }
.bk-why__sticker {
  position: absolute; left: -22px; top: 70px; z-index: 2; width: 116px; height: 116px; border-radius: 50%; rotate: -12deg;
  display: grid; place-items: center; text-align: center; background: var(--butter); border: 2px solid var(--ink); box-shadow: var(--pop-sm);
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 20px; line-height: 1.05; color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.bk-why__chip {
  position: absolute; right: -14px; bottom: 34px; z-index: 2; padding: 10px 16px; border-radius: 999px; background: var(--white);
  border: 2px solid var(--ink); box-shadow: var(--pop-sm); font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.bk-why__chip b { font-weight: 800; color: var(--peach); }
.bk-why__body { flex: 1 1 0; gap: 44px; }
.bk-why__head { gap: 18px; max-width: 600px; align-items: flex-start; }
.bk-why__head p { color: var(--cocoa); font-size: 18px; }
.bk-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bk-why__item { padding: 24px 22px; gap: 14px; background: var(--white); }
.bk-why__item p { color: var(--ink); opacity: .82; margin-top: 6px; }
.bk-why__item--sun { background: #FFE38F; }
.bk-why__item--sky { background: #CBE8FF; }
.bk-why__item--mint { background: #C9F2DE; }
.bk-why__item--lilac { background: #E4DBFF; }
.bk-tile { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }

/* ───────── Gallery ───────── */
.bk-gallery .sec-head--row { align-items: flex-end; }
.bk-gallery__title { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.bk-gallery .sec-head > p { max-width: 400px; color: var(--cocoa); font-size: 17px; }
.bk-gallery .gallery-grid { margin-top: 56px; gap: 28px; }
.bk-gallery .gallery-row { gap: 28px; }
.bk-gallery .gallery-item { border: var(--outline); box-shadow: var(--pop); border-radius: var(--r-lg); background: var(--butter); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.bk-gallery .gallery-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.bk-gallery .bk-gallery__arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.bk-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 6px 14px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800; font-size: 14px; color: var(--ink); white-space: nowrap;
}
.bk-tag--sun { background: var(--butter); }
.bk-tag--sky { background: var(--sky); }
.bk-tag--mint { background: var(--mint); }

/* ───────── Testimonials: pet polaroids ───────── */
.bk-testi .sec-head p { color: var(--cocoa); font-size: 17px; }
.bk-testi .testi-stage { height: 600px; margin-top: 40px; }
.bk-testi .track { gap: 44px; }
.bk-testi .testi-card {
  width: 300px; height: auto; padding: 14px 14px 24px; align-items: stretch;
  border-radius: 10px; background: var(--white); box-shadow: var(--pop-sm);
}
.bk-testi .testi-card:hover { box-shadow: var(--pop); }
.bk-testi .testi-card::before {
  content: ""; position: absolute; left: 50%; top: -14px; width: 92px; height: 28px; translate: -50% 0; rotate: -3deg; z-index: 2;
  background: rgba(255, 201, 51, .82); border: 1.5px solid rgba(20, 33, 61, .35);
}
.bk-testi .testi-card--2::before { background: rgba(124, 200, 255, .85); rotate: 4deg; }
.bk-testi .testi-card--3::before { background: rgba(142, 227, 190, .85); rotate: -5deg; }
.bk-testi .testi-card--4::before { background: rgba(200, 182, 255, .88); rotate: 3deg; }
.bk-testi .testi-card figure { gap: 14px; }
.bk-polaroid { aspect-ratio: 560 / 520; border-radius: 4px; overflow: hidden; border: 2px solid var(--ink); background: var(--butter); }
.bk-polaroid img { width: 100%; height: 100%; object-fit: cover; }
.bk-testi .testi-who { flex-direction: column; align-items: flex-start; gap: 0; padding-inline: 6px; color: var(--ink); line-height: 1.3; }
.bk-testi .testi-who b { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 26px; color: var(--peach); font-variation-settings: "SOFT" 100, "WONK" 1; }
.bk-testi .testi-who span { font-size: 13px; font-weight: 700; color: var(--cocoa); }
.bk-testi .testi-card blockquote { padding-inline: 6px; font-size: 17px; line-height: 1.45; letter-spacing: -.2px; }
.bk-testi .testi-card cite { padding-inline: 6px; font-style: normal; font-weight: 800; font-size: 14px; color: var(--ink); }
.bk-testi .testi-card cite::before { content: "— "; color: var(--peach); }
.bk-testi .testi-btn { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* ───────── Responsive ───────── */
@media (max-width: 1200px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .page-hero.bk-hero { padding-inline: 32px; }
  .bk-card { padding: 36px 32px; }
  .bk-chips--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-why { gap: 64px; }
  .bk-why__media { flex-basis: 420px; height: 540px; }
}
@media (max-width: 1024px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
  .bk-map { display: flex; align-items: center; }
  .bk-chips--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-why { gap: 56px; }
  .bk-why__media { flex-basis: 40%; height: 520px; }
  .bk-why__grid { gap: 16px; }
  .bk-why__item { padding: 20px 18px; }
  .bk-testi .testi-stage { height: auto; }
  .bk-testi .testi-card { width: 290px; }
  .bk-testi .track { padding-top: 40px; }
}
@media (max-width: 820px) {
  .bk-why { flex-direction: column; align-items: stretch; gap: 64px; }
  .bk-why__media { flex: none; width: min(440px, calc(100% - 28px)); height: 520px; margin-inline: auto; }
  .bk-why__img { aspect-ratio: auto; height: 100%; }
  .bk-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-gallery .sec-head--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .bk-chips--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bk-aside { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero.bk-hero { padding: 48px 14px 14px; }
  .bk-hero > p { font-size: 16px; }
  .bk-layout { margin-top: 28px; gap: 24px; }
  .bk-card { padding: 28px 18px; border-radius: 22px; }
  .bk-form { gap: 28px; }
  .bk-step { gap: 18px; padding-top: 24px; }
  .bk-step__title { font-size: 21px; }
  .bk-row, .bk-row--pet { grid-template-columns: 1fr; gap: 18px; }
  .bk-chips { gap: 8px; }
  .bk-chips--slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-chips--dates { gap: 6px; }
  .bk-chips--dates .bk-chip span { padding: 8px 2px 10px; border-radius: 12px; }
  .bk-chips--dates .bk-chip b { font-size: 24px; }
  .bk-chips--dates .bk-chip em { font-size: 11px; letter-spacing: .02em; }
  .bk-chips--services .bk-chip span { padding: 10px 12px; }
  .bk-chip span { font-size: 14.5px; }
  .bk-contact { padding: 24px 20px; }
  .bk-sticker { width: 68px; height: 68px; font-size: 8.5px; right: 8px; top: 8px; }
  .bk-sticker b { font-size: 20px; }
  .bk-map__label { left: calc(44.1% + 18px); top: 44%; font-size: 15px; padding: 4px 10px; }
  .bk-map__label small { font-size: 10.5px; }
  .bk-map__link { left: 10px; bottom: 10px; font-size: 13px; padding: 6px 12px; }
  .bk-done { padding: 24px 0 8px; }
  .bk-why__media { height: 440px; }
  .bk-why__sticker { width: 96px; height: 96px; font-size: 17px; left: -12px; top: 40px; }
  .bk-why__chip { right: -10px; font-size: 14px; }
  .bk-why__grid { grid-template-columns: 1fr; gap: 14px; }
  .bk-why__item { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px 18px; }
  .bk-why__item .h4 { font-size: 20px; }
  .bk-gallery .gallery-grid, .bk-gallery .gallery-row { gap: 16px; }
  .bk-gallery .gallery-item { flex-basis: calc(50% - 8px); box-shadow: var(--pop-sm); }
  .bk-gallery .gallery-row:first-child .gallery-item, .bk-gallery .gallery-row:last-child .gallery-item:nth-child(2) { flex-basis: 100%; }
  .bk-tag { left: 10px; bottom: 10px; font-size: 12.5px; padding: 4px 10px; }
  .bk-testi .testi-card { width: min(280px, calc(100vw - 80px)); min-height: 0; padding: 12px 12px 22px; }
  .bk-testi .testi-card blockquote { font-size: 16px; }
}
@media (max-width: 380px) {
  .bk-chips--services .bk-chip span { padding: 10px; }
  .bk-chips--services .bk-chip b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .bk-map__pin i::after { animation: none; } }
