/* termin · the booking panel (v8 components.css .panel): three real rows, then the call-back request form.
   Markup: _tools/v8_next/termin.py. Behaviour: 95-termin.js. Tokens and the primary button are v8's; this is layout.
   The panel keeps v8's sheet: from the right on D/T, from the bottom on P. No motion of its own: v8's panel-in stays. */

/* the head stays on screen while the sheet scrolls, so „Schließen" is always one tap away */
.panel { overscroll-behavior: contain; scroll-padding-top: 96px; }
.panel .panel-top { position: sticky; top: -24px; z-index: 2; margin: -24px -36px 0; padding: 24px 36px 12px; background: var(--paper); }
.panel .panel-list { margin-top: 24px; }

/* ---------- the form ---------- */
.rr { margin-top: 48px; }
.rr-h { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: var(--ls-h4); }
.rr-fields { display: grid; gap: 20px; margin-top: 20px; }
.rr-f { display: grid; gap: 6px; }
.rr-l { font-size: var(--fs-ui); line-height: var(--lh-ui); }
.rr-opt { color: var(--ink-64); }
.rr-i {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--mist); color: var(--ink); font: inherit; font-size: max(16px, var(--fs-body)); line-height: 1.5;   /* ≥ 16 px: no iOS zoom */
}
.rr-i:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 0; }
.rr-sel { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231A1A18' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.rr-ta { min-height: 104px; resize: vertical; }
.rr-i[aria-invalid="true"] { border-color: var(--ink); }
.rr-err { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink); font-weight: var(--fw-statement); }
.rr-err[hidden] { display: none; }

/* the honeypot: out of sight and out of the tab order, still in the form for bots */
.rr-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.rr-note { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
.rr-note + .rr-note { margin-top: -12px; }
.rr-note a { color: var(--blue-deep); }
.rr-go { justify-self: start; }
.rr-go:disabled { cursor: progress; }

.rr-status:empty { display: none; }
.rr-status { margin-top: 20px; font-size: var(--fs-body); line-height: var(--lh-body); outline-offset: 4px; }
.rr-status a { color: var(--blue-deep); white-space: nowrap; }
.rr.is-sent .rr-fields { display: none; }
.rr.is-sent .rr-status { padding: 20px 24px; border-radius: var(--r-sm); background: var(--mist); }

@media (max-width: 809.98px) {
  .panel { scroll-padding-top: 88px; }
  .panel .panel-top { margin: -24px calc(-1 * var(--side)) 0; padding: 24px var(--side) 12px; }
  .rr { margin-top: 40px; }
  /* the on-screen keyboard is open (95-termin.js reads visualViewport): the sheet fits the part of the screen left */
  .panel.rr-kb { margin: var(--rr-vv-top, 0px) 0 auto; max-height: var(--rr-vv-h, 100dvh); border-radius: 0; }
}
