/* sporsmal.css — «Fortell oss hva du ønsker å oppnå». Samme mønster som om-oss.css: egen :root, ingen embedded <style> (Content-Security-Policy).
   Ligger i public_html/default/. Alle trykkflater er minst 44 px høye. */

:root {
  --ink: #1a1410; --parchment: #f5f0e8; --cream: #faf8f3;
  --gold: #b8913a; --gold-dark: #8a6a25; --muted: #6b6255; --border: #d6cbb8; --feil: #a33a2c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cormorant Garamond', Georgia, serif; background: var(--cream); color: var(--ink); line-height: 1.6; }
header { background: var(--ink); color: var(--parchment); padding: 1.2rem 1.25rem; border-bottom: 3px solid var(--gold); }
header a { color: var(--parchment); text-decoration: none; }
.logo-mark { font-size: 1.6rem; font-weight: 300; }
.logo-mark span { color: var(--gold); font-style: italic; }
main { max-width: 640px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.js-skjult { display: none !important; }
.skjult-felt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tilbake { display: inline-flex; align-items: center; min-height: 44px; font-family: 'DM Mono', monospace; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); text-decoration: none; }
h1 { font-size: 1.8rem; font-weight: 400; line-height: 1.25; margin: 0.3rem 0 0.6rem; }
h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.ingress { font-size: 1.1rem; color: var(--muted); font-style: italic; margin-bottom: 1.4rem; }
a { color: var(--gold-dark); }

.felt-tittel { display: block; font-family: 'DM Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.2rem 0 0.4rem; padding: 0; }
textarea, input[type="email"] { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 0.75rem; min-height: 44px; }
textarea { resize: vertical; min-height: 9rem; }
textarea:focus, input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hjelp { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; display: flex; justify-content: space-between; gap: 0.75rem; }
.teller { font-family: 'DM Mono', monospace; font-size: 0.7rem; white-space: nowrap; padding-top: 0.2rem; }

fieldset { border: 0; min-width: 0; }
.valg-gruppe { margin-top: 1.2rem; }
.valg-gruppe legend.felt-tittel { margin: 0 0 0.4rem; padding: 0; }
.store-valg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.valg-knapp, .ja-nei { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; background: #fff; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 1.05rem; }
.valg-knapp input, .ja-nei input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.valg-knapp:has(input:checked), .ja-nei:has(input:checked) { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.valg-knapp:has(input:focus-visible), .ja-nei:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.ja-nei-rad { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.7rem; }
.ja-nei-rad legend { float: left; flex: 1; padding: 0; font-size: 1.05rem; line-height: 48px; }
.ja-nei { width: 76px; flex: 0 0 76px; }

.samtykke { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.4rem; font-size: 0.95rem; line-height: 1.45; }
.samtykke input { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 0.1rem; accent-color: var(--ink); }

.feil { color: var(--feil); font-size: 1rem; min-height: 1.4em; margin-top: 0.8rem; }
.send-knapp { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 0.4rem; background: var(--gold); color: var(--ink); border: 0; border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.send-knapp:disabled { opacity: 0.6; cursor: default; }
.send-knapp:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.liten { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 0.7rem; }

.info-boks { background: #f0ece0; border-left: 3px solid var(--gold); padding: 0.8rem 1rem; margin: 0 0 1.2rem; color: var(--muted); font-size: 0.95rem; }

.hake { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 1rem 0 0.6rem; }
.dette-skjer { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.1rem 1.2rem; margin: 1.2rem 0 1.6rem; }
.dette-skjer ol { margin-left: 1.2rem; }
.dette-skjer li { margin-bottom: 0.5rem; }
.lenke-knapp { text-decoration: none; }

.sidefot { border-top: 1px solid var(--border); padding: 1.5rem 1.25rem 2rem; text-align: center; font-size: 0.85rem; color: var(--muted); }
.footer-bunn { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1rem; margin-top: 0.5rem; }
.footer-bunn-lenke { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* Når skjemaet vises i et vindu over veiviseren (?modal=1): ingen topptekst, bunntekst eller tilbakelenke */
body.i-modal header, body.i-modal footer, body.i-modal .tilbake { display: none; }
body.i-modal main { margin: 0 auto; padding-top: 1rem; }
body.i-modal h1 { font-size: 1.55rem; }

.eks-linje { margin: 0 0 0.6rem; font-size: 0.98rem; line-height: 1.5; color: var(--muted); }
.eks-knapp { display: inline-block; margin: 0.25rem 0.3rem 0.1rem 0; padding: 0.4rem 0.8rem; min-height: 40px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font: inherit; font-size: 0.98rem; color: var(--ink); cursor: pointer; text-align: left; }
.eks-knapp:hover, .eks-knapp:focus-visible { border-color: var(--gold); }
