/* ═══════════════════════════════════════════════════════════════
   JLH TRAILER HIRE LTD — PLATE SALES PAGE
   Uses the corrected v20 tokens. Every pair here was checked to
   WCAG AA before shipping. Gold/green as FILL, deep tokens as TEXT.
   ═══════════════════════════════════════════════════════════════ */

/* ── RNPS GATE ─────────────────────────────────────────────── */
.plates-gate { padding: 70px 22px 90px; display: flex; justify-content: center; }
.plates-gate-inner {
  max-width: 560px; text-align: center; background: #fff;
  border: 1px solid rgba(168,127,31,0.28); border-radius: 18px;
  padding: 44px 34px; box-shadow: 0 12px 40px rgba(20,24,31,0.07);
}
.pg-badge {
  display: inline-block; font-family: 'Space Mono'; font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase; color: #fff;
  background: #8a6817; padding: 5px 13px; border-radius: 100px; margin-bottom: 18px;
}
.plates-gate-inner h2 { font-family: 'Bebas Neue'; font-size: 32px; letter-spacing: 1.6px; color: #14181f; margin-bottom: 14px; }
.plates-gate-inner p { color: #454e59; line-height: 1.65; margin-bottom: 14px; font-size: 15px; }
.pg-sub { color: #5b6470 !important; font-size: 14px !important; }
.plates-gate-inner .btn-primary { margin-top: 10px; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.plates-wrap {
  max-width: 1240px; margin: 0 auto; padding: 54px 22px 30px;
  display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start;
}
@media (max-width: 980px) { .plates-wrap { grid-template-columns: 1fr; gap: 26px; } }

/* ── BUILDER STEPS ─────────────────────────────────────────── */
.plates-builder { display: flex; flex-direction: column; gap: 16px; }
.pb-step {
  display: flex; gap: 16px; background: #fff; border: 1px solid rgba(20,24,31,0.09);
  border-radius: 15px; padding: 24px 24px 26px;
}
.pb-step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #dfc06a, #c9a53c); color: #2a1e05;
  font-family: 'Space Mono'; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.pb-step-body { flex: 1; min-width: 0; }
.pb-step-body h3 {
  font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: 1.2px;
  color: #14181f; margin: 4px 0 4px;
}
.pb-hint { font-size: 13.5px; color: #5b6470; line-height: 1.55; margin-bottom: 16px; }

/* ── REGISTRATION INPUT ────────────────────────────────────── */
.pb-reg-input {
  width: 100%; max-width: 340px; padding: 15px 18px;
  font-family: 'Space Mono'; font-size: 25px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; text-align: center;
  color: #14181f; background: #fff;
  border: 2px solid rgba(20,24,31,0.16); border-radius: 10px; transition: border-color .18s;
}
.pb-reg-input:focus { border-color: #8a6817; outline: none; }
.pb-reg-input::placeholder { color: #7a838f; letter-spacing: 3px; }
.pb-error { color: var(--red, #b91c1c); font-size: 13px; margin-top: 9px; font-weight: 500; }

/* ── SELECTABLE OPTIONS ────────────────────────────────────── */
.pb-opt {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px;
  border: 1.5px solid rgba(20,24,31,0.12); border-radius: 11px;
  margin-bottom: 10px; cursor: pointer; background: #fff; transition: all .16s;
}
.pb-opt:hover { border-color: rgba(168,127,31,0.5); background: #fdfbf6; }
.pb-opt input { margin-top: 3px; width: 17px; height: 17px; accent-color: #8a6817; flex-shrink: 0; cursor: pointer; }
.pb-opt.is-on { border-color: #a87f1f; background: #fdf8ee; box-shadow: 0 0 0 3px rgba(168,127,31,0.09); }
.pb-opt-main { display: flex; flex-direction: column; gap: 3px; }
.pb-opt-name { font-weight: 600; font-size: 14.5px; color: #14181f; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-opt-desc { font-size: 13px; color: #5b6470; line-height: 1.5; }
.pb-opt-tag {
  font-family: 'Space Mono'; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(168,127,31,0.14); color: #7a5a12; padding: 2.5px 8px; border-radius: 100px; font-weight: 700;
}
.pb-tag-alt   { background: rgba(20,24,31,0.08); color: #38414c; }
.pb-tag-green { background: rgba(21,128,61,0.13); color: #14532d; }

.pb-nudge {
  margin-top: 4px; padding: 11px 14px; border-radius: 9px;
  background: #f1f8f3; border: 1px solid rgba(21,128,61,0.3);
  color: #14532d; font-size: 13px; line-height: 1.5; font-weight: 500;
}

/* ── FIELDS ────────────────────────────────────────────────── */
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .pb-grid { grid-template-columns: 1fr; } }
.pb-label { display: block; font-family: 'Space Mono'; font-size: 10.5px; letter-spacing: 1.1px;
  text-transform: uppercase; color: #5b6470; margin: 12px 0 6px; }
.pb-input {
  width: 100%; padding: 12px 14px; font-family: 'DM Sans'; font-size: 14.5px; color: #14181f;
  background: #fff; border: 1.5px solid rgba(20,24,31,0.14); border-radius: 9px; transition: border-color .16s;
}
.pb-input:focus { border-color: #8a6817; outline: none; }
.pb-input::placeholder { color: #6b7480; }
textarea.pb-input { resize: vertical; line-height: 1.5; }

.pb-method { display: flex; flex-direction: column; }
.pb-opt-radio input { border-radius: 50%; }

.pb-warn {
  margin-top: 8px; padding: 13px 15px; border-radius: 10px;
  background: #fdf8ee; border: 1px solid rgba(168,127,31,0.34);
  color: #3d3227; font-size: 13px; line-height: 1.6;
}
.pb-warn strong { color: #7a5a12; }

/* ── DOCUMENTS ─────────────────────────────────────────────── */
.pb-doc {
  border: 1.5px dashed rgba(20,24,31,0.18); border-radius: 11px;
  padding: 16px 17px; margin-bottom: 13px; background: #fcfcfb;
}
.pb-doc.is-filled { border-style: solid; border-color: rgba(21,128,61,0.45); background: #f6fbf7; }
.pb-doc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7px; }
.pb-doc-title { font-weight: 600; font-size: 14.5px; color: #14181f; }
.pb-doc-req {
  font-family: 'Space Mono'; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  color: #b91c1c; background: rgba(185,28,28,0.09); padding: 2.5px 8px; border-radius: 100px; font-weight: 700;
}
.pb-doc.is-filled .pb-doc-req { color: #14532d; background: rgba(21,128,61,0.13); }
.pb-doc-list { font-size: 12.5px; color: #5b6470; line-height: 1.6; margin-bottom: 12px; }
.pb-file { display: block; width: 100%; font-size: 13px; color: #454e59; }
.pb-file::file-selector-button {
  padding: 8px 15px; margin-right: 12px; border: 1px solid rgba(168,127,31,0.42);
  background: #fdf8ee; color: #7a5a12; border-radius: 8px; font-family: 'DM Sans';
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.pb-file-status { font-size: 12.5px; margin-top: 8px; color: #15803d; font-weight: 500; }
.pb-file-status.err { color: #b91c1c; }

.pb-privacy {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; margin-top: 4px;
  background: #f6f7f8; border-radius: 10px; font-size: 12.5px; color: #454e59; line-height: 1.6;
}
.pb-privacy svg { color: #15803d; }
.pb-privacy a { color: #7a5a12; font-weight: 600; }

.pb-declare {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 15px; padding: 14px 16px;
  border: 1.5px solid rgba(20,24,31,0.12); border-radius: 10px; cursor: pointer;
  font-size: 13px; color: #38414c; line-height: 1.6; background: #fff;
}
.pb-declare.is-on { border-color: rgba(21,128,61,0.45); background: #f6fbf7; }
.pb-declare input { margin-top: 2px; width: 17px; height: 17px; accent-color: #15803d; flex-shrink: 0; cursor: pointer; }

/* ── SUMMARY PANEL ─────────────────────────────────────────── */
.plates-summary {
  position: sticky; top: 96px; background: #fff;
  border: 1px solid rgba(20,24,31,0.1); border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 44px rgba(20,24,31,0.08);
}
@media (max-width: 980px) { .plates-summary { position: static; } }
.ps-header { background: linear-gradient(135deg, #dfc06a 0%, #c9a53c 55%, #b8912c 100%); padding: 22px 24px 20px; }
.ps-title { font-family: 'Bebas Neue'; font-size: 26px; letter-spacing: 2.4px; color: #2a1e05; }
.ps-sub { font-size: 12.5px; color: #3d2c09; margin-top: 3px; line-height: 1.5; }

/* ── PLATE PREVIEW ─────────────────────────────────────────── */
.ps-preview-wrap { padding: 22px 24px 6px; display: flex; flex-direction: column; gap: 11px; align-items: center; }
.ps-preview {
  width: 100%; max-width: 300px; height: 62px; background: #fff; border: 2px solid #14181f;
  border-radius: 7px; display: flex; align-items: stretch; overflow: hidden;
  box-shadow: 0 3px 10px rgba(20,24,31,0.13);
}
.ps-preview-rear { background: #f5d800; }
.ps-gb {
  width: 34px; background: #05299e; color: #fff; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 7px; font-family: 'Space Mono'; font-size: 12px; font-weight: 700;
}
.ps-reg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono'; font-weight: 700; font-size: 30px; letter-spacing: 2.5px; color: #14181f;
}
.ps-preview-cap { font-size: 11px; color: #5b6470; text-align: center; line-height: 1.5; max-width: 300px; }

/* ── SUMMARY LINES ─────────────────────────────────────────── */
.ps-body { padding: 16px 24px 24px; }
.ps-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(20,24,31,0.07); font-size: 13.5px; color: #454e59;
}
.ps-val { font-family: 'Space Mono'; font-size: 13px; color: #14181f; font-weight: 500; }
.ps-green { color: #15803d; font-weight: 700; }

.ps-total {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 16px; padding: 17px 19px; background: #fdf8ee;
  border: 1px solid rgba(168,127,31,0.34); border-radius: 12px;
}
.ps-total-label { font-family: 'Space Mono'; font-size: 11px; letter-spacing: 1.6px; color: #7a5a12; font-weight: 700; }
.ps-total-note { font-size: 11.5px; color: #7a5a12; margin-top: 3px; line-height: 1.45; max-width: 20ch; }
.ps-total-value { font-family: 'Bebas Neue'; font-size: 40px; color: #14181f; line-height: 1; }

.ps-cta { width: 100%; margin-top: 17px; }
.ps-cta:disabled { opacity: .45; cursor: not-allowed; }
.ps-cta-note { font-size: 11.5px; color: #5b6470; text-align: center; margin-top: 10px; line-height: 1.55; }
.ps-result { margin-top: 14px; padding: 13px 15px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; }
.ps-result.ok  { background: #f1f8f3; border: 1px solid rgba(21,128,61,0.35); color: #14532d; }
.ps-result.err { background: #fdf3f3; border: 1px solid rgba(185,28,28,0.3);  color: #b91c1c; }

/* ── PRICING CARDS ─────────────────────────────────────────── */
.pp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 760px) { .pp-row { grid-template-columns: 1fr; } }
.pp-card {
  position: relative; background: #fff; border: 1px solid rgba(20,24,31,0.1);
  border-radius: 14px; padding: 26px 22px; text-align: center;
}
.pp-card-best { border-color: #a87f1f; box-shadow: 0 0 0 3px rgba(168,127,31,0.1); }
.pp-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: #8a6817; color: #fff; font-family: 'Space Mono'; font-size: 10px;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 13px; border-radius: 100px; white-space: nowrap;
}
.pp-qty { font-family: 'Space Mono'; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #5b6470; }
.pp-price { font-family: 'Bebas Neue'; font-size: 46px; color: #14181f; line-height: 1.05; margin: 6px 0 2px; }
.pp-each { font-family: 'Space Mono'; font-size: 12.5px; color: #7a5a12; font-weight: 700; margin-bottom: 12px; }
.pp-desc { font-size: 13.5px; color: #454e59; line-height: 1.6; }
.pp-foot { font-size: 13.5px; color: #454e59; line-height: 1.7; text-align: center; max-width: 70ch; margin: 0 auto; }

/* ── CROSS-SELL ────────────────────────────────────────────── */
.plate-crosssell {
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 26px; padding: 24px 26px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(217,183,87,0.13), rgba(217,183,87,0.05));
  border: 1px solid rgba(168,127,31,0.3);
}
.pc-title { font-family: 'Bebas Neue'; font-size: 24px; letter-spacing: 1.2px; color: #14181f; }
.pc-sub { font-size: 13.5px; color: #454e59; margin-top: 4px; line-height: 1.6; max-width: 52ch; }

/* ── EXTRAS BLOCK ──────────────────────────────────────────── */
.pb-extras { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(20,24,31,0.08); }
.pb-extras-title {
  font-family: 'Space Mono'; font-size: 10.5px; letter-spacing: 1.1px;
  text-transform: uppercase; color: #5b6470; margin-bottom: 11px;
}

/* ── DISABLED / OUT OF STOCK ───────────────────────────────── */
.pb-opt.is-disabled { opacity: .72; cursor: not-allowed; background: #f6f7f8; }
.pb-opt.is-disabled:hover { border-color: rgba(20,24,31,0.12); background: #f6f7f8; }
.pb-stock-tag {
  font-family: 'Space Mono'; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(185,28,28,0.1); color: #b91c1c; padding: 2.5px 8px;
  border-radius: 100px; font-weight: 700;
}

/* ── SELECT STYLING ────────────────────────────────────────── */
select.pb-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6470' stroke-width='2.2' stroke-linecap='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
  padding-right: 40px; cursor: pointer;
}

/* ── RNPS TRUST LINE ───────────────────────────────────────── */
.ps-rnps {
  margin-top: 10px; padding: 9px 12px; border-radius: 8px; text-align: center;
  background: #f1f8f3; border: 1px solid rgba(21,128,61,0.3);
  font-family: 'Space Mono'; font-size: 10.5px; letter-spacing: .5px; color: #14532d;
}

/* ── ORDER LOOKUP ──────────────────────────────────────────── */
.po-lookup-row { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }
.po-lookup-row .pb-input { flex: 1; min-width: 180px; }
