/* =====================================================================
   /tilbud — full-screen offer flow.
   Self-contained: loads after styles.css (tokens, .btn-primary) and
   regnr.css (plate input). No Tailwind on this page, so a small reset.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ol, ul, dl, dd, fieldset, figure { margin: 0; }
ol, ul { padding: 0; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--orange-light); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

body.flow {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background-color: #0c0c2d;
  background-image:
    radial-gradient(ellipse 60% 45% at 92% 0%, rgba(249, 115, 22, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(249, 115, 22, 0.06), transparent 70%),
    linear-gradient(160deg, #0c0c2d 0%, #15104a 50%, #0c0c2d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.muted { color: rgba(255, 255, 255, 0.6); font-weight: 500; }

/* ----------------------------------------------------------------- Top bar */
.flow-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 45, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.flow-top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flow-logo { height: 2.15rem; width: auto; flex-shrink: 0; }
.flow-progress { flex: 1; min-width: 0; display: flex; justify-content: center; }
.flow-progress-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.flow-progress-text:hover { background: rgba(255, 255, 255, 0.07); }
.flow-progress-text strong { color: #fff; }
.info-ic { width: 1rem; height: 1rem; color: var(--orange-light); flex-shrink: 0; }
.flow-status { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-status svg { width: 1.25rem; height: 1.25rem; padding: 0.22rem; border-radius: 50%; background: #22c55e; color: #fff; flex-shrink: 0; }
.flow-status strong { color: #fff; }
.fstat-sep { color: rgba(255, 255, 255, 0.35); }
@media (max-width: 420px) { .flow-status .fstat-sep, .flow-status .fstat-sep + span { display: none; } }
.flow-steps { display: none; list-style: none; align-items: center; gap: 0.25rem; }
.flow-steps li { display: flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; font-weight: 600; }
.flow-steps li:not(:last-child)::after {
  content: '';
  width: 2.25rem;
  height: 2px;
  margin: 0 0.5rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.flow-steps li.is-done:not(:last-child)::after { background: rgba(34, 197, 94, 0.6); }
.fs-dot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.fs-dot svg { width: 0.8rem; height: 0.8rem; }
.flow-steps li.is-current { color: #fff; }
.flow-steps li.is-current .fs-dot { border-color: #c2410c; background: #c2410c; color: #fff; box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.22); }
.flow-steps li.is-done { color: rgba(255, 255, 255, 0.8); }
.flow-steps li.is-done .fs-dot { border-color: #22c55e; background: #22c55e; color: #fff; }
@media (min-width: 820px) {
  .flow-steps { display: flex; }
  .flow-progress-text { display: none; }
}
.flow-top-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.close-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn svg { width: 1.1rem; height: 1.1rem; }
.close-btn:hover { background: rgba(255, 255, 255, 0.12); }
.flow-progress-bar { height: 3px; background: rgba(255, 255, 255, 0.06); }
.flow-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transition: width 0.45s ease;
}
.flow-progress-bar span.is-complete { background: #22c55e; }

/* ----------------------------------------------------------------- Layout */
.flow-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
.flow-main { width: 100%; max-width: 600px; margin: 0 auto; min-width: 0; }
.flow-aside { display: none; }
@media (min-width: 1024px) {
  .flow-layout { grid-template-columns: minmax(0, 600px) 320px; justify-content: center; gap: 4.5rem; padding-top: 3rem; }
  .flow-main { margin: 0; }
  .flow-aside { display: block; position: sticky; top: 6.25rem; align-self: start; }
}

.screen { animation: screenIn 0.32s ease both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen, .car-card, .success-mark, .success-mark svg { animation: none !important; }
  .success-mark svg { stroke-dashoffset: 0 !important; }
  .flow-progress-bar span { transition: none; }
}

.screen-title {
  font-size: clamp(1.65rem, 4.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  outline: none;
}
.screen-lead { color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.6rem; }
.screen--center .success-mark { margin-left: 0; }
.section-h { font-size: 1.15rem; font-weight: 800; margin: 2rem 0 1rem; }

.noscript { background: rgba(249, 115, 22, 0.12); border: 1px solid rgba(249, 115, 22, 0.45); border-radius: 1rem; padding: 1rem; line-height: 1.5; }

/* ----------------------------------------------------------------- Question header */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -0.5rem 0 0.75rem; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  margin-left: -0.25rem;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.95rem;
}
.back-btn svg { width: 1.1rem; height: 1.1rem; }
.back-btn:hover { color: #fff; }
.q-count { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.notice {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fef3c7;
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

/* ----------------------------------------------------------------- Fields */
.field { margin-bottom: 1.25rem; }
.field-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.field-opt { font-weight: 500; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-left: 0.2rem; }
.input-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.55), 0 6px 20px rgba(0, 0, 0, 0.18); }
.input-wrap.has-error { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.8), 0 6px 20px rgba(0, 0, 0, 0.18); }
.input-wrap.is-disabled { opacity: 0.45; }
.input-wrap input,
.input-wrap textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.95rem 1rem;
  font-size: 1.075rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}
.input-wrap textarea { font-weight: 500; resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #64748b; font-weight: 500; }
.input-wrap--short { max-width: 12rem; }
.input-wrap input:disabled { cursor: not-allowed; }
.input-prefix,
.input-suffix { display: flex; align-items: center; padding: 0 1rem; color: #64748b; font-weight: 700; font-size: 0.95rem; }
.input-prefix { background: #f1f5f9; border-right: 1px solid #e2e8f0; color: #475569; }
.input-suffix { padding-left: 0.25rem; }
.field-help { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.45rem; line-height: 1.45; }
.field-error { font-size: 0.9rem; font-weight: 600; color: #fca5a5; margin-top: 0.5rem; line-height: 1.4; }
.email-suggest { font-size: 0.9rem; color: #fde68a; margin-top: 0.5rem; }
.email-suggest button { background: none; border: 0; padding: 0; color: #fde68a; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.poststed { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: #86efac; }
.poststed svg { width: 1rem; height: 1rem; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  color: var(--orange-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}
.link-btn:hover { color: #fff; }
.desc-toggle { margin: 0.25rem 0 1rem; min-height: 32px; text-decoration: none; }
.desc-toggle:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- Buttons */
.flow-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  font-size: 1.2rem !important;
  font-weight: 700;
  padding: 1rem 1.5rem !important;
  border-radius: 0.85rem;
  text-align: center;
}
.flow-btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.flow .btn-primary { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); box-shadow: 0 4px 15px rgba(194, 65, 12, 0.35); }
.flow .btn-primary:hover { box-shadow: 0 8px 25px rgba(194, 65, 12, 0.45); }
.flow .skip-link { background: #c2410c; }
.btn-sm { min-height: 44px; padding: 0.55rem 0.95rem; font-size: 0.92rem; }
.is-busy { cursor: progress; }
.flow-btn[aria-busy='true'] { cursor: progress; opacity: 0.9; }
.flow-btn[aria-busy='true'] svg { display: none; }
.spinner { width: 1.1rem; height: 1.1rem; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
}
.flow-btn-secondary:hover { border-color: var(--orange); }
.flow-btn-wide { width: 100%; }
.flow-btn-ghost {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  background: none;
  border: 0;
  padding: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flow-btn-ghost:hover { color: #fff; }

.screen-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 1.5rem;
  padding: 0.9rem 0 calc(0.85rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(12, 12, 45, 0.98) 70%, rgba(12, 12, 45, 0));
}
html { scroll-padding-top: 5.5rem; scroll-padding-bottom: 7.5rem; }
/* While typing on a phone the keyboard already takes half the screen: let the button scroll with the page. */
@media (max-width: 1023px) {
  .screen-form:has(input:is([type="text"], [type="tel"], [type="email"]):focus, textarea:focus) .screen-actions { position: static; background: none; padding-bottom: 0; }
}
@media (max-height: 500px) { .flow-top, .screen-actions { position: static !important; } }
.verify-hint { margin: 0 0 0.65rem; text-align: center; font-size: 0.92rem; font-weight: 700; color: #86efac; line-height: 1.4; }
.consent-note { margin: 0.6rem 0 0; text-align: center; font-size: 0.78rem; line-height: 1.45; color: rgba(255, 255, 255, 0.6); }
.consent-note a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 2px; }
.consent-note a:hover { color: #fff; }
.submit-note { margin: 0.6rem 0 0; text-align: center; font-size: 0.8rem; line-height: 1.45; color: rgba(255, 255, 255, 0.68); }
.next-hint { margin-top: 0.4rem; }
.screen-actions--static { position: static; background: none; }
@media (min-width: 1024px) { .screen-actions { position: static; background: none; padding-bottom: 0; } }
.next-hint { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.65rem; line-height: 1.45; }
.next-hint strong { color: rgba(255, 255, 255, 0.92); }

/* ----------------------------------------------------------------- Car card (step 1) */
.car-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  padding: 1.1rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.car-card + .field-error { margin: 0 0 1rem; }
.car-card-wrap { margin-bottom: 1.6rem; }
.screen-title + .car-card-wrap { margin-top: 1.1rem; }
.car-main { display: flex; align-items: center; gap: 0.9rem; }
.car-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}
.car-icon svg { width: 1.9rem; height: 1.9rem; }
.car-text { flex: 1; min-width: 0; }
.car-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem; }
.car-title { font-size: 1.2rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.car-sub { font-size: 0.9rem; color: rgba(255, 255, 255, 0.66); margin: 0.2rem 0 0.55rem; }
.car-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.fuel-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}
.fuel-badge.is-el { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.32); color: #4ade80; }
/* Wrong car is rare: a quiet «Endre» link beside the plate, not a button */
.car-card .car-edit { font-size: 0.9rem; margin-left: 0.15rem; }
.car-ok { display: inline-flex; align-items: center; gap: 0.35rem; color: rgba(255, 255, 255, 0.66); }
.car-ok svg { width: 1rem; height: 1rem; color: #4ade80; }
.car-card.is-miss,
.car-card.is-error { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.45); }
.car-miss-title { font-weight: 800; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.car-card p.car-miss-text { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.9rem; }
.car-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
/* The ways on after a plate the register couldn't confirm: equal buttons, stacked on a phone (owner, 6 November) */
.car-choices { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.car-choices .flow-btn-secondary { width: 100%; white-space: normal; text-align: center; }
@media (min-width: 560px) { .car-choices { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }
.car-miss-plate { margin: 0.15rem 0 0.55rem; }
.car-card.just-updated { animation: carPulse 1s ease; }
.car-card:focus { outline: none; }
.car-card:focus-visible { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.6); }
@media (max-width: 559px) {
  .car-main { gap: 0.7rem; }
  .car-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; }
  .car-icon svg { width: 1.6rem; height: 1.6rem; }
}
.fuel-pick { margin: 0.9rem 0 0.25rem; padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.car-manual-head + .fuel-pick, .car-manual-note + .fuel-pick { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 1.1rem; }
.fuel-pick.has-error .seg { border-color: rgba(248, 113, 113, 0.85); box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.3); }
.car-card .link-btn, .sent-fix .link-btn, .contact-actions .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
@keyframes carPulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); } }
.plate-row { display: flex; gap: 0.6rem; }
.plate-row .plate-field { flex: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
@media (max-width: 400px) { .plate-row { flex-direction: column; } }
.car-card .field-label { margin-bottom: 0.6rem; }
.car-entry-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.85rem; font-size: 0.9rem; }
.car-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.car-status .spinner { border-color: rgba(255, 255, 255, 0.25); border-top-color: var(--orange); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 25%, rgba(255, 255, 255, 0.16) 37%, rgba(255, 255, 255, 0.07) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skeleton-line { height: 0.8rem; border-radius: 0.4rem; margin-top: 0.55rem; }
.car-icon.skeleton { box-shadow: none; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.car-manual-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.car-card p.car-manual-note { margin-top: -0.4rem; }

/* Turnstile (js/flow-api.js): invisible unless Cloudflare needs the visitor to click something. */
.turnstile-slot { display: flex; justify-content: center; }
.turnstile-slot:empty { display: none; }
.car-card .field:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- Multi-select tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
  min-width: 0;
}
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Count tiles with :nth-of-type — the visually hidden <legend> is the fieldset's first child. */
@media (max-width: 559px) { .tiles > .tile:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; } }
@media (min-width: 560px) {
  .tiles > .tile:last-of-type:nth-of-type(3n + 1) { grid-column: 1 / -1; }
  .tiles > .tile:last-of-type:nth-of-type(3n + 2) { grid-column: span 2; }
}
.tile { position: relative; display: block; cursor: pointer; min-width: 0; }
.tile-input, .opt-input, .seg-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tile-body {
  position: relative;
  height: 100%;
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0.65rem;
  text-align: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.tile:hover .tile-input:not(:checked) + .tile-body { border-color: rgba(249, 115, 22, 0.55); background: rgba(255, 255, 255, 0.08); }
.tile:active .tile-body { transform: scale(0.98); }
.tile-input:focus-visible + .tile-body { outline: 2px solid var(--orange); outline-offset: 2px; }
.tile-input:checked + .tile-body { border-color: var(--orange); background: rgba(249, 115, 22, 0.15); }
.tile-icon { width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; }
.tile-mask {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color 0.18s ease;
}
.tile-icon svg { width: 2.3rem; height: 2.3rem; color: rgba(255, 255, 255, 0.92); transition: color 0.18s ease; }
.tile-input:checked + .tile-body .tile-mask { background-color: var(--orange); }
.tile-input:checked + .tile-body .tile-icon svg { color: var(--orange); }
.tile-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-check svg { width: 0.8rem; height: 0.8rem; color: #fff; opacity: 0; }
.tile-input:checked + .tile-body .tile-check { background: var(--orange); border-color: var(--orange); }
.tile-input:checked + .tile-body .tile-check svg { opacity: 1; }
/* a lone last tile spanning the row reads as a horizontal bar */
@media (max-width: 559px) { .tiles > .tile:last-of-type:nth-of-type(odd) .tile-body { flex-direction: row; min-height: 4.25rem; } }
@media (min-width: 560px) { .tiles > .tile:last-of-type:nth-of-type(3n + 1) .tile-body { flex-direction: row; min-height: 4.25rem; } }

/* ----------------------------------------------------------------- Single-choice option cards */
.opt-group { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.opt-group-label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; padding: 0; }
.options { display: grid; gap: 0.65rem; }
.options.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt-body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover .opt-input:not(:checked) + .opt-body { border-color: rgba(249, 115, 22, 0.55); background: rgba(255, 255, 255, 0.08); }
.opt-input:focus-visible + .opt-body { outline: 2px solid var(--orange); outline-offset: 2px; }
.opt-input:checked + .opt-body { border-color: var(--orange); background: rgba(249, 115, 22, 0.15); }
.opt-radio {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt-radio::after { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform 0.15s ease; }
.opt-input:checked + .opt-body .opt-radio { border-color: var(--orange); }
.opt-input:checked + .opt-body .opt-radio::after { transform: scale(1); }
.opt-text { min-width: 0; }
.opt-text strong { display: block; font-size: 1.02rem; }
.opt-text small { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); line-height: 1.35; }

/* ----------------------------------------------------------------- Segmented rows (equipment) */
.seg-list { margin-bottom: 0.5rem; }
.screen-title + .seg-list { margin-top: 1.4rem; }
.seg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.seg-row:first-child { padding-top: 0; }
.seg-label { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.seg-label small { display: block; font-weight: 500; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.1rem; }
.seg-head { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.seg-error { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; color: #fca5a5; }
.seg-error svg { width: 0.95rem; height: 0.95rem; }
.seg-row.has-error .seg-label { color: #fca5a5; }
.seg-row.has-error .seg { border-color: rgba(248, 113, 113, 0.75); }
.seg {
  display: inline-flex;
  flex-shrink: 0;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.seg label { position: relative; display: block; }
.seg-text {
  display: block;
  min-width: 3.1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.seg label:hover .seg-input:not(:checked) + .seg-text { color: #fff; background: rgba(255, 255, 255, 0.07); }
.seg-input:checked + .seg-text { background: #c2410c; color: #fff; box-shadow: 0 4px 12px rgba(194, 65, 12, 0.4); }
.seg-input:focus-visible + .seg-text { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 520px) {
  .seg-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .seg { display: flex; }
  .seg label { flex: 1; }
  .seg-text { min-width: 0; }
}

/* ----------------------------------------------------------------- Received / done */
.success-mark {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.14);
  animation: popIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.success-mark svg { width: 2.1rem; height: 2.1rem; color: #fff; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.45s 0.25s ease forwards; }
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* After sending: confirmation line, photo ask (only if none were sent), next steps */
.sent-car { margin: 0.4rem 0 1.5rem; text-align: left; }
.sent-car-label { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.sent-car .car-sub:last-child { margin-bottom: 0; }
.sent-contact { margin-bottom: 1.5rem; }
.sent-contact .screen-lead { margin-bottom: 0.4rem; }
.sent-contact strong { color: #fff; overflow-wrap: anywhere; }
.sent-fix { font-size: 0.92rem; }
.mail-ok { color: #86efac !important; font-weight: 600; margin: 0.15rem 0 0.35rem; outline: none; }
.photo-ask {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.17), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 1.15rem;
  padding: 1.25rem;
}
.photo-ask h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.35rem; }
.photo-ask > p:not(.photo-ask-later) { color: rgba(255, 255, 255, 0.78); line-height: 1.5; font-size: 0.95rem; margin-bottom: 1rem; }
.photo-ask [data-action="send-photos"] { margin-top: 0.25rem; }
.photo-ask-later { margin-top: 0.85rem; text-align: center; font-size: 0.85rem; line-height: 1.45; color: rgba(255, 255, 255, 0.64); }
.photos-ok {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-weight: 700;
  outline: none;
}
.photos-ok svg { width: 1.3rem; height: 1.3rem; padding: 0.22rem; border-radius: 50%; background: #22c55e; color: #fff; flex-shrink: 0; }
.sent-foot { margin: 2rem 0 1rem; font-size: 0.9rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.sent-foot [data-ref] { color: #fff; letter-spacing: 0.04em; white-space: nowrap; }

/* ----------------------------------------------------------------- Timeline */
.timeline { list-style: none; position: relative; }
.timeline li { position: relative; padding: 0 0 1.35rem 2.6rem; }
.timeline li::before { content: ''; position: absolute; left: 0.8rem; top: 1.85rem; bottom: 0.15rem; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.tl-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: #13113f;
}
.tl-dot svg { width: 0.85rem; height: 0.85rem; }
.timeline li.is-current .tl-dot::after { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--orange); }
.timeline li.is-todo .tl-dot::after { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.timeline li.is-done::before { background: rgba(34, 197, 94, 0.55); }
.timeline li.is-done .tl-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.timeline li.is-current .tl-dot { border-color: var(--orange); color: var(--orange-light); box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.18); }
.tl-title { font-weight: 700; font-size: 1rem; line-height: 1.35; }
.tl-when { display: inline-block; margin-left: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--orange-light); }
.timeline li.is-done .tl-when { color: #86efac; }
.tl-text { color: rgba(255, 255, 255, 0.64); font-size: 0.9rem; line-height: 1.5; margin-top: 0.15rem; }
.tl-callout { margin-top: 0.6rem; padding: 0.7rem 0.85rem; border-left: 3px solid var(--orange); border-radius: 0.5rem; background: rgba(255, 255, 255, 0.05); font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.timeline--compact li { padding-bottom: 1.05rem; padding-left: 2.35rem; }
.timeline--compact .tl-dot { width: 1.5rem; height: 1.5rem; font-size: 0.7rem; }
.timeline--compact li::before { left: 0.7rem; top: 1.6rem; }
.timeline--compact .tl-title { font-size: 0.92rem; }
.timeline--compact .tl-text { font-size: 0.82rem; }

/* ----------------------------------------------------------------- Photos */
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0 0 0.75rem; }
@media (min-width: 560px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-thumb { position: relative; aspect-ratio: 1; min-width: 0; border-radius: 0.8rem; overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.photo-thumb .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.5rem 0.4rem 1.6rem; font-size: 0.72rem; line-height: 1.25; color: rgba(255, 255, 255, 0.72); text-align: center; overflow: hidden; overflow-wrap: anywhere; }
.photo-fallback svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.photo-progress { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.photo-progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.15s linear; }
.photo-done { position: absolute; left: 0.4rem; bottom: 0.4rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.photo-done svg { width: 0.8rem; height: 0.8rem; }
/* Slice 3: a photo that didn't upload, or didn't finish before a reload */
.photo-thumb.is-problem { border-color: rgba(248, 113, 113, 0.7); }
.photo-thumb.is-problem .preview { opacity: 0.45; }
.photo-problem { position: absolute; left: 0.35rem; right: 0.35rem; bottom: 0.35rem; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.35rem 0.4rem; border-radius: 0.5rem; background: rgba(0, 0, 0, 0.72); font-size: 0.7rem; line-height: 1.25; color: #fff; text-align: center; }
.photo-retry { border: 0; border-radius: 0.4rem; padding: 0.35rem 0.4rem; min-height: 2rem; background: var(--orange); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.upload-wait { margin-top: 0.75rem; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.upload-wait p { margin: 0 0 0.35rem; }
.upload-skip { border: 0; background: none; padding: 0.5rem 0.75rem; min-height: 2.5rem; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.photo-remove { position: absolute; top: 0.35rem; right: 0.35rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.62); color: #fff; display: flex; align-items: center; justify-content: center; }
.photo-remove svg { width: 0.95rem; height: 0.95rem; }
.photo-count { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.5rem; }
.photo-count:empty { display: none; }
.photo-count strong { color: #fff; }

/* ----------------------------------------------------------------- Aside */
.aside-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 1.1rem; padding: 1.2rem 1.25rem; margin-bottom: 1rem; }
.aside-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.9rem; }
.aside-car { display: flex; flex-direction: column; gap: 0.45rem; }
.aside-car strong { font-size: 1.05rem; }
.aside-car .car-meta { margin-top: 0.15rem; }
.aside-help p { font-size: 0.88rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.aside-help p + p { margin-top: 0.35rem; }
.aside-help strong { color: #fff; }

/* ----------------------------------------------------------------- Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 5, 20, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .modal { align-items: center; } }
.modal-card { width: 100%; max-width: 420px; background: #17164b; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.modal-card h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal-card > p { color: rgba(255, 255, 255, 0.75); line-height: 1.5; margin-bottom: 1.25rem; }
.modal-card .flow-btn-ghost { display: block; }
/* Long text (personvern): the card is a column, the text scrolls, the button stays in view */
.modal-card--doc { max-width: 560px; max-height: min(85dvh, 760px); display: flex; flex-direction: column; }
.legal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0.25rem -0.5rem 1rem 0; padding-right: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.legal-body:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; border-radius: 0.5rem; }
.legal-body h2 { font-size: 1rem; font-weight: 800; color: #fff; margin: 1.1rem 0 0.35rem; }
.legal-body p { margin-bottom: 0.6rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.6rem; }
.legal-body li { margin-bottom: 0.2rem; }
.legal-body a { color: var(--orange-light); text-decoration: underline; }
.legal-body .legal-updated { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

/* ----------------------------------------------------------------- Focus */
.flow a:focus-visible,
.flow button:focus-visible,
.flow summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Full-width segmented control (manual fuel picker) */
.seg--full { display: flex; }
.seg--full label { flex: 1; }
.seg--full .seg-text { min-width: 0; padding-left: 0.4rem; padding-right: 0.4rem; }
.tile-label { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------- Reason chips */
.chip-group { border: 0; padding: 0; margin: 0.5rem 0 0; min-width: 0; }
/* «Har du fått tilbud?» reuses the step-2 Ja/Nei row; the amount field under it shows for Ja or Nei. */
.seg-row--field { padding: 0; border-bottom: 0; margin: 1.5rem 0 0; }
.seg-row--field ~ [data-offer-field], .seg-row--field ~ [data-price-field] { margin-top: 1.25rem; }
.chip-group--reason { margin-top: 2rem; }
.chip-group legend { padding: 0; }
.chip-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-opt { position: relative; }
.chip-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-opt:hover .seg-input:not(:checked) + .chip-text { border-color: rgba(249, 115, 22, 0.55); }
.chip-opt .seg-input:checked + .chip-text { background: #c2410c; border-color: #c2410c; color: #fff; }
.chip-opt .seg-input:focus-visible + .chip-text { outline: 2px solid #fff; outline-offset: 2px; }

/* ----------------------------------------------------------------- Pick many photos */
.pick-many {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  font-weight: 700;
  cursor: pointer;
}
.pick-many:hover { background: rgba(249, 115, 22, 0.18); }
.pick-many:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.pick-many input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick-many svg { width: 1.3rem; height: 1.3rem; color: var(--orange-light); }
.pick-many.is-full { opacity: 0.55; cursor: not-allowed; }
.pick-many-help { margin: 0.5rem 0 1rem; font-size: 0.85rem; line-height: 1.45; color: rgba(255, 255, 255, 0.62); }

/* ----------------------------------------------------------------- Help line (phones) + dialogs */
.flow-help-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); text-align: center; }
.flow-help-line svg { width: 1rem; height: 1rem; color: var(--orange-light); }
@media (min-width: 1024px) { .flow-help-line { display: none !important; } }
.modal-help { margin: -0.5rem 0 1.1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
#process-sheet .modal-card { max-height: calc(100vh - 2rem); overflow: auto; }
#process-sheet .timeline { margin: 0.75rem 0 1.25rem; }

/* ----------------------------------------------------------------- Contact correction */
.contact-edit { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 1rem; padding: 1rem 1.1rem; }
.contact-edit .field { margin: 0.75rem 0 0; }
.contact-edit .input-wrap input { padding: 0.75rem 0.9rem; font-size: 1rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.9rem; }
.contact-actions .flow-btn-secondary { white-space: normal; text-align: center; }

/* ----------------------------------------------------------------- Long words never overflow (320px, long e-mails, unbroken names) */
.tl-title, .tl-text, .aside-car strong, .email-suggest button, .sent-contact p { overflow-wrap: anywhere; min-width: 0; }
.email-suggest button { text-align: left; }

/* ----------------------------------------------------------------- Narrow top bar */
.flow-progress-text { overflow: hidden; }
.flow-progress-text strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .flow-top-inner { gap: 0.4rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .flow-logo { height: 1.85rem; }
  .flow-progress-text { padding: 0.4rem 0.4rem; font-size: 0.8rem; gap: 0.25rem; }
  .flow-status { font-size: 0.82rem; }
  .close-btn { width: 2.6rem; height: 2.6rem; }
}
