/* Shared styles for flight compensation flow. Extends styles.css. */

/* ---- Page shell reset ---- */
body { padding: 0; background: #f4f6fb; }
.container { padding-left: 20px; padding-right: 20px; max-width: 1200px; }
main.container { padding-top: 32px; padding-bottom: 56px; }
@media (max-width: 720px) {
  .container { padding-left: 14px; padding-right: 14px; }
  main.container { padding-top: 20px; padding-bottom: 32px; }
}

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 96px;
}
.nav__brand { display: inline-flex; align-items: center; color: var(--primary); flex-shrink: 0; text-decoration: none; }
.nav__brand img { height: 56px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav__link { font-size: 18px; font-weight: 600; color: var(--primary); text-decoration: none; transition: opacity 160ms ease; }
.nav__link:hover { opacity: 0.65; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms ease;
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--primary-hover); }
.nav__cta svg { width: 16px; height: 16px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--primary); }
.nav__toggle svg { width: 18px; height: 18px; display: block; }
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav { height: 72px; }
  .nav__brand img { height: 44px; }
}

/* Base form width — used inside .fly-main across all fly-flow steps */
.fly-form {
  width: 100%;
  max-width: 720px;
  animation: fly-page-in 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fly-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fly-form { animation: none; }
}

/* ---- Progress bar ---- */
.progress { margin-bottom: 32px; }
.progress__eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.005em;
}
.progress__percent {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted-text);
  font-weight: 600;
}
.progress__track { display: block; height: 8px; background: #dee3ee; border-radius: 999px; overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---- Step ---- */
/* `animation-fill-mode: both` was leaving an identity `transform: translateY(0)`
   on .step even after the entry animation finished. iOS Safari treats any
   ancestor with a `transform` as a new containing block, which shifts its
   input-focus auto-zoom to bottom-right. Dropping `both` lets the base style
   (no transform) reassert once the 260ms animation completes. */
/* Consent checkboxes — shared "Dine oplysninger" step pattern. */
.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 3px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--primary);
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent-row a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.consent-row .req { color: #d13a3a; margin-left: 2px; }
/* "Vælg alle"-master row — visuelt større, grøn, adskilt fra sub-options. */
.consent-row--all {
  font-size: 15.5px;
  color: #146c43;
  padding-bottom: 14px;
}
.consent-row--all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #146c43;
}
.consent-block {
  margin-top: 20px;
  padding-top: 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Handelsbetingelser-row (første child) — 12/12 padding for luft omkring
 * required-consenten. Sub-groups (.consent-group) klarer selv deres spacing. */
.consent-block > .consent-row:first-child {
  padding: 12px 0;
}

.consent-actions { display: flex; justify-content: flex-start; margin: 0 0 10px; }

/* --- SVG-styled checkboxes (custom look) —
 * Default på et vertikal-site er native checkboxes farvet via accent-color
 * (fly, tele, parkering). El og gas ville have en SVG-baseret custom-check;
 * aktiveres ved at sætte class="fk-svg-checkboxes" på <body>. Ensret cascade
 * (denne fil eneste kilde) betyder ingen inline-duplikater at holde i sync.
 */
body.fk-svg-checkboxes .consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0px;
  accent-color: initial;
  transition: background-color 180ms ease, border-color 180ms ease, background-size 180ms ease;
}
body.fk-svg-checkboxes .consent-row input[type="checkbox"]:hover { border-color: var(--primary); }
body.fk-svg-checkboxes .consent-row input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-size: 11px;
}
body.fk-svg-checkboxes .consent-row input[type="checkbox"]:indeterminate {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  background-size: 11px;
}
body.fk-svg-checkboxes .consent-row--all input[type="checkbox"]:checked,
body.fk-svg-checkboxes .consent-row--all input[type="checkbox"]:indeterminate {
  background-color: #146c43;
  border-color: #146c43;
}

.step { display: none; animation: step-in 260ms ease; }
.step.is-active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.step__title { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: 0.01em; }
.step__sub { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--muted-text); }

