/* =========================================================
   THE CAR PLATE MAKER — configurator (steps 1–8)
   assests/css/design.css
   Loads AFTER style.css and reuses its tokens.
   ========================================================= */

:root {
  --yellow: #f7b500;
  --yellow-dark: #dfa200;
  --green: #17913d;
  --green-bg: #f0faf3;
  --info-bg: #f2f7fd;
  --info-line: #d6e6f8;
  --card: #ffffff;
  --field-line: #d5d9de;
}

/* same ash gradient as the landing page */
.page-design {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--steel-1) 0%, var(--steel-2) 45%, var(--steel-3) 72%, var(--steel-1) 100%);
  background-attachment: fixed;
}

/* header burger, hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  border-radius: 2px;
  background: var(--ink);
}

/* =========================================================
   WIZARD SHELL
   ========================================================= */
.wizard {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 24px 60px;
}

/* =========================================================
   STEPPER
   ========================================================= */
.stepper {
  padding: 22px 26px 18px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
}

.stepper ol {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

/* connector line */
.step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 17px);
  width: calc(100% - 34px);
  height: 1.5px;
  background: #dfe3e7;
}

.step:first-child::before { display: none; }

.step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f0f2f4;
  border: 1.5px solid #dfe3e7;
  font-family: var(--util);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
}

.step-name {
  font-family: var(--util);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-3);
}

.step.is-current .step-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #26200a;
}

.step.is-current .step-name { color: var(--ink); }

.step.is-done .step-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step.is-done .step-name { color: var(--ink-2); }

/* =========================================================
   PANEL
   ========================================================= */
.panel {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.panel-form {
  padding: 30px 34px 34px;
  border-right: 1px solid #eceef0;
}

.panel-preview {
  padding: 30px 34px 34px;
}

.step-count {
  margin: 0 0 8px;
  font-family: var(--util);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--yellow-dark);
}

.panel-title {
  margin: 0 0 7px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.panel-sub {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---- field ---- */
.field-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--util);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.field-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247,181,0,0.18);
}

.field-input.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,18,26,0.12);
}

.field-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 0 0;
  font-size: 13.5px;
  font-weight: 500;
}

.field-status svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.field-status.is-valid { color: var(--green); }
.field-status.is-error { color: var(--red); }
.field-status.is-empty { color: var(--ink-3); }

/* ---- info note ---- */
.note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  border-radius: 8px;
}

.note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #4a86c8;
}

.note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* =========================================================
   LIVE PREVIEW
   ========================================================= */
.preview-title {
  margin: 0 0 5px;
  font-family: var(--util);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}

.preview-sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.preview-label {
  margin: 0 0 8px;
  font-family: var(--util);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.plate2d {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #101215;
  overflow: hidden;
  white-space: nowrap;
}

.plate2d span {
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plate2d-white {
  background: #fff;
  border: 1px solid var(--field-line);
}

.plate2d-yellow {
  background: var(--yellow);
  border: 1px solid var(--yellow);
}

.plate2d.is-blank {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   PANEL FOOTER
   ========================================================= */
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 34px;
  border-top: 1px solid #eceef0;
  background: #fcfcfd;
}

.btn-back {
  height: 48px;
  padding: 0 24px;
  background: #fff;
  border-color: var(--field-line);
  color: var(--ink);
}

.btn-back:hover {
  background: #f6f7f8;
  border-color: var(--ink-3);
}

.btn-next {
  height: 48px;
  padding: 0 30px;
  background: var(--yellow);
  color: #241d05;
  border-color: var(--yellow);
}

.btn-next:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn-next:disabled {
  background: #e8eaec;
  border-color: #e8eaec;
  color: var(--ink-3);
  cursor: not-allowed;
}

.btn-back:focus-visible,
.btn-next:focus-visible,
.field-input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .wizard { padding: 16px 14px 44px; }

  .nav-toggle { display: flex; }

  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand { margin-right: auto; }

  /* slide-down menu */
  .page-design .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 18px 14px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 18px rgba(0,0,0,0.07);
  }

  .page-design .site-nav.is-open { display: flex; }

  .page-design .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #eceef0;
  }

  .site-header { position: relative; }

  .btn-corporate .btn-label { display: none; }

  .btn-corporate {
    height: 40px;
    width: 44px;
    padding: 0;
  }

  /* stepper compresses to dots + tiny labels */
  .stepper { padding: 14px 10px 12px; }

  .step { gap: 6px; }

  .step::before {
    top: 12px;
    left: calc(-50% + 12px);
    width: calc(100% - 24px);
  }

  .step-dot {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-name {
    font-size: 8px;
    letter-spacing: 0.03em;
  }

  /* single column */
  .panel-grid { grid-template-columns: 1fr; }

  .panel-form {
    padding: 22px 18px 6px;
    border-right: 0;
  }

  .panel-preview { padding: 22px 18px 26px; }

  .panel-title { font-size: 22px; }
  .panel-sub { margin-bottom: 20px; font-size: 13.5px; }

  .field-input {
    height: 48px;
    font-size: 19px;
  }

  .plate2d {
    height: 60px;
    font-size: 27px;
  }

  /* stacked action buttons, primary on top */
  .panel-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 16px 18px;
  }

  .panel-foot .btn { width: 100%; }
}

