/* Felles stil for alle interesseskjemaene. Ett skjema per målgruppe ligger i hver sin mappe. */
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/SchibstedGrotesk.ttf); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-latin.ttf); font-weight: 100 900; font-display: swap; }

:root {
  --night: oklch(0.16 0.035 285);
  --paper: oklch(0.975 0.006 285);
  --card: oklch(0.995 0.003 285);
  --ink: oklch(0.2 0.03 285);
  --muted: oklch(0.44 0.025 285);
  --faint: oklch(0.5 0.02 285);
  --line: oklch(0.89 0.012 285);
  --violet: oklch(0.45 0.2 285);
  --violet-soft: oklch(0.945 0.032 285);
  --amber: oklch(0.85 0.155 84);
  --amber-deep: oklch(0.77 0.16 76);
  --on-amber: oklch(0.21 0.05 70);
  --on-night: oklch(0.97 0.008 285);
  --on-night-muted: oklch(0.79 0.025 285);
  --ok: oklch(0.56 0.14 155);
  --bad: oklch(0.52 0.19 25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Schibsted Grotesk", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--on-night); -webkit-font-smoothing: antialiased;
  background: radial-gradient(760px 560px at 86% 4%, oklch(0.45 0.2 285 / 0.6), transparent 70%), radial-gradient(620px 460px at -8% 108%, oklch(0.3 0.1 250 / 0.6), transparent 70%), var(--night); background-attachment: fixed; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 2px; border-radius: 8px; }
h1, h2 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }

.top { display: flex; align-items: center; gap: 14px; width: min(1120px, 100% - 40px); margin: 0 auto; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: inherit; white-space: nowrap; }
.mark i { width: 30px; height: 17px; border-radius: 5px; background: var(--amber); box-shadow: 0 0 20px oklch(0.85 0.155 84 / 0.75); }
.mark span { color: var(--on-night-muted); font-weight: 500; font-family: Inter, sans-serif; font-size: 0.85rem; letter-spacing: 0; }
.top .sp { margin-left: auto; }
.lang { display: flex; border-radius: 999px; box-shadow: 0 0 0 1px oklch(1 0 0 / 0.2) inset; padding: 3px; font-size: 0.82rem; font-weight: 650; }
.lang button { padding: 8px 12px; border-radius: 999px; color: var(--on-night-muted); }
.lang button[aria-pressed="true"] { background: var(--on-night); color: var(--night); }

.page { width: min(1120px, 100% - 40px); margin: 0 auto; padding: clamp(12px, 3vw, 40px) 0 64px; display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.who { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 650; padding: 8px 15px 8px 12px; border-radius: 999px; background: oklch(1 0 0 / 0.08); box-shadow: 0 0 0 1px oklch(1 0 0 / 0.14) inset; margin-bottom: 22px; }
.who i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 870; letter-spacing: -0.05em; line-height: 0.97; overflow-wrap: break-word; hyphens: auto; }
h1 em { font-style: normal; color: var(--amber); }
.lead { color: var(--on-night-muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 40ch; margin-top: 18px; }
.promise { list-style: none; margin-top: 28px; display: grid; gap: 14px; color: var(--on-night-muted); font-size: 0.97rem; }
.promise li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.promise li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--amber) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2109' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.promise b { color: var(--on-night); font-weight: 650; }
.deadline { margin-top: 30px; padding-top: 20px; border-top: 1px solid oklch(1 0 0 / 0.14); font-size: 0.92rem; color: var(--on-night-muted); }
.deadline b { color: var(--amber); font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.02em; }

form { background: var(--paper); color: var(--ink); border-radius: 30px; box-shadow: 0 50px 90px -40px oklch(0.04 0.03 285 / 0.9); overflow: hidden; overflow: clip; min-width: 0; }   /* clip keeps the rounded corners without stopping the sticky button row */
.wz-head { padding: 22px clamp(20px, 3.4vw, 36px) 0; }
.wz-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.88rem; font-weight: 650; color: var(--muted); }
.wz-meta .right { display: inline-flex; align-items: center; gap: 14px; }
.counted { display: none; align-items: center; gap: 7px; color: oklch(0.42 0.12 155); }
.counted.on { display: inline-flex; }
.counted::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.wz-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.wz-bar i { display: block; height: 100%; border-radius: 3px; background: var(--violet); transition: width 500ms var(--ease); }
.wz-body { padding: 26px clamp(20px, 3.4vw, 36px) 8px; min-height: 430px; }
.wz-body > * { animation: qin 340ms var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateX(14px); } }
.wz-body .sec { font-size: 0.9rem; font-weight: 700; color: var(--violet); margin-bottom: 8px; }
.wz-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 840; line-height: 1.06; }
.wz-body h2:focus { outline: none; }
.hintx { color: var(--muted); font-size: 0.98rem; margin: 8px 0 22px; }
.q { margin-bottom: 22px; }
.ql { display: block; font-weight: 660; font-size: 1.02rem; margin-bottom: 10px; line-height: 1.35; }
.ql small { font-weight: 400; color: var(--faint); font-size: 0.85em; }