/* ---- Fields (MUI outlined-like) ---- */
.field { position: relative; margin-bottom: 16px; }
.field__label {
  position: absolute;
  top: -8px;
  left: 14px;
  padding: 0 6px;
  background: #f4f6fb;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.01em;
  z-index: 1;
}
.field__control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px;
  background: #fff;
  border: 1px solid #c8cdd8;
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field__control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.field__icon { width: 20px; height: 20px; color: var(--muted-text); flex-shrink: 0; }
.field__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  /* 16px prevents iOS Safari auto-zoom on focus. The zoom itself was tolerable,
     but its side effect — the visual viewport shifting bottom-right — is not.
     See Microsoft Learn Q&A #2124525 for the exact "shifts to the right"
     description; the canonical fix is font-size >= 16px (per CSS-Tricks etc.). */
  font-size: 16px;
  color: var(--primary);
}
.field__input::placeholder { color: var(--muted-text); }
.field__flag {
  width: 24px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Datepicker ---- */
.dp-toggle {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 160ms ease;
}
.dp-toggle:hover { color: var(--primary); }
.dp-chevron {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}
.field[data-datepicker].is-open .dp-chevron { transform: rotate(180deg); }

.dp-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 296px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.dp-head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-bottom: 8px;
}
.dp-nav {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: none;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}
.dp-nav:hover { background: var(--muted-bg); }
.dp-nav svg { width: 14px; height: 14px; }
.dp-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.dp-title--btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: background 160ms ease;
  justify-self: center;
}
.dp-title--btn:hover { background: var(--muted-bg); }
.dp-title--btn svg { width: 12px; height: 12px; color: var(--muted-text); }

.dp-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 0;
}
.dp-month {
  padding: 12px 6px;
  background: none;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.dp-month:hover { background: var(--muted-bg); }
.dp-month.is-today {
  box-shadow: inset 0 0 0 1px var(--border);
}
.dp-month.is-selected {
  background: var(--primary);
  color: #fff;
}
.dp-month.is-selected:hover { background: var(--primary-hover); }
.dp-weekdays,
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 2px;
  justify-content: center;
}
.dp-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-text);
  padding: 4px 0;
}
.dp-cell {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.dp-cell--empty { cursor: default; }
.dp-cell--day:hover { background: var(--muted-bg); }
.dp-cell.is-today {
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 700;
}
.dp-cell.is-selected {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.dp-cell.is-selected:hover { background: var(--primary-hover); }

/* Autocomplete dropdown */
.field__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.34, 1.56, .64, 1),
    visibility 0s linear 220ms;
}
.field__list.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.34, 1.56, .64, 1),
    visibility 0s linear 0s;
}
.field__list button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
}
.field__list button:hover, .field__list button.is-focus { background: var(--muted-bg); }
.field__list .muted { color: var(--muted-text); font-size: 12px; }
.ac-flag {
  width: 24px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.ac-body { flex: 1; min-width: 0; }
.ac-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-code {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ---- Choice cards (radio-style) ---- */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.choices--stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: #fff;
  border: 1px solid #c8cdd8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  text-align: left;
  font: inherit;
  color: var(--primary);
  width: 100%;
}
.choice:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.choice.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary) inset;
  background: #eff1f7;
}
.choice__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.choice__icon svg { width: 18px; height: 18px; }
.choice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice__title { font-size: 15px; font-weight: 600; }
.choice__sub { font-size: 12px; color: var(--muted-text); }

