/* Consultation booking widget (book.html). Uses main.css tokens. */
.bk {
  position: relative;
  border-radius: var(--r-xl, 28px);
  padding: clamp(1.25rem, 3.2vw, 2.75rem);
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(1, 89, 168, 0.22), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(229, 139, 1, 0.10), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.bk [hidden] { display: none !important; }

/* steps */
.bk__steps { list-style: none; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.bk__steps li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem .45rem .45rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-mute); font-size: var(--fs-xs); font-weight: 600;
}
.bk__steps li span {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); color: var(--text-soft); font-size: .75rem;
}
.bk__steps li.is-active { color: #fff; border-color: var(--line-gold); background: rgba(229, 139, 1, 0.08); }
.bk__steps li.is-active span { background: var(--grad-gold); color: #08101F; }
.bk__steps li.is-done span { background: var(--grad-blue); color: #fff; }

.bk__head { margin-bottom: 1.5rem; }
.bk__head h2 { font-size: var(--fs-d3); margin: 0 0 .4rem; }
.bk__head p, .bk-muted { color: var(--text-soft); margin: 0; }

/* step 1: types */
.bk-types { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bk-type {
  display: flex; align-items: flex-start; gap: 1rem; text-align: left; width: 100%;
  padding: 1.15rem 1.15rem 1.15rem 1.1rem; border-radius: var(--r-lg, 20px);
  border: 1px solid var(--line); color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  font: inherit;
}
.bk-type:hover, .bk-type:focus-visible { border-color: var(--line-gold); background: rgba(229, 139, 1, 0.06); transform: translateY(-2px); outline: none; box-shadow: 0 18px 40px -24px rgba(229, 139, 1, 0.6); }
.bk-type .card__icon { flex: none; margin: 0; }
.bk-type__body { display: grid; gap: .2rem; flex: 1; }
.bk-type__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.bk-type__meta { color: var(--brand-gold-light); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.bk-type__desc { color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.55; }
.bk-type__go { flex: none; align-self: center; color: var(--text-mute); transition: transform .2s, color .2s; }
.bk-type__go svg { width: 20px; height: 20px; }
.bk-type:hover .bk-type__go { color: var(--brand-gold-light); transform: translateX(3px); }

/* bar above steps 2/3 */
.bk__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.bk__back { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--text-soft); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; padding: .35rem 0; }
.bk__back svg { width: 18px; height: 18px; }
.bk__back:hover { color: #fff; }
.bk__chosen { color: var(--text-soft); font-size: var(--fs-sm); text-align: right; }
.bk__chosen strong { color: #fff; font-family: var(--font-display); }

/* step 2: calendar + times */
.bk-pick { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 820px) { .bk-pick { grid-template-columns: 1fr; } }
.bk-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.bk-cal__month { font-family: var(--font-display); font-size: 1.15rem; }
.bk-cal__nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: #fff; cursor: pointer; transition: all .2s; }
.bk-cal__nav svg { width: 18px; height: 18px; }
.bk-cal__nav:hover:not(:disabled) { border-color: var(--line-gold); color: var(--brand-gold-light); }
.bk-cal__nav:disabled { opacity: .3; cursor: default; }
.bk-cal__dow, .bk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.bk-cal__dow span { text-align: center; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding-bottom: .35rem; }
.bk-day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid transparent; background: none;
  color: var(--text-faint); font: 600 .95rem var(--font-body); cursor: default; opacity: .45;
}
.bk-day.is-open { opacity: 1; color: #fff; cursor: pointer; background: rgba(1, 89, 168, 0.18); border-color: rgba(1, 89, 168, 0.45); transition: all .18s; }
.bk-day.is-open::after { content: ""; position: absolute; bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-gold-light); }
.bk-day.is-open:hover, .bk-day.is-open:focus-visible { background: rgba(1, 89, 168, 0.35); border-color: var(--brand-blue-bright); outline: none; }
.bk-day.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.bk-day.is-sel { background: var(--grad-gold) !important; color: #08101F !important; border-color: transparent !important; box-shadow: 0 10px 24px -10px rgba(229, 139, 1, .8); }
.bk-day.is-sel::after { background: #08101F; }
.bk-day--pad { visibility: hidden; }
.bk-cal__note { margin: 1rem 0 0; font-size: var(--fs-xs); color: var(--text-faint); }

.bk-times { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 820px) { .bk-times { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.25rem; } }
.bk-times__title { font-size: 1.1rem; margin: .4rem 0 1rem; }
.bk-times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; max-height: 420px; overflow: auto; padding: 2px; }
.bk-times__list .bk-muted { grid-column: 1 / -1; }
.bk-time {
  padding: .8rem .5rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03); color: #fff; font: 600 .95rem var(--font-body); cursor: pointer; transition: all .18s;
}
.bk-time:hover, .bk-time:focus-visible { border-color: var(--brand-gold); color: var(--brand-gold-light); outline: none; background: rgba(229, 139, 1, .07); }

/* step 3: form */
.bk-form { max-width: 760px; }
.bk-format { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.bk-format legend { font-size: var(--fs-sm); font-weight: 600; color: #fff; margin-bottom: .6rem; }
.bk-format legend .req, .bk-form .req { color: var(--brand-gold); }
.bk-radio { display: block; cursor: pointer; }
.bk-radio input { position: absolute; opacity: 0; pointer-events: none; }
.bk-radio span {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r-md, 14px);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--text-soft); transition: all .18s;
}
.bk-radio span svg { width: 20px; height: 20px; flex: none; }
.bk-radio input:checked + span { border-color: var(--brand-gold); color: #fff; background: rgba(229, 139, 1, 0.08); box-shadow: 0 0 0 3px rgba(229, 139, 1, 0.14); }
.bk-radio input:focus-visible + span { outline: 2px solid var(--brand-gold-light); outline-offset: 2px; }
@media (min-width: 640px) { .bk-format { grid-template-columns: 1fr 1fr; } .bk-format legend { grid-column: 1 / -1; } }
.bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bk-form .field.is-bad input { border-color: #FF8A75; box-shadow: 0 0 0 3px rgba(255, 138, 117, .15); }
.bk-error { margin: 0; padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 110, 90, .1); border: 1px solid rgba(255, 138, 117, .4); color: #FFC2B6; font-size: var(--fs-sm); }
.bk-submit[disabled] { opacity: .6; pointer-events: none; }

/* done */
.bk-done { text-align: center; padding: clamp(1rem, 4vw, 3rem) 0; }
.bk-done__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--grad-gold); color: #08101F; box-shadow: 0 0 0 10px rgba(229, 139, 1, .12), 0 20px 40px -16px rgba(229, 139, 1, .8); margin-bottom: 1.25rem; }
.bk-done__icon svg { width: 34px; height: 34px; stroke-width: 2.4; }
.bk-done h2 { font-size: var(--fs-d3); margin: 0 0 .6rem; }
.bk-done p { color: var(--text-soft); max-width: 520px; margin: 0 auto 1rem; }
.bk-done .bk-done__what { color: #fff; font-size: 1.1rem; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .bk__panel:not([hidden]) { animation: bkIn .35s cubic-bezier(.2, .7, .2, 1); }
  @keyframes bkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 820px) { .bk-cal { max-width: 460px; width: 100%; margin-inline: auto; } }
