:root {
  --ink: #240505;
  --paper: #fff;
  --wine: #ff147e;
  --wine-dark: #d90065;
  --pink: #ff147e;
  --brand-mauve: #b5a1a6;
  --sand: #f6f0f2;
  --muted: #78666b;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--ink); }
body, input, button, select, textarea {
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 16px;
}
h1, h2, .serif { font-family: "Bricolage Grotesque", Georgia, serif; }
.test-banner {
  background: #240505;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.page {
  min-height: 100vh;
  background: var(--brand-mauve);
  padding: 1.2rem 1rem 3rem;
}
.wrap { max-width: 48rem; margin: 0 auto; }
.card {
  background: var(--paper);
  border-radius: 28px;
  padding: 1.6rem 1.4rem 2rem;
  box-shadow: 0 25px 50px rgba(0,0,0,.3);
}
.card.narrow { max-width: 26rem; }
.kicker { letter-spacing: .08em; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 3rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, button.btn:hover { background: var(--wine-dark); }
.btn.ghost, button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(36,5,5,.2);
}
.btn.full { width: 100%; }
label, .field { display: block; margin: 0 0 1rem; font-weight: 600; }
.req { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  min-height: 2.5rem;
  border: 1px solid #cdbfc4;
  border-radius: 8px;
  padding: .4rem .7rem;
  background: #fff;
  font-weight: 400;
}
textarea { min-height: 6rem; }
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.brand { display: flex; align-items: center; gap: 1rem; }
.logo, .logo-sm {
  width: 4.5rem; height: 4.5rem; object-fit: contain; filter: drop-shadow(0 1px 2px #0002);
}
.logo-sm { width: 3rem; height: 3rem; }
.lang-btn {
  border: 1px solid rgba(36,5,5,.2);
  background: transparent;
  border-radius: 999px;
  padding: .4rem .8rem;
  cursor: pointer;
}
.step-meta { color: var(--muted); font-size: .9rem; margin: 0 0 .3rem; }
.progress { height: 6px; background: #efe6e8; border-radius: 99px; margin: 0 0 1.2rem; }
.progress > span { display: block; height: 100%; background: var(--wine); border-radius: 99px; }
.choices { display: grid; gap: .7rem; }
.check {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid rgba(0,0,0,.1); border-radius: 16px; padding: 1rem;
}
.check input { width: auto; min-height: 0; margin-top: .2rem; }
.info {
  display: flex; gap: 1rem; border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px; padding: 1rem; margin: 0 0 .8rem;
}
.badge {
  flex: none;
  width: 1.5rem; height: 1.5rem; border-radius: 99px;
  background: var(--pink); color: #fff;
  display: grid; place-items: center; font-size: .8rem; margin-top: .15rem;
}
.warn {
  border: 2px solid #fbbf24;
  background: #fffbeb;
  border-radius: 16px;
  padding: 1rem;
}
.dialog-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: grid; place-items: center; padding: 1rem; z-index: 20;
}
.dialog {
  background: #fff; border-radius: 20px; padding: 1.4rem; max-width: 28rem; width: 100%;
}
.nav { display: flex; gap: .6rem; margin-top: 1.4rem; }
.nav .btn { flex: 1; }
.sig-wrap { border: 1px solid rgba(0,0,0,.15); border-radius: 16px; background: #fff; }
.sig-wrap canvas { width: 100%; height: 160px; touch-action: none; display: block; }
.alert { background: #fde8e8; color: #8a1f11; padding: .8rem 1rem; border-radius: 12px; }
.alert.ok { background: #e8f6ee; color: #14532d; }
.footer-note { color: var(--muted); font-size: .9rem; margin-top: 1.2rem; }
.lang-screen { text-align: center; padding: 2rem 1.4rem; }
.lang-screen h1 { font-size: 2.2rem; margin: .4rem 0 0; }
.lang-logo {
  width: 6.5rem; height: 6.5rem; margin: 0 auto; border-radius: 999px;
  background: var(--ink); object-fit: contain; padding: .5rem; display: block;
}
.success { text-align: center; }
.success h1 { font-size: 2rem; }
.social a { display: block; }
.admin { color: var(--ink); }
.admin .wrap { background: var(--sand); border-radius: 20px; padding: 1.2rem; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.actions, .inline { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inline { margin: 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid #eee; font-size: .95rem; }
.facts { display: grid; grid-template-columns: 8rem 1fr; gap: .3rem 1rem; }
.privacy h1 { margin: .2rem 0; }
.privacy h2 { margin-top: 1.4rem; }
.row { display: flex; gap: 1rem; align-items: flex-start; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 640px) {
  .logo { width: 3.6rem; height: 3.6rem; }
  .card { padding: 1.2rem 1rem 1.6rem; }
  .facts { grid-template-columns: 1fr; }
}

.found-us { border: 0; margin: 0 0 1.2rem; padding: 0; }
.found-us legend { font-weight: 600; margin-bottom: .6rem; }

.flag {
  display: inline-block;
  background: #fff4d6;
  color: #7a4d00;
  padding: .15rem .45rem;
  border-radius: 8px;
  font-size: .85rem;
}

.choice-row { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin: 0.4rem 0 1.2rem; }
.utkast { font-size: 0.9rem; }

.reserve-block { margin: 1.4rem 0 1.6rem; }
.reserve-block h2 { margin-bottom: .5rem; }
.reserve-box {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d7d0c6;
  border-radius: 12px;
  padding: .85rem 1rem;
  margin: .7rem 0 1rem;
}
.reserve-box input { width: auto; min-height: 0; margin-top: .25rem; flex: 0 0 auto; }
.boks-merknad { font-size: .85rem; margin: .15rem 0 1.15rem; }
.boks-ingress { margin: 1rem 0 .55rem; }
.oversettelse-merknad {
  background: #fff4d6;
  color: #7a4d00;
  padding: .6rem .8rem;
  border-radius: 10px;
  font-size: .95rem;
}
.erklæring table {
  width: 100%;
  border-collapse: collapse;
  margin: .8rem 0 1.2rem;
  font-size: .95rem;
}
.erklæring th, .erklæring td {
  text-align: left;
  vertical-align: top;
  padding: .5rem .6rem;
  border: 1px solid #e4ddd4;
}
.erklæring th { background: var(--sand, #f3eee6); }

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .35rem;
  list-style: none;
  margin: 0 0 .7rem;
  padding: 0;
}
.stepper li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
  font-size: .7rem;
  line-height: 1.2;
  color: var(--muted, #6b6460);
}
.stepper button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.stepper-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 99px;
  background: #efe6e8;
  font-weight: 700;
  font-size: .75rem;
}
.stepper .is-current { color: var(--wine, #4a1c24); font-weight: 600; }
.stepper .is-current .stepper-nr { background: var(--wine, #4a1c24); color: #fff; }
.stepper .is-done { color: var(--wine, #4a1c24); }
.stepper .is-done .stepper-nr { background: #c9a3aa; color: #fff; }
.health-choice { margin: .2rem 0 1rem; }
.health-takeup {
  background: var(--sand, #f4ece4);
  border-radius: 12px;
  padding: .8rem 1rem;
  margin: 0 0 1rem;
}
.foto-beskjed {
  background: var(--sand, #f4ece4);
  border-radius: 12px;
  padding: .8rem 1rem;
  margin: .4rem 0 1.2rem;
}
.foto-beskjed[hidden] { display: none; }
.foto-valg .boks-merknad { margin-left: .2rem; }
.info-kort { margin: 1.2rem 0 1.4rem; }
.info-kort h2 { margin-bottom: .4rem; }
.found-us select { width: 100%; }
.found-us-hint { margin: .35rem 0 0; }

.janei-sporsmal { margin: 1.15rem 0; }
.janei-spm { margin: 0 0 .6rem; font-weight: 600; }
.janei-valg { margin: 0; }

.sovende-valg { margin: 0; }
.sovende-les-mer { margin: .4rem 0 0 1.85rem; }
.sovende-les-mer summary {
  cursor: pointer;
  color: var(--wine, #4a1c24);
  font-weight: 600;
  display: inline;
}
.sovende-les-mer .sovende-fulltekst {
  margin: .55rem 0 0;
  padding: .6rem .75rem;
  background: #f7f3f4;
  border-radius: 8px;
  font-weight: 400;
  max-width: 40rem;
}

.success .takk-linje { margin: 0 0 .6rem; }