/* ---- Actions ---- */
.step__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease;
  text-decoration: none;
}
.btn-back:hover { color: var(--primary); }
.btn-back svg { width: 14px; height: 14px; }
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 36px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: auto;
  transition: background 160ms ease, opacity 160ms ease;
  text-decoration: none;
}
.btn-next:hover:not(:disabled) { background: var(--primary-hover); }
.btn-next:disabled { background: #c8cdd8; color: #fff; cursor: not-allowed; }
.btn-next svg { width: 16px; height: 16px; }

/* ---- Flight cards (screen 2) ---- */
/* Airline filter pills above the results grid */
.flight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.flight-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.flight-filter__pill:hover { border-color: var(--primary); }
.flight-filter__pill.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.flight-card {
  display: grid;
  /* Fixed logo-column width so the vertical divider always lines up at the
     same X across cards, regardless of each logo's aspect ratio. */
  grid-template-columns: 108px 1fr;
  gap: 22px;
  width: 100%;
  padding: 8px 18px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
  transition: transform 120ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.flight-card[hidden] { display: none; }
.flight-card:hover { transform: translateY(-1px); border-color: var(--primary); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
@media (max-width: 620px) {
  .flight-card { grid-template-columns: 78px 1fr; gap: 14px; padding: 8px 14px; }
}
.flight-card__logo-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 22px;
}
@media (max-width: 620px) {
  .flight-card__logo-col { padding-right: 14px; }
  .flight-card__logo { max-height: 30px; max-width: 100%; }
  .flight-card__logo-fallback { font-size: 11px; max-width: 100%; }
}
.flight-card__logo-col::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.flight-card__logo {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.flight-card__logo-fallback {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.005em;
  line-height: 1.2;
  max-width: 84px;
}
/* When both an image and a fallback are present, the successful <img> stays
   and the text is hidden; if the image 404s (onerror removes it) the fallback
   takes over. */
.flight-card__logo-col:has(.flight-card__logo) .flight-card__logo-fallback { display: none; }
.flight-card__main { min-width: 0; }
.flight-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.flight-card__number { font-size: 16px; font-weight: 700; color: var(--primary); letter-spacing: 0.01em; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flight-card__status {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text);
  letter-spacing: 0.02em;
}
/* Delay severity tiers:
   - minor    (10–60 min): muted gray — små forsinkelser holder 12px så de
     ikke kaprer opmærksomheden, når der ikke er kompensation i sigte.
   - moderate (1–2t):      muted orange + 15px — visuelt weight matcher
     flynummeret, så kunden ser den.
   - severe   (2t+):       rød + 15px, samme princip.
   - cancel:               rød + 15px, ligesom severe. */
.flight-card__status--minor    { color: var(--muted-text); font-weight: 600; }
.flight-card__status--moderate { color: #b8814a; font-weight: 700; font-size: 15px; }
.flight-card__status--severe   { color: #b91c1c; font-weight: 700; font-size: 15px; }
.flight-card__status--cancel   { color: #b91c1c; font-weight: 700; font-size: 15px; }
.flight-card__route {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 16px;
  align-items: start;
}
.flight-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
}
.flight-card__leg {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.flight-card__leg--to { text-align: right; }
.flight-card__iata {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.flight-card__leg--to .flight-card__iata { flex-direction: row; justify-content: flex-end; }
.iata-flag {
  width: 21px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  vertical-align: -0.15em;
  flex-shrink: 0;
  margin-left: 6px;
}
/* Inside flex containers with `gap`, the shared gap already handles spacing */
.flight-card__iata .iata-flag,
.claim-summary .iata-flag { margin-left: 0; vertical-align: baseline; }
/* On flight cards, match the visual cap-height of the 17px bold IATA text so
   the flag doesn't sit taller than "CPH". Cap-height ≈ 0.7 × font-size. */
.flight-card__iata .iata-flag { height: 12px; width: 18px; border-radius: 1.5px; }
.flight-card__time { font-size: 13px; font-weight: 600; color: var(--primary); }
.flight-card__actual { font-size: 11px; color: var(--muted-text); }
/* Match the delay-severity tiers used on .flight-card__status--* */
.flight-card__actual--minor    { color: var(--muted-text); font-weight: 500; }
.flight-card__actual--moderate { color: #b8814a; font-weight: 600; }
.flight-card__actual--severe   { color: #b91c1c; font-weight: 600; }
.flight-card__arrow { color: var(--muted-text); }
.flight-card__arrow svg { width: 20px; height: 20px; }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--ok      { background: var(--ok-bg);   color: var(--ok-fg); }
.badge--elig    { background: #fde8e6;        color: #b91c1c; }
.badge--border  { background: var(--warn-bg); color: var(--warn-fg); }
.badge--cancel  { background: #e6e8ee;        color: var(--primary); }
.badge--unknown { background: #eef0f5;        color: var(--muted-text); }
.badge__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---- Empty / loading / error states ---- */
.state {
  padding: 40px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.state h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--primary); }
.state p { margin: 0; font-size: 14px; color: var(--muted-text); line-height: 1.6; }
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid var(--muted-bg);
  border-top-color: var(--primary);
  animation: spin 500ms linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Loading state ---- */
.loading-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.loading-status__spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2.5px solid var(--muted-bg);
  border-top-color: var(--primary);
  animation: spin 700ms linear infinite;
}
.loading-status__text {
  animation: loading-status-fade 1.8s ease-in-out infinite;
}
@keyframes loading-status-fade {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* Skeleton cards that mimic .flight-card while data is loading. */
.skeleton-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 22px;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
}
@media (max-width: 620px) {
  .skeleton-card { grid-template-columns: 78px 1fr; gap: 14px; padding: 12px 14px; }
}
.skeleton-card__logo {
  height: 24px;
  border-radius: 6px;
}
.skeleton-card__body { display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; border-radius: 6px; }
.skeleton-line--sm { width: 40%; }
.skeleton-line--md { width: 78%; }

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.12) 50%,
    rgba(15, 23, 42, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* Claim-hero skeleton: efterligner det store amount-hero indtil workeren
   svarer. Bruger samme .claim-hero shell (baggrund/border/padding) og fylder
   den med shimmer-placeholders i stedet for content. */
.claim-hero--skeleton { padding-top: 44px; padding-bottom: 32px; }
.claim-skel-line { height: 14px; border-radius: 7px; margin: 0 auto; }
.claim-skel-line--eyebrow { width: 260px; margin-bottom: 22px; }
.claim-skel-line--sub     { width: 180px; margin-top: 18px; }
.claim-skel-amount {
  width: min(360px, 60%);
  height: 68px;
  border-radius: 12px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .claim-skel-amount { height: 52px; }
  .claim-skel-line--eyebrow { width: 210px; }
}
@keyframes skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer,
  .loading-status__text,
  .loading-status__spinner { animation: none; }
}

/* ---- Claim result (screen 3) ---- */
/* ---- Flight route card ---- */
/* Fixed logo-col +
   logo max-height, samme padding. Ingen hover fordi kortet ikke er klikbart. */
.claim-route {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 22px;
}
@media (max-width: 620px) {
  .claim-route { grid-template-columns: 78px 1fr; gap: 14px; padding: 8px 14px; }
}
.claim-route--no-logo { grid-template-columns: 1fr; }
.claim-route__logo-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 22px;
}
@media (max-width: 620px) {
  .claim-route__logo-col { padding-right: 14px; }
  .claim-route__logo { max-height: 30px; max-width: 100%; }
  .claim-route__logo-fallback { font-size: 11px; max-width: 100%; }
}
.claim-route__logo-col::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.claim-route__logo {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.claim-route__logo-fallback {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.005em;
  line-height: 1.2;
  max-width: 84px;
}
/* When both an <img> and the fallback text are present, hide the text.
   If the image 404s (onerror removes it) the fallback becomes visible. */
.claim-route__logo-col:has(.claim-route__logo) .claim-route__logo-fallback { display: none; }
.claim-route__main { min-width: 0; }
.claim-route__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.claim-route__number { font-size: 16px; font-weight: 700; color: var(--primary); letter-spacing: 0.01em; }
.claim-route__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted-text);
}
/* Samme severity-tiers som .flight-card__status--* */
.claim-route__status--minor    { color: var(--muted-text); font-weight: 600; }
.claim-route__status--moderate { color: #b8814a; font-size: 15px; }
.claim-route__status--severe   { color: #b91c1c; font-size: 15px; }
.claim-route__status--cancel   { color: #b91c1c; font-size: 15px; }
.claim-route__grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 16px;
  align-items: start;
}
.claim-route__leg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.claim-route__leg--arr { text-align: right; }
.claim-route__iata {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.claim-route__leg--arr .claim-route__iata { flex-direction: row; justify-content: flex-end; }
.claim-route__iata .iata-flag { height: 12px; width: 18px; border-radius: 1.5px; margin: 0; }
.claim-route__time { font-size: 13px; font-weight: 600; color: var(--primary); }
.claim-route__actual { font-size: 11px; color: var(--muted-text); }
.claim-route__actual--late { color: #b91c1c; font-weight: 600; }
.claim-route__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: var(--muted-text);
}
.claim-route__arrow svg { width: 20px; height: 20px; }

/* ---- Contact form wrapper (always visible on the claim page) ---- */
.claim-form-wrap {
  margin-top: 20px;
  padding: 26px 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
}
@media (max-width: 620px) {
  .claim-form-wrap { padding: 16px 14px 16px; }
}
.claim-form-wrap .claim-form {
  margin-top: 0;
  animation: none;
}
/* Card background is white, so the floating notch label must be white too */
.claim-form-wrap .field__label { background: #ffffff; }
.claim-form__ncnp {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted-text);
  text-align: center;
  line-height: 1.5;
}

.claim-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 30px 30px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
}
.claim-hero .badge { margin-bottom: 18px; }
/* Hard-block statuses (statute_expired, carrier_not_covered, notice_sufficient) */
.claim-block {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 0;
}
.claim-block__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.claim-block__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-text);
}
.claim-block__cta,
.claim-block .case-confirm__cross {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.claim-block__cta-lead {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.claim-block__verticals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.claim-block__verticals .v-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.claim-block__verticals .v-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.claim-block__verticals .v-card__icon-svg {
  width: 22px;
  height: 22px;
}
.claim-block__verticals .v-card__label {
  font-size: 13px;
  font-weight: 600;
}

.claim-borderline {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.claim-borderline__badge {
  display: inline-block;
  padding: 6px 14px;
  background: #fff4cc;
  color: #8a5a00;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.claim-borderline__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.claim-borderline__body {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--primary);
}
.claim-borderline__body--muted { color: var(--muted-text); font-size: 14px; }
.claim-borderline__body strong { font-weight: 700; }

.claim-amount__eyebrow {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted-text);
  line-height: 1.4;
  max-width: 520px;
  margin-inline: auto;
}
.claim-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.08;
}
.claim-amount__value {
  font-size: clamp(48px, 7.2vw, 84px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.claim-amount__unit {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.claim-amount__eur { display: block; margin: 14px 0 0; font-size: 17px; color: var(--muted-text); }
.claim-meta { margin: 6px 0 26px; font-size: 14px; color: var(--muted-text); }
.claim-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 480px;
}
@media (max-width: 480px) { .claim-summary { grid-template-columns: 1fr; } }
.claim-summary dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-text); margin-bottom: 4px; }
.claim-summary dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--primary); }
.claim-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease;
}
/* Cap ikoner uanset variant — undgår at "block"-varianter stretcher <svg> til
   hele knappens bredde. */
.claim-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.claim-cta:hover { background: var(--primary-hover); }
.claim-note { margin: 18px 0 0; font-size: 12px; color: var(--muted-text); line-height: 1.5; }

/* ---- Claim form (expands from CTA) ---- */
.claim-form {
  text-align: left;
  margin-top: 24px;
  /* Same fix as .step: dropping `both` so the animation's end-state
     `transform: translateY(0)` doesn't linger and confuse iOS input auto-zoom. */
  animation: form-in 320ms ease;
}
@keyframes form-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.claim-form__section-title {
  margin: 8px 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.claim-form__section-title:not(:first-child) {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
/* Når hint følger titlen skal titlen ikke bruge sin normale 20px bund-margin
   — subtitle sidder tættere på title end på et input. */
.claim-form__section-title:has(+ .claim-form__hint) { margin-bottom: 4px; }
.claim-form__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.5;
}
.claim-form__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  margin-top: 0;
}
/* Fjern default field-bottom-margin FØR add-knappen, så gap er 0 mellem
   input-felt og "har du flere"-knap — ingen negative-margin plaster. */
.field:has(+ .claim-form__add),
.field:has(+ [id$="-additional-regs"] + .claim-form__add) {
  margin-bottom: 8px;
}
[id$="-additional-regs"] { margin-bottom: 0; }
[id$="-additional-regs"]:not(:empty) { margin-bottom: 8px; }
.claim-form__add:hover {
  border-color: var(--primary);
  background: var(--muted-bg);
}
.claim-form__add svg { width: 14px; height: 14px; }

.passenger-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.passenger-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.passenger-remove {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 160ms ease, border-color 160ms ease;
}
.passenger-remove:hover {
  color: #b91c1c;
  border-color: #b91c1c;
}
.passenger-remove svg { width: 16px; height: 16px; }

.claim-cta--submit {
  display: flex;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 160ms ease;
}
.claim-cta--submit:disabled,
.claim-cta--submit[disabled] {
  background: #c8cdd8;
  color: #fff;
  cursor: not-allowed;
}
.claim-source-flag {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* Header strip above list/result */
.fly-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}
.fly-header > div { display: flex; flex-direction: column; align-items: center; }
.fly-header .back-link { margin-bottom: 10px; align-self: flex-start; }
.fly-header__route { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 0.01em; }
.fly-header__date  { font-size: 13px; color: var(--muted-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 16px; height: 16px; }

/* ---- Fly workspace layout (shared by all steps in the flight flow) ---- */
/* When the workspace is present, break out of .container's max-width & padding. */
main.container:has(.fly-workspace) { max-width: none; padding: 0; }
body:has(.fly-workspace) { background: #f4f6fb; padding: 0; }

.fly-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  max-width: none;
}

.fly-sidebar {
  background: #ffffff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}
.fly-sidebar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  margin-bottom: 4px;
}
.fly-sidebar__brand img {
  height: 72px;
  width: auto;
  display: block;
}
.fly-sidebar__section-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.fly-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fly-sidebar__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--primary);
}
.fly-sidebar__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fly-sidebar__check svg { width: 13px; height: 13px; }
.fly-sidebar__person {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}
.fly-sidebar__person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}
.fly-sidebar__person-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--primary);
}
.fly-sidebar__person-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.fly-sidebar__trustpilot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
  transition: opacity 160ms ease;
  margin-top: auto;
}
.fly-sidebar__trustpilot:hover { opacity: 0.75; }
.fly-sidebar__trustpilot img { height: 60px; width: auto; display: block; }
.fly-sidebar__trustpilot-score {
  font-size: 13.5px;
  color: var(--muted-text);
  font-weight: 500;
}

