/* Skademodul (offentlig). Bygger på merkevariablene i booking_flyt.css (--bf-*, bf-toyota/bf-lexus).
   Mobil først: én kolonne, ett steg i fokus, store trykkflater. */
body.bf-toyota, body.bf-lexus { background: var(--bf-page) !important; }
.main-content:has(> .dm) { padding: 0; }
.dm { color: var(--bf-ink); font-family: var(--bf-font); min-height: 100vh; background: var(--bf-page); text-align: left; }
.dm h1, .dm h2, .dm h3 { font-family: var(--bf-font); color: var(--bf-ink); text-transform: var(--bf-head-tt);
  letter-spacing: var(--bf-head-ls); }
.dm a { color: var(--bf-ink); }
.dm :focus-visible { outline: 3px solid var(--bf-focus); outline-offset: 2px; }
.dm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dm-top { background: #fff; border-bottom: 1px solid var(--bf-line); }
.dm-in { max-width: 720px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; }
.dm-brand { font-weight: 600; font-size: 1.1rem; text-transform: var(--bf-head-tt); letter-spacing: var(--bf-head-ls); }
.dm-top-dealer { color: var(--bf-muted); font-size: .9rem; text-align: right; }
.dm-main { max-width: 720px; margin: 0 auto; padding: 0 16px 64px; }

.dm-hero { padding: 28px 0 12px; }
.dm-hero-tight { padding-bottom: 0; }
.dm-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
.dm-sub { display: block; font-size: 1rem; font-weight: 400; color: var(--bf-muted); text-transform: none; letter-spacing: 0; }
.dm-lead { font-size: 1.05rem; line-height: 1.55; margin: 0 0 16px; max-width: 60ch; }
.dm-muted { color: var(--bf-muted); font-size: .92rem; }
.dm-note { margin-top: 16px; font-size: .95rem; }
.dm-crumb { margin: 0 0 8px; font-size: .92rem; color: var(--bf-muted); }
.dm-crumb a { text-decoration: none; }
.dm-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 22px; border: 2px solid var(--bf-cta); border-radius: var(--bf-r-btn); background: var(--bf-cta);
  color: #fff !important; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; font-size: 1rem; }
.dm-btn:hover { background: var(--bf-cta-hover); border-color: var(--bf-cta-hover); }
.dm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.dm-btn-ghost { background: #fff; color: var(--bf-ink) !important; border-color: var(--bf-ink); }
.dm-btn-ghost:hover { background: var(--bf-surface); border-color: var(--bf-ink); }
.dm-btn-wide { width: 100%; margin-top: 16px; }
.dm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }

.dm-card { background: #fff; border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: 20px; margin: 16px 0; }
.dm-card h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; }
.dm-split { display: grid; gap: 16px; }
@media (min-width: 600px) { .dm-split { grid-template-columns: 1fr 1fr; } }
.dm-plain { list-style: none; padding: 0; margin: 0; }
.dm-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dm-tags li { background: var(--bf-surface); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.bf-lexus .dm-tags li { border-radius: 0; }
.dm-howto { margin: 0; padding-left: 1.2em; line-height: 1.6; }
.dm-faq { border-top: 1px solid var(--bf-line); padding: 12px 0; }
.dm-faq summary { cursor: pointer; font-weight: 600; }
.dm-faq p { margin: 8px 0 0; }

/* Verkstedliste */
.dm-group-title { font-size: 1rem; font-weight: 600; color: var(--bf-muted); margin: 20px 0 8px; }
.dm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dm-dealer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px;
  border: 1px solid var(--bf-line); border-left: 4px solid var(--bf-line); border-radius: var(--bf-r);
  background: #fff; text-decoration: none; }
.dm-dealer:hover, .dm-dealer:focus-visible { border-left-color: var(--bf-cta); }
.dm-dealer-name { display: block; font-weight: 600; font-size: 1.05rem; }
.dm-dealer-addr, .dm-dealer-dist { display: block; color: var(--bf-muted); font-size: .9rem; }
.dm-go { font-weight: 600; white-space: nowrap; }

/* Stegindikator */
.dm-progress { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); margin: 16px 0 4px; padding: 0; }
.dm-progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--bf-muted); font-size: .72rem; font-weight: 600; }
.dm-progress li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--bf-line); }
.dm-progress li:first-child::before { display: none; }
.dm-n { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--bf-line); background: #fff; }
.bf-lexus .dm-n { border-radius: 0; }
.dm-progress li.done, .dm-progress li[aria-current="step"] { color: var(--bf-ink); }
.dm-progress li.done .dm-n { border-color: var(--bf-ink); }
.dm-progress li.done::before, .dm-progress li[aria-current="step"]::before { background: var(--bf-ink); }
.dm-progress li[aria-current="step"] .dm-n { background: var(--bf-ink); border-color: var(--bf-ink); color: #fff; }
@media (max-width: 520px) { .dm-l { display: none; } }

/* Skjema */
.dm-step { padding: 8px 0; }
.dm-step h2 { font-size: 1.3rem; font-weight: 700; margin: 16px 0 8px; }
.dm-step h2:focus { outline: none; }
.dm-label { display: block; font-weight: 600; margin: 14px 0 6px; }
.dm-input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8C8F91; border-radius: var(--bf-r);
  font: inherit; background: #fff; color: var(--bf-ink); }
textarea.dm-input { min-height: 120px; }
.dm-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0; }
.dm-row .dm-input { flex: 1 1 180px; width: auto; }
.dm-grid2, .dm-grid3 { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .dm-grid2 { grid-template-columns: 1fr 1fr; } .dm-grid3 { grid-template-columns: 1fr 1fr 120px; } }
.dm-plate { height: 64px; max-width: 320px; flex: 1 1 220px; font-size: 1.8rem; font-weight: 700; letter-spacing: .12em;
  text-align: center; text-transform: uppercase; border: 3px solid #111; border-radius: 8px; padding: 0 12px 0 50px;
  background: linear-gradient(90deg, #003399 0 40px, #fff 40px); color: #111; }
.dm-plate::placeholder { color: #B5B7B9; font-size: 1.3rem; }
.dm-code { max-width: 160px; font-size: 1.3rem; letter-spacing: .2em; text-align: center; }

.dm-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.dm-choices-2 { grid-template-columns: 1fr 1fr; }
.dm-choice { position: relative; }
.dm-choice input { position: absolute; opacity: 0; inset: 0; }
.dm-choice span { display: flex; align-items: center; min-height: 56px; padding: 12px 14px; border: 2px solid var(--bf-line);
  border-radius: var(--bf-r); background: #fff; font-weight: 600; cursor: pointer; }
.dm-choice input:checked + span { border-color: var(--bf-select); background: var(--bf-accent-soft); }
.dm-choice input:checked + span::after { content: '✓'; margin-left: auto; }
.dm-choice input:focus-visible + span { outline: 3px solid var(--bf-focus); outline-offset: 2px; }
.dm-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
.dm-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.dm-consent { margin-top: 18px; line-height: 1.45; }

/* Bilskisse */
.dm-carmap { display: grid; gap: 16px; align-items: center; }
@media (min-width: 600px) { .dm-carmap { grid-template-columns: 240px 1fr; } }
.dm-carmap svg { width: 100%; max-width: 240px; margin: 0 auto; display: block; }
.dm-car-body { fill: var(--bf-surface); stroke: var(--bf-ink); stroke-width: 2; }
.dm-zone { fill: transparent; stroke: var(--bf-muted); stroke-width: 1.5; stroke-dasharray: 4 3; cursor: pointer; transition: fill .15s; }
.dm-zone:hover { fill: rgba(0, 0, 0, .06); }
.dm-zone:focus { outline: none; }
.dm-zone:focus-visible { stroke: var(--bf-ink); stroke-width: 3; stroke-dasharray: none; }
.dm-zone.is-on { fill: var(--bf-cta); fill-opacity: .55; stroke: var(--bf-cta); stroke-dasharray: none; }
.bf-lexus .dm-zone.is-on { fill: var(--bf-select); stroke: var(--bf-select); }
.dm-car-glass path { fill: #fff; stroke: var(--bf-muted); stroke-width: 1; pointer-events: none; }
.dm-car-labels text { font-size: 11px; font-weight: 700; fill: var(--bf-ink); text-anchor: middle; pointer-events: none;
  font-family: var(--bf-font); letter-spacing: .06em; }
.dm-zone-list { border: 0; padding: 0; margin: 0; }

/* Bilder */
.dm-photo-guide { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; }
@media (min-width: 600px) { .dm-photo-guide { grid-template-columns: repeat(3, 1fr); } }
.dm-photo-guide li { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--bf-surface);
  border-radius: var(--bf-r); font-size: .92rem; }
.dm-guide-ico { font-size: 1.8rem; line-height: 1; }
.dm-file { position: relative; overflow: hidden; }
.dm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dm-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.dm-thumbs li { position: relative; }
.dm-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--bf-r); display: block; background: var(--bf-surface); }
.dm-thumb-rm { position: absolute; right: 4px; bottom: 4px; border: 0; background: rgba(0, 0, 0, .7); color: #fff;
  font-size: .75rem; padding: 4px 8px; border-radius: var(--bf-r-btn); cursor: pointer; }

.dm-placeholder { border: 1px dashed var(--bf-line); background: var(--bf-surface); border-radius: var(--bf-r); padding: 16px; margin-top: 16px; }
.dm-placeholder h2, .dm-placeholder h3 { font-size: 1.05rem; margin: 0 0 6px; }
.dm-error { color: #B00504; font-weight: 600; margin: 12px 0 0; }
.dm-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.dm-nav [data-action="next"] { margin-left: auto; }

/* Kvittering og saksside */
.dm-receipt { text-align: left; }
.dm-check-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bf-ink); color: #fff; font-size: 1.8rem; margin-bottom: 12px; }
.dm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 20px; }
.dm-facts dt { color: var(--bf-muted); font-weight: 400; }
.dm-facts dd { margin: 0; font-weight: 600; }
.dm-status { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--bf-surface); font-weight: 700; margin: 0; }
.dm-status-tilbud_sendt { background: var(--bf-cta); color: #fff; }
.dm-status-ferdig, .dm-status-tilbud_godtatt { background: var(--bf-ink); color: #fff; }
.dm-offer { border-left: 4px solid var(--bf-cta); }
.dm-amount { font-size: 1.8rem; font-weight: 700; margin: 0 0 8px; }
.dm-messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.dm-msg { padding: 12px 14px; border-radius: var(--bf-r); background: var(--bf-surface); max-width: 90%; }
.dm-msg-kunde { margin-left: auto; background: var(--bf-accent-soft); }
.dm-msg-who { display: block; font-size: .8rem; color: var(--bf-muted); margin-bottom: 4px; }
.dm-msg p { margin: 0; }
.dm-msg-form { display: grid; gap: 10px; }
.dm-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dm-history time { color: var(--bf-muted); margin-right: 8px; font-size: .9rem; }
.dm-login { max-width: 480px; }

/* Takst-tider i Process Manager */
.dm-takst { border: 1px solid var(--bf-line); background: var(--bf-surface); border-radius: var(--bf-r); padding: 16px; margin-top: 16px; }
.dm-takst h3 { font-size: 1.05rem; margin: 0 0 6px; }
.dm-btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.dm-slot-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; }
.dm-slot-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dm-slot { width: 100%; min-height: 48px; border: 1px solid var(--bf-line); border-radius: var(--bf-r-btn); background: #fff;
  color: var(--bf-ink); font: inherit; cursor: pointer; padding: 6px 10px; text-align: left; }
.dm-slot[aria-pressed="true"] { border: 2px solid var(--bf-cta); font-weight: 700; }
.dm-slot-day { display: block; font-size: .85rem; color: var(--bf-muted); }
