/* Contact pop-up, built from "Positiv_Contact_Form.html": a light card on the blurred page; every question is an underlined field;
   the fit-quiz questions open a list where each option has a title and a short line. Positiv fonts (Optima Nova, Poppins) and colours.
   Opened by js/contact-modal.js from any link to /contact (or a URL ending in #contact). */
.cm { --ink: #211d1d; --card: #f2f2ed; --panel: #f7f6f2; --muted: rgb(33 29 29 / .6); --faint: rgb(33 29 29 / .45); --line: rgb(33 29 29 / .22);
  --hover: rgb(33 29 29 / .05); --electric: #5915ff; --lime: #f0f879; --error: #b42318;
  position: fixed; inset: 0; z-index: 100000; display: flex; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 40px 16px; background: rgb(33 29 29 / .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .35s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .35s;
  font-family: "Poppins", system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased; }
.cm.is-open { opacity: 1; visibility: visible; transition: opacity .35s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.cm *, .cm *::before, .cm *::after { box-sizing: border-box; }
html.cm-lock, html.cm-lock body { overflow: hidden !important; }

.cm__card { position: relative; width: 100%; max-width: 760px; margin: auto; padding: clamp(28px, 4vw, 48px) clamp(20px, 7vw, 72px); border-radius: 24px; background: var(--card);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55); transform: translate3d(0, 16px, 0) scale(.985); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.cm.is-open .cm__card { transform: none; }
.cm__card:focus { outline: none; }

.cm__close { position: fixed; top: 28px; right: 28px; z-index: 1; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--card);
  background: transparent; color: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .25s ease, color .25s ease; }
.cm__close:hover { background: var(--card); color: var(--ink); }

/* heading */
.cm__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; }
.cm__title { margin: 0 0 12px; font-family: var(--f-display, "Optima Nova", "Optima", Georgia, serif); font-weight: 400; font-size: clamp(40px, 5vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.cm__mail { font-size: 16px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cm__mail:hover { color: var(--ink); text-decoration-color: var(--faint); }
.cm__sub { max-width: none; margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.cm__sub[hidden], .cm__mail[hidden] { display: none; }
/* trial pop-up emphasis, same as the menu cards: grey words around the dark key word; "15 days free." darker and heavier */
.cm__title .cm__dim { color: #aaaaa7; }
.cm__strong { color: var(--ink); font-weight: 500; }

/* answers carried over from the fit quiz */
.cm__banner { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: rgb(89 21 255 / .08); font-size: 14px; line-height: 1.5; }
.cm__banner svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--electric); }
.cm__banner[hidden], .cm__field[hidden] { display: none; }

/* fields: one underlined row each, 66px tall */
/* two columns: name + email, company + size; industry, needs and the message take the full width */
.cm__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
.cm__field--full, .cm__form > :not(.cm__field) { grid-column: 1 / -1; }
.cm__field { position: relative; display: grid; min-width: 0; }
.cm__line { display: block; width: 100%; min-height: 66px; margin: 0; padding: 18px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; font: 400 17px/1.5 "Poppins", system-ui, sans-serif; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.cm__line::placeholder, .cm__box::placeholder { color: var(--faint); opacity: 1; }
.cm__line:focus { outline: none; border-bottom-color: var(--ink); }
.cm__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cm__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* dropdowns: the native select stays for the value and validation; the button and list are what people use */
.cm__native { position: absolute; inset: 0 0 auto; width: 100%; height: 66px; opacity: 0; pointer-events: none; }
.cm__trigger { display: flex; flex-direction: column; justify-content: center; padding: 10px 30px 10px 2px; text-align: left; cursor: pointer; }
.cm__trigger:hover, .cm__field.is-open .cm__trigger { border-bottom-color: var(--ink); }
.cm__trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cm__tl { font-size: 12px; line-height: 1.3; color: var(--faint); }
.cm__tv { font-size: 17px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm__trigger.is-empty .cm__tv { color: var(--faint); }
.cm__chev { position: absolute; right: 2px; top: 25px; width: 16px; height: 16px; pointer-events: none; transition: transform .2s ease; }
.cm__field.is-open .cm__chev { transform: rotate(180deg); }

.cm__list { position: absolute; left: 0; right: 0; top: 74px; z-index: 5; max-height: min(480px, 70vh); margin: 0; padding: 8px; list-style: none; overflow-y: auto;
  background: var(--panel); border-radius: 16px; box-shadow: 0 18px 50px rgb(33 29 29 / .18), 0 0 0 1px var(--line);
  display: none; }
/* closed lists take no space at all (a hidden but present list would make the window scroll) */
.cm__field.is-open .cm__list { display: block; animation: cm-list-in .18s ease both; }
@keyframes cm-list-in { from { opacity: 0; transform: translate3d(0, -4px, 0); } to { opacity: 1; transform: none; } }
.cm__opt-hint { padding: 6px 12px 8px; font-size: 12px; line-height: 1.4; color: var(--faint); cursor: default; }
.cm__opt { position: relative; display: block; padding: 12px 44px 12px 12px; border-radius: 12px; cursor: pointer; transition: background-color .15s ease; }
.cm__opt:hover, .cm__opt.is-active, .cm__opt[aria-selected="true"] { background: var(--hover); }
.cm__opt-title, .cm__opt-desc { display: block; }
.cm__opt-title { font-size: 16px; line-height: 1.3; }
.cm__opt-desc { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.cm__opt-check { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--electric); opacity: 0; }
.cm__opt[aria-selected="true"] .cm__opt-check { opacity: 1; }
.cm__opt.is-disabled { opacity: .38; cursor: not-allowed; }
.cm__opt.is-disabled:hover, .cm__opt.is-disabled.is-active { background: transparent; }
.cm__opt-sep { height: 1px; margin: 6px 12px; background: var(--line); }

/* a field that needs fixing: red line, red placeholder, its message underneath */
.cm__field.is-invalid .cm__line { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.cm__field.is-invalid .cm__line::placeholder, .cm__field.is-invalid .cm__trigger.is-empty .cm__tv { color: var(--error); }
.cm__ferr { display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--error); }
.cm__ferr[hidden] { display: none; }

.cm__box { display: block; width: 100%; height: 96px; min-height: 72px; margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--ink); border-radius: 14px; resize: vertical;
  background: transparent; font: 400 16px/1.5 "Poppins", system-ui, sans-serif; color: var(--ink); transition: box-shadow .2s ease; }
.cm__box:focus { outline: none; box-shadow: 0 0 0 1px var(--ink); }

.cm__error { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--error); }
.cm__error[hidden] { display: none; }
.cm__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; }

/* Positiv button: ink pill, lime label, a lime circle grows from the bottom on hover */
.cm__send { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  height: 56px; padding: 0 40px; border-radius: 36px; border: 1px solid var(--ink); background: var(--ink); color: var(--lime);
  font: 400 16px/1 "Poppins", system-ui, sans-serif; cursor: pointer;
  transition: color .45s cubic-bezier(.16, 1, .3, 1) .05s, transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s; }
.cm__send::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 150%; aspect-ratio: 1; border-radius: 50%; background: var(--lime);
  transform: translate(-50%, -50%) scale(0); transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.cm__send:hover { color: var(--ink); }
.cm__send:hover::before, .cm__send:focus-visible::before { transform: translate(-50%, -50%) scale(1.15); }
.cm__send:active { transform: scale(.98); }
.cm__send:disabled { opacity: .45; cursor: not-allowed; color: var(--lime); }
.cm__send:disabled::before { transform: translate(-50%, -50%) scale(0); }
.cm__send.is-sending { pointer-events: none; opacity: .7; }

/* sent */
.cm__thanks { display: flex; flex-direction: column; align-items: center; padding: 24px 0 8px; text-align: center; }
.cm__thanks[hidden], .cm__form[hidden] { display: none; }
.cm__done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: var(--lime); }
.cm__done-mark svg { width: 24px; height: 24px; }
.cm__done-title { margin: 0 0 12px; font-family: var(--f-display, "Optima Nova", "Optima", Georgia, serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 44px); line-height: 1.1; color: var(--ink); }
.cm__done-title:focus { outline: none; }
.cm__done-text { max-width: 42ch; margin: 0 auto 24px; color: var(--muted); }
.cm__ghost { padding: 0; border: 0; background: none; font: 400 14px/1.5 "Poppins", system-ui, sans-serif; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cm__ghost:hover { color: var(--ink); }

.cm__close:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.cm__send:focus-visible, .cm__mail:focus-visible, .cm__ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 767px) {
  .cm { padding: 76px 16px 24px; }
  .cm__card { border-radius: 18px; }
  .cm__form { grid-template-columns: minmax(0, 1fr); }
  .cm__close { top: 16px; right: 16px; }
  .cm__send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cm, .cm__card, .cm__line, .cm__chev, .cm__send, .cm__send::before { transition: none; }
}
/* "Book a 30-minute call": the line under the heading, then the email */
.cm__lead { max-width: 440px; margin: 0 0 12px; }