.fly-main {
  padding: 56px 48px 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.fly-main .fly-form { width: 100%; max-width: 720px; margin-right: 2.5em; }

/* Mobile top bar — logo left, Trustpilot right (only visible on mobile
   since the sidebar carries this info on desktop). */
.fly-mobile-top { display: none; }

@media (max-width: 900px) {
  .fly-workspace { grid-template-columns: 1fr; min-height: 0; }
  .fly-sidebar { display: none; }
  .fly-main { padding: 32px 20px 56px; }
  .fly-main .fly-form { margin-right: 0; }
  .fly-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .fly-mobile-top__brand { display: inline-flex; align-items: center; text-decoration: none; }
  .fly-mobile-top__brand img { height: 58px; width: auto; display: block; }
  .fly-mobile-top__trustpilot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 160ms ease;
  }
  .fly-mobile-top__trustpilot:hover { opacity: 0.75; }
  .fly-mobile-top__trustpilot img { height: 44px; width: auto; display: block; }
  .fly-mobile-top__trustpilot-score {
    font-size: 11.5px;
    color: var(--muted-text);
    font-weight: 500;
    line-height: 1;
  }
}

/* --- GDPR fallback ("kan ikke huske / finde mit fly") --- */

/* Link below the filter pills. */
.flight-list__gdpr-link {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.flight-list__gdpr-link a {
  color: var(--muted-text);
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.2);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.flight-list__gdpr-link a:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

/* Fallback UI when flight >2yr old (no AeroAPI data available) */
.too-old-fallback__hint-text {
  margin: 8px 4px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-text);
}
.too-old-fallback__hint-text strong { color: var(--primary); font-weight: 600; }
.too-old-fallback__no-number {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}
.too-old-fallback__no-number a {
  color: var(--muted-text);
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.2);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.too-old-fallback__no-number a:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}
/* Airline-suggestion inside field__list — mirrors airport autocomplete card */
.ac-airline-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 6px;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: default;
  transition: border-color 160ms ease, background 160ms ease;
}
.ac-airline-hit.is-selectable { cursor: pointer; }
.ac-airline-hit.is-selectable:hover {
  border-color: var(--primary);
  background: var(--muted-bg);
}
.ac-airline-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-airline-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ac-airline-fallback {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted-bg);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}
.ac-airline-hit .ac-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ac-airline-hit .ac-title { font-size: 15px; font-weight: 600; color: var(--primary); }
.ac-airline-hit .ac-sub { font-size: 12.5px; margin-top: 2px; }

