/* =====================================================================
   Registration plate input — shared by the homepage and sub-pages (hero + CTA band) and
   /tilbud (step 1). Standalone: does not depend on a Tailwind rebuild.
   ===================================================================== */

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

.plate-field {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease;
}
.plate-field:focus-within {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.55), 0 10px 30px rgba(0, 0, 0, 0.25);
}
.plate-field.has-error {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.75), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.plate-badge {
  width: 2.75rem;
  flex-shrink: 0;
  background: #0a3d91;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}
.plate-badge svg { width: 18px; height: 13px; }

.plate-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 1rem;
  font: 700 1.35rem/1.2 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}
.plate-input::placeholder {
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Read-only plate, e.g. inside the car summary card */
.plate-chip {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.18);
  font: 800 0.85rem/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  color: #0f172a;
  white-space: nowrap;
  vertical-align: middle;
}
.plate-chip::before {
  content: 'N';
  background: #0a3d91;
  color: #fff;
  font-size: 0.6rem;
  padding: 0 0.3rem 0.25rem;
  display: flex;
  align-items: flex-end;
}
.plate-chip > span { padding: 0.3rem 0.45rem; }
