/* ============================================================================
   Scout Your Stars — "Book a Consultation" (/book-consultation/)
   Page built by tools/v2_booking.py; behaviour in book.js. Colours, type and
   spacing come from unify.css tokens, so the page follows the site.
   ========================================================================== */

/* Anything hidden stays hidden, whatever display its class sets. */
.bk [hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ hero  */

.bk-intro .mx-intro__lede {
  max-width: 62ch !important;
}

.bk-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: clamp(22px, 2.4vw, 32px) 0 0 !important;
  padding: 0 !important;
  counter-reset: bk-step;
}

.bk-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--v2-body);
  font-size: 0.9rem;
  color: var(--u-text);
  counter-increment: bk-step;
}

.bk-steps li::before {
  content: counter(bk-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--u-gold-soft);
  font-family: var(--v2-display);
  font-size: 1.1rem;
  color: var(--u-gold-text);
}

.bk-steps b {
  color: var(--u-head);
  font-weight: 600;
}

/* ------------------------------------------------------------------ body  */

.bk-body {
  padding: var(--u-open-pad) max(var(--u-side), calc((100% - var(--u-wrap)) / 2)) var(--u-edge);
}

.bk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: var(--u-col-gap);
  align-items: start;
}

/* The form: one paper card, four numbered parts. */
.bk-form {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  background: var(--u-card-bg);
  border: 1px solid var(--u-card-edge);
  border-radius: 18px;
  box-shadow: var(--u-card-shadow);
}

.bk-part {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.bk-part + .bk-part {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--u-rule);
}

/* Floated, so it sits in the part rather than on the fieldset's border. */
.bk-legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--v2-display);
  font-size: var(--u-fs-sub);
  line-height: 1.2;
  color: var(--u-head);
}

.bk-legend span {
  font-size: 0.8em;
  color: var(--u-gold-text);
}

.bk-sub {
  clear: both;
  margin: 0 0 clamp(16px, 1.6vw, 22px) !important;
  font-size: var(--u-fs-body);
  line-height: 1.6;
  color: var(--u-mute);
}

.bk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.bk-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bk-wide {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------- fields */

.bk-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bk-label {
  font-family: var(--v2-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--u-sub);
}

.bk-label i {
  font-style: normal;
  color: var(--u-gold-text);
}

.bk-label small {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--u-mute);
}

.bk-form .bk-input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--u-line);
  border-radius: 10px;
  background: #fffdf8;
  font-family: var(--v2-body);
  font-size: 1rem;                 /* 16px: phones do not zoom into the field */
  line-height: 1.4;
  color: var(--u-ink);
  transition: border-color 0.3s var(--u-ease), box-shadow 0.3s var(--u-ease);
  -webkit-appearance: none;
  appearance: none;
}

.bk-form .bk-input::placeholder {
  color: #93836f;
}

.bk-form textarea.bk-input {
  min-height: 132px;
  resize: vertical;
}

.bk-form select.bk-input {
  padding-right: 42px;
  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.5l5 5 5-5' fill='none' stroke='%2387632a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.bk-form .bk-input:hover {
  border-color: var(--u-gold-soft);
}

.bk-form .bk-input:focus {
  outline: none;
  border-color: var(--u-gold);
  box-shadow: 0 0 0 4px rgba(176, 132, 53, 0.16);
}

.bk-form .bk-input:disabled {
  background: rgba(246, 236, 217, 0.5);
  color: var(--u-mute);
  cursor: not-allowed;
}

.is-invalid .bk-input,
.bk-form .bk-input[aria-invalid="true"] {
  border-color: #a8452f;
  box-shadow: 0 0 0 3px rgba(168, 69, 47, 0.1);
}

.bk-err {
  margin: 0 !important;
  font-family: var(--v2-body);
  font-size: 0.84rem;
  line-height: 1.45;
  color: #9a3b26;                   /* 5.9:1 on the paper */
}

.bk-help {
  margin: 0 !important;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--u-mute);
}

/* A checkbox line ("I don't know the exact time"). */
.bk-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--v2-body);
  font-size: 0.9rem;
  color: var(--u-text);
  cursor: pointer;
}

