/* booking.css: Nora's own time booking, from her Figma (16 Nov 2026, version 3). Old versions in archive/booking-2026-11-16*.css.
   Desktop: frame 1440, 1 Figma px = var(--u) (set by booking-layout.js). Content edges 120 and 1320.
   - Three titles with the same style and size: "Boka in ett 20 min samtal", the day ("Tisdag 17 November"), "Hur vill du ses?".
   - The times are centred on the page (x 534–906), bigger boxes and bigger numbers.
   - "Hur vill du ses?" mirrors the day title: same top, centred over the form column (x 1046–1320).
   - "Annan dag eller tid" opens the field "Önskat datum eller tid" under "Vad vill du prata om?" (PROPOSAL design).
   Colours: black outline on yellow; chosen = black with yellow text. No animation. */
.bk-own { --bu: var(--u, 1px); position: relative; }
.bk-hp { position: absolute; left: -9999px; }
.bk-req { font-weight: 700; }

/* the three titles: one style */
.bk-col-title { margin: 0; font: 600 calc(var(--bu) * 26)/1.2 var(--font-heading); color: var(--black); }
.bk-day-title, .bk-how-title { text-align: center; }

/* buttons: times and "Annan dag eller tid" */
.bk-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: calc(var(--bu) * 46); padding: 0;
  border: 1px solid var(--black); border-radius: calc(var(--bu) * 6); background: transparent; color: var(--black); cursor: pointer;
  font: 600 calc(var(--bu) * 20)/1 var(--font-heading); }
.bk-btn:hover, .bk-btn:focus-visible { background: rgba(255, 255, 255, .35); }
.bk-btn.is-chosen, .bk-btn.is-chosen:hover { background: var(--black); color: var(--yellow); }   /* Nora 20 Nov: black + yellow only when chosen */
.bk-slots { display: flex; flex-direction: column; gap: calc(var(--bu) * 14); }
.bk-other { margin-top: calc(var(--bu) * 14); font-size: calc(var(--bu) * 17); }

/* the form: lines under the fields */
.bk-form { display: flex; flex-direction: column; gap: calc(var(--bu) * 38); margin: 0; }
.bk-how { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--bu) * 14); }
.bk-how label { position: relative; cursor: pointer; }
.bk-how input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-how span { display: flex; align-items: center; justify-content: center; height: calc(var(--bu) * 46); padding: 0 calc(var(--bu) * 8);
  border: 1px solid var(--black); border-radius: 999px; font: 700 calc(var(--bu) * 15)/1 var(--font-heading); white-space: nowrap; }
.bk-how input:checked + span { background: var(--black); color: var(--yellow); }
.bk-how input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.bk-field { display: flex; flex-direction: column; gap: calc(var(--bu) * 4); font: 700 calc(var(--bu) * 15)/1.2 var(--font-heading); }
.bk-field[hidden] { display: none; }
.bk-field input, .bk-field textarea { font: 400 calc(var(--bu) * 17)/1.4 var(--font-body); color: var(--black); background: transparent;
  border: 0; border-bottom: 1px solid var(--black); border-radius: 0; padding: calc(var(--bu) * 8) 0; resize: none; }
.bk-field input::placeholder { color: rgba(0, 0, 0, .5); }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-bottom-width: 2px; }
/* the wish field (PROPOSAL): a thin black line on the left marks it as belonging to "Annan dag eller tid" */
.bk-wish { padding-left: calc(var(--bu) * 12); border-left: 2px solid var(--black); }
/* "Skicka förfrågan": yellow with black text and a black line (Nora, 16 Nov) */
.bk-send { align-self: flex-end; height: calc(var(--bu) * 54); padding: 0 calc(var(--bu) * 34); border: 1.5px solid var(--black); border-radius: 999px;
  background: var(--yellow); color: var(--black); font: 700 calc(var(--bu) * 18)/1 var(--font-heading); cursor: pointer; }
.bk-send:hover, .bk-send:focus-visible, .bk-send:active { background: var(--black); color: var(--yellow); }
.bk-send:disabled { opacity: .4; cursor: default; }
.bk-status { margin: 0; font: 400 calc(var(--bu) * 16)/1.5 var(--font-body); }
.bk-status a { color: inherit; font-weight: 700; }
.bk-form.is-sent .bk-how, .bk-form.is-sent .bk-field, .bk-form.is-sent .bk-send { display: none; }

/* desktop: placed on the 1440 frame.
   Times: day title top 94, buttons from 136, 5 × 46 + gaps 14 → "Annan dag eller tid" ends at 482.
   Form: pills at 136 (level with 09:00); the line under "Vad vill du prata om?" ends at 482 (level with "Annan dag eller tid"). */