/* Airline picker grid */
.gdpr-airlines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 12px;
}
.gdpr-airline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 108px;
  padding: 20px 12px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.gdpr-airline-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.gdpr-airline-card__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
}
.gdpr-airline-card__logo {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gdpr-airline-card__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 100%;
}
.gdpr-airline-card__logo-wrap:has(.gdpr-airline-card__logo) .gdpr-airline-card__fallback { display: none; }
.gdpr-airline-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}
/* "Andet" card variant: dashed border + plus icon to distinguish it. */
.gdpr-airline-card--other { border-style: dashed; }
.gdpr-airline-card__other-icon {
  width: 32px;
  height: 32px;
  color: var(--muted-text);
}
.gdpr-airline-card--other:hover .gdpr-airline-card__other-icon { color: var(--primary); }

/* Inline "type your airline name" reveal that shows below the grid when
   the customer clicks the "Andet" card. Styling mirrors .claim-form-wrap on
   step 3 (white card), and the reveal animation mirrors the scenario picker
   on step 1 (.notice-reveal / .denied-reveal). */
.gdpr-andet[hidden] { display: none; }
.gdpr-andet {
  margin-top: 20px;
  animation: gdpr-andet-in 540ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes gdpr-andet-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .gdpr-andet { animation: none; }
}
.gdpr-andet .claim-form__section-title { margin-top: 0; }
.gdpr-andet__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.gdpr-andet__field { flex: 1; min-width: 0; margin-bottom: 0; }
.gdpr-andet__continue {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  padding: 0;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.gdpr-andet__continue:hover { background: var(--primary-hover); transform: translateY(-1px); }
.gdpr-andet__continue svg { width: 22px; height: 22px; }
@media (max-width: 480px) {
  .gdpr-andet__row { flex-direction: column; }
  .gdpr-andet__continue { width: 100%; height: 52px; }
}

@media (max-width: 720px) {
  .gdpr-airlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .gdpr-airlines { grid-template-columns: 1fr; gap: 10px; }
  .gdpr-airline-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 0;
    padding: 14px 16px;
    gap: 16px;
  }
  .gdpr-airline-card__logo-wrap { width: 72px; flex: 0 0 72px; height: 34px; }
  .gdpr-airline-card__logo { max-height: 34px; }
  .gdpr-airline-card__name { text-align: left; }
}