@media (max-width: 420px) {
  .step-name { display: none; }

  .step::before {
    top: 12px;
    left: calc(-50% + 14px);
    width: calc(100% - 28px);
  }

  .plate2d {
    height: 54px;
    font-size: 23px;
  }
}/* =========================================================
   APPEND THIS TO THE END OF assests/css/design.css
   (option cards, material swatches, stepper tick)
   ========================================================= */

.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;
}

/* completed-step tick + clickable steps */
.step-dot svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.step-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: inherit;
}

.step-link:hover .step-name { color: var(--ink); }

/* =========================================================
   OPTION CARDS (radio choices)
   ========================================================= */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 46px;
  background: #fff;
  border: 1.5px solid #e4e7ea;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.option:hover { border-color: #c2c8ce; }

.option.is-selected {
  border-color: var(--red);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(225,18,26,0.07);
}

/* the real radio stays for keyboard and form submission */
.option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-mark {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #c2c8ce;
  background: #fff;
  transition: border-color 0.16s ease;
}

.option.is-selected .option-mark { border-color: var(--red); }

.option.is-selected .option-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--red);
}

.option input:focus-visible ~ .option-mark {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.option-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---- material swatches, drawn in CSS ---- */
.swatch {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
}

/* folded corner, shared */
.swatch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  clip-path: polygon(0 100%, 50% 30%, 100% 100%);
}

.swatch-acrylic {
  background: linear-gradient(140deg, #ffffff 0%, #f2f4f6 45%, #dfe3e7 100%);
  border: 1px solid #dce0e4;
}

.swatch-acrylic::after {
  background: linear-gradient(180deg, #e8ebee 0%, #cfd4d9 100%);
}

.swatch-aluminium {
  background: linear-gradient(140deg, #fafbfb 0%, #c8ced4 40%, #9aa1a9 70%, #e6e9ec 100%);
  border: 1px solid #bcc2c8;
}

.swatch-aluminium::after {
  background: linear-gradient(180deg, #b4bbc2 0%, #868d95 100%);
}

/* =========================================================
   MATERIAL FINISH ON THE PREVIEW PLATES
   ========================================================= */
.plate2d {
  position: relative;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

/* acrylic — glossy, a sheen band across the top */
.plate2d.mat-acrylic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(168deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.12) 34%, transparent 56%);
  pointer-events: none;
}

.plate2d.mat-acrylic {
  box-shadow: 0 2px 5px rgba(0,0,0,0.08), inset 0 -2px 4px rgba(0,0,0,0.06);
}

/* aluminium — brushed grain plus a harder edge */
.plate2d.mat-aluminium::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.20) 0px,
      rgba(255,255,255,0.20) 1px,
      rgba(0,0,0,0.03) 1px,
      rgba(0,0,0,0.03) 3px
    ),
    linear-gradient(172deg, rgba(255,255,255,0.55) 0%, transparent 42%);
  pointer-events: none;
}

