/* AutoRudeExpress — Homepage prototype styles
   Implements UX/DESIGN-SYSTEM.md: very dark automotive base, #22A847 green
   accent used sparingly, white primary / light-gray secondary text. */

:root {
  --color-bg-base: #0b0d0f;
  --color-bg-surface: #16191c;
  --color-bg-surface-alt: #1d2124;
  --color-border: rgba(255, 255, 255, 0.09);

  --color-text-primary: #f5f6f7;
  --color-text-secondary: #a9b0b6;

  --color-accent-green: #22a847;
  --color-accent-green-hover: #1c8f3c;
  /* Dark text on the green accent — white-on-#22A847 measures ~3:1, which
     fails WCAG AA for normal-size text. Dark-on-green clears AA easily. */
  --color-on-accent: #06170b;

  --color-error: #ff8a80;
  --color-focus: #6fe19a;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --sticky-bar-height: 64px;
}

* {
  box-sizing: border-box;
}

/* Author rules like `.btn { display: inline-flex }` otherwise beat the
   browser's built-in `[hidden] { display: none }` default (author styles
   always win over the UA stylesheet). Without this, toggling `.hidden`/the
   `hidden` attribute on flex/grid/inline-flex elements — e.g. the wizard's
   Back button or nav bar — silently fails to actually hide them. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent-green);
}

a:not(.btn):hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent-green);
  color: var(--color-on-accent);
  padding: 12px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  max-width: 62ch;
}

.section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.section--alt {
  background: var(--color-bg-surface-alt);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-6);
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent-green);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent-green);
  color: var(--color-on-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-green-hover);
  color: var(--color-on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-accent-green);
  color: var(--color-accent-green);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link-disabled {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: not-allowed;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  text-decoration: none;
}

.brand-mark {
  color: var(--color-accent-green);
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.phone-link {
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-base);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav .phone-link {
  display: flex;
  color: var(--color-accent-green);
}

/* Hero */
.hero {
  padding-block: var(--space-8);
}