/* Selected-airline header shown above the contact form. */
.gdpr-selected {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin: 0 0 24px;
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.gdpr-selected__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex: 0 0 64px;
  height: 32px;
}
.gdpr-selected__logo {
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gdpr-selected__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.gdpr-selected__logo-wrap:has(.gdpr-selected__logo) .gdpr-selected__fallback { display: none; }
.gdpr-selected__meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gdpr-selected__meta strong { font-size: 15px; color: var(--primary); }
.gdpr-selected__meta span { font-size: 13px; color: var(--muted-text); }
.gdpr-selected__change {
  background: transparent;
  border: none;
  padding: 6px 10px;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.gdpr-selected__change:hover { color: var(--primary-hover); }

/* Success state after form submit. */
.gdpr-success {
  text-align: center;
  padding: 24px 12px 8px;
}
.gdpr-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
}
.gdpr-success__icon svg { width: 36px; height: 36px; }
.gdpr-success__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}
.gdpr-success__body {
  font-size: 15px;
  color: var(--muted-text);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 24px;
}
.gdpr-success .claim-cta { max-width: 320px; margin: 0 auto; }

/* ---- Signature step (flight-claim step 2) ---- */
.sig-block { margin-top: 8px; }
.sig-block__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 2px 8px;
}
.sig-block__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.sig-canvas-wrap {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fafbfc;
  position: relative;
  overflow: hidden;
}
canvas.sig-canvas {
  display: block;
  width: 100%;
  height: 220px;
  cursor: crosshair;
  touch-action: none;
}
.sig-hint {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--muted-text);
}
.sig-clear-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 140ms ease;
}
.sig-clear-btn:hover { background: #eef0f4; }
.sig-review {
  margin: 22px 0 0;
  font-size: 15px;
}
.sig-review a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  transition: color 140ms ease;
}
.sig-review a:hover { color: var(--primary-hover); }
.sig-review-sub {
  margin: 10px 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-text);
}
.sig-legal {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted-text);
}
.sig-legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sig-legal a:hover { color: var(--primary-hover); }
.sig-submit-row {
  margin-top: 24px;
}
.sig-submit-row .claim-cta { width: 100%; }
.sig-submit-row .claim-cta:disabled {
  background: #c9cfd8;
  cursor: not-allowed;
  transform: none;
}

