/* =========================================================================
   MOBILVERSION — KONTAKT / BOOK (book.html), telefon (≤ 809.98px)

   Page-only layer on top of css/mobil.css. Everything sits inside the phone
   media block (plus the guard at the end), and every selector is scoped to
   body.cm-page-book, so desktop and the other pages are untouched.
   Behaviour: js/mobil-book.js (booking pop-up scroll).

   Order on the phone:
     eyebrow → title → intro → trust (hearts + rating) → the form
     → "Vil du skrive først?" + socials
   The trust line comes up under the intro (on desktop it sits in the left
   column next to the form); the "write first" alternative closes the page.
   ========================================================================= */

@media (max-width: 809.98px) {

  /* ---------------------------------------------------------------------
     1. FRAME — 20px gutter, eyebrow closer under the bar (was 160px down).
     --------------------------------------------------------------------- */
  body.cm-page-book [data-framer-name="Book A Session"] {
    padding-top: 92px !important;
    padding-bottom: 24px !important;               /* the footer brings its own air */
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-Pi41w {
    gap: 14px !important;                          /* eyebrow → title */
  }
  body.cm-page-book [data-framer-name="Book A Session"] :is(.framer-1qrrsp8, .framer-1dtxzwq) {
    padding-left: var(--cm-m-gutter, 20px) !important;
    padding-right: var(--cm-m-gutter, 20px) !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] :is(.framer-1bv8mug, .framer-i0v4gm, .framer-zB5lY, .framer-1v90fve, .framer-swg9ar) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* The column wrappers dissolve so the pieces can be reordered: the trust
     block moves up between the intro and the form. */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-adl8p {
    gap: 0 !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-s06wt2 {
    display: contents !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-i0v4gm           { order: 1; }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1v90fve          { order: 2; margin-top: 32px !important; }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1aj04st-container { order: 3; margin-top: 64px !important; }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-swg9ar           { order: 4; margin-top: 64px !important; }

  /* ---------------------------------------------------------------------
     2. INTRO — title sized so "Forandring starter" stays on one line down
     to 360px (the line ends in a no-break space, so it needs ~8.9em).
     --------------------------------------------------------------------- */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-i0v4gm {
    gap: 18px !important;
    width: 100% !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-89jy4q h2,
  body.cm-page-book [data-framer-name="Book A Session"] .framer-89jy4q h2 * {
    font-size: min(40px, calc((100vw - 2 * var(--cm-m-gutter, 20px)) / 8.9)) !important;
    --framer-font-size: min(40px, calc((100vw - 2 * var(--cm-m-gutter, 20px)) / 8.9)) !important;
    line-height: 1.08 !important;
    --framer-line-height: 1.08 !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-ccgg2l p,
  body.cm-page-book [data-framer-name="Book A Session"] .framer-ccgg2l p * {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
    --framer-line-height: 1.65 !important;    text-wrap: pretty;                               /* no lone last word */
  }

  /* ---------------------------------------------------------------------
     3. TRUST — "Betroet af over 1.000+ kvinder", the hearts, the rating:
     one tight group under the intro, a hairline above to set it apart.
     --------------------------------------------------------------------- */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1v90fve {
    gap: 12px !important;
    width: 100% !important;
    padding-top: 28px !important;
    border-top: 1px solid rgba(74, 55, 48, 0.1);
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1v90fve a[data-framer-name="Raiting"] {
    gap: 12px !important;
    height: auto !important;
  }
  /* mobil-book.js puts the other pages' trust line here; Framer's own goes */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1v90fve:has(> .cm-mb-proof) > :not(.cm-mb-proof) {
    display: none !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-28rcza p {
    font-size: 14px !important;
    --framer-font-size: 14px !important;
  }

  /* ---------------------------------------------------------------------
     4. THE FORM — one column, the fields as on the computer (no boxes),
     16px text so iOS never zooms, the button full width.
     --------------------------------------------------------------------- */
  body.cm-page-book [data-framer-name="Book A Session"] :is(.framer-1aj04st-container, .framer-zB5lY, form.framer-1wbinl1) {
    width: 100% !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] form.framer-1wbinl1 {
    gap: 48px !important;                            /* between the groups */
    overflow: visible !important;                    /* focus rings */
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-zB5lY {
    overflow: visible !important;
  }
  /* group headings ("Fortæl lidt om dig." …) */
  body.cm-page-book [data-framer-name="Book A Session"] form h5.framer-text,
  body.cm-page-book [data-framer-name="Book A Session"] form h5.framer-text * {
    font-size: 24px !important;
    --framer-font-size: 24px !important;
    line-height: 1.2 !important;
    --framer-line-height: 1.2 !important;
    text-wrap: balance;
  }
  body.cm-page-book [data-framer-name="Book A Session"] form :is(.framer-1sio9fd, .framer-viunjy, .framer-17yq99m) {
    height: auto !important;
  }
  /* group A (heading + 3 fields + situation) and B (heading + textarea) */
  body.cm-page-book [data-framer-name="Book A Session"] :is(.framer-ts2pi8, .framer-q2i47n, .framer-1pmjxm1) {
    align-items: stretch !important;
    gap: 18px !important;
    height: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] :is(.framer-ts2pi8, .framer-q2i47n, .framer-1pmjxm1) > :first-child {
    margin-bottom: 4px !important;                   /* heading → first field */
  }

  /* fields: as on the computer — no boxes, no labels above; the
     placeholder (or the dropdown's first line, greyed while nothing is
     chosen) says what goes where. 16px so iOS never zooms, 44px to tap.
     The dropdown opens the site's own list (custom.js). */
  body.cm-page-book [data-framer-name="Book A Session"] form .framer-form-input-wrapper {
    width: 100% !important;
    height: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] form :is(input.framer-form-input, select.framer-form-input) {
    height: 44px !important;
    min-height: 44px !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] form :is(input.framer-form-input, select.framer-form-input, textarea.framer-form-input) {
    font-size: 16px !important;
    --framer-input-font-size: 16px !important;
  }

  /* Interest choices: plain rows as on the computer, each row a full-width
     tap target. */
  body.cm-page-book [data-framer-name="Book A Session"] [data-framer-name="Checkboxes"] {
    gap: 14px !important;                            /* rows as far apart as on the computer */
    width: 100% !important;
    height: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] [data-framer-name="Checkboxes"] > label {
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.cm-page-book [data-framer-name="Book A Session"] [data-framer-name="Checkboxes"] > label > div {
    flex: 1 1 auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] [data-framer-name="Checkboxes"] > label p {
    white-space: normal !important;
  }
  /* a tick in the filled box, so "chosen" doesn't rely on colour alone */
  body.cm-page-book [data-framer-name="Book A Session"] form input.framer-form-boolean-input:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 72% 72% !important;
  }

  /* group D: "Hvor har du hørt om mig?" */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-19yo463 {
    width: 100% !important;
    height: auto !important;
  }

  /* group E: newsletter — box + question on one line, the small print
     lined up under the question */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1tav76j {
    gap: 6px !important;
    height: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-hdkk6y {
    align-items: flex-start !important;
    gap: 12px !important;
    min-height: 44px !important;
    height: auto !important;
    padding-top: 10px !important;
    cursor: pointer;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-hdkk6y input.framer-form-boolean-input {
    width: 22px !important;
    height: 22px !important;
    margin-top: 1px !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-hdkk6y > div {
    flex: 1 1 0 !important;
    width: auto !important;
    height: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-hdkk6y p {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.45 !important;    text-wrap: balance;                              /* no "e-" / "mail" split */
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1k4bo8w {
    width: auto !important;
    height: auto !important;
    padding-left: 34px !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1k4bo8w p {
    font-size: 14px !important;
    --framer-font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* the button: full width, the site's ink pill */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1e3sc8m-container {
    width: 100% !important;
    height: 52px !important;
    margin-top: -8px !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1e3sc8m-container button {
    justify-content: center !important;
    -webkit-tap-highlight-color: transparent;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1e3sc8m-container button:active {
    transform: scale(0.98);
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1e3sc8m-container .framer-h6q7mv {
    position: relative !important;
    left: auto !important;
    transform: none !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1e3sc8m-container :is(.framer-gcw9qk) {
    top: 50% !important;
    right: 22px !important;
    left: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1e3sc8m-container :is(.framer-1ont0yg) {
    display: none !important;
  }

  /* ---------------------------------------------------------------------
     5. "VIL DU SKRIVE FØRST?" + socials — the quiet way out at the end.
     --------------------------------------------------------------------- */
  body.cm-page-book [data-framer-name="Book A Session"] .framer-swg9ar {
    gap: 14px !important;
    width: 100% !important;
    padding-top: 32px !important;
    border-top: 1px solid rgba(74, 55, 48, 0.1);
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1kf3n9q {
    width: 100% !important;
    height: auto !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1kf3n9q p {
    font-size: 16px !important;
    --framer-font-size: 16px !important;
    line-height: 1.65 !important;
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-1kf3n9q p a {
    white-space: nowrap !important;                  /* "Send mig en mail" in one piece */
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-15f3pzw {
    gap: 4px !important;
    padding: 0 !important;
    margin-left: -6px !important;                    /* icons' own air */
  }
  body.cm-page-book [data-framer-name="Book A Session"] .framer-15f3pzw > [class*="-container"] {
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
  }

  /* ---------------------------------------------------------------------
     6. ROUND BOOK BUTTON — not on this page on the phone: you are already
     on the booking page, and it sat over the left edge of the fields (and
     would sit over a field while the keyboard is up).
     --------------------------------------------------------------------- */
  body.cm-page-book .cm-book-dock {
    display: none !important;
  }

  /* ---------------------------------------------------------------------
     7. BOOKING POP-UP (.cm-bk-*, built by custom.js) — a full-height sheet
     from the bottom instead of a small floating card with its own scroll.
     The menu button steps aside while it is open.
     --------------------------------------------------------------------- */
  html.cm-bk-locked body.cm-page-book .cm-mbtn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  body.cm-page-book .cm-bk-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  body.cm-page-book .cm-bk-card {
    flex-direction: column !important;
    max-width: none !important;
    height: calc(100% - 16px) !important;
    max-height: none !important;
    border-radius: 22px 22px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(40px) !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  }
  body.cm-page-book .cm-bk-overlay.cm-bk-open .cm-bk-card {
    transform: none !important;
  }
  body.cm-page-book .cm-bk-close {
    position: fixed !important;                      /* stays put while the sheet scrolls */
    top: 28px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
    background: rgba(255, 255, 255, 0.92) !important;   /* floats over the sheet as it scrolls */
    box-shadow: 0 0 0 1px rgba(74, 55, 48, 0.1), 0 6px 18px -6px rgba(74, 55, 48, 0.35) !important;
  }
  body.cm-page-book .cm-bk-aside {
    flex: none !important;
    max-width: none !important;
    gap: 14px !important;
    padding: 28px var(--cm-m-gutter, 20px) 22px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--cm-bk-line) !important;
  }
  body.cm-page-book .cm-bk-aside-back {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 2px !important;
  }
  body.cm-page-book .cm-bk-title {
    padding-right: 52px;                             /* clear of the close button */
    font-size: 26px !important;
    line-height: 1.15 !important;
  }
  body.cm-page-book .cm-bk-meta { gap: 9px !important; margin-top: 2px !important; }
  body.cm-page-book .cm-bk-meta-row { font-size: 15px !important; }
  body.cm-page-book .cm-bk-main {
    flex: none !important;
    overflow: visible !important;
    padding: 24px var(--cm-m-gutter, 20px) calc(36px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.cm-page-book .cm-bk-main-head {
    font-size: 22px !important;
    margin-bottom: 18px !important;
  }
  body.cm-page-book .cm-bk-dt-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  body.cm-page-book .cm-bk-cal-arrow {
    width: 44px !important;
    height: 44px !important;
  }
  body.cm-page-book .cm-bk-day {
    width: 44px !important;
    font-size: 16px !important;
  }
  body.cm-page-book .cm-bk-cal-grid { gap: 4px 0 !important; }
  body.cm-page-book .cm-bk-tz { margin-top: 18px !important; }
  body.cm-page-book .cm-bk-slots {
    max-height: none !important;
    overflow: visible !important;
    gap: 10px !important;
    padding-right: 0 !important;
    scroll-margin-top: 24px;
  }
  body.cm-page-book .cm-bk-slot,
  body.cm-page-book .cm-bk-slot-row.cm-bk-active .cm-bk-slot-confirm {
    min-height: 48px !important;
    padding: 13px 10px !important;
    font-size: 16px !important;
  }
  body.cm-page-book .cm-bk-form-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  body.cm-page-book :is(.cm-bk-input, .cm-bk-textarea) {
    font-size: 16px !important;                      /* no iOS zoom */
  }
  body.cm-page-book .cm-bk-input { height: 52px !important; }
  body.cm-page-book .cm-bk-phone-flag { font-size: 16px !important; }
  body.cm-page-book .cm-bk-consent {
    gap: 12px !important;
    padding: 4px 0 !important;
    font-size: 14px !important;
    cursor: pointer;
  }
  body.cm-page-book .cm-bk-consent input {
    width: 22px !important;
    height: 22px !important;
    margin-top: 0 !important;
  }
  body.cm-page-book .cm-bk-actions {
    justify-content: stretch !important;
    margin-top: 24px !important;
  }
  body.cm-page-book .cm-bk-submit,
  body.cm-page-book .cm-bk-done-close {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }
  body.cm-page-book .cm-bk-pane-done {
    padding-top: 24px !important;
  }
}