.bk-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #87632a;
}

/* --------------------------------------------- consultation choice cards */

.bk-set + .bk-set {
  margin-top: 20px;
}

.bk-set__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px !important;
  font-family: var(--v2-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--u-gold-text);
}

.bk-set__name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--u-rule), transparent);
}

.bk-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.bk-opt {
  position: relative;
  display: block;
  cursor: pointer;
}

/* The real radio stays in the page for keyboards and screen readers. */
.bk-opt input,
.bk-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.bk-opt__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--u-line);
  border-radius: 12px;
  background: #fffdf8;
  transition: border-color 0.3s var(--u-ease), background 0.3s var(--u-ease),
              box-shadow 0.3s var(--u-ease), transform 0.3s var(--u-ease);
}

.bk-opt__name {
  font-family: var(--v2-display);
  font-size: 1.14rem;
  line-height: 1.25;
  color: var(--u-head);
}

.bk-opt__meta {
  font-family: var(--v2-body);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--u-mute);
}

.bk-opt__price {
  font-weight: 600;
  color: var(--u-gold-text);
}

/* The tick circle, filled when chosen. */
.bk-opt__body::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--u-gold-soft);
  background: #fffdf8 center / 10px 8px no-repeat;
  transition: background-color 0.3s var(--u-ease), border-color 0.3s var(--u-ease);
}

.bk-opt:hover .bk-opt__body {
  border-color: var(--u-gold-soft);
  transform: translateY(-1px);
}

.bk-opt input:checked + .bk-opt__body {
  border-color: var(--u-gold);
  background: linear-gradient(180deg, #fffaf0 0%, #f8eedb 100%);
  box-shadow: 0 0 0 1px var(--u-gold), 0 12px 24px -18px rgba(120, 84, 34, 0.55);
}

.bk-opt input:checked + .bk-opt__body::after {
  border-color: #87632a;
  background-color: #87632a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%23fffaf0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bk-opt input:focus-visible + .bk-opt__body,
.bk-chip input:focus-visible + span {
  outline: 2px solid #87632a;
  outline-offset: 2px;
}

.is-invalid .bk-opt__body {
  border-color: rgba(168, 69, 47, 0.55);
}

/* A block that appears for one consultation (partner, name correction). */
.bk-extra {
  margin-top: 18px;
  padding: 18px 18px 20px;
  border-radius: 12px;
  background: rgba(246, 236, 217, 0.55);
  border: 1px dashed var(--u-gold-soft);
}

.bk-extra[hidden] {
  display: none;
}

.bk-extra__title {
  margin: 0 0 14px !important;
  font-family: var(--v2-display);
  font-size: 1.2rem;
  color: var(--u-head);
}

/* ------------------------------------------------------------------ chips */

.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bk-chip {
  position: relative;
  cursor: pointer;
}

.bk-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--u-line);
  border-radius: 999px;
  background: #fffdf8;
  font-family: var(--v2-body);
  font-size: 0.88rem;
  color: var(--u-text);
  transition: border-color 0.3s var(--u-ease), background 0.3s var(--u-ease), color 0.3s var(--u-ease);
}

.bk-chip:hover span {
  border-color: var(--u-gold-soft);
}

.bk-chip input:checked + span {
  border-color: #87632a;
  background: #87632a;
  color: #fffaf0;
}

/* A chosen chip is marked with the site's gold star, not a tick (2026-09-28,
   the user: "change all the tick marks with this"; the star as in unify.css
   --u-star-mask, here in the chip's own text colour). */
.bk-chip input[type="checkbox"]:checked + span::before {
  content: "";
  flex: 0 0 auto;
  width: 0.95em;
  height: 0.95em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5C12.55 8.4 15.1 11.45 21.5 12C15.1 12.55 12.55 15.1 12 21.5C11.45 15.1 8.9 12.55 2.5 12C8.9 11.45 11.45 8.4 12 2.5Z'/%3E%3Ccircle cx='19.4' cy='4.6' r='1.35'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5C12.55 8.4 15.1 11.45 21.5 12C15.1 12.55 12.55 15.1 12 21.5C11.45 15.1 8.9 12.55 2.5 12C8.9 11.45 11.45 8.4 12 2.5Z'/%3E%3Ccircle cx='19.4' cy='4.6' r='1.35'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bk-count {
  align-self: flex-end;
  font-size: 0.78rem;
  color: var(--u-mute);
}

/* ----------------------------------------------------------------- submit */

.bk-send {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--u-rule);
}

