.nz-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 360 / 124;
  margin: 0 auto;
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 40%, #f5f5f5 100%);
  border: clamp(3px, 1.7cqw, 6px) solid #111;
  border-radius: clamp(6px, 3.3cqw, 12px);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.6),
    0 4px 12px rgba(0,0,0,0.25);
  font-family: 'Arial Black', 'Arial Bold', Impact, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 20cqw, 72px);
  letter-spacing: 0.03em;
  color: #111;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  overflow: hidden;
  container-type: inline-size;
  box-sizing: border-box;
}

.nz-plate::before {
  content: attr(data-plate);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: #000;
  text-shadow: 
    1px 1px 0 rgba(255,255,255,0.4),
    -1px -1px 0 rgba(0,0,0,0.3);
  pointer-events: none;
  font-size: inherit;
  letter-spacing: inherit;
}

/* Mounting holes */
.nz-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 5% 14%, #222 1.2cqw, transparent 1.3cqw),
    radial-gradient(circle at 95% 14%, #222 1.2cqw, transparent 1.3cqw),
    radial-gradient(circle at 5% 86%, #222 1.2cqw, transparent 1.3cqw),
    radial-gradient(circle at 95% 86%, #222 1.2cqw, transparent 1.3cqw);
  background-repeat: no-repeat;
}

@supports not (container-type: inline-size) {
  .nz-plate {
    font-size: clamp(28px, 20vw, 72px);
    border-width: clamp(3px, 1.6vw, 6px);
    border-radius: clamp(6px, 3.2vw, 12px);
  }
  .nz-plate::after {
    background-image: 
      radial-gradient(circle at 18px 18px, #222 4.5px, transparent 5px),
      radial-gradient(circle at calc(100% - 18px) 18px, #222 4.5px, transparent 5px),
      radial-gradient(circle at 18px calc(100% - 18px), #222 4.5px, transparent 5px),
      radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), #222 4.5px, transparent 5px);
  }
}





.nz-plate-input {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 420 / 124;
  margin: 0;
  padding: 0 1.4rem;
  box-sizing: border-box;

  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 40%, #f5f5f5 100%);
  border: clamp(3px, 1.4cqw, 6px) solid #111;
  border-radius: clamp(6px, 2.5cqw, 12px);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.6),
    0 4px 12px rgba(0,0,0,0.25);

  font-family: 'Arial Black', 'Arial Bold', Impact, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 16cqw, 64px);
  letter-spacing: 0.08em;          /* characters a little further apart */
  color: #111;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;

  container-type: inline-size;
  outline: none;
  caret-color: #111;

  /* Larger, more visible mounting holes */
  background-image: 
    linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 40%, #f5f5f5 100%),
    radial-gradient(circle at 3.5% 12%, #111 1.6cqw, transparent 1.7cqw),
    radial-gradient(circle at 96.5% 12%, #111 1.6cqw, transparent 1.7cqw),
    radial-gradient(circle at 3.5% 88%, #111 1.6cqw, transparent 1.7cqw),
    radial-gradient(circle at 96.5% 88%, #111 1.6cqw, transparent 1.7cqw);
  background-repeat: no-repeat;
  background-size: cover;
}

.nz-plate-input:focus {
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.6),
    0 0 0 3px rgba(0, 123, 255, 0.35),
    0 4px 12px rgba(0,0,0,0.25);
}

.nz-plate-input::placeholder {
  color: #b3afaf;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nz-plate-input.is-invalid,
.was-validated .nz-plate-input:invalid {
  border-color: #dc3545;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.6),
    0 0 0 3px rgba(220, 53, 69, 0.25);
}

@supports not (container-type: inline-size) {
  .nz-plate-input {
    font-size: clamp(26px, 16vw, 64px);
    border-width: clamp(3px, 1.4vw, 6px);
    border-radius: clamp(6px, 2.5vw, 12px);
    background-image: 
      linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 40%, #f5f5f5 100%),
      radial-gradient(circle at 16px 16px, #111 5.5px, transparent 6px),
      radial-gradient(circle at calc(100% - 16px) 16px, #111 5.5px, transparent 6px),
      radial-gradient(circle at 16px calc(100% - 16px), #111 5.5px, transparent 6px),
      radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #111 5.5px, transparent 6px);
  }
}




    .rg-live-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.form-label {
    font-weight: bold;
}

.form-check {
    margin-top: 0.5rem;
}

.table-sm tr:last-child td {
  border-bottom: none;
  margin-bottom: none;
}