.hero .container {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero-copy p {
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-trust-line {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  list-style: none;
  padding: 0;
}

.hero-trust-line li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust-line svg {
  color: var(--color-accent-green);
  flex-shrink: 0;
}

/* Two-column text + image layout, reused by mobile-service and ADAS sections */
.media-grid .container {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

/* Content photos (hero, mobile service, ADAS) — all supplied at 4:3, so
   aspect-ratio + object-fit never need to crop, just scale. width/height
   attributes on the <img> elements themselves prevent layout shift. */
.media-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
}

/* Quote wizard */
.quote-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  max-width: 640px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact "Trin X af 8" + progress bar — kept small so it works on any phone width */
.wizard-progress-text {
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0 var(--space-2);
}

.wizard-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--color-bg-base);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.wizard-progress-fill {
  height: 100%;
  width: 12.5%;
  background: var(--color-accent-green);
  transition: width 0.2s ease;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step h3 {
  margin-bottom: var(--space-2);
}

.step-intro {
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}

.step-note {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.optional-label {
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.form-field {
  margin-bottom: var(--space-4);
}

fieldset {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.form-field label,
fieldset > legend {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
  padding: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  min-height: 48px;
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--color-accent-green);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin: var(--space-2) 0 0;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  margin-bottom: var(--space-3);
  cursor: pointer;
}

.radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent-green);
  flex-shrink: 0;
}

.yes-no-question {
  margin-bottom: var(--space-4);
}

.yes-no-question > legend {
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.yes-no-options {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.yes-no-options label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.yes-no-options input {
  accent-color: var(--color-accent-green);
}

.manual-fields {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
}

.manual-fields.is-visible {
  display: block;
}

/* Vehicle lookup confirmation card (Step 1, after a successful MotorAPI
   lookup) — reuses the same dark/green system as the rest of the wizard. */
.vehicle-confirm-card {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.vehicle-confirm-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1);
}

.vehicle-confirm-subtitle {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
}

.vehicle-confirm-details {
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.vehicle-detail-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.95rem;
}

.vehicle-detail-row dt {
  margin: 0;
  color: var(--color-text-secondary);
}

.vehicle-detail-row dd {
  margin: 0;
  color: var(--color-text-primary);
  font-weight: 600;
  text-align: right;
}

.vehicle-confirm-question {
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.vehicle-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vehicle-confirm-actions .btn {
  width: 100%;
}

.photo-count {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: var(--space-3) 0 0;
}

.photo-preview-grid {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-3);
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 13, 15, 0.85);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.photo-preview-remove:hover,
.photo-preview-remove:focus-visible {
  color: var(--color-error);
  border-color: var(--color-error);
}

.review-summary {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.review-group {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}

.review-group h4 {
  margin: 0 0 var(--space-1);
  font-size: 0.9rem;
  color: var(--color-accent-green);
}

.review-group p {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.review-edit {
  background: transparent;
  border: 0;
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-accent-green);
  flex-shrink: 0;
}

.consent-field label {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

.wizard-nav {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.wizard-nav [data-wizard-back] {
  flex: 0 0 auto;
}

.wizard-nav [data-wizard-next] {
  flex: 1;
}

.wizard-submit-status {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.wizard-submit-status.is-error {
  border-color: var(--color-error);
  color: var(--color-error);
}

.wizard-submit-status a {
  color: inherit;
  font-weight: 700;
}

.wizard-success {
  text-align: center;
}

.wizard-success h3 {
  margin-bottom: var(--space-3);
}

.wizard-success p {
  margin-inline: auto;
}

.wizard-success .btn {
  margin-top: var(--space-4);
}

/* ---------------------------------------------------------------------
   Quote wizard — premium redesign
   Presentation layer only: no rule here changes an element ID, a
   data-attribute, or JS-relied-upon behavior. `.wizard-layout` /
   `.wizard-sidebar` / `.wizard-main` / `.wizard-dots` are new wrapper
   structure; the mobile `.wizard-progress` text+bar is the original,
   untouched element, just visually paired with a dot stepper.
--------------------------------------------------------------------- */

.wizard-trust-row {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
}

.wizard-layout {
  display: block;
}

.wizard-sidebar {
  display: none;
}

/* Desktop step sidebar — informational by default; only steps already
   completed (is-complete) get an enabled button, matching the same
   backward-only navigation the review screen's "Rediger"/"Edit" links
   already use. */
.wizard-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.wizard-sidebar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px var(--space-3);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: not-allowed;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wizard-sidebar-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.wizard-sidebar-item.is-complete .wizard-sidebar-btn {
  color: var(--color-text-primary);
  cursor: pointer;
}

.wizard-sidebar-item.is-complete .wizard-sidebar-btn:hover,
.wizard-sidebar-item.is-complete .wizard-sidebar-btn:focus-visible {
  background: var(--color-bg-surface-alt);
  border-color: var(--color-border);
}

.wizard-sidebar-item.is-complete .wizard-sidebar-marker {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
  color: var(--color-on-accent);
  font-size: 0;
}

.wizard-sidebar-item.is-complete .wizard-sidebar-marker::after {
  content: "✓";
  font-size: 0.8rem;
}

.wizard-sidebar-item.is-current .wizard-sidebar-btn {
  color: var(--color-text-primary);
  background: var(--color-bg-surface-alt);
}

.wizard-sidebar-item.is-current .wizard-sidebar-marker {
  border-color: var(--color-accent-green);
  color: var(--color-accent-green);
}

.wizard-sidebar-item.is-upcoming .wizard-sidebar-btn {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* Mobile / tablet compact dot stepper, paired with the existing
   Trin X af 8 text + thin bar. */
.wizard-dots {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  flex: 0 0 auto;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.wizard-dot.is-complete {
  background: var(--color-accent-green);
}

.wizard-dot.is-current {
  background: var(--color-accent-green);
  transform: scale(1.35);
}

/* Step content entrance — subtle, skipped entirely under
   prefers-reduced-motion, and never delays interaction (button state
   isn't touched by this rule). */
@media (prefers-reduced-motion: no-preference) {
  .wizard-step.is-active {
    animation: wizard-step-in 0.2s ease;
  }
}

@keyframes wizard-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Danish/EU-style registration plate input. The strip is decorative
   (aria-hidden) — `input#nummerplade` is the exact, unmodified, real
   input MotorAPI lookup reads from. */
.plate-input-shell {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease;
}

.plate-input-shell:focus-within {
  border-color: var(--color-accent-green);
}

.plate-input-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  padding-block: 6px;
  background: #039;
  color: #fff;
}

.plate-input-stars {
  position: relative;
  width: 20px;
  height: 20px;
}

.plate-input-stars span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fc0;
  transform-origin: 0 0;
}

.plate-input-stars span:nth-child(1) { transform: rotate(0deg) translate(8px) rotate(0deg); }
.plate-input-stars span:nth-child(2) { transform: rotate(30deg) translate(8px) rotate(-30deg); }
.plate-input-stars span:nth-child(3) { transform: rotate(60deg) translate(8px) rotate(-60deg); }
.plate-input-stars span:nth-child(4) { transform: rotate(90deg) translate(8px) rotate(-90deg); }
.plate-input-stars span:nth-child(5) { transform: rotate(120deg) translate(8px) rotate(-120deg); }
.plate-input-stars span:nth-child(6) { transform: rotate(150deg) translate(8px) rotate(-150deg); }
.plate-input-stars span:nth-child(7) { transform: rotate(180deg) translate(8px) rotate(-180deg); }
.plate-input-stars span:nth-child(8) { transform: rotate(210deg) translate(8px) rotate(-210deg); }
.plate-input-stars span:nth-child(9) { transform: rotate(240deg) translate(8px) rotate(-240deg); }
.plate-input-stars span:nth-child(10) { transform: rotate(270deg) translate(8px) rotate(-270deg); }
.plate-input-stars span:nth-child(11) { transform: rotate(300deg) translate(8px) rotate(-300deg); }
.plate-input-stars span:nth-child(12) { transform: rotate(330deg) translate(8px) rotate(-330deg); }

.plate-input-dk {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.plate-input.plate-input {
  flex: 1 1 auto;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0b0d0f;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-inline: var(--space-4);
}

.plate-input.plate-input:focus-visible {
  outline-offset: -3px;
}

.plate-input.plate-input[aria-invalid="true"] {
  color: #7a1414;
}

/* Vehicle-found confirmation badge (text set in PHP: "✓ Bil fundet" /
   "✓ Vehicle found" — shown only after a real, successful MotorAPI
   lookup). */
.vehicle-found-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Selection cards — the underlying <input type="radio"> stays the real,
   semantic control; only its wrapping <label> gets card styling. Focus
   is moved from the (visually small) input onto the whole card via
   :has(), not removed. */
.radio-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.radio-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.radio-card:has(input:checked) {
  border-color: var(--color-accent-green);
  background: rgba(34, 168, 71, 0.1);
}

.radio-card:has(input:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.radio-card input:focus-visible {
  outline: none;
}

fieldset:has(.radio-card--inline) {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.radio-card--inline {
  flex: 1 1 100px;
  margin-bottom: 0;
  justify-content: center;
}

/* Upload dropzone — visual only; the real file input (#billeder) keeps
   its native picker and all existing change-event behavior. */
.upload-dropzone-field {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  background: var(--color-bg-base);
}

.upload-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3) !important;
  cursor: pointer;
}

.upload-dropzone-icon {
  color: var(--color-accent-green);
}

.upload-dropzone-text {
  font-weight: 600;
  color: var(--color-text-primary);
}

.upload-dropzone-input.upload-dropzone-input {
  min-height: auto;
  padding: var(--space-2);
  background: transparent;
  border: 0;
  margin-inline: auto;
}

/* Card grid (services, trust) */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.card-icon {
  color: var(--color-accent-green);
  margin-bottom: var(--space-3);
}

.card p {
  margin-bottom: var(--space-4);
}

.card-cta {
  color: var(--color-accent-green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

/* How it works */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding-left: 52px;
}

.process-list li::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-green);
  color: var(--color-on-accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-list h3 {
  margin-bottom: var(--space-2);
}

.process-list p {
  margin-bottom: 0;
}

/* Trust list */
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.trust-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.trust-list svg {
  color: var(--color-accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-list strong {
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.trust-list span {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Service area */
.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-5) 0;
}

.area-chips li {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-5);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: var(--space-4) 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chevron {
  color: var(--color-accent-green);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding-bottom: var(--space-4);
  margin: 0;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta .container {
  max-width: 720px;
}

.final-cta .hero-ctas {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding-block: var(--space-7);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.footer-meta {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  color: var(--color-text-secondary);
  display: grid;
  gap: var(--space-2);
}

.footer-meta a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--color-accent-green);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-5);
}

.footer-legal {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.footer-legal a,
.footer-legal-btn {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-legal-btn:hover,
.footer-legal-btn:focus-visible {
  color: var(--color-accent-green);
}

/* Legal pages (privacy/cookie policy) */
.legal-content {
  max-width: 760px;
}

.legal-updated {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}

.legal-content h2 {
  margin-top: var(--space-7);
}

.legal-content h3 {
  margin-top: var(--space-5);
}

.legal-content ul {
  color: var(--color-text-secondary);
  padding-left: 1.2em;
}

.legal-content li {
  margin-bottom: var(--space-2);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0 var(--space-6);
  font-size: 0.92rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.legal-content th {
  color: var(--color-text-primary);
  background: var(--color-bg-surface);
}

.legal-tbd {
  background: var(--color-bg-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.legal-tbd p {
  margin: 0;
  color: var(--color-text-secondary);
  max-width: none;
}

.legal-tbd .eyebrow {
  display: block;
  margin-bottom: var(--space-2);
}

.legal-inline-settings {
  margin-top: var(--space-2);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.cookie-banner-text {
  flex: 1 1 320px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  max-width: none;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 0 0 auto;
}

.cookie-banner-actions .btn {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 0.9rem;
}

/* Cookie preferences panel */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 8, 9, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.cookie-modal {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: 0;
  color: var(--color-text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: var(--space-1);
}

.cookie-modal-close:hover,
.cookie-modal-close:focus-visible {
  color: var(--color-text-primary);
}

.cookie-category {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-weight: 700;
}

.cookie-category-head input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent-green);
  flex-shrink: 0;
}

.cookie-category p {
  margin: var(--space-2) 0 0;
  font-size: 0.88rem;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.cookie-modal-actions .btn {
  flex: 1 1 auto;
}

@media (max-width: 767px) {
  .cookie-banner {
    bottom: var(--sticky-bar-height);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }
}

/* Sticky mobile conversion bar */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
  gap: var(--space-3);
}

.mobile-sticky-cta .btn {
  flex: 1;
}

body {
  padding-bottom: calc(var(--sticky-bar-height) + env(safe-area-inset-bottom));
}

/* Tablet / desktop */
@media (min-width: 768px) {
  .site-nav {
    display: block;
  }

  .phone-link {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .media-grid .container {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .card-grid--services {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .card-grid--services {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Quote wizard: two-column layout only at genuinely wide desktop —
     never squeezed into tablet. Below this width the compact mobile/
     tablet dot stepper (.wizard-dots) stays in charge instead. */
  .quote-card {
    max-width: 960px;
    padding: var(--space-7);
  }

  .wizard-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-7);
    align-items: start;
  }

  .wizard-sidebar {
    display: block;
    position: sticky;
    top: var(--space-6);
  }

  .wizard-progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