.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.flow { display: flex; flex-wrap: wrap; }
.opts label { position: relative; cursor: pointer; display: block; }
.opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opts span { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 12px 16px; border-radius: 17px; box-shadow: 0 0 0 1.5px var(--line) inset; background: var(--card); font-weight: 620; font-size: 1.03rem; line-height: 1.25; transition: background 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.opts span::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--faint) inset; background: center / 13px no-repeat; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.opts input[type=checkbox] + span::before { border-radius: 7px; }
.opts.flow span { min-height: 46px; padding: 8px 14px 8px 11px; gap: 8px; font-size: 0.95rem; border-radius: 15px; }
.opts.flow span::before { width: 18px; height: 18px; border-radius: 6px; background-size: 11px; }
.opts.flow input[type=radio] + span::before { border-radius: 50%; }
.opts label:hover span { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.opts label:active span { transform: scale(0.985); }
.opts input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.opts input:checked + span::before { box-shadow: none; background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2109' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opts input:focus-visible + span { outline: 3px solid var(--amber-deep); outline-offset: 2px; }
.maxhint { font-size: 0.86rem; color: var(--bad); font-weight: 600; margin-top: 8px; display: none; }
.maxhint.on { display: block; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { position: relative; cursor: pointer; }
.scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.scale span { display: grid; place-items: center; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1.5px var(--line) inset; background: var(--card); font-family: var(--display); font-weight: 800; font-size: 1.45rem; transition: background 160ms var(--ease), color 160ms var(--ease); }
.scale label:hover span { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.scale input:checked + span { background: var(--violet); color: var(--paper); box-shadow: none; }
.scale input:focus-visible + span { outline: 3px solid var(--amber-deep); outline-offset: 2px; }
.ends { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f input, .f textarea { width: 100%; padding: 14px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.f textarea { min-height: 120px; resize: vertical; }
.f input:hover, .f textarea:hover { border-color: var(--faint); }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px oklch(0.45 0.2 285 / 0.18); }
.other { margin-top: 10px; }
.err { display: none; color: var(--bad); font-size: 0.88rem; margin-top: 7px; font-weight: 580; }
.bad > .err { display: block; }
.bad input:not([type=checkbox]):not([type=radio]) { border-color: var(--bad); }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; color: var(--muted); cursor: pointer; padding: 14px 16px; border-radius: 16px; background: var(--violet-soft); }
.consent input { width: 22px; height: 22px; accent-color: var(--violet); margin-top: 2px; }
.q.bad .consent { box-shadow: 0 0 0 1.5px var(--bad) inset; }
.elsewhere { margin: 10px 0 0; }

.wz-foot { display: flex; align-items: center; gap: 10px; padding: 16px clamp(20px, 3.4vw, 36px) 18px; margin-top: 8px; position: sticky; bottom: 0; background: var(--paper); }
.wz-foot .sp { margin-left: auto; }
.wz-foot .back, .wz-foot .skip { min-height: 46px; padding: 10px 14px; border-radius: 999px; font-weight: 650; font-size: 0.95rem; color: var(--muted); }
.wz-foot .back:hover, .wz-foot .skip:hover { color: var(--ink); background: var(--violet-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1.04rem; text-decoration: none; background: var(--amber); color: var(--on-amber); transition: transform 200ms var(--ease), background 200ms var(--ease); }
.btn:hover { background: var(--amber-deep); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: oklch(0.34 0.17 285); }
.wz-stop { text-align: center; padding: 0 20px 20px; margin-top: -6px; }
.wz-stop button { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); min-height: 44px; padding: 8px 12px; }
.wz-stop button:hover { color: var(--ink); }
.thanks { padding: clamp(28px, 5vw, 52px) clamp(20px, 3.4vw, 36px); }
.thanks h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 880; letter-spacing: -0.045em; line-height: 1; }
.thanks p { color: var(--muted); margin: 14px 0 24px; max-width: 50ch; }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.foot { width: min(1120px, 100% - 40px); margin: 0 auto; padding: 0 0 40px; font-size: 0.86rem; color: var(--on-night-muted); }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .page { grid-template-columns: 1fr; gap: 22px; padding-top: 6px; }
  h1 { font-size: 2.1rem; }
  .lead { margin-top: 12px; }
  .promise, .deadline { display: none; }
  .who { margin-bottom: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .mark span { display: none; }
  .wz-foot .skip { padding-inline: 8px; }
}
@media (max-width: 420px) { .opts.two { grid-template-columns: 1fr; } .opts.two.short { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .top { gap: 8px; } .mark b { font-size: 0.92rem; } .mark i { width: 24px; } .lang button { padding: 8px 9px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.thanks .also { margin-top: 14px; }
.thanks .also a { color: inherit; font-weight: 700; }

.notme { text-decoration: underline; font-weight: 650; color: inherit; min-height: 44px; }
