/* =====================================================================================
   PROJECT BOOKING (/book-project/)
   Built on the site's styles.css: same tokens (--ink, --paper, --red-bright), drafting table,
   paper sheet and frame, the --font-* type system, .btn keys. This file only adds the booking layout.
   Static page: no 3D, no scroll-driven scripts; motion is limited to short opacity/transform
   transitions (off for reduced motion).
   ===================================================================================== */
.bk {
  --line: rgba(23, 20, 15, .16);
  --line-strong: rgba(23, 20, 15, .42);
  --fill: rgba(255, 252, 244, .38);
  --fill-hover: rgba(255, 252, 244, .68);
  --fill-on: rgba(255, 252, 244, .82);
  --err: #a80808;
}
/* Author display rules (e.g. .btn) would otherwise beat the hidden attribute. */
.bk [hidden] { display: none !important; }

/* ---------- The sheet: textures painted straight onto it (no paper.js on this page) ---------- */
.paper.bk-sheet {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 2 * var(--paper-y));
  background:
    url("/assets/paper-fibre.webp") 0 0 / 512px 512px repeat,
    url("/assets/paper-crease.webp") 0 0 / 1024px 1024px repeat,
    radial-gradient(ellipse 140% 50% at 30% 0%, rgba(255, 252, 244, .5) 0%, rgba(255, 252, 244, 0) 60%),
    var(--paper);
}

/* ---------- Header ---------- */
.bk-header { padding-top: clamp(26px, 3.4vw, 44px); }
.bk-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 18px;
}
.bk-header__inner::after,
.bk-base__inner::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); height: 1px;
  background: linear-gradient(90deg, var(--red-bright) 0, var(--red-bright) 48px, var(--line) 48px);
}
.bk-header__inner::after { bottom: 0; }
.bk-header__logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font: italic 900 28px "Inter", sans-serif;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.bk-header__back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 500 12px var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .25s ease;
}
.bk-header__back span { transition: transform .25s ease; }
.bk-header__back:hover { color: var(--ink); }
.bk-header__back:hover span { transform: translateX(-3px); }
.bk a:focus-visible,
.bk button:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.bk .btn:focus-visible { outline-offset: 6px; }

/* ---------- Layout: aside (title, progress) | form ---------- */
.bk-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
@media (min-height: 780px) {
  .bk-aside { position: sticky; top: 32px; }
}
.bk-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12.5px var(--font-technical);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.bk-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red-bright); }
.bk-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(54px, 5.2vw, 86px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}
.bk-title em { display: block; font-style: normal; color: var(--red-bright); }
.bk-intro { margin-top: 18px; max-width: 300px; font: 400 15px/1.6 var(--font-body); color: var(--ink-2); }