/* Searchable multi-select w/ removable tag-chips.
   Pattern adapted from forbrugerkrav-form/index.html (ms-*).
   Bruges af parkering/meld-sag-betalt/ (multi) og /meld-sag-ikke-betalt/ (single). */
.ms-wrap { position: relative; }
.ms-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  color: var(--muted-text);
  pointer-events: none;
  z-index: 1;
}
.ms-control {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 58px;
  padding: 8px 40px 8px 44px;
  background: #fff;
  border: 1px solid #c8cdd8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  box-sizing: border-box;
}
.ms-control:hover { border-color: #a8b0be; }
.ms-control.open  { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.ms-placeholder   { color: var(--muted-text); font-size: 15px; }
.ms-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted-text);
  font-size: 20px;
  transition: transform 250ms cubic-bezier(.34, 1.56, .64, 1), color 160ms ease;
}
.ms-control.open ~ .ms-arrow { transform: translateY(-50%) rotate(180deg); color: var(--primary); }

.ms-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--muted-bg);
  color: var(--primary);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 500;
  animation: ms-tag-in 220ms cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes ms-tag-in {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.ms-tag button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0 2px;
  line-height: 0;
  transition: transform 150ms ease;
}
.ms-tag button svg { display: block; width: 10px; height: 10px; }
.ms-tag button:hover { transform: scale(1.25) rotate(90deg); }