.plate2d.mat-aluminium {
  box-shadow: 0 3px 7px rgba(0,0,0,0.16), inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* keep the characters above the finish overlay */
.plate2d span {
  position: relative;
  z-index: 1;
}

/* =========================================================
   RESPONSIVE ADDITIONS
   ========================================================= */
@media (max-width: 900px) {
  .option {
    gap: 12px;
    padding: 14px 14px 14px 42px;
  }

  .swatch {
    width: 62px;
    height: 44px;
  }

  .option-name { font-size: 15px; }
  .option-desc { font-size: 12.5px; }
}

@media (max-width: 420px) {
  .swatch {
    width: 52px;
    height: 38px;
  }
}
/* =========================================================
   APPEND THIS TO THE END OF assests/css/design.css
   Steps 3 and 4 — sizes, colours, designs, compliance
   ========================================================= */

.group-label {
  margin: 26px 0 12px;
  font-family: var(--util);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.group-label:first-of-type { margin-top: 18px; }

.fineprint {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.note-tight {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 11px 13px;
}

.note-tight p { font-size: 12.5px; }

/* =========================================================
   SIZE TILES  (step 3)
   ========================================================= */
.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 20px 14px 16px;
  background: #fff;
  border: 1.5px solid #e4e7ea;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tile:hover { border-color: #c2c8ce; }

.tile.is-selected {
  border-color: var(--yellow);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(247,181,0,0.12);
}

.tile input,
.design-card input,
.swatch-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tile-mark {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #c2c8ce;
  background: #fff;
}

.tile.is-selected .tile-mark,
.design-card.is-selected .tile-mark {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: inset 0 0 0 2px #fff;
}

.shape {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: #fff;
}

.shape-rectangular { width: 74px; height: 30px; }
.shape-square      { width: 44px; height: 40px; }

.tile-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.tile-desc {
  font-size: 12px;
  color: var(--ink-2);
}

/* =========================================================
   COLOUR PICKERS  (step 3)
   ========================================================= */
.colour-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 12px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 17px;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.field-select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247,181,0,0.18);
}

.chip-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.chip {
  flex: 1;
  height: 33px;
  padding: 0 6px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--field-line);
  border-radius: 5px;
  cursor: pointer;
  transition: box-shadow 0.14s ease, border-color 0.14s ease;
}

.chip-white  { background: #fff;             color: var(--ink); }
.chip-yellow { background: var(--yellow);    color: #241d05; border-color: var(--yellow); }
.chip-black  { background: var(--plate-black); color: #fff;   border-color: var(--plate-black); }

.chip.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(22,24,28,0.16);
}

.chip:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* =========================================================
   DESIGN CAROUSEL  (step 4)
   ========================================================= */
.carousel {
  position: relative;
  margin-bottom: 4px;
}

.carousel-track {
  display: flex;
  gap: 12px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.design-card {
  position: relative;
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 10px 12px;
  background: #fff;
  border: 1.5px solid #e4e7ea;
  border-radius: 10px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.design-card:hover { border-color: #c2c8ce; }

.design-card.is-selected {
  border-color: var(--yellow);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(247,181,0,0.12);
}

.design-card .tile-mark {
  left: 9px;
  top: 9px;
  width: 13px;
  height: 13px;
}

.design-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
}

.design-name {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.design-desc {
  font-size: 10.5px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink-2);
}

.carousel-btn {
  position: absolute;
  top: 42%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: opacity 0.16s ease;
}

.carousel-btn svg { width: 16px; height: 16px; stroke-width: 2.2; }

.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

.carousel-btn[hidden] { display: none; }

/* =========================================================
   TEXT COLOUR SWATCHES  (step 4)
   ========================================================= */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.swatch-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 8px;
  background: #fff;
  border: 1.5px solid #e4e7ea;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.swatch-opt:hover { border-color: #c2c8ce; }

.swatch-opt.is-selected {
  border-color: var(--yellow);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(247,181,0,0.12);
}

.swatch-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.16);
  flex-shrink: 0;
}

.swatch-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.swatch-opt input:focus-visible ~ .swatch-dot {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* =========================================================
   COMPLIANCE VERDICT  (step 4)
   ========================================================= */
.verdict {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 9px;
  border: 1px solid;
}

.verdict.is-ok {
  background: var(--green-bg);
  border-color: #c6e8d2;
}

.verdict.is-bad {
  background: #fef4f4;
  border-color: #f6cfd1;
}

.verdict-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.verdict.is-ok .verdict-icon { color: var(--green); }
.verdict.is-bad .verdict-icon { color: var(--red); }

/* the icon swaps between a tick and an exclamation */
.verdict.is-ok .v-bang,
.verdict.is-bad .v-tick { display: none; }

.verdict-body { flex: 1; min-width: 0; }

.verdict-title {
  margin: 0 0 2px;
  font-family: var(--util);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict.is-ok .verdict-title { color: var(--green); }
.verdict.is-bad .verdict-title { color: var(--red); }

.verdict-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.verdict-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  font-family: var(--util);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 6px;
}

.verdict-link svg { width: 14px; height: 14px; }
.verdict-link:hover { border-color: var(--ink-3); }

/* =========================================================
   SELECTION SUMMARY  (step 4)
   ========================================================= */
.summary {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fafbfc;
  border: 1px solid #e8eaec;
  border-radius: 9px;
}

.summary-head {
  margin: 0 0 12px;
  font-family: var(--util);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}

.summary dl { margin: 0; }

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid #eef0f2;
}

.summary-row:first-child { border-top: 0; }

.summary-row dt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}

.summary-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  font-family: var(--util);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid #dfe3e7;
  border-radius: 4px;
}

