/*
 * SBR Registrations — Registration flow styles
 * Ported from registration-google.css with React-specific additions
 */

:root {
  --rf-ink:       #1f2937;
  --rf-muted:     #6b7280;
  --rf-line:      #e5e7eb;
  --rf-surface:   #ffffff;
  --rf-soft:      #f8fafc;
  --rf-focus:     #1a73e8;
  --rf-radius:    16px;
  --rf-radius-sm: 10px;
  --rf-shadow:    0 10px 30px rgba(15,23,42,.08);
  --rf-shadow-sm: 0 2px 10px rgba(15,23,42,.06);
}

/* ── Layout ─────────────────────────────────────────────────────── */
#sbr-reg-root {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* NOTHING in this flow is set in capitals. Flatsome — and most WordPress themes —
   uppercase every <button>, which turned our own sentence-case labels into
   "HELÄGARE" and "BYT KOMMUN": shouted at a visitor filling in a form once, that
   reads as a warning rather than a choice. The id + universal selector is what
   outranks a theme's class rules, so the opt-out holds wherever this is embedded. */
#sbr-reg-root, #sbr-reg-root * { text-transform: none; }

.rf-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
}

/* ── Previous-registration (resume) card ────────────────────────── */
.rf-prev-card {
  max-width: 820px;
  margin: 0 auto 16px;
  padding: 20px 22px;
  border: 1px solid #bfdbfe;
  border-radius: var(--rf-radius);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #f8fafc 100%);
  box-shadow: var(--rf-shadow-sm);
  position: relative;
  overflow: hidden;
}
/* The accent edge that makes the card read as "yours, in progress". */
.rf-prev-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rf-focus), #60a5fa);
}
.rf-prev-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.rf-prev-glyph {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rf-focus);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(26,115,232,.35);
}
.rf-prev-heading { min-width: 0; }
.rf-prev-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase !important;
  color: var(--rf-focus);
}
.rf-prev-card h3 {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--rf-ink);
  line-height: 1.25;
}
.rf-prev-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(191,219,254,.8);
  border-radius: var(--rf-radius-sm);
  background: rgba(255,255,255,.75);
}
.rf-prev-fact {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rf-prev-fact dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase !important;
  color: var(--rf-muted);
  margin: 0;
}
.rf-prev-fact dd {
  margin: 1px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rf-ink);
}
.rf-prev-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.rf-prev-progress-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}
.rf-prev-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rf-focus), #60a5fa);
  transition: width .4s ease;
}
.rf-prev-progress-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-muted);
  white-space: nowrap;
}
.rf-prev-card-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rf-prev-card-btns button {
  appearance: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .08s ease-out, box-shadow .12s ease-out, background .12s ease-out;
}
.rf-prev-btn-primary {
  border: none;
  background: var(--rf-focus);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,115,232,.3);
}
.rf-prev-btn-primary:hover {
  background: #1765cc;
  box-shadow: 0 6px 16px rgba(26,115,232,.4);
  transform: translateY(-1px);
}
.rf-prev-btn-primary i { margin-right: 6px; }
.rf-prev-btn-ghost {
  border: 1px solid var(--rf-line);
  background: transparent;
  color: var(--rf-muted);
}
.rf-prev-btn-ghost:hover {
  background: var(--rf-soft);
  color: var(--rf-ink);
}
@media (max-width: 560px) {
  .rf-prev-progress { flex-wrap: wrap; }
  .rf-prev-progress-label { white-space: normal; }
  .rf-prev-facts { gap: 8px 18px; }
}

/* ── Stepper ─────────────────────────────────────────────────────── */
.rf-stepper-wrap {
  max-width: 820px;
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-sm);
  overflow: visible;
  padding-bottom: 18px;
}

.rf-stepper-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}

.rf-stepper-list::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 2px;
  background: rgba(60,64,67,.20);
  border-radius: 2px;
}
.rf-stepper-list::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  height: 2px;
  width: var(--rf-progress, 0%);
  background: var(--rf-focus);
  border-radius: 2px;
  transition: width 200ms ease;
}

.rf-step-node {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--rf-muted);
  padding: 0 6px;
  justify-content: flex-start;
}
.rf-step-node::after { display: none; }

.rf-step-node::before {
  content: attr(data-step);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rf-line);
  background: #f3f4f6;
  color: var(--rf-muted);
  font-weight: 800;
  font-size: 13px;
  z-index: 1;
}

.rf-step-node.completed { color: var(--rf-ink); }
.rf-step-node.completed::before {
  content: '✓';
  background: var(--rf-focus);
  border-color: rgba(26,115,232,.25);
  color: #fff;
}

.rf-step-node.current { color: var(--rf-ink); }
.rf-step-node.current::before {
  content: attr(data-step);
  background: var(--rf-focus);
  border-color: rgba(26,115,232,.25);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26,115,232,.22);
}