.ms-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.34, 1.56, .64, 1),
    visibility 0s linear 220ms;
}
.ms-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.34, 1.56, .64, 1),
    visibility 0s linear 0s;
}

.ms-search {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.ms-search-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  color: var(--primary);
  background: #fafbfc;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.ms-search-input:focus { border-color: var(--primary); background: #fff; }

.ms-option {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  color: var(--primary);
  transition: background 150ms ease, padding-left 180ms ease;
}
.ms-option::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.ms-option:hover { background: var(--muted-bg); padding-left: 18px; }
.ms-option:hover::before { transform: scaleY(1); }
.ms-option.selected { font-weight: 600; }
.ms-option.selected::after {
  content: '✓';
  color: var(--primary);
  animation: ms-check-pop 250ms cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes ms-check-pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.ms-no-results {
  padding: 14px;
  text-align: center;
  color: var(--muted-text);
  font-size: 14px;
  font-style: italic;
}
.ms-separator {
  padding: 8px 14px 4px;
  border-top: 1px solid var(--border);
  background: var(--muted-bg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
}

/* ---- Consent-group (Få flere penge tilbage) — CC fra el/gas ---- */
.consent-group {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.consent-group__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 10px;
}
.consent-group__title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
}
.consent-row__value {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #146c43;
}
.consent-potential {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.consent-potential strong { color: #146c43; }
.consent-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--muted-text, #6b7280);
  line-height: 1.5;
}
.consent-potential__count { display: inline-block; font-variant-numeric: tabular-nums; }
.consent-potential__count.is-pop { animation: pot-count-pop 250ms ease-out; }
@keyframes pot-count-pop {
  from { transform: scale(1.18); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

.consent-select-all {
  background: none;
  border: 0;
  padding: 2px 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #146c43;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent-select-all:hover { opacity: 0.7; }

/* Mobile: bump font-size 1 op på meld-sag UI-tekst (multi-select options/
 * chips, consent-rows inkl. handelsbetingelser og Vælg alle, hint-tekst).
 * Kun mobile — desktop-værdier står urørt ovenfor. */
@media (max-width: 720px) {
  .ms-option { font-size: 15.5px; }
  .ms-chip { font-size: 15px; }
  .consent-row { font-size: 14.5px; }
  .consent-row__value { font-size: 13.5px; }
  .consent-row--all { font-size: 16.5px; }
}