@media (min-width: 761px) {
  .bk.is-figma .bk-own { width: calc(var(--u) * 1440); margin: 0 auto; min-height: calc(var(--u) * 600); }
  .bk.is-figma .bk-own:has(.bk-form.is-wish) { min-height: calc(var(--u) * 700); }
  .bk.is-figma .bk-lead { position: absolute; left: calc(var(--u) * 120); top: calc(var(--u) * 264); width: max-content; text-align: center; }   /* left is set by booking.js: centred under the title */
  .bk.is-figma .bk-left { position: absolute; left: calc(var(--u) * 534); top: calc(var(--u) * 94); width: calc(var(--u) * 372); }
  .bk.is-figma .bk-day-title { margin-bottom: calc(var(--u) * 11); }
  .bk.is-figma .bk-how-title { position: absolute; left: calc(var(--u) * 1046); top: calc(var(--u) * 94); width: calc(var(--u) * 274); }
  .bk.is-figma .bk-form { position: absolute; left: calc(var(--u) * 1046); top: calc(var(--u) * 136); width: calc(var(--u) * 274); }
  .bk.is-figma .bk-form.is-sent { top: calc(var(--u) * 136); }
}
@media (max-width: 760px) {
  .bk-own { --bu: 1px; display: flex; flex-direction: column; gap: 20px; }
  .bk-lead { margin-bottom: 12px; }
  .bk-day-title { margin-bottom: 12px; }
  .bk-how-title { margin-top: 36px; }
  .bk-form { gap: 26px; }
  .bk-field textarea { min-height: 72px; }
}

/* Nora 17 Nov: "Skicka förfrågan" the same size as the two buttons under "Hur vill du ses?" (130 × 46, same text) */
.bk-send { height: calc(var(--bu) * 46); padding: 0 calc(var(--bu) * 8); font-size: calc(var(--bu) * 15); white-space: nowrap; }
@media (min-width: 761px) { .bk.is-figma .bk-send { width: calc(var(--u) * 130); } }
@media (max-width: 760px) { .bk-send { width: calc((100% - 14px) / 2); } }

/* Nora 18 Nov: a booked time says "Bokad tid" (toned down, still clickable to explain why).
   Clicking it shows a message in place of "Hur vill du ses?" and the form, at the same height as
   "Boka in ett 20 min samtal" (centred on the row of the middle time), so the three parts stay balanced. */
.bk-btn.is-booked, .bk-btn.is-booked:hover { border-color: #BD8E04; color: #7A5C02; background: transparent; cursor: not-allowed; font-weight: 600; }
.bk-taken-msg { margin: 0; font: 600 calc(var(--bu) * 20)/1.4 var(--font-heading); color: var(--black); }
.bk-taken-msg[hidden], .bk-form[hidden], .bk-how-title[hidden] { display: none; }
@media (min-width: 761px) {
  .bk.is-figma .bk-taken-msg { position: absolute; left: calc(var(--u) * 1046); top: calc(var(--u) * 279.6); transform: translateY(-50%);
    width: calc(var(--u) * 274); }
}
@media (max-width: 760px) { .bk-taken-msg { margin-top: 28px; } }

/* Nora 18 Nov: the thank-you text after a booking or a wish sits at the same height as "Boka in ett 20 min samtal"
   (centred on the row of the middle time), in the same style as the "Bokad tid" message. */
.bk-form.is-sent .bk-status { font: 600 calc(var(--bu) * 20)/1.4 var(--font-heading); }
@media (min-width: 761px) {
  .bk.is-figma .bk-form.is-sent { top: calc(var(--u) * 279.6); transform: translateY(-50%); }
  .bk.is-figma .bk-form.is-sent .bk-status { position: static; }
}

/* ===== Mobile booking, airy and balanced (Nora 19 Nov) =====
   390 frame, 20 px rhythm. Three clear groups with 48 px between them: 1) the day and its times,
   2) "Hur vill du ses?", 3) your details. Group titles left-aligned like the rest of the text on mobile.
   Times in two columns (thumb-friendly 52 px tall), "Annan dag eller tid" full width under them,
   the send button full width at the bottom. */
@media (max-width: 760px) {
  .bk-own { gap: 0; }
  .bk-own .bk-lead { margin: 8px 0 40px; font-size: 18px; line-height: 1.35; font-weight: 600; }
  .bk-own .bk-day-title, .bk-own .bk-how-title { text-align: left; font-size: 20px; line-height: 1.2; margin: 0 0 16px; }
  .bk-own .bk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .bk-own .bk-btn { height: 52px; border-radius: 10px; font-size: 18px; }
  .bk-own .bk-other { margin-top: 12px; font-size: 16px; }
  .bk-own .bk-how-title { margin-top: 48px; }
  .bk-own .bk-form { gap: 24px; }
  .bk-own .bk-how { gap: 12px; margin-bottom: 8px; }
  .bk-own .bk-how span { height: 52px; font-size: 15px; }
  .bk-own .bk-field { font-size: 14px; gap: 2px; }
  .bk-own .bk-field input, .bk-own .bk-field textarea { font-size: 16px; padding: 10px 0; }   /* 16 px: phones don't zoom in on focus */
  .bk-own .bk-field textarea { min-height: 56px; }
  .bk-own .bk-send { width: 100%; height: 52px; font-size: 17px; margin-top: 8px; }
  .bk-own .bk-status { font-size: 15px; }
  .bk-own .bk-taken-msg { margin-top: 48px; font-size: 18px; }
}