.rf-step-title {
  position: static;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  max-width: 110px;
  color: inherit;
  white-space: normal;
  overflow: visible;
}

.rf-stepper-meta {
  display: none;
  margin-top: 10px;
  color: var(--rf-muted);
  font-size: 13px;
}

/* ── Form surface ────────────────────────────────────────────────── */
.rf-form-card {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow);
  padding: 18px 18px 12px;
}

.rf-form-card h2,
.rf-form-card h3 {
  color: var(--rf-ink);
  letter-spacing: -0.01em;
}

/* ── Inputs ──────────────────────────────────────────────────────── */
.rf-form-card input[type="text"],
.rf-form-card input[type="email"],
.rf-form-card input[type="tel"],
.rf-form-card input[type="number"],
.rf-form-card input[type="date"],
.rf-form-card input[type="password"],
.rf-form-card select,
.rf-form-card textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--rf-line);
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--rf-ink);
  box-sizing: border-box;
  transition: border-color .12s ease-out, box-shadow .12s ease-out, background .12s ease-out;
  font-family: inherit;
}

.rf-form-card textarea { min-height: 110px; resize: vertical; }

.rf-form-card input[type="file"] {
  width: 100%;
  max-width: 100%;
  border: 1px dashed rgba(60,64,67,.22);
  background: #fafafa;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--rf-muted);
  box-sizing: border-box;
}
.rf-form-card input[type="file"]::file-selector-button {
  border: 1px solid rgba(60,64,67,.22);
  background: #fff;
  color: var(--rf-ink);
  border-radius: 999px;
  padding: 8px 12px;
  margin-right: 10px;
  font-weight: 600;
  cursor: pointer;
}
.rf-form-card input[type="file"]::file-selector-button:hover {
  background: #f3f4f6;
}

.rf-form-card input:focus,
.rf-form-card select:focus,
.rf-form-card textarea:focus {
  outline: none;
  border-color: rgba(26,115,232,.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,115,232,.14);
}

.rf-form-card input[type="checkbox"],
.rf-form-card input[type="radio"] {
  accent-color: var(--rf-focus);
  width: 16px;
  height: 16px;
  transform: translateY(1px);
  cursor: pointer;
}

.rf-form-card label {
  font-size: 14px;
  color: var(--rf-ink);
  line-height: 1.35;
  display: block;
  margin-bottom: 4px;
  margin-top: 14px;
}

.rf-radio-group,
.rf-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 6px;
}
.rf-radio-group label,
.rf-checkbox-group label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rf-form-row {
  display: flex;
  gap: 14px;
}
.rf-form-group {
  flex: 1;
  min-width: 0;
}

/* ── Choices.js ──────────────────────────────────────────────────── */
.rf-form-card .choices__inner {
  border-radius: 10px;
  border-color: var(--rf-line);
  background: #fafafa;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 15px;
}
.rf-form-card .choices.is-focused .choices__inner {
  border-color: rgba(26,115,232,.65);
  box-shadow: 0 0 0 4px rgba(26,115,232,.14);
  background: #fff;
}

/* ── Error messages ──────────────────────────────────────────────── */
.rf-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
}

/* ── Tooltip ─────────────────────────────────────────────────────── */
.rf-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}
.rf-tooltip-icon {
  color: var(--rf-muted);
  cursor: help;
  font-size: 14px;
}
.rf-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 220px;
  white-space: normal;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
.rf-tooltip-wrap:hover .rf-tooltip-bubble {
  opacity: 1;
  visibility: visible;
}

/* ── Swatches ────────────────────────────────────────────────────── */
.rf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.rf-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color .12s, box-shadow .12s;
  background: none;
  font-size: 12px;
  color: var(--rf-muted);
  min-width: 56px;
}
.rf-swatch:hover {
  border-color: var(--rf-line);
}
.rf-swatch.selected {
  border-color: var(--rf-focus);
  color: var(--rf-ink);
  box-shadow: 0 0 0 2px rgba(26,115,232,.2);
}
.rf-swatch-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
/* Image used in color mode — circular, same size as dot */
.rf-swatch-dot--img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  object-fit: cover;
}
/* Image used in icon mode — larger contained icon */
.rf-swatch-img {
  width: 56px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}
/* Icon mode: slightly larger swatches in a tighter grid */
.rf-swatches--icon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.rf-swatches--icon .rf-swatch {
  min-width: 0;
  padding: 10px 6px 8px;
}
.rf-swatch-label {
  text-align: center;
  line-height: 1.2;
}