.bk-summary {
  margin: 0 0 16px !important;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(168, 69, 47, 0.08);
  border: 1px solid rgba(168, 69, 47, 0.3);
  font-size: 0.92rem;
  color: #8a3522;
}

.bk-submit.v2-btn {
  width: 100%;
  justify-content: center;
  min-height: 60px;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.bk-submit svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.bk-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0 !important;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
  color: var(--u-mute);
}

/* After sending: what happened, and what to do if WhatsApp did not open. */
.bk-done {
  margin-top: 20px;
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0 0%, #f6ecd8 100%);
  border: 1px solid var(--u-gold-soft);
  text-align: center;
}

.bk-done[hidden] {
  display: none;
}

.bk-done__title {
  margin: 0 0 6px !important;
  font-family: var(--v2-display);
  font-size: var(--u-fs-sub);
  color: var(--u-head);
}

.bk-done p {
  margin: 0 !important;
  color: var(--u-text);
}

.bk-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 16px;
}

.bk-done button.v2-btn {
  cursor: pointer;
  font-family: var(--v2-body);
}

.bk-form a.v2-btn,
.bk-aside a {
  text-decoration: none !important;
}

/* The mobile preview sits just above the button; the desktop one is beside
   the form. */
.bk-preview-inline {
  margin: 0 0 18px;
  border: 1px solid var(--u-line);
  border-radius: 12px;
  background: #fffdf8;
}

.bk-preview-inline summary {
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--v2-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--u-head);
}

.bk-preview-inline .bk-preview {
  margin: 0 12px 14px;
}

/* ------------------------------------------------------------------ aside */

.bk-aside {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bk-card {
  padding: 22px 22px 24px;
  background: var(--u-card-bg);
  border: 1px solid var(--u-card-edge);
  border-radius: 16px;
  box-shadow: var(--u-card-shadow);
}

.bk-card .bk-card__title {
  margin: 0 0 12px !important;
  font-family: var(--v2-display);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--u-head);
}

.bk-card p,
.bk-card li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--u-text);
}

.bk-card p {
  margin: 0 !important;
}

.bk-card p + p {
  margin-top: 10px !important;
}

/* The message as it will arrive: a chat bubble. */
.bk-preview {
  position: relative;
  padding: 14px 16px 22px;
  border-radius: 4px 14px 14px 14px;
  background: #fbf3e2;
  border: 1px solid rgba(196, 164, 108, 0.35);
  font-family: var(--v2-body);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--u-ink);
  word-wrap: break-word;
  max-height: 56vh;
  overflow: auto;
}

.bk-preview strong {
  font-weight: 600;
}

.bk-preview__to {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  font-size: 0.82rem;
  color: var(--u-mute);
}

.bk-preview__to svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #87632a;
}

.bk-contact {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 8px;
}

.bk-contact a {
  color: var(--u-gold-text);
  font-weight: 600;
}

.bk-contact a:hover {
  text-decoration: underline !important;
}

/* ------------------------------------------------------------------ sizes */

@media (max-width: 1024px) {
  .bk-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk-aside {
    position: static;
  }

  .bk-aside .bk-preview-card {
    display: none;
  }
}

@media (min-width: 1025px) {
  .bk-preview-inline {
    display: none;
  }
}

@media (max-width: 640px) {
  .bk-grid,
  .bk-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk-steps {
    flex-direction: column;
    gap: 12px;
  }

  .bk-form {
    padding: 22px 18px 26px;
    border-radius: 16px;
  }

  .bk-opts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-opt__body,
  .bk-input,
  .bk-chip span {
    transition: none;
  }
}
