/* Boka möte (/boka-mote/): a portrait opener, then a vertical three-step timeline whose line draws down with the
   scroll, with the (inert) booking form docked beside it at >= 1024 px and inline after the steps below that. */

/* ---------- hero ---------- */
.boka-hero { padding: var(--s-7) 0 var(--s-8); background: radial-gradient(60% 80% at 0% 0%, rgba(230,237,245,.75), rgba(230,237,245,0) 70%); }
.boka-hero__in { display: grid; gap: var(--s-6); align-items: center; }
.boka-hero__pic { aspect-ratio: 4 / 3; }
.boka-hero__pic picture, .boka-hero__pic img { width: 100%; height: 100%; }
.boka-hero__pic img { object-position: 62% 28%; }
.boka-hero__text h1 { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.25rem); margin-bottom: var(--s-5); max-width: 13ch; }
.boka-hero__text .bl-lede { margin-bottom: var(--s-6); max-width: 36rem; }
@media (min-width: 1024px) {
  .boka-hero { padding: var(--s-7) 0 var(--s-9); }
  .boka-hero__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .boka-hero__pic { aspect-ratio: 5 / 6; max-height: calc(100vh - var(--bar-h) - 150px); min-height: 420px; width: auto; }
  .boka-hero__pic img { object-position: 50% 30%; }
}
@media (max-width: 759.98px) { .boka-hero { padding-top: var(--s-5); } .boka-hero__pic { aspect-ratio: 4 / 3; } .boka-hero__pic img { object-position: 62% 24%; } }

/* ---------- the timeline ---------- */
.boka-flow__in { display: grid; gap: var(--s-8); }
.boka-steps__h { margin-bottom: var(--s-7); }
.boka-steps__body { position: relative; --line-end: 0px; }
.boka-steps__line {
  position: absolute; left: 21px; top: 22px; bottom: var(--line-end); width: 2px; border-radius: 1px; background: var(--line);
}
.boka-steps__fill { position: absolute; inset: 0; background: var(--teal); transform-origin: 50% 0; transform: scaleY(var(--fill, 1)); border-radius: 1px; }
.boka-steps__list { list-style: none; display: grid; gap: var(--s-8); }
.boka-step { position: relative; padding-left: 76px; }
.boka-step__n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font: 500 1.375rem/1 var(--f-head); box-shadow: 0 0 0 6px var(--cream);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
html.js:not(.rm) .boka-step:not(.is-on) .boka-step__n { background: var(--paper); color: var(--teal); box-shadow: 0 0 0 6px var(--cream), inset 0 0 0 2px var(--teal); }
.boka-step__pic { aspect-ratio: 3 / 2; margin-bottom: var(--s-5); }
.boka-step__pic picture, .boka-step__pic img { width: 100%; height: 100%; }
.boka-step h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); margin-bottom: var(--s-3); }
.boka-step p { max-width: 36rem; }
@media (max-width: 559.98px) {
  .boka-step { padding-left: 60px; }
  .boka-step__n { width: 40px; height: 40px; font-size: 1.25rem; }
  .boka-steps__line { left: 19px; top: 20px; }
}

/* ---------- the docked form ---------- */
.boka-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-float);
  padding: clamp(20px, 3vw, 32px);
}
.boka-form__h { font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); margin-bottom: var(--s-3); }
.boka-form__inert {
  margin: 0 0 var(--s-5); padding: 10px 14px; border-left: 4px solid var(--teal); border-radius: 0 var(--r-1) var(--r-1) 0;
  background: rgba(220,229,239,.6); font-size: var(--small); line-height: 1.45; max-width: none;
}
.boka-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--s-4); }
.boka-field { margin: 0; min-width: 0; }
.boka-field--wide { grid-column: 1 / -1; }
.boka-field > label, .boka-field legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.boka-field input[type="text"], .boka-field input[type="email"], .boka-field input[type="tel"],
.boka-field input[type="datetime-local"], .boka-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #7F8794; border-radius: var(--r-1);
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--f-text);
}
.boka-field textarea { resize: vertical; min-height: 64px; }
.boka-field input:focus-visible, .boka-field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.boka-choice { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.boka-choice legend { width: 100%; }
.boka-choice label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; cursor: pointer;
  border: 1.5px solid #7F8794; border-radius: var(--r-pill); background: #fff; font-size: .9375rem; font-weight: 500;
}
.boka-choice input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.boka-choice label:has(input:checked) { border-color: var(--teal); background: rgba(220,229,239,.55); }
.boka-choice label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.boka-upload input[type="file"] { display: block; width: 100%; min-height: 46px; padding: 8px 0; font: 400 .9375rem/1.3 var(--f-text); }
.boka-upload input[type="file"]::file-selector-button {
  min-height: 40px; margin-right: 12px; padding: 0 16px; border: 1.5px solid var(--teal); border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font: 600 .9375rem/1 var(--f-text); cursor: pointer;
}
.boka-upload__hint { font-size: .875rem; color: var(--mute); margin-top: 2px; }
.boka-upload__name { font-size: .9375rem; font-weight: 600; color: var(--teal-deep); margin-top: 4px; }
.boka-upload__name:empty { display: none; }
.boka-form__submit { margin-top: var(--s-4); width: 100%; }
.boka-form__done:not(:empty) {
  margin-top: var(--s-4); padding: 12px 14px; border-radius: var(--r-1); background: var(--sun); font-weight: 600; max-width: none;
}
@media (max-width: 479.98px) { .boka-form__grid { grid-template-columns: 1fr; } .boka-form__grid > * { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .boka-flow__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
  .boka-dock { position: sticky; top: var(--dock-top, calc(var(--bar-h) + 24px)); margin-top: calc(var(--h2) * 1.06 + var(--s-7)); }
}

/* ---------- close ---------- */
.boka-close { padding: var(--s-9) 0; background: radial-gradient(70% 120% at 80% 100%, rgba(155,179,207,.3), rgba(155,179,207,0) 70%), var(--sun); }
.boka-close__in h2 { margin-bottom: var(--s-4); max-width: 18ch; }
.boka-close__in .bl-lede { margin-bottom: var(--s-6); max-width: 38rem; }
@media (max-width: 759.98px) { .boka-close { padding: var(--s-8) 0; } }