/* ── Conversion row (meters/feet) ────────────────────────────────── */
.rf-convert-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rf-convert-row input {
  flex: 1;
}
.rf-convert-unit {
  color: var(--rf-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* HP/kW row */
.rf-hp-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rf-hp-row input {
  flex: 1;
}

/* ── Owner rows ──────────────────────────────────────────────────── */
.rf-owner-row {
  display: grid;
  grid-template-columns: 28px 1fr minmax(120px, 170px);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.rf-owner-num {
  text-align: right;
  font-weight: 600;
  color: #5f6368;
  margin: 0;
  padding-top: 12px;
}
.rf-owner-row input { margin: 0 !important; }
.rf-owner-pct {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rf-owner-pct input {
  width: 90px;
  min-width: 90px;
  text-align: right;
}
input.rf-readonly {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  color: #3c4043;
  cursor: default;
}

/* ── Email pill (login) ──────────────────────────────────────────── */
.rf-email-info {
  margin: 16px 0;
}
.rf-display-name {
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--rf-ink);
}
.rf-email-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

/* ── Encryption notice ───────────────────────────────────────────── */
.rf-enc-notice {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rf-line);
  color: var(--rf-muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.rf-nav {
  max-width: 820px;
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rf-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .08s ease-out, box-shadow .12s ease-out, background .12s ease-out, border-color .12s ease-out;
}
.rf-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rf-btn-primary {
  background: var(--rf-focus);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26,115,232,.22);
}
.rf-btn-primary:hover:not(:disabled) {
  background: #1558b0;
  transform: translateY(-1px);
}

.rf-btn-secondary {
  background: #fff;
  color: var(--rf-ink);
  border-color: var(--rf-line);
}
.rf-btn-secondary:hover:not(:disabled) {
  background: var(--rf-soft);
  transform: translateY(-1px);
}

.rf-btn-text {
  background: none;
  border: none;
  color: var(--rf-focus);
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.rf-btn-text:hover { text-decoration: underline; }

/* ── Step 8: summary card ────────────────────────────────────────── */
.rf-summary-card {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-sm);
  padding: 16px;
  background: var(--rf-soft);
  margin: 16px 0;
}
.rf-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rf-line);
  font-size: 14px;
}
.rf-summary-item:last-child { border-bottom: none; }
.rf-summary-label {
  font-weight: 600;
  color: var(--rf-muted);
  min-width: 160px;
}
.rf-summary-value { color: var(--rf-ink); }

.rf-activation-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.rf-activate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  line-height: 1;
  vertical-align: middle;
}
.rf-activate-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Loader overlay ──────────────────────────────────────────────── */
.rf-loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.80);
}
.rf-loader-overlay.active { display: flex; }

.rf-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 28px 32px;
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow);
}
.rf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--rf-line);
  border-top-color: var(--rf-focus);
  border-radius: 999px;
  animation: rf-spin 0.8s linear infinite;
}
@keyframes rf-spin { to { transform: rotate(360deg); } }

.rf-loader-text {
  color: var(--rf-muted);
  font-size: 14px;
}

/* ── Check-email button ──────────────────────────────────────────── */
.rf-check-email-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.rf-check-email-wrap input { flex: 1; }

/* ── Show-password toggle ────────────────────────────────────────── */
.rf-show-pw {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--rf-muted);
  cursor: pointer;
}