.summary-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

/* =========================================================
   PLATE COLOUR / TEXT / DESIGN RENDERING
   ========================================================= */
.plate2d.bg-white  { background: #fff;             border: 1px solid var(--field-line); }
.plate2d.bg-yellow { background: var(--yellow);    border: 1px solid var(--yellow); }
.plate2d.bg-black  { background: var(--plate-black); border: 1px solid var(--plate-black); }

.plate2d.txt-black  { color: #111318; }
.plate2d.txt-blue   { color: #1a44d6; }
.plate2d.txt-red    { color: #e1121a; }
.plate2d.txt-gold   { color: #c9a227; }
.plate2d.txt-silver { color: #b9bfc6; }
.plate2d.txt-white  { color: #ffffff; }

.plate2d.size-rectangular {
	width: 100%;
	max-width: 270px;
	height: auto;
	aspect-ratio: 520 / 101;
	font-size: 36px;
}

.plate2d.size-square {
	width: 100%;
	max-width: 190px;
	height: auto;
	aspect-ratio: 274 / 147;   /* square / 4x4 plate */
	font-size: 26px;
}

/* design treatments */
.plate2d.d-3d span,
.design-thumb.d-3d {
  text-shadow: 1px 1px 0 rgba(0,0,0,0.45), 2px 2px 0 rgba(0,0,0,0.3), 3px 4px 5px rgba(0,0,0,0.35);
}

.plate2d.d-laser span,
.design-thumb.d-laser {
  -webkit-text-stroke: 1px rgba(0,0,0,0.55);
  letter-spacing: 0.06em;
}

.plate2d.d-potbelly span,
.design-thumb.d-potbelly {
  font-family: var(--util);
  font-weight: 700;
  letter-spacing: 0.09em;
  transform: scaleY(1.12);
}

.plate2d.d-premium span,
.design-thumb.d-premium {
  text-shadow: 0 1px 0 rgba(255,255,255,0.5), 1px 2px 0 rgba(0,0,0,0.4), 2px 4px 6px rgba(0,0,0,0.3);
}
/* black plates shouldn't get the light inner ring from the finish */
.plate2d.bg-black.mat-aluminium {
	box-shadow: 0 3px 7px rgba(0,0,0,0.16), inset 0 0 0 1px rgba(255,255,255,0.12);
}

.plate2d.bg-black.d-premium {
	box-shadow: inset 0 0 0 3px rgba(255,255,255,0.18), 0 3px 8px rgba(0,0,0,0.18);
}
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .colour-cols { grid-template-columns: 1fr; gap: 16px; }

  .swatch-row { grid-template-columns: repeat(2, 1fr); }

  .design-card { flex-basis: 118px; }

  .carousel-prev { left: -4px; }
  .carousel-next { right: -4px; }

  .verdict { flex-wrap: wrap; }

  .verdict-link {
    width: 100%;
    justify-content: center;
  }


  .summary-row dt { font-size: 12.5px; }
  .summary-row dd { font-size: 12.5px; }
}

@media (max-width: 900px) {
	.plate2d.size-rectangular { max-width: 100%; font-size: 26px; }
	.plate2d.size-square      { max-width: 165px; font-size: 22px; }
}

@media (max-width: 420px) {
	.plate2d.size-rectangular { font-size: 36px; }
	.plate2d.size-square      { max-width: 145px; font-size: 20px; }
}
@media (max-width: 420px) {
  .tile-row { grid-template-columns: 1fr; }
  .shape-rectangular { width: 66px; height: 27px; }
}
/* =========================================================
   APPEND THIS TO THE END OF assests/css/design.css
   Steps 5 and 6 — holder, vehicle visualisation
   ========================================================= */

/* =========================================================
   PLATE HOLDER  (step 5)
   ========================================================= */
.tile-row-holder .tile {
  padding: 24px 16px 20px;
  gap: 10px;
}

.holder-art {
  position: relative;
  display: block;
  width: 128px;
  height: 46px;
  border-radius: 5px;
}

/* with holder — a dark surround with mount tabs */
.holder-with {
  background: #33373d;
  border: 1px solid #23262b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.holder-with::before {
  content: "";
  position: absolute;
  inset: 7px 12px;
  background: #fff;
  border-radius: 2px;
}

.holder-with::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(90deg, #4a4f57 0 5px, transparent 5px) left center / 100% 12px no-repeat,
    linear-gradient(270deg, #4a4f57 0 5px, transparent 5px) right center / 100% 12px no-repeat;
}

/* without holder — bare plate outline */
.holder-without {
  background: #fff;
  border: 1.5px solid #9aa1a9;
}

.plate-wrap {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

/* the wrapper now owns the width, so the plate just fills it */
.plate-wrap .plate2d {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

/* square plates are narrower — applied to the wrapper, not the plate */
.plate-wrap.size-square {
  width: 50%;
}

.plate-wrap.has-holder {
  padding: 12px;
  background: #1c1c1c;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

/* =========================================================
   VISUALISATION  (step 6)
   ========================================================= */

/* the stage column is wider than the summary column */
.panel-grid-wide { grid-template-columns: 1.5fr 1fr; }

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stage-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

/* ---- vehicle picker ---- */
.vehicle-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.picker-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}

.picker-arrow:hover { border-color: var(--ink-3); }
.picker-arrow svg { width: 16px; height: 16px; stroke-width: 2.2; }

.picker-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 6px;
}

.picker-select svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-2);
}

.picker-select select {
  height: 100%;
  padding-right: 18px;
  font-family: var(--util);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 13px;
  border: 0;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* ---- front / rear toggle ---- */
.view-toggle,
.view-tools {
  display: flex;
  gap: 7px;
}

.vt,
.vtool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 15px;
  font-family: var(--util);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.vt:hover,
.vtool:hover { border-color: var(--ink-3); }

.vt.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #241d05;
}

.vtool svg { width: 15px; height: 15px; }

.vtool.is-on {
  background: #fffaf0;
  border-color: var(--yellow);
}

/* ---- car stage ---- */
.car-stage {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.28, 1);
}



.car-view {
  position: relative;
  display: none;
  margin: 0;
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.car-view.is-active { display: block; }

.car-view img {
  display: block;
  width: 100%;
  height: auto;
}

.car-view.no-photo img { display: none; }

/* placeholder shown until real photos are dropped in */
.car-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-3);
  background:
    repeating-linear-gradient(45deg, #f4f6f7 0 10px, #eef1f3 10px 20px);
  border: 1px dashed #d3d8dd;
  border-radius: 10px;
}

.car-view.no-photo .car-fallback { display: flex; }

.car-fallback code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink-2);
}
/* =========================================================
   STEP 6 — square plate on the vehicle, two lines
   ========================================================= */
.car-plate.size-square {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: auto;
	aspect-ratio: 279 / 203;
	line-height: 1.02;
	font-size: 0.8em;
}

.car-plate.size-square .plate-line {
	display: block;
	padding: 0;
	line-height: 1.02;
}
.car-stage { font-size: clamp(10px, 2.6cqw, 30px); }

.car-plate.has-holder {
	padding: 4%;
	box-shadow: 0 0 0 3px #2b2e33, 0 2px 5px rgba(0,0,0,0.4);
}

.car-view.no-photo .car-plate { display: none; }

/* =========================================================
   ORDER SUMMARY  (step 6)
   ========================================================= */
.summary-order { margin-top: 0; }

.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.summary-bar .summary-head { margin: 0; }

.summary-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--util);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.summary-edit svg { width: 14px; height: 14px; }
.summary-edit:hover { color: var(--ink); }

/* verdict stacks under the summary on this step */
.verdict-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.verdict-stacked .verdict-link {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .panel-grid-wide { grid-template-columns: 1fr; }

  .stage-head {
    flex-direction: column;
    gap: 14px;
  }

  .stage-controls {
    align-items: stretch;
    width: 100%;
  }

  .vehicle-picker { justify-content: space-between; }
  .picker-select { flex: 1; }

  .view-toggle .vt,
  .view-tools .vtool { flex: 1; }

  .holder-art {
    width: 104px;
    height: 38px;
  }

  .car-stage.is-zoomed { transform: scale(1.18); }
}

@media (max-width: 420px) {
  .tile-row-holder { grid-template-columns: 1fr; }

  .vt,
  .vtool {
    padding: 0 8px;
    font-size: 11px;
  }
}
/* =========================================================
   CAR STAGE — rotate + zoom
   ========================================================= */
.car-stage {
	position: relative;
	z-index: 0;                 /* stays under the toolbar */
	overflow: hidden;
	border-radius: 10px;
}

.car-view {
	transition: transform .35s cubic-bezier(.22,.9,.28,1), opacity .25s ease;
	/* zoom pushes in toward the plate, not the middle of the photo */
	transform-origin: 50% 72%;
}

.car-view.is-flipping {
	opacity: 0;
	transform: scale(.97);
}

/* the photo scales inside a box that never changes size */
.car-view[data-zoom="1"] { transform: scale(1); }
.car-view[data-zoom="2"] { transform: scale(1.5); }
.car-view[data-zoom="3"] { transform: scale(2); }

/* the controls must sit above the zoomed photo */
.stage-head,
.stage-controls {
	position: relative;
	z-index: 5;
}

.vtool.is-active {
	background: var(--yellow);
	border-color: var(--yellow);
	color: #241d05;
}

.zoom-level {
	margin-left: 4px;
	font-size: 11px;
	opacity: .75;
}
/* =========================================================
   MOBILE FIT — steps 3 and 4. Keep this last in the file.
   ========================================================= */
@media (max-width: 900px) {
	.panel,
	.panel-grid,
	.panel-form,
	.panel-preview {
		max-width: 100%;
		min-width: 0;
	}

	/* the note was the widest thing on the page */
	.note,
	.note-tight {
		max-width: 100%;
		min-width: 0;
	}

	.note p {
		min-width: 0;
		font-size: 12px;
		line-height: 1.5;
		overflow-wrap: break-word;
	}

	.group-label {
		font-size: 11.5px;
		letter-spacing: 0.06em;
		overflow-wrap: break-word;
	}

	/* the carousel scrolls by swipe on touch, so the arrows just
	   get in the way - but keep the track reachable edge to edge */
	.carousel { margin-inline: 0; }

	.carousel-track {
		gap: 10px;
		padding-inline: 2px;
		scroll-padding-left: 2px;
	}

	.carousel-btn { display: none; }

	.design-card {
		flex: 0 0 112px;
		padding: 14px 8px 10px;
	}

	.design-thumb { height: 30px; font-size: 11.5px; }
	.design-name  { font-size: 12px; }
	.design-desc  { font-size: 9.5px; }

	.swatch-row { grid-template-columns: repeat(2, 1fr); }

	.swatch-opt {
		height: 44px;
		min-width: 0;
	}
	.swatch-name {
		font-size: 12.5px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.fineprint { font-size: 10.5px; }
}

@media (max-width: 420px) {
	.design-card { flex: 0 0 104px; }
	.swatch-row  { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.carousel {
		position: relative;
	}

	.carousel::after {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		bottom: 8px;
		width: 28px;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 85%);
	}
}
/* =========================================================
   SQUARE PLATE — two-line reg. Keep this at the end.
   ========================================================= */
.plate2d.size-square {
	  flex-direction: column;
    justify-content: center;
    gap: 0;
    max-width: 166px;
    aspect-ratio: 315 / 203;
    font-size: 37px;
    line-height: 1.02;
}

.plate2d.size-square .plate-line {
	padding: 0 8px;
	max-width: 100%;
}

/* the vehicle plate in step 6 needs the same treatment */
.car-plate.size-square {
	flex-direction: column;
	justify-content: center;
	line-height: 1.02;
}

@media (max-width: 900px) {
	.plate2d.size-square { max-width: 175px; font-size: 30px; }
}

@media (max-width: 420px) {
	.plate2d.size-square { max-width: 155px; font-size: 33px; }
}
/* two-line design thumbnails when the plate is square */
.design-thumb.thumb-square {
	height: 44px;
	flex-direction: column;
	justify-content: center;
	font-size: 10.5px;
	line-height: 1.05;
}

@media (max-width: 900px) {
	.design-thumb.thumb-square { height: 40px; font-size: 9.5px; }
}.design-thumb.thumb-square {
	white-space: normal;
}
/* =========================================================
   STEP 5 — square plate inside the holder wrapper
   ========================================================= */
.plate-wrap.size-square {
	width: auto;
	max-width: 224px;   /* 200px plate + 2 × 12px holder padding */
}

.plate-wrap.size-square:not(.has-holder) {
	max-width: 200px;
}

.plate-wrap.size-square .plate2d {
	max-width: 100%;
}

@media (max-width: 900px) {
	.plate-wrap.size-square { max-width: 199px; }
	.plate-wrap.size-square:not(.has-holder) { max-width: 175px; }
}

@media (max-width: 420px) {
	.plate-wrap.size-square { max-width: 179px; }
	.plate-wrap.size-square:not(.has-holder) { max-width: 155px; }
}
/* =========================================================
   MOBILE — centre the preview plates
   ========================================================= */
@media (max-width: 900px) {
	.plate2d.size-square,
	.plate2d.size-rectangular {
		margin-inline: auto;
	}

	.plate-wrap,
	.plate-wrap.size-square {
		margin-inline: auto;
	}

	.panel-preview .preview-label {
		text-align: center;
	}
}
/* =========================================================
   PLATE CHARACTER SPACING. Keep this last in the file.
   ========================================================= */
.plate2d .plate-line {
	letter-spacing: 0.08em;
	text-indent: 0.08em;   /* cancels the trailing gap so it stays centred */
}

.plate2d.size-square .plate-line {
	letter-spacing: 0.11em;
	text-indent: 0.11em;
}

.co-plate .plate-line {
	letter-spacing: 0.07em;
	text-indent: 0.07em;
  font-size: 36px;
}

/* =========================================================
   STEP 5 — rectangular plate inside the holder wrapper
   ========================================================= */
.plate-wrap.size-rectangular {
	width: auto;
	max-width: 340px;   /* 320 plate + 2 × 10 holder padding */
}

.plate-wrap.size-rectangular:not(.has-holder) {
	max-width: 320px;
}

.plate-wrap.size-rectangular .plate2d {
	max-width: 100%;
}.plate-wrap.has-holder {
	padding: 8px 10px;
	background: #1c1c1c;
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}.plate-wrap.has-holder .plate2d.bg-black::after {
	content: "";
	position: absolute;
	inset: 6% 3%;
	border: 1px solid rgba(225, 225, 225, 0.75);
	border-radius: 3px;
	pointer-events: none;
	z-index: 0;
}.plate-wrap.has-holder {
	padding: 8px 10px;
	background: #1c1c1c;
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.car-plate.has-holder.bg-black::after {
	content: "";
	position: absolute;
	inset: 8% 4%;
	border: 1px solid rgba(225, 225, 225, 0.7);
	border-radius: 2px;
	pointer-events: none;
}@media (max-width: 900px) {
	.plate-wrap.has-holder .plate2d.bg-black::after {
		inset: 6%;
	}
}
.plate-wrap.has-holder .plate2d.bg-black.size-square::after {
	inset: 4% 5%;
}
/* =========================================================
   PLATE TEXT INSET — breathing room at the ends
   ========================================================= */
.plate2d.size-rectangular .plate-line {
	padding: 0 6% 4px;
}

.plate2d.size-rectangular {
	justify-content: center;
}