/* Progress: 01 / 04, a red rule, then the four steps (done steps can be revisited). */
.bk-progress { margin-top: clamp(32px, 5vh, 48px); }
.bk-progress__count {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  font-weight: var(--fw-display);
}
.bk-progress__of { font-size: 22px; color: var(--ink-3); }
.bk-progress__label { display: none; }
.bk-progress__bar { position: relative; height: 2px; margin-top: 14px; background: var(--line); overflow: hidden; }
.bk-progress__bar i {
  position: absolute; inset: 0;
  background: var(--red-bright);
  transform-origin: left;
  transform: scaleX(.25);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.bk-steps { list-style: none; margin-top: 18px; }
.bk-steps__item + .bk-steps__item { border-top: 1px solid var(--line); }
.bk-steps__btn {
  appearance: none; border: 0; background: none;
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 48px; padding: 8px 0;
  text-align: left;
  font: 500 12px/1.35 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .25s ease;
}
.bk-steps__btn:disabled { cursor: default; }
.bk-steps__num {
  flex: none;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  font: 600 10.5px var(--font-body);
  letter-spacing: .06em;
  color: var(--ink-3);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.is-done .bk-steps__btn { color: var(--ink-2); }
.is-done .bk-steps__num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.is-current .bk-steps__btn { color: var(--ink); }
.is-current .bk-steps__num { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.bk-steps__btn:not(:disabled):hover .bk-steps__name { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* The drawing's title block, as on an engineering sheet. */
.bk-titleblock {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;   /* drawing name | sheet number */
  margin-top: 32px;
  border: 1px solid var(--line-strong);
}
.bk-titleblock > div { padding: 8px 10px; }
.bk-titleblock > div + div { padding-right: 14px; border-left: 1px solid var(--line); }
.bk-titleblock dd { white-space: nowrap; }
.bk-titleblock dt { font: 500 8.5px var(--font-technical); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.bk-titleblock dd { margin-top: 4px; font: 600 11px var(--font-technical); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* ---------- The form: a framed drawing area with corner ticks ---------- */
.bk-panel { min-width: 0; container-type: inline-size; }
.bk-form {
  position: relative;
  padding: clamp(26px, 3.2vw, 48px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 244, .22);
}
.bk-form::before {
  content: ""; position: absolute; inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 0 / 2px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 2px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 2px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 2px 16px no-repeat;
}
.bk-noscript { margin-bottom: 20px; font: 500 14px/1.6 var(--font-body); color: var(--err); }

.bk-step__head { margin-bottom: clamp(26px, 4vh, 40px); }
.bk-step__tag {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 11.5px var(--font-technical);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.bk-step__tag::before { content: ""; width: 26px; height: 1px; background: var(--red-bright); }
.bk-step__title {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}
.bk-step__title:focus { outline: none; }
.bk-step__lead { max-width: 560px; font: 400 16px/1.6 var(--font-body); color: var(--ink-2); }

fieldset.bk-types, fieldset.bk-field { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- Starting design (from the templates gallery) ---------- */
.bk-design { display: grid; gap: 2px; margin-top: 18px; padding: 10px 12px; border-left: 2px solid var(--red-bright); background: rgba(255, 252, 244, .55); }
.bk-design span { font: 500 9.5px var(--font-technical); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.bk-design b { font: 600 13px var(--font-technical); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.bk-template {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 16px 24px; align-items: end;
  margin-bottom: 22px; padding: 16px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 244, .6);
}
.bk-template__label { font: 500 10.5px var(--font-technical); letter-spacing: .24em; text-transform: uppercase; color: var(--red-bright); }
.bk-template__name { margin-top: 4px; font-family: var(--font-display); font-size: 24px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: var(--ink);
  font-weight: var(--fw-display);
}
.bk-template__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.bk-template__links a { display: inline-flex; align-items: center; min-height: 36px; font: 500 13px var(--font-body); color: var(--ink-2); text-underline-offset: 3px; }
.bk-template__links a:hover { color: var(--ink); }
.bk-template__hint { margin-top: 6px; max-width: 360px; font: 400 13px/1.5 var(--font-body); color: var(--ink-3); }
.bk-design + .bk-design { margin-top: 8px; }
.bk-closed { margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--red-bright); background: rgba(196, 10, 10, .07);
  font: 500 14px/1.55 var(--font-body); color: var(--ink); }
.bk-template__change { display: grid; gap: 6px; font: 600 11px var(--font-technical); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.bk-template__change select {
  min-height: 48px; padding: 0 40px 0 12px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2317140f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
@container (max-width: 560px) {
  .bk-template { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Step 01: project types ---------- */
.bk-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bk-type { position: relative; display: block; cursor: pointer; }
.bk-type__input, .bk-chip__input, .bk-option__input {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.bk-type__body {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  min-height: 200px;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  background: var(--fill);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.bk-type__body::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--red-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.bk-type__num { font: 500 11px var(--font-technical); letter-spacing: .24em; color: var(--ink-3); transition: color .2s ease; }
.bk-type__icon {
  width: 44px; height: 44px;
  margin: 16px 0 18px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease;
}
.bk-type__title {
  font-family: var(--font-display);
  font-size: 23px; line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: var(--fw-display);
}
.bk-type__desc { margin-top: 8px; font: 400 13.5px/1.55 var(--font-body); color: var(--ink-2); }
/* The card's mark is the site's checkbox (.nand-checkbox__mark, styles.css) at the feature chips'
   size. The cards are one-choice radio inputs, which the shared checkbox rules never match, so the
   design's checked, hover and press states are repeated here for them, value for value. */
.bk-type__check { position: absolute; top: 18px; right: 22px; --nc-scale: 15px; }
@media (hover: hover) {
  .bk-type:hover .bk-type__input:not(:checked) + .bk-type__body .bk-type__check { transform: scale(1.05) rotate(2deg); }
}
.bk-type:active .bk-type__input:not(:checked) + .bk-type__body .bk-type__check { transform: scale(.9) translateY(4px); }
.bk-type:active .bk-type__check { box-shadow: 0 0 0 #1a1a1a; }
@media (hover: hover) {
  .bk-type:hover .bk-type__body { border-color: var(--line-strong); background: var(--fill-hover); }
  .bk-type:hover .bk-type__icon { stroke: var(--ink); }
}
.bk-type__input:checked + .bk-type__body {
  border-color: var(--red-bright);
  box-shadow: inset 0 0 0 1px var(--red-bright);
  background: var(--fill-on);
}
.bk-type__input:checked + .bk-type__body::before { transform: scaleX(1); }
.bk-type__input:checked + .bk-type__body .bk-type__num { color: var(--red-bright); }
.bk-type__input:checked + .bk-type__body .bk-type__icon { stroke: var(--red-bright); }
.bk-type__input:checked + .bk-type__body .bk-type__check {
  background-color: #ff5722;
  border-radius: 92% 8% 88% 12% / 11% 87% 13% 89%;
  transform: scale(1.1) rotate(-2deg);
}
.bk-type__input:checked + .bk-type__body .bk-type__check::after { display: block; animation: nand-splash .3s forwards; }
.bk-type__input:focus-visible + .bk-type__body,
.bk-chip__input:focus-visible + .bk-chip__body,
.bk-option__input:focus-visible + .bk-option__body { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.bk-types.is-invalid .bk-type__body { border-color: rgba(168, 8, 8, .5); }

/* ---------- Fields ---------- */
.bk-fields { display: grid; gap: 28px; }
/* Academic project details (step 02, academic project types only): a dashed sub-sheet of
   optional questions. */
.bk-academic { display: grid; gap: 22px; padding: 20px 20px 22px; border: 1px dashed var(--line-strong); background: var(--fill); }
.bk-academic[hidden], .bk-academic__set[hidden] { display: none; }
.bk-academic > .bk-hint { margin-top: -14px; }
fieldset.bk-academic__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-academic__set .bk-hint { margin-top: -4px; }
.bk-academic__set .bk-chips { margin: 12px 0 0; }
.bk-academic__set .bk-clear { margin-top: 10px; }
.bk-fields--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.bk-label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin-bottom: 10px; padding: 0;
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.bk-label--sub { margin: 4px 0 10px; font-weight: 500; letter-spacing: .12em; color: var(--ink-2); }
.bk-opt, .bk-req { font: 500 9.5px var(--font-technical); letter-spacing: .2em; color: var(--ink-3); }
.bk-req { color: var(--red-bright); }
.bk-input {
  display: block; width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  font: 400 16px/1.5 var(--font-body);     /* 16px: no zoom-on-focus on phones */
  color: var(--ink);
  background: rgba(255, 252, 244, .6);
  border: 1px solid rgba(23, 20, 15, .26);
  border-radius: 0;
  appearance: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.bk-input::placeholder { color: rgba(23, 20, 15, .36); }
.bk-input:hover { border-color: var(--line-strong); }
.bk-input:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255, 252, 244, .88);
  box-shadow: inset 0 -2px 0 var(--red-bright);
}
.bk-input[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px rgba(168, 8, 8, .45); }
/* Text boxes: the NAND text box (styles.css) across the form's own widths (the design's 270px cap
   is for a standalone box); text areas grow with their content height. */
.bk .nand-input-wrap, .bk .nand-input { max-width: none; }
.bk textarea.nand-input { height: auto; line-height: 1.5; resize: vertical; }
.bk-textarea { min-height: 156px; resize: vertical; }
.bk-textarea--sm { min-height: 100px; }
.bk-field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 8px; }
.bk-hint { font: 400 13px/1.5 var(--font-body); color: var(--ink-3); }
.bk-field > .bk-hint { margin-top: 8px; }
.bk-count { flex: none; font: 500 11px/1.9 var(--font-technical); letter-spacing: .1em; color: var(--ink-3); }
/* Description: the word count towards the minimum, then the characters. */
.bk-counts { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.bk-count--words.is-met { color: var(--ink); }
.bk-count--words.is-met::before { content: "✓ "; color: var(--red-bright); }
.bk-error {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px;
  font: 500 13px/1.45 var(--font-body);
  color: var(--err);
}
.bk-error:empty { display: none; }
.bk-error::before {
  content: "!"; flex: none;
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%;
  background: var(--err);
  color: #fff;
  font: 700 10px/1 var(--font-body);
}

/* ---------- Step 02: feature suggestions ---------- */
.bk-features .bk-hint { margin-top: -2px; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 24px; }
.bk-chips:empty { display: none; }
.bk-chip { position: relative; cursor: pointer; }
.bk-chip__body {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--fill);
  font: 500 13.5px/1.3 var(--font-body);
  color: var(--ink-2);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
/* The tick box is the shared .nand-checkbox mark (styles.css), scaled for the chip. The chip keeps
   its own focus ring around the whole chip, so the mark's ring is not doubled inside it. */
.bk-chip.nand-checkbox { --nc-scale: 15px; }      /* the design's box, scaled to 0.6 to fit a chip */
.bk-chip.nand-checkbox .bk-chip__body { gap: 14px; }   /* room for the box's offset shadow */
.bk-chip.nand-checkbox > input[type="checkbox"]:focus-visible ~ * .nand-checkbox__mark { outline: none; }
@media (hover: hover) {
  .bk-chip:hover .bk-chip__body, .bk-option:hover .bk-option__body { border-color: var(--line-strong); background: var(--fill-hover); color: var(--ink); }
}
.bk-chip__input:checked + .bk-chip__body { border-color: var(--red-bright); background: var(--fill-on); color: var(--ink); }

/* ---------- Step 03: budget + timeline ---------- */
.bk-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 32px;
  padding: 14px 16px;
  border-left: 2px solid var(--red-bright);
  background: rgba(255, 252, 244, .5);
  font: 400 14px/1.55 var(--font-body);
  color: var(--ink-2);
}
.bk-note__mark {
  flex: none;
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--ink-3); border-radius: 50%;
  font: italic 600 11px/1 var(--font-body);
  color: var(--ink-2);
}
.bk-choice + .bk-choice { margin-top: 32px; }
.bk-options { display: grid; gap: 10px; }
.bk-options--budget { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-options--level, .bk-options--audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-options--timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-budget-note { margin: -2px 0 14px; }
/* Hosting preference: three option cards with a short description (and example addresses). */
.bk-deploy__lead { margin: -2px 0 14px; }
.bk-options--deploy, .bk-options--support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Support after launch: same option cards as the hosting preference. */
.bk-support__lead { margin: -2px 0 14px; }
.bk-support__note { margin-top: 18px; }
.bk-options--domain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-option--rich .bk-option__body { align-items: flex-start; padding: 16px 16px 18px; }
.bk-option--rich .bk-option__dot { margin-top: 2px; }
.bk-option__content { display: grid; gap: 6px; min-width: 0; }
.bk-option--rich .bk-option__text { font-weight: 600; color: var(--ink); }
.bk-option__desc { font: 400 13px/1.5 var(--font-body); color: var(--ink-2); }
.bk-option__eg { font: 500 11.5px/1.6 var(--font-technical); letter-spacing: .02em; color: var(--ink-3); overflow-wrap: anywhere; }
.bk-deploy__more { display: grid; gap: 18px; margin-top: 18px; }
.bk-deploy__more[hidden], .bk-deploy [data-domain-field][hidden] { display: none; }
.bk-deploy__more .bk-note { margin-bottom: 0; }
fieldset.bk-deploy__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-option { position: relative; display: block; cursor: pointer; }
.bk-option__body {
  display: flex; align-items: center; gap: 16px;      /* room for the mark's offset shadow */
  height: 100%; min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--fill);
  font: 500 14.5px/1.35 var(--font-body);
  color: var(--ink-2);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
/* The option's mark is the site's checkbox (.nand-checkbox__mark, styles.css) at the feature chips'
   size; these are one-choice radio inputs, so the design's states are repeated here for them. */
.bk-option__dot { flex: none; --nc-scale: 15px; }
@media (hover: hover) {
  .bk-option:hover .bk-option__input:not(:checked) + .bk-option__body .bk-option__dot { transform: scale(1.05) rotate(2deg); }
}
.bk-option:active .bk-option__input:not(:checked) + .bk-option__body .bk-option__dot { transform: scale(.9) translateY(4px); }
.bk-option:active .bk-option__dot { box-shadow: 0 0 0 #1a1a1a; }
.bk-option__input:checked + .bk-option__body {
  border-color: var(--red-bright);
  box-shadow: inset 0 0 0 1px var(--red-bright);
  background: var(--fill-on);
  color: var(--ink);
}
.bk-option__input:checked + .bk-option__body .bk-option__dot {
  background-color: #ff5722;
  border-radius: 92% 8% 88% 12% / 11% 87% 13% 89%;
  transform: scale(1.1) rotate(-2deg);
}
.bk-option__input:checked + .bk-option__body .bk-option__dot::after { display: block; animation: nand-splash .3s forwards; }
.bk-clear {
  appearance: none; border: 0; background: none;
  margin-top: 10px; padding: 8px 0; min-height: 36px;
  font: 500 11px var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
  transition: color .2s ease;
}
.bk-clear:hover { color: var(--ink); }

/* ---------- Step 04: contact verification (email and phone one-time codes) ---------- */
.bk-verify {
  display: grid; gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 244, .6);
}
/* The key moves below the field when the field would get too narrow. */
.bk-verify__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.bk-verify__row > .nand-input-wrap { flex: 1 1 240px; min-width: 0; }
.bk-phone { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); gap: 10px; }
.bk-select {
  padding-right: 40px; cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2317140f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
/* Locked while a code is requested or the contact is verified ("Change …" unlocks it). */
.bk-input[readonly], .bk-input:disabled { background-color: rgba(23, 20, 15, .045); color: var(--ink-2); }
.bk-input:disabled { cursor: not-allowed; opacity: 1; }
.bk-phone__hint { margin-top: 8px; }
.bk-phone .bk-select { min-height: 60px; }       /* level with the text box beside it */

/* Keys in the panels (the site's key style, sized for a form row) */
.bk-verify .bk-vbtn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  font-size: 12px; text-transform: uppercase; white-space: nowrap;
}
.bk-verify .bk-vbtn--small { min-height: 42px; padding: 0 16px; font-size: 11px; }
/* Busy / unavailable: dimmed, no press (aria-disabled keeps the key focusable). */
.bk-verify .btn.btn.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.bk-verify .btn.btn.btn[aria-busy="true"] { cursor: progress; }
.bk-verify .btn.btn--ghost.btn[aria-disabled="true"]:active {
  box-shadow: rgba(0, 0, 0, .377) 10px 10px 8px, #a8a6a4 1.5px 1.5px 1px 0px inset, #545251 -3.2px -3.2px 8px 0px inset;
}
.bk-verify .btn.btn--solid.btn[aria-disabled="true"]:active {
  box-shadow: rgba(0, 0, 0, .377) 10px 10px 8px, #fb702c 2px 2px 10px 0px inset, #d42a02 -4px -4px 1px 0px inset;
}
.bk-verify .btn.btn.btn[aria-disabled="true"]:active > * { transform: none; }

/* Status: a badge (shape + word) and a message */
/* Badge and "Change …" on one line, the message below them */
.bk-vstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bk-vbadge {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 244, .85);
  font: 600 10px/1 var(--font-technical);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.bk-vbadge__icon { position: relative; flex: none; width: 12px; height: 12px; border: 1.5px dashed currentColor; border-radius: 50%; }
.bk-vbadge[data-state="sent"] { color: var(--ink); }
.bk-vbadge[data-state="sent"] .bk-vbadge__icon { border-style: solid; }
.bk-vbadge[data-state="sent"] .bk-vbadge__icon::after {
  content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: currentColor;
}
.bk-vbadge[data-state="verified"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.bk-vbadge[data-state="verified"] .bk-vbadge__icon { border-style: solid; background: #fff; border-color: #fff; }
.bk-vbadge[data-state="verified"] .bk-vbadge__icon::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px;
  border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.bk-vbadge[data-state="preview"] {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, rgba(23, 20, 15, .06) 0 6px, rgba(23, 20, 15, 0) 6px 12px), rgba(255, 252, 244, .85);
}
.bk-vmsg { order: 3; flex: 1 1 100%; min-width: 0; max-width: 620px; font: 400 13.5px/1.55 var(--font-body); color: var(--ink-2); }
.bk-vmsg[data-tone="ok"] { color: var(--ink); font-weight: 500; }
.bk-vmsg[data-tone="error"] { display: flex; align-items: flex-start; gap: 8px; color: var(--err); font-weight: 500; }
.bk-vmsg[data-tone="error"]::before {
  content: "!"; flex: none;
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; margin-top: 2px;
  border-radius: 50%;
  background: var(--err); color: #fff;
  font: 700 10px/1 var(--font-body);
}
.bk-vmsg__tag {
  display: inline-block; margin-right: 2px; padding: 4px 6px;
  font: 600 9px/1 var(--font-technical); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: var(--ink);
  vertical-align: 1px;
}
.bk-verify .bk-vchange { order: 2; margin-left: auto; min-height: 32px; padding: 4px 0; }

/* The 6-digit code: one box per digit */
.bk-otp { display: grid; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.bk-otp__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-otp__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* Each digit is a NAND text box: no inner padding (one centred digit), gaps wide enough for the
   boxes' 8px shadows. */
.bk-otp__boxes { flex: 0 1 314px; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 44px)); gap: 10px; }
.bk-otp__box.nand-input { padding: 0; text-align: center; font-variant-numeric: tabular-nums; }
.bk-otp__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* Development preview (?dev only): hatched like the other unbuilt parts */
.bk-vdev {
  display: grid; gap: 6px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(-45deg, rgba(23, 20, 15, .035) 0 8px, rgba(23, 20, 15, 0) 8px 16px);
}
.bk-vdev__tag { font: 600 10px var(--font-technical); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.bk-vdev__label { font: 600 11px var(--font-technical); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.bk-vdev__select { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.bk-vdev__note { font: 400 12.5px/1.5 var(--font-body); color: var(--ink-3); }

@container (max-width: 560px) {
  .bk-verify { padding: 14px; }
  .bk-verify__row > .nand-input-wrap, .bk-phone { flex-basis: 100%; }
  .bk-verify__row > .bk-vbtn, .bk-otp__row > .bk-vbtn { flex: 1 1 100%; }
}
@container (max-width: 400px) {
  .bk-phone { grid-template-columns: minmax(0, 1fr); }
  .bk-otp__boxes { flex-basis: 100%; gap: 10px; }
}

/* ---------- Step 04: review ---------- */
.bk-review { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.bk-review__title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 28px; line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.bk-review__group { margin-top: 16px; padding: 14px 18px 8px; border: 1px solid var(--line); background: var(--fill); }
.bk-review__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bk-review__head h4 { font: 600 11.5px var(--font-technical); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.bk-review__head h4::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--red-bright); vertical-align: 1px; }
.bk-edit {
  appearance: none; border: 0; background: none;
  min-height: 40px; padding: 8px 0 8px 12px;
  font: 600 11px var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-bright);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.bk-edit:hover { color: var(--red); }
.bk-review__list { margin-top: 4px; }
.bk-review__row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 20px;
  padding: 10px 0;
  border-top: 1px dashed rgba(23, 20, 15, .14);
}
.bk-review__row dt { font: 500 12.5px/1.55 var(--font-body); color: var(--ink-3); }
.bk-review__row dd { font: 400 14.5px/1.55 var(--font-body); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.bk-review__row dd.is-empty { color: var(--ink-3); }
.bk-privacy { margin-top: 24px; max-width: 640px; font: 400 13.5px/1.65 var(--font-body); color: var(--ink-2); }
.bk-privacy a { color: var(--ink); text-decoration-color: var(--red-bright); text-underline-offset: 3px; }   /* same as the agreement's links (no visited purple) */
.bk-privacy a:hover { color: var(--red-bright); }
.bk-result__text a { color: var(--ink); text-decoration-color: var(--red-bright); text-underline-offset: 3px; }
.bk-result__text a:hover { color: var(--red-bright); }
/* Agreement to the Privacy Policy and Terms & Conditions (required): the whole row is the label,
   with the site's checkbox; a red hairline when ticked. */
.bk-agree { margin-top: 16px; max-width: 640px; }
.bk-agree__label {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--fill);
  font: 500 14px/1.6 var(--font-body);
  color: var(--ink);
  user-select: auto;
  --nc-scale: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.bk-agree__label .nand-checkbox__mark { margin-top: 1px; }
@media (hover: hover) {
  .bk-agree__label:hover { border-color: var(--line-strong); background: var(--fill-hover); }
}
.bk-agree__label:has(> input:checked) { border-color: var(--red-bright); background: var(--fill-on); }
.bk-agree.is-invalid .bk-agree__label { border-color: rgba(168, 8, 8, .55); }
.bk-agree__text { min-width: 0; }
.bk-agree__text a {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 3px;
  padding: 3px 0;                                   /* a taller tap target, same line height */
}
.bk-agree__text a:hover { color: var(--red-bright); }
.bk-agree__text a:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.bk-agree .bk-error:not(:empty) { margin-top: 8px; }
.bk-pending-link {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* Anti-spam field: kept out of sight and out of the tab order (not display:none, which some bots skip). */
.bk-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* One-time-code verification is not connected yet: hide its buttons, status and code panels, and let
   the email and phone fields sit like every other field (booking.js adds the class). */
.bk-form--verify-off .bk-verify { display: contents; }
.bk-form--verify-off [data-verify-send], .bk-form--verify-off .bk-vstatus,
.bk-form--verify-off [data-verify-code], .bk-form--verify-off .bk-vdev { display: none !important; }

/* One channel switched off (phone, while SMS verification is postponed): its field stays in its box,
   without the code button, status or code panel (booking.js adds the class). */
.bk-verify--off [data-verify-send], .bk-verify--off .bk-vstatus,
.bk-verify--off [data-verify-code], .bk-verify--off .bk-vdev { display: none !important; }

/* Submission outcome. Development mode: hatched like an unbuilt part of a drawing. */
.bk-result { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line-strong); outline: none; }
.bk-result--dev {
  background:
    repeating-linear-gradient(-45deg, rgba(23, 20, 15, .035) 0 8px, rgba(23, 20, 15, 0) 8px 16px),
    rgba(255, 252, 244, .6);
}
.bk-result--error { border-color: var(--err); background: rgba(255, 252, 244, .6); }
.bk-result__tag {
  display: inline-block;
  padding: 5px 8px;
  font: 600 10px/1 var(--font-technical);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
}
.bk-result--error .bk-result__tag { background: var(--err); }
/* Stored: the reference is the thing to keep. */
.bk-result--sent { border-color: var(--ink); background: rgba(255, 252, 244, .7); }
.bk-result--sent .bk-result__ref { font-family: var(--font-technical); letter-spacing: .08em; white-space: nowrap; }
.bk-result__title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 26px; line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.bk-result__text { max-width: 620px; font: 400 14.5px/1.6 var(--font-body); color: var(--ink-2); }
.bk-result__text strong { color: var(--ink); font-weight: 600; }
/* Developer view (?dev only): set apart from the visitor's notice by a dashed rule. */
.bk-result__dev { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.bk-result__dev summary {
  display: list-item;          /* keeps the disclosure marker, so it reads as expandable */
  padding: 8px 0;
  font: 600 11px var(--font-technical);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}
.bk-result__dev pre {
  margin-top: 8px; padding: 12px 14px;
  max-height: 300px; overflow: auto;
  font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--ink);
  background: rgba(23, 20, 15, .05);
  border: 1px solid var(--line);
}

/* ---------- Step controls ---------- */
.bk-nav {
  display: flex; align-items: center; gap: 16px 20px;
  margin-top: clamp(32px, 5vh, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.bk-nav__count { flex: none; margin-left: auto; white-space: nowrap; font: 500 12px var(--font-technical); letter-spacing: .2em; color: var(--ink-3); }
.bk-nav .btn { text-align: center; text-transform: uppercase; }
.bk-nav .btn--solid { padding: 16px 40px; font-size: 13.5px; }
.bk-nav .btn--ghost { padding: 15px 30px; font-size: 13px; }
.bk-nav .btn:disabled { opacity: .6; cursor: progress; }
/* Submit before the agreement is ticked: clearly unavailable (flat, faded, no pointer). */
.bk-nav .bk-nav__submit:disabled:not([aria-busy]) { opacity: .45; cursor: not-allowed; box-shadow: none; filter: saturate(.6); }

/* ---------- Footer line ---------- */
.bk-base__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 18px; padding-bottom: clamp(24px, 4vh, 36px);
  font: 400 12.5px var(--font-body);
  letter-spacing: .04em;
  color: var(--ink-3);
}
.bk-base__inner::before { top: 0; }
.bk-base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.bk-base a:hover { color: var(--ink); }
.bk-base__links { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; }
.bk-base__btn {
  appearance: none; border: 0; background: none; padding: 0;
  display: inline-flex; align-items: center; min-height: 44px;
  font: inherit; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.bk-base__btn:hover { color: var(--ink); }

/* ---------- Form width (container queries: the form's own width decides the grids) ---------- */
/* Not enough room for Back, the counter and the main button in one row: the main button takes
   its own full-width row, with Back and the counter on the row below. */
@container (max-width: 620px) {
  .bk-nav { flex-wrap: wrap; gap: 14px 12px; }
  .bk-nav .bk-nav__next, .bk-nav .bk-nav__submit { order: -1; flex: 1 1 100%; }
}
@container (max-width: 780px) {
  .bk-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-options--budget, .bk-options--timeline, .bk-options--level, .bk-options--audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-options--deploy, .bk-options--support { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 500px) {
  .bk-types, .bk-options--budget, .bk-options--timeline, .bk-options--level, .bk-options--audience, .bk-options--domain, .bk-fields--grid { grid-template-columns: minmax(0, 1fr); }
  .bk-type__body {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    min-height: 0;
    padding: 16px 52px 18px 16px;
  }
  .bk-type__num { grid-column: 1 / -1; }
  .bk-type__icon { grid-row: 2 / span 2; width: 40px; height: 40px; margin: 10px 0 0; }
  .bk-type__title { margin-top: 10px; font-size: 21px; }
  .bk-type__desc { margin-top: 4px; }
  .bk-type__check { top: 16px; right: 20px; }
  .bk-review__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Viewport layouts ---------- */
@media (max-width: 1180px) {
  .bk-layout { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
  .bk-title { font-size: clamp(48px, 5vw, 64px); }
}
/* Tablet and phone: one column; the aside becomes a compact header with a progress line. */
@media (max-width: 1023px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .bk-aside { position: static; }
  .bk-title { font-size: clamp(44px, 9vw, 72px); }
  .bk-title em { display: inline; }
  .bk-intro { max-width: 520px; }
  .bk-progress {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 16px;
    margin-top: 28px;
  }
  .bk-progress__count { font-size: 36px; }
  .bk-progress__of { font-size: 18px; }
  .bk-progress__label {
    display: block;
    padding-bottom: 4px;
    font: 600 12px/1.35 var(--font-technical);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .bk-progress__bar { grid-column: 1 / -1; }
  .bk-steps, .bk-titleblock { display: none; }
}
@media (max-width: 600px) {
  .bk-header__logo { font-size: 22px; }
  .bk-header__back { font-size: 11px; letter-spacing: .16em; }
  .bk-layout { padding-top: 28px; padding-bottom: 48px; }
  .bk-title { font-size: min(52px, 13vw); }
  .bk-intro { font-size: 14px; }
  /* The sheet is narrow: the form uses its full width (no inner frame). */
  .bk-form { padding: 0; border: 0; background: none; }
  .bk-form::before { display: none; }
  .bk-step__title { font-size: min(44px, 11.5vw); }
  .bk-step__lead { font-size: 15px; }
  .bk-nav .btn { padding: 15px 18px; font-size: 12.5px; }
  .bk-nav .bk-nav__submit { white-space: normal; }
  .bk-base__inner { flex-direction: column; align-items: flex-start; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { transition: none !important; }
  /* Project-type marks: no movement, no splash; the tick is simply there (as for every checkbox). */
  .bk-type:hover .bk-type__input:not(:checked) + .bk-type__body .bk-type__check,
  .bk-type:active .bk-type__input:not(:checked) + .bk-type__body .bk-type__check { transform: none; }
  .bk-type__input:checked + .bk-type__body .bk-type__check::after { animation: none; transform: scale(1) rotate(40deg); }
  .bk-option:hover .bk-option__input:not(:checked) + .bk-option__body .bk-option__dot,
  .bk-option:active .bk-option__input:not(:checked) + .bk-option__body .bk-option__dot { transform: none; }
  .bk-option__input:checked + .bk-option__body .bk-option__dot::after { animation: none; transform: scale(1) rotate(40deg); }
}
