/* Service form (step-by-step tiles). Site tokens only: styles.css :root,
   plus the priority amber below (the site has no warning colour). */
.svc-form, .po-done { max-width: 46rem;
  /* Traffic-light triage colours (the site has no status palette). */
  --svc-red: #c62828; --svc-red-bg: #fdecec; --svc-red-line: #f3b6b6;
  --svc-orange: #b45309; --svc-orange-bg: #fdf0e6; --svc-orange-line: #f2c39b;
  --svc-green: #2e7d32; --svc-green-bg: #eaf6ec; --svc-green-line: #b9dfbf;
  --svc-priority-bg: var(--svc-orange-bg); --svc-priority-line: var(--svc-orange-line); --svc-priority-ink: #7a3b0c; }
/* Each screen is a <section>; styles.css pads every section for page
   layout, which left a big empty band above the form. Bottom padding stays
   so the form has room before whatever follows it. */
.svc-form .svc-step { padding-top: 0; }
.svc-progress { margin: 0 0 1.25rem; }
.svc-progress[hidden] { display: none; }
.svc-progress-label { margin: 0 0 .45rem; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan-text); }
.svc-progress-bar { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.svc-progress-bar li { flex: 1; height: .4rem; border-radius: 999px; background: var(--line); }
.svc-progress-bar li.is-done { background: var(--cyan-dark); }
.svc-progress-bar li.is-current { background: var(--blue); }
.svc-status { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem; }
.svc-status:empty { display: none; }
.svc-step-title { font-family: var(--head); font-size: 1.35rem; margin: 0 0 1rem; outline: none; }
/* Titles take focus only so screen readers announce each new screen. */
.svc-step-title:focus, .svc-step-title:focus-visible { outline: none; box-shadow: none; }
.svc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.svc-tiles-clients { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.svc-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  min-height: 5.5rem; padding: .9rem .75rem; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--text); font: inherit; text-align: center; cursor: pointer;
  transition: border-color var(--t-1) var(--e-out), transform var(--t-2) var(--e-out), box-shadow var(--t-2) var(--e-out);
}
.svc-tile:hover { border-color: var(--cyan); transform: translateY(var(--lift-sm)); box-shadow: var(--shadow-sm); }
.svc-tile:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.svc-tile[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,109,179,.15); }
.svc-tile-short { font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
/* Logos are trimmed to their edges, so a fixed box keeps wide and square
   ones visually even. */
.svc-tile-client { padding-block: 1rem; }
.svc-tile-client img { width: 100%; max-width: 13rem; height: 5.5rem; object-fit: contain; }
@media (max-width: 600px) {
  .svc-tiles, .svc-tiles-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .svc-tile-client img { height: 3.75rem; }
  .svc-tile-name { font-size: .75rem; }
}
.svc-tile-name, .svc-tile-hint { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.svc-tile-label { font-weight: 600; color: var(--navy); }
.svc-tile-note { margin-top: -.25rem; font-size: .75rem; font-style: italic; color: var(--muted); }
.svc-field { display: block; margin: 0 0 .9rem; }
.svc-field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.svc-field input, .svc-field textarea, .svc-search {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); font: inherit;
}
.svc-combo { position: relative; }
.svc-combo .svc-field { margin-bottom: .5rem; }
.svc-suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: -.25rem 0 0; padding: .3rem; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); box-shadow: var(--shadow-sm);
}
.svc-suggest[hidden] { display: none; }
.svc-suggest li { padding: .6rem .7rem; border-radius: .4rem; cursor: pointer; color: var(--navy); font-weight: 600; }
.svc-suggest li[aria-selected="true"], .svc-suggest li:hover { background: var(--line); }
.svc-suggest .svc-suggest-none { font-weight: 400; color: var(--muted); }
.svc-or { margin: .25rem 0 .6rem; }
.svc-site-group[hidden], .svc-tile[hidden] { display: none; }
.svc-site-state { margin: .75rem 0 .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.svc-help { font-size: .88rem; color: var(--muted); }
.svc-link { background: none; border: 0; padding: 0; color: var(--cyan-text); text-decoration: underline; cursor: pointer; font: inherit; }
.svc-nav { display: flex; gap: .75rem; margin-top: 1rem; }
.svc-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.svc-thumbs img { width: 5rem; height: 5rem; object-fit: cover; border-radius: .5rem; }
.svc-summary { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.svc-summary dt { font-weight: 600; color: var(--muted); }
.svc-summary dd { margin: 0; }
.svc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.svc-error { color: #8a2a2a; background: #fdecec; border: 1px solid #f3b6b6; border-radius: .5rem; padding: .6rem .8rem; }
[data-loading="true"] { opacity: .6; pointer-events: none; }
/* Machine, fault and status steps (2026-10-03 triage). */
.svc-step-sub { margin: -.5rem 0 1rem; }
.svc-suggest-sub { font-weight: 400; color: var(--muted); }
.svc-unit .svc-tile-hint { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.svc-tiles-faults { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-tiles-faults .svc-tile { min-height: 4rem; padding: .6rem; font-size: .9rem; }
.svc-checks { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.svc-checks[hidden], [data-check][hidden], .svc-expect[hidden], [data-done][hidden], [data-faults-for][hidden], [data-unit-wrap][hidden], [data-machine-manual][hidden] { display: none; }
.svc-checks p { margin: 0 0 .5rem; font-weight: 700; font-size: .9rem; color: var(--navy); }
.svc-checks label { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; font-size: .9rem; cursor: pointer; }
.svc-checks input { width: 1.1rem; height: 1.1rem; margin-top: .1rem; flex: none; }
.svc-tiles-status { grid-template-columns: 1fr; }
.svc-tiles-status .svc-tile { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; gap: .9rem; padding: .9rem 1rem; }
.svc-tile-text { display: flex; flex-direction: column; gap: .15rem; }
.svc-badge { flex: none; font: 700 .7rem/1 var(--head); padding: .35rem .55rem; border-radius: 999px; background: var(--line); color: var(--navy); }
.svc-badge.is-priority { background: var(--svc-priority-line); color: var(--svc-priority-ink); }
.svc-expect { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius); font-size: .92rem; background: var(--soft); border: 1px solid var(--line); color: var(--body); }
.svc-expect.is-priority { background: var(--svc-priority-bg); border-color: var(--svc-priority-line); color: var(--svc-priority-ink); }
@media (max-width: 600px) { .svc-form .svc-tiles-faults { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Client step wording, help-desk contacts, service levels (2026-10-03 evening). */
.svc-intro { margin: -.5rem 0 1rem; color: var(--muted); }
.svc-badge-sm { font: 700 .65rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase; padding: .3rem .5rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--cyan-text); }
.svc-subhead { margin: 1.25rem 0 .6rem; font: 700 .85rem/1.3 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.svc-subhead:first-child { margin-top: 0; }
[data-hd-only][hidden], [data-level][hidden] { display: none; }
.svc-levels { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.svc-levels-title { margin: 0 0 .35rem; font-weight: 700; font-size: .9rem; color: var(--navy); }
.svc-levels ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--body); }
.svc-levels li + li { margin-top: .2rem; }

/* Fine-tune (2026-10-03 late): sticky bar, triage colours, fault help, field checks. */
.svc-sticky { position: sticky; top: var(--svc-top, 0px); z-index: 6; background: var(--white); padding: .6rem 0 .1rem; margin-bottom: .4rem; }
.svc-sticky .svc-progress { margin-bottom: .5rem; }
.svc-alt { margin: .25rem 0 1rem; }
.svc-yesno { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .2rem; }
.svc-tile-sm { min-height: 0; padding: .55rem 1rem; flex-direction: row; font-weight: 600; color: var(--navy); }
.svc-section { margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.svc-q { margin: 0 0 .3rem; font-weight: 700; color: var(--navy); }
.svc-fault-helps:empty { display: none; }
.svc-fault-help { margin: 0 0 .75rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.svc-fault-help[hidden], [data-red-ask][hidden], [data-red-moved][hidden], [data-suggested][hidden], [data-not-hd][hidden],
[data-noinc][hidden], [data-branch-section][hidden], [data-manager-section][hidden], .svc-field-error[hidden], [data-running-q][hidden] { display: none; }
.svc-fault-help-title { margin: 0 0 .35rem; font-weight: 700; color: var(--navy); }
.svc-tip, .svc-note { margin: 0 0 .45rem; font-size: .92rem; color: var(--body); }
.svc-note { color: var(--cyan-text); }
.svc-tick { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; font-size: .92rem; cursor: pointer; }
.svc-tick input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; }
.svc-notice { margin: 0 0 .8rem; padding: .7rem .9rem; border-radius: var(--radius); background: var(--svc-orange-bg); border: 1px solid var(--svc-orange-line); font-size: .9rem; color: #7a3b0c; }
.svc-field-hint { display: block; margin-top: .3rem; font-size: .82rem; color: var(--muted); font-weight: 400; }
.svc-field-error { display: block; margin-top: .3rem; font-size: .85rem; color: var(--svc-red); font-weight: 600; }
.svc-field input[aria-invalid="true"], .svc-field textarea[aria-invalid="true"] { border-color: var(--svc-red); box-shadow: 0 0 0 3px var(--svc-red-bg); }
/* Status tiles: red / orange / green */
.svc-status-red { border-color: var(--svc-red-line); }
.svc-status-orange { border-color: var(--svc-orange-line); }
.svc-status-green { border-color: var(--svc-green-line); }
.svc-status-red[aria-pressed="true"] { border-color: var(--svc-red); background: var(--svc-red-bg); box-shadow: none; }
.svc-status-orange[aria-pressed="true"] { border-color: var(--svc-orange); background: var(--svc-orange-bg); box-shadow: none; }
.svc-status-green[aria-pressed="true"] { border-color: var(--svc-green); background: var(--svc-green-bg); box-shadow: none; }
/* Make the pick obvious: it bounces in (each time it's picked or suggested),
   wears a "Picked" tag, and the other two fade back. */
.svc-tiles-status .svc-tile { position: relative; }
.svc-tiles-status .svc-tile[aria-pressed="true"] { border-width: 3px; animation: svc-pick-bounce .6s var(--e-out) 1; }
.svc-tiles-status .svc-tile[aria-pressed="true"]::after {
  content: "\2713  " var(--svc-picked, "Picked");   /* the word comes from the form's wording */ position: absolute; top: -.7rem; right: .6rem; padding: .1rem .5rem; border-radius: 999px;
  background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 700; white-space: pre;
}
.svc-tiles-status:has([aria-pressed="true"]) .svc-tile:not([aria-pressed="true"]) { opacity: .5; }
.svc-tiles-status:has([aria-pressed="true"]) .svc-tile:not([aria-pressed="true"]):hover { opacity: 1; }
@keyframes svc-pick-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.06) translateY(-4px); }
  55% { transform: scale(.98); }
  75% { transform: scale(1.02) translateY(-1px); }
  100% { transform: scale(1); }
}
.svc-badge-red { background: var(--svc-red); color: var(--white); }
.svc-badge-orange { background: var(--svc-orange); color: var(--white); }
.svc-badge-green { background: var(--svc-green); color: var(--white); }
.svc-expect-red { background: var(--svc-red-bg); border-color: var(--svc-red-line); color: #7f1d1d; }
.svc-expect-orange { background: var(--svc-orange-bg); border-color: var(--svc-orange-line); color: #7a3b0c; }
.svc-expect-green { background: var(--svc-green-bg); border-color: var(--svc-green-line); color: #1b4d1f; }
.svc-nav [hidden] { display: none; }
.svc-warn { color: #7a3b0c; background: var(--svc-orange-bg); border: 1px solid var(--svc-orange-line); border-radius: .5rem; padding: .6rem .8rem; font-weight: 600; }
[data-red-stopped][hidden] { display: none; }
.svc-stop { margin: 0 0 .45rem; padding: .5rem .7rem; border-radius: .5rem; background: var(--svc-red-bg); border: 1px solid var(--svc-red-line); color: #7f1d1d; font-weight: 600; font-size: .92rem; }
.svc-ask-text { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); font: inherit; margin-bottom: .3rem; }
[data-another][hidden], [data-tested][hidden], [data-tested-no][hidden], [data-another-q][hidden] { display: none; }

/* Receipt paper order (paper-order-render.js): one page of big tiles. */
.po-form { max-width: 48rem; }
.po-sec { padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); }
.po-sec:last-of-type { border-bottom: 0; }
.po-q { font-family: var(--head); font-size: 1.3rem; margin: 0 0 .35rem; }
.po-sub { margin: 0 0 1rem; color: var(--muted); }
.po-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.po-product {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: 1.25rem .8rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color var(--t-1) var(--e-out), transform var(--t-2) var(--e-out), box-shadow var(--t-2) var(--e-out), background var(--t-1) var(--e-out);
}
.po-product:hover { border-color: var(--cyan); transform: translateY(var(--lift)); box-shadow: var(--shadow-sm); }
.po-product:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.po-product-icon { width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: var(--soft-2); color: var(--cyan-text); margin-bottom: .25rem; transition: background var(--t-2) var(--e-out), color var(--t-2) var(--e-out); }
.po-product-icon svg { width: 2rem; height: 2rem; }
.po-product-label { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.po-product-hint { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.po-product[aria-pressed="true"] { border-color: var(--blue); background: var(--soft); box-shadow: 0 0 0 3px rgba(15,109,179,.15); animation: svc-pick-bounce .5s var(--e-out) 1; }
.po-product[aria-pressed="true"] .po-product-icon { background: radial-gradient(circle at 35% 30%, var(--cyan-light), var(--cyan-dark)); color: var(--white); }
.po-product[aria-pressed="true"]::after {
  content: "\2713"; position: absolute; top: .55rem; right: .6rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: var(--white); font-size: .8rem; font-weight: 700;
}
.po-lines { display: grid; gap: .6rem; margin-top: 1rem; }
.po-line { padding: .85rem 1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.po-line[hidden], .po-deal[hidden], [data-po-details][hidden], [data-po-new-only][hidden], .po-note[hidden], .po-done[hidden] { display: none; }
.po-line-name { margin: 0 0 .45rem; font-weight: 700; color: var(--navy); }
.po-line-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.po-line .svc-yesno { margin: 0; }
.po-line .svc-tile-sm[aria-pressed="true"] { background: var(--white); }
.po-stepper { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); }
.po-stepper button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--line); background: var(--white); color: var(--navy);
  font: 700 1.2rem/1 var(--head); cursor: pointer; transition: border-color var(--t-1) var(--e-out);
}
.po-stepper button:hover { border-color: var(--cyan); }
.po-stepper button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.po-stepper output { min-width: 1.6rem; text-align: center; font-family: var(--head); font-size: 1.2rem; font-weight: 800; }
.po-deal { margin: .6rem 0 0; padding: .45rem .7rem; border-radius: .5rem; background: var(--svc-green-bg); border: 1px solid var(--svc-green-line); color: #1b4d1f; font-weight: 600; font-size: .88rem; }
.po-line .svc-ask-text { margin: 0; background: var(--white); }
.po-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.po-choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.po-choice { min-height: 4.75rem; }
.po-choice[aria-pressed="true"] { background: var(--soft); animation: svc-pick-bounce .5s var(--e-out) 1; }
.po-details { margin-top: 1.1rem; }
.po-note { margin: 0 0 .9rem; color: var(--cyan-text); font-weight: 600; }
.po-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.po-send { font-size: 1.05rem; padding-inline: 2.25rem; margin-bottom: 1.75rem; }
.po-done { max-width: 34rem; margin: 1rem auto 2rem; padding: 2rem 1.5rem; text-align: center; border: 2px solid var(--svc-green-line); border-radius: var(--radius-lg); background: var(--svc-green-bg); outline: none; }
.po-done-icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--svc-green); color: var(--white); font-size: 1.6rem; margin-bottom: .5rem; }
.po-done h3 { margin: 0 0 .4rem; }
.po-done p { margin: 0; }
@media (max-width: 600px) {
  .po-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .po-product-icon { width: 3.25rem; height: 3.25rem; }
  .po-choices, .po-choices-2, .po-grid { grid-template-columns: 1fr; }
  .po-send { width: 100%; }
}
.po-product-size { margin-top: -.15rem; padding: .1rem .55rem; border-radius: 999px; background: var(--navy); color: var(--white); font: 700 .78rem/1.5 var(--head); letter-spacing: .02em; }
.po-product[aria-pressed="true"] .po-product-size { background: var(--blue); }
.po-line-name span { margin-left: .35rem; font-weight: 600; font-size: .85rem; color: var(--muted); }

/* /contact/ enquiry (enquiry-form-render.js): icon tiles for interests. */
.eq-form { max-width: 52rem; }
.eq-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eq-tiles .svc-tile { min-height: 5rem; }
.eq-icon svg { width: 1.6rem; height: 1.6rem; color: var(--cyan-text); }
.eq-multi .svc-tile[aria-pressed="true"]::after {
  content: "\2713"; position: absolute; top: .45rem; right: .5rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: var(--white); font-size: .75rem; font-weight: 700;
}
.eq-multi .svc-tile { position: relative; }
[data-eq-progress][hidden] { display: none; }
@media (max-width: 600px) { .eq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