/* ── Section headings inside a step ─────────────────────────────── */
.rf-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--rf-ink);
  margin: 20px 0 8px;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rf-wrap { padding: 12px; }
  .rf-form-card { padding: 14px 14px 10px; }
  .rf-stepper-wrap { padding: 12px; }

  .rf-stepper-list {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 14px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .rf-step-node {
    flex: 0 0 auto;
    width: 44px;
    padding: 0;
    scroll-snap-align: start;
  }
  .rf-step-title { display: none; }
  .rf-step-node::before { width: 28px; height: 28px; font-size: 12px; }
  .rf-stepper-meta { display: block; text-align: left; }

  .rf-nav { justify-content: stretch; }
  .rf-btn { width: 100%; }

  .rf-form-row { flex-direction: column; gap: 0; }

  .rf-owner-row {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
  }
  .rf-owner-num {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .rf-owner-pct { justify-content: flex-start; }

  .rf-activation-btns { flex-direction: column; }
}

/* Step 7 — structured insurance */
.rf-coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 6px 0 14px; }
.rf-coverage-item { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.rf-coverage-item input { flex: 0 0 auto; width: auto; }
.rf-row { display: flex; gap: 16px; }
.rf-row > div { flex: 1; }

/* ── Lead text under a heading ───────────────────────────────────── */
.rf-lead {
  color: var(--rf-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: -2px 0 16px;
}

/* ── Floating field hint (auto-shown on focus) ───────────────────── */
.rf-focus-hint {
  position: fixed;
  z-index: 99998;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 220px;
  max-width: 380px;
  padding: 9px 12px;
  background: #eef4ff;
  color: #1c3a5e;
  border: 1px solid #d7e3fb;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--rf-shadow-sm);
  pointer-events: none;
  box-sizing: border-box;
  animation: rf-hint-in .16s ease;
}
.rf-focus-hint i { color: var(--rf-focus); margin-top: 1px; flex: 0 0 auto; }
@keyframes rf-hint-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

/* ── Home port search-and-find ───────────────────────────────────── */
.rf-hp { position: relative; }
.rf-hp-input { position: relative; display: flex; align-items: center; }
.rf-hp-search-icon {
  position: absolute; left: 13px; color: var(--rf-muted); font-size: 14px; pointer-events: none;
}
.rf-form-card .rf-hp-input input#rf-home-port,
.rf-form-card .rf-hp-input input.rf-search-input { padding-left: 38px; }
.rf-hp-results {
  list-style: none; margin: 8px 0 0; padding: 6px;
  border: 1px solid var(--rf-line); border-radius: 12px; background: #fff;
  box-shadow: var(--rf-shadow); max-height: 320px; overflow-y: auto;
  animation: rf-results-in .14s ease-out;
}
@keyframes rf-results-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.rf-hp-group {
  font-size: 12px; font-weight: 700; letter-spacing: 0;
  color: var(--rf-muted); padding: 10px 12px 4px;
}
.rf-hp-result {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 9px; cursor: pointer; color: var(--rf-ink); font-size: 14.5px;
  transition: background .12s ease;
}
.rf-hp-result:hover { background: #f2f7ff; }
/* An explanation, not a choice: it lives in the results box so it is read, but it
   does not look clickable. */
.rf-hp-empty {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 12px;
  font-size: 13.5px; line-height: 1.45; color: var(--rf-muted);
}
.rf-hp-empty i { color: #94a3b8; font-size: 13px; margin-top: 2px; flex: 0 0 auto; }
.rf-hp-result i { color: var(--rf-focus); font-size: 14px; width: 16px; text-align: center; flex: 0 0 auto; }
.rf-hp-result[data-type="custom"] i { color: #8a6d3b; }
/* Same visual language as .rf-picked — a chosen value is calm, not shouted. */
.rf-hp-selected {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid #cfe0fb; border-radius: 12px; background: #f7faff;
}
.rf-hp-selected-icon {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 999px;
  display: grid; place-items: center; background: var(--rf-focus); color: #fff; font-size: 12px;
}
.rf-hp-selected-label { flex: 1; min-width: 0; font-weight: 600; color: var(--rf-ink); font-size: 15px; }
.rf-hp-selected .rf-hp-link { margin-top: 0; white-space: nowrap; }
.rf-hp-custom { display: flex; flex-direction: column; align-items: flex-start; }
.rf-hp-custom input { width: 100%; }
.rf-hp-link {
  background: none; border: none; color: var(--rf-focus); font-weight: 600;
  cursor: pointer; padding: 0; font-size: 13.5px; text-decoration: underline; margin-top: 8px;
}
/* Secondary detail on a result row (country, year span, length) */
.rf-hp-result-meta { margin-left: auto; font-size: 12.5px; color: var(--rf-muted); flex: 0 0 auto; }
.rf-search-note { font-size: 13px; color: var(--rf-muted); margin: 8px 0 0; }

/* Harbour names repeat across Sweden, so the name has to be able to truncate
   while the kommun that disambiguates it stays visible. */
.rf-hp-result-name {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* A quiet confirmation, not a badge: the club checked its own details. */
.rf-hp-verified { color: #1f9d55 !important; font-size: 12.5px !important; width: auto !important; }
.rf-hp-spin { position: absolute; right: 14px; color: var(--rf-muted); font-size: 13px; }
.rf-hp-note { font-size: 13px; color: var(--rf-muted); margin: 8px 0 0; line-height: 1.5; }

/* ── Step 1: field blocks ────────────────────────────────────────── */
/* Each question is its own titled block with always-visible help text, rather
   than a bare "Label:" — this is the first screen a visitor ever sees. */
.rf-step-head { margin-bottom: 4px; }
.rf-step1 h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.rf-step1 .rf-lead { margin: 0; }

.rf-block { padding: 20px 0; border-top: 1px solid var(--rf-line); }
.rf-block:first-of-type { border-top: 0; padding-top: 18px; }
.rf-block:last-of-type { padding-bottom: 4px; }
.rf-block-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.rf-block-icon {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; font-size: 14px;
  background: #eaf2fe; color: var(--rf-focus);
}
.rf-block-heading { min-width: 0; }
.rf-block-title {
  margin: 2px 0 0; font-size: 16px; font-weight: 700; color: var(--rf-ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.25;
}
.rf-block-sub { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--rf-muted); }
.rf-pill-optional {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0;
  color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 3px 8px;
}
/* ── A chosen value (make/model) ─────────────────────────────────── */
.rf-picked {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid #cfe0fb; border-radius: 12px; background: #f7faff;
}
.rf-picked--partial { margin-bottom: 8px; }
.rf-picked-check {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 999px;
  display: grid; place-items: center; background: var(--rf-focus); color: #fff; font-size: 12px;
}
.rf-picked-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rf-picked-text strong { font-size: 15px; font-weight: 700; color: var(--rf-ink); }
.rf-picked-sub { font-size: 13.5px; color: var(--rf-muted); }
.rf-picked-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.rf-picked-actions .rf-hp-link { margin-top: 0; white-space: nowrap; }
/* The model search sits directly under its chosen make. Both keep normal radii —
   faking an "attached" unit across a gap just reads as two squared-off pieces. */
.rf-hp-input--nested { margin-top: 0; }

/* ── Boat profile photo (step 1) ─────────────────────────────────── */
/* Optional, so it reads as a compact row rather than a full-width dashed slab. */
/* Doubled class so this wins over the base .rf-dropzone rule further down the
   file (same specificity would otherwise lose on source order). */
.rf-dropzone.rf-dropzone--photo {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 0;
}
.rf-photo-drop-glyph {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; background: #eef2f7; color: #64748b; font-size: 17px;
  transition: background .14s ease, color .14s ease;
}
.rf-dropzone--photo:hover .rf-photo-drop-glyph,
.rf-dropzone--photo:focus .rf-photo-drop-glyph,
.rf-dropzone--photo.is-dragover .rf-photo-drop-glyph { background: #dbeafe; color: var(--rf-focus); }
.rf-photo-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-photo-drop-title { font-weight: 700; color: var(--rf-ink); font-size: 15px; }
.rf-photo-drop-hint { font-size: 12.5px; color: var(--rf-muted); }

.rf-photo-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid var(--rf-line); border-radius: 12px; background: #fff;
  box-shadow: var(--rf-shadow-sm);
}
.rf-photo-thumb {
  width: 96px; height: 68px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  background: #eef2f7; display: grid; place-items: center; color: #8a94a3;
}
.rf-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-photo-meta { flex: 1; min-width: 0; }
.rf-photo-name {
  font-weight: 600; color: var(--rf-ink); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rf-photo-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--rf-muted); margin-top: 3px; }
.rf-photo-status.is-done  { color: #15803d; }
.rf-photo-status.is-error { color: #dc2626; }

@media (max-width: 640px) {
  .rf-picked { flex-wrap: wrap; }
  .rf-picked-actions { width: 100%; padding-left: 38px; }
  .rf-photo-thumb { width: 72px; height: 54px; }
}

/* ── Choice cards (Helägare / Delägare) ──────────────────────────── */
.rf-choice-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.rf-choice-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px; border: 2px solid var(--rf-line); border-radius: 14px;
  background: #fff; cursor: pointer; font-family: inherit; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.rf-choice-card:hover { border-color: #b7c6e0; box-shadow: 0 4px 14px rgba(20,60,120,.08); }
.rf-choice-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; min-width: 46px; border-radius: 12px;
  background: #eef2f8; color: #4a6fa5; font-size: 19px;
  transition: background .16s ease, color .16s ease;
}
.rf-choice-body { display: flex; flex-direction: column; gap: 3px; }
.rf-choice-title { font-weight: 700; font-size: 16px; color: var(--rf-ink); line-height: 1.2; }
.rf-choice-desc { font-size: 13px; color: var(--rf-muted); line-height: 1.35; }
.rf-choice-check {
  margin-left: auto; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  border: 2px solid #d2d7de; color: #fff; font-size: 11px; transform: scale(.85);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.rf-choice-card.selected {
  border-color: var(--rf-focus); background: #f5f9ff; box-shadow: 0 6px 18px rgba(26,115,232,.15);
}
.rf-choice-card.selected .rf-choice-icon { background: var(--rf-focus); color: #fff; }
.rf-choice-card.selected .rf-choice-check { background: var(--rf-focus); border-color: var(--rf-focus); transform: scale(1); }

/* ── Co-owner list ───────────────────────────────────────────────── */
.rf-owners-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rf-owners-head label { font-weight: 600; }
.rf-owners-list { display: flex; flex-direction: column; gap: 12px; }
.rf-owner-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--rf-line); border-radius: 12px;
}
.rf-owner-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #4a6fa5, var(--rf-focus)); color: #fff; font-weight: 700; font-size: 15px;
}
.rf-owner-main { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.rf-owner-you, .rf-owner-email { position: relative; display: flex; align-items: center; }
.rf-owner-email-icon { position: absolute; left: 12px; color: var(--rf-muted); font-size: 13px; pointer-events: none; }
.rf-owner-card .rf-owner-email input { padding-left: 34px; }
.rf-owner-card input { margin: 0 !important; }
.rf-owner-you-badge {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: #e6f0ff; color: var(--rf-focus); font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px;
}
.rf-owner-track { height: 6px; border-radius: 6px; background: #eceef2; overflow: hidden; }
.rf-owner-fill { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #4a6fa5, var(--rf-focus)); transition: width .35s ease; }
.rf-owner-pct-box {
  display: flex; align-items: center; gap: 4px; background: #f5f6f8;
  border: 1px solid #e0e3e8; border-radius: 10px; padding: 4px 10px 4px 6px;
}
.rf-owner-card .rf-owner-pct-box input {
  width: 62px; min-width: 62px; text-align: right; margin: 0 !important;
  border: none !important; background: transparent !important; padding: 6px 2px !important;
  font-weight: 600; box-shadow: none !important;
}
.rf-owner-pct-suffix { color: var(--rf-muted); font-weight: 600; }
.rf-owner-total { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--rf-soft); border: 1px solid var(--rf-line); }
.rf-owner-total-bar { height: 10px; border-radius: 8px; background: #eceef2; overflow: hidden; }
.rf-owner-total-fill { display: block; height: 100%; width: 0; border-radius: 8px; background: #e0a800; transition: width .35s ease, background .35s ease; }
.rf-owner-total--complete .rf-owner-total-fill { background: linear-gradient(90deg, #34a853, #1e8e3e); }
.rf-owner-total--over .rf-owner-total-fill { background: #d93025; }
.rf-owner-total-label { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 13.5px; color: var(--rf-muted); }
.rf-owner-total-readout b { color: var(--rf-ink); font-size: 15px; }
.rf-owner-total--complete .rf-owner-total-readout b { color: #1e8e3e; }
.rf-owner-total--over .rf-owner-total-readout b { color: #d93025; }

/* ── Multi-file uploader ─────────────────────────────────────────── */
.rf-dropzone {
  border: 2px dashed #cdd3dc; border-radius: 14px; background: var(--rf-soft);
  padding: 26px 18px; text-align: center; cursor: pointer; margin-bottom: 14px;
  transition: border-color .16s ease, background .16s ease;
}
.rf-dropzone:hover, .rf-dropzone:focus, .rf-dropzone.is-dragover { border-color: var(--rf-focus); background: #f2f7ff; outline: none; }
.rf-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rf-dropzone-glyph { font-size: 30px; color: #4a6fa5; margin-bottom: 4px; }
.rf-dropzone-title { font-weight: 700; color: var(--rf-ink); font-size: 15.5px; }
.rf-dropzone-or { font-size: 13.5px; color: var(--rf-muted); }
.rf-dropzone-or .rf-hp-link { margin-top: 0; }
.rf-dropzone-hint { font-size: 12px; color: var(--rf-muted); margin-top: 2px; }
.rf-doc-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rf-doc-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--rf-line); border-radius: 12px;
  transition: box-shadow .16s ease, border-color .16s ease, opacity .16s ease;
}
.rf-doc-item.is-dragging { opacity: .5; border-color: var(--rf-focus); }
.rf-doc-drag { color: #b0b6bf; cursor: grab; font-size: 15px; padding: 2px; }
.rf-doc-thumb {
  width: 44px; height: 44px; min-width: 44px; border-radius: 9px; background: #eef2f8;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: #4a6fa5; font-size: 18px;
}
.rf-doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-doc-meta { flex: 1; min-width: 0; }
.rf-doc-name { font-weight: 600; color: var(--rf-ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-doc-primary {
  display: inline-block; background: #e6f0ff; color: var(--rf-focus); font-size: 10.5px;
  font-weight: 700; padding: 1px 7px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.rf-doc-sub { font-size: 12px; color: var(--rf-muted); margin-top: 1px; }
.rf-doc-remove {
  background: none; border: none; color: #b0b6bf; cursor: pointer; font-size: 16px;
  padding: 6px; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.rf-doc-remove:hover { color: #d93025; background: #fdecea; }

@media (max-width: 640px) {
  .rf-choice-cards { grid-template-columns: 1fr; }
  .rf-owner-card .rf-owner-pct-box input { width: 52px; min-width: 52px; }
}

/* ══════════════════════════════════════════════════════════════════
   Shared step furniture — introduced with the step-1 redesign and now
   used by every step, so it lives at the end where it wins on order.
   ══════════════════════════════════════════════════════════════════ */

/* Every step opens the same way: title, one line of plain-language context. */
.rf-step1 h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }

/* A block heading is an <h3>, OR a <label> when the block wraps a single control.
   In the <label> case the base `.rf-form-card label` rule (0,1,1) would otherwise
   outrank `.rf-block-title` (0,1,0) and render half the form's headings in the old
   small-label style — so restate the heading look at (0,2,0). */
.rf-form-card .rf-block-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 16px; font-weight: 700; color: var(--rf-ink);
  line-height: 1.25; margin: 2px 0 0;
}

/* A single control that fills its block. Element-qualified so it beats
   `.rf-form-card input[type="text"] { max-width: 100% }` at (0,2,1). */
.rf-form-card input.rf-input-short { max-width: 160px; }

/* Labelled controls inside a multi-control block. */
.rf-subfield { min-width: 0; }
.rf-form-card .rf-subfield > label { margin-top: 0; margin-bottom: 5px; font-weight: 600; }
.rf-measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }

/* Number + unit, with an optional derived hint underneath. */
.rf-unit-field { position: relative; display: block; }
.rf-form-card .rf-unit-field input { padding-right: 44px; }
.rf-unit-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 600; color: var(--rf-muted); pointer-events: none;
}
.rf-unit-hint { display: block; font-size: 12.5px; color: var(--rf-muted); margin-top: 5px; min-height: 17px; }
.rf-unit-row { display: flex; align-items: center; gap: 10px; }
.rf-unit-row .rf-unit-field { flex: 1; min-width: 0; }
.rf-unit-equals { color: var(--rf-muted); font-weight: 600; flex: 0 0 auto; }
.rf-form-card .rf-unit-field--derived input { background: #f3f4f6; color: var(--rf-muted); cursor: default; }

/* Chips — a short reference list shown in full instead of hidden in a select. */
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rf-line); background: #fff; color: var(--rf-ink);
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.rf-chip:hover { border-color: #b7c6e0; background: var(--rf-soft); }
.rf-chip.selected { border-color: var(--rf-focus); background: #eaf2fe; color: var(--rf-focus); box-shadow: 0 0 0 1px var(--rf-focus) inset; }
.rf-chip:focus-visible { outline: 3px solid rgba(26,115,232,.35); outline-offset: 2px; }

/* Password with a show/hide eye. */
.rf-pw { position: relative; display: block; }
.rf-form-card .rf-pw input { padding-right: 46px; }
.rf-pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--rf-muted);
  padding: 8px 10px; border-radius: 8px; font-size: 15px;
}
.rf-pw-eye:hover { color: var(--rf-focus); background: #f2f7ff; }

/* The email this account belongs to, shown above account forms. */
.rf-account-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 4px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--rf-soft); border: 1px solid var(--rf-line);
  font-size: 14px; color: var(--rf-ink); font-weight: 600; max-width: 100%;
}
.rf-account-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-account-pill i { color: var(--rf-muted); }
.rf-account-pill .rf-hp-link { margin-top: 0; }

/* Inline notice (password-reset sent, etc.). */
.rf-notice {
  display: flex; align-items: center; gap: 10px; margin: 12px 0;
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
}
.rf-notice--ok { background: #dcfce7; color: #166534; }

/* The action that ends a step (create account, set password). */
.rf-step-action { margin-top: 22px; }
.rf-enc-note { font-size: 12.5px; color: var(--rf-muted); margin: 10px 0 0; }
.rf-btn-finish { font-weight: 700; }

/* Step 8 — the number the whole flow was for. */
.rf-regnum {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  padding: 20px; margin-bottom: 18px; text-align: center;
  border: 1px solid #cfe0fb; border-radius: 14px;
  background: radial-gradient(circle at 50% 0, #eef5ff 0, #ffffff 70%);
}
.rf-regnum-label { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--rf-muted); }
.rf-regnum-value { font-size: 30px; font-weight: 800; letter-spacing: .06em; color: var(--rf-ink); }

.rf-sum-group { padding: 16px 0; border-top: 1px solid var(--rf-line); }
.rf-sum-group:first-child { border-top: 0; padding-top: 0; }
.rf-sum-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rf-sum-group-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--rf-ink); }
.rf-sum-list { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 6px 18px; margin: 0; }
.rf-sum-list dt { color: var(--rf-muted); font-size: 14px; }
.rf-sum-list dd { margin: 0; color: var(--rf-ink); font-size: 14px; font-weight: 600; }

/* Coverage checkboxes read as tappable rows, not a dense checkbox column. */
.rf-coverage-item.selected { border-color: var(--rf-focus); background: #eaf2fe; }

@media (max-width: 640px) {
  .rf-measure-grid { grid-template-columns: 1fr; }
  .rf-sum-list { grid-template-columns: 1fr; gap: 2px; }
  .rf-sum-list dd { margin-bottom: 10px; }
  .rf-regnum-value { font-size: 26px; }
}

/* ── Engine list (step 6) ────────────────────────────────────────── */
.rf-engine-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rf-engine-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--rf-line); border-radius: 12px; background: #fff;
}
.rf-engine-icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; background: #eef2f7; color: #64748b; font-size: 15px;
}
.rf-engine-meta { flex: 1; min-width: 0; }
.rf-engine-title { font-weight: 700; color: var(--rf-ink); font-size: 15px; }
.rf-engine-sub { font-size: 13px; color: var(--rf-muted); margin-top: 2px; }
.rf-engine-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.rf-engine-actions .rf-hp-link { margin-top: 0; white-space: nowrap; }

/* The inline editor for one engine. */
.rf-engine-editor {
  border: 1px solid #cfe0fb; border-radius: 14px; background: #f7faff;
  padding: 16px; margin-bottom: 14px;
}
.rf-engine-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rf-engine-editor-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--rf-ink); }
.rf-engine-editor-head .rf-hp-link { margin-top: 0; }
.rf-engine-editor-actions { margin-top: 18px; }
.rf-form-card .rf-engine-editor input,
.rf-form-card .rf-engine-editor select { background: #fff; }

/* "Add another" — a dashed affordance that reads as an action, not a field. */
.rf-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 700; color: var(--rf-focus);
  background: #fff; border: 2px dashed #cdd3dc; border-radius: 12px;
  transition: border-color .14s ease, background .14s ease;
}
.rf-add-btn:hover, .rf-add-btn:focus-visible { border-color: var(--rf-focus); background: #f2f7ff; outline: none; }

/* Empty state for a list nobody has added to yet. */
.rf-empty {
  text-align: center; padding: 24px 18px; margin-bottom: 14px;
  border-radius: 12px; background: var(--rf-soft); border: 1px solid var(--rf-line);
}
.rf-empty-glyph { font-size: 26px; color: #b0b6bf; }
.rf-empty-title { font-weight: 700; color: var(--rf-ink); margin-top: 8px; }
.rf-empty-sub { font-size: 13px; color: var(--rf-muted); margin-top: 3px; }

@media (max-width: 640px) {
  .rf-engine-item { flex-wrap: wrap; }
  .rf-engine-actions { width: 100%; justify-content: flex-end; }
}

/* ── Registration-number choice (step 8) ─────────────────────────── */
.rf-number-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.rf-number-option {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 16px 12px; cursor: pointer; font-family: inherit;
  background: #fff; border: 2px solid var(--rf-line); border-radius: 12px;
  transition: border-color .14s ease, background .14s ease, transform .08s ease;
}
.rf-number-option:hover { border-color: #b7c6e0; background: var(--rf-soft); transform: translateY(-1px); }
.rf-number-option:focus-visible { outline: 3px solid rgba(26,115,232,.35); outline-offset: 2px; }
.rf-number-option.selected { border-color: var(--rf-focus); background: #eaf2fe; }
.rf-number-plate {
  font-size: 19px; font-weight: 800; letter-spacing: .09em; color: var(--rf-ink);
  font-variant-numeric: tabular-nums;
}
.rf-number-option.selected .rf-number-plate { color: var(--rf-focus); }
.rf-number-check {
  position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--rf-focus);
}
.rf-number-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px;
  padding: 12px 14px; border-radius: 10px; background: var(--rf-soft);
  font-size: 13px; line-height: 1.5; color: var(--rf-muted);
}
.rf-number-note i { color: var(--rf-muted); margin-top: 2px; flex: 0 0 auto; }

/* Series / variant separation in the catalog pickers. */
.rf-variant-pill {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #eef2f7; color: #475569; font-size: 11.5px; font-weight: 700;
}
.rf-picked-series {
  display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 5px;
  background: #e6eefc; color: var(--rf-focus); font-size: 12px; font-weight: 700;
}

@media (max-width: 640px) {
  .rf-number-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Live HIN/CIN read-out ───────────────────────────────────────── */
.rf-hin-result {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 10px;
  padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
}
.rf-hin-result.is-ok   { background: #ecfdf5; color: #065f46; }
.rf-hin-result.is-warn { background: #fffbeb; color: #92400e; }
.rf-hin-result.is-progress { background: #f1f5f9; color: #475569; }
.rf-hin-result i { margin-top: 2px; flex: 0 0 auto; font-size: 15px; }
.rf-hin-summary { font-weight: 700; }
.rf-hin-parts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; opacity: .85; font-size: 12.5px; }
.rf-hin-hint { margin-top: 5px; font-size: 12.5px; opacity: .85; }

/* ── Catalogue dimensions (step 5) ───────────────────────────────── */
/* Shown as established facts, not as pre-filled inputs — most owners never touch them. */
.rf-catalog-dims {
  border: 1px solid #cfe0fb; border-radius: 12px; background: #f7faff; padding: 14px 16px;
}
.rf-catalog-dims-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-weight: 700; color: var(--rf-ink); font-size: 14.5px;
}
.rf-catalog-dims-head i { color: var(--rf-focus); }
.rf-catalog-dims-model {
  font-weight: 600; color: var(--rf-focus); background: #e6eefc;
  border-radius: 5px; padding: 1px 8px; font-size: 12.5px;
}
.rf-catalog-dims-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 16px; margin: 12px 0 0;
}
.rf-catalog-dims-list dt { font-size: 12.5px; color: var(--rf-muted); }
.rf-catalog-dims-list dd { margin: 2px 0 0; font-size: 15.5px; font-weight: 700; color: var(--rf-ink); }
.rf-catalog-dims-actions {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid #dbe7fb;
}
.rf-catalog-dims-actions .rf-hp-link { margin-top: 0; }
.rf-notice--info { background: #eff6ff; color: #1e40af; }

@media (max-width: 640px) {
  .rf-catalog-dims-list { grid-template-columns: repeat(2, 1fr); }
}
