/*
  AE Global Equipment Care: shared styles (draft for review)
  The same file is used in intro/ and review/.

  Brand: AE Global brand guide, July 2026.
  Text pairings used: White, Sand or Light Green on Evergreen.
                      Evergreen or Natural Black on White.
                      Sand or Light Green on Natural Black.
  Off-White is used only as a page surround, never behind text.
*/

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --evergreen: #18332F;
  --sand: #D1B98D;
  --viridian: #6A8380;
  --black: #222223;
  --light-green: #E2FADB;
  --white: #FFFFFF;
  --offwhite: #F5F3EE;

  --display: Georgia, "Times New Roman", serif;
  --sans: "Work Sans", Calibri, Carlito, Arial, sans-serif;

  --page: 1120px;
  --gutter: 16px;
  --radius: 10px;
  --radius-sm: 8px;

  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
}

img,
svg { max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--evergreen);
}

h1 { font-size: clamp(2.125rem, 1.5rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.3vw, 2.375rem); }

h3 {
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--evergreen);
}

p + p { margin-top: 0.9em; }

a {
  color: var(--evergreen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 500; }

/* Focus: always visible, never color alone */
:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}

.on-dark :focus-visible { outline-color: var(--sand); }

[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--evergreen);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Icons (inline SVG sprite, rounded line style) */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Notice bars (draft and preview) on Natural Black */
.notice-bar {
  background: var(--black);
  color: var(--light-green);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.notice-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding-block: 10px;
}

.notice-bar strong { color: var(--sand); }

.notice-bar a { color: var(--light-green); }

.notice-bar--preview { border-bottom: 3px solid var(--sand); }

.notice-bar--preview .container { padding-block: 12px; }

.notice-bar--preview strong { font-size: 1.0625rem; }

/* Header */
.site-header {
  background: var(--evergreen);
  color: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 76px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}

/* Official logo: Sand on transparent, 1667 x 250. Sized by height only, never stretched. */
.brand img {
  position: relative;
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
  aspect-ratio: 1667 / 250;
  color: transparent;
}

/* Shown only when the logo file is missing (Chrome, Edge, Firefox). */
.brand img::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--sand);
  border-radius: 4px;
  background: var(--evergreen);
}

.brand img::after {
  content: "Logo file needed";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .brand img { height: 34px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px 20px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { text-decoration: underline; }

.header-actions .header-cta { display: none; }

@media (min-width: 760px) {
  .header-actions .header-cta { display: inline-flex; }
}

@media (max-width: 479px) {
  .sm-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn .icon { width: 20px; height: 20px; }

.btn--primary {
  border-color: var(--evergreen);
  background: var(--evergreen);
  color: var(--white);
}

.btn--primary:hover { box-shadow: inset 0 -4px 0 var(--sand); }

.btn--secondary {
  border-color: var(--evergreen);
  background: var(--white);
  color: var(--evergreen);
}

.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--evergreen); }

.btn--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--evergreen);
}

.btn--light:hover { box-shadow: inset 0 -4px 0 var(--sand); }

.btn--outline-light {
  border-color: var(--sand);
  background: transparent;
  color: var(--sand);
}

.btn--outline-light:hover { box-shadow: inset 0 0 0 1px var(--sand); }

.btn--small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--evergreen);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.btn-link:hover { text-decoration-thickness: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  padding-block: 56px 64px;
  background: var(--evergreen);
  color: var(--white);
}

@media (min-width: 960px) {
  .hero { padding-block: 96px 104px; }
}

.hero h1 {
  max-width: 15ch;
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--sand);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 2px;
  background: var(--sand);
}

.hero .lead {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--light-green);
  font-size: 1.125em;
}

.hero .actions { margin-top: 32px; }

.hero .fine {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--light-green);
  font-size: 0.9375rem;
}

.hero--compact { padding-block: 40px 44px; }

@media (min-width: 960px) {
  .hero--compact { padding-block: 64px; }
}

/* Content sections */
.section { padding-block: 56px; }

.section + .section { padding-top: 0; }

.section + .section > .container::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 56px;
  background: var(--sand);
}

@media (min-width: 960px) {
  .section { padding-block: 88px; }
  .section + .section { padding-top: 0; }
  .section + .section > .container::before { margin-bottom: 88px; }
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-head p { margin-top: 14px; }

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 40px;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-grid li {
  padding-top: 20px;
  border-top: 3px solid var(--sand);
}

.service-grid .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--evergreen);
}

.service-grid h3 { margin-bottom: 6px; }

.steps {
  display: grid;
  gap: 28px;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--evergreen);
  color: var(--sand);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

.steps h3 { margin: 10px 0 6px; }

.after-steps {
  max-width: 62ch;
  margin-top: 36px;
  color: var(--evergreen);
  font-weight: 500;
}

.split {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
}

.split p { margin-top: 14px; }

.checklist {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checklist .icon {
  margin-top: 2px;
  color: var(--evergreen);
}

/* FAQ */
.faq {
  max-width: 780px;
  border-bottom: 1px solid var(--sand);
}

.faq details { border-top: 1px solid var(--sand); }

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 48px 14px 0;
  color: var(--evergreen);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.faq details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq .answer {
  max-width: 66ch;
  padding: 0 0 22px;
}

/* Safety note */
.safety {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  max-width: 780px;
  padding: 18px 20px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius);
}

.safety .icon {
  width: 28px;
  height: 28px;
  color: var(--evergreen);
}

.safety h2 {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Evergreen band */
.band {
  padding-block: 56px;
  background: var(--evergreen);
  color: var(--light-green);
}

@media (min-width: 960px) {
  .band { padding-block: 80px; }
}

.band h2 { color: var(--white); }

.band p { margin-top: 12px; }

.band .actions { margin-top: 28px; }

/* Footer */
.site-footer {
  background: var(--evergreen);
  color: var(--light-green);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
}

.band + .site-footer .container { border-top: 1px solid var(--viridian); }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
}

/* Phone links inside sentences get a 44px tall tap area without changing the line. */
.notice-bar a,
.note a { padding-block: 11px; }

/* ---------- Request preview (review/) ---------- */

.request-band { background: var(--offwhite); }

@media (max-width: 639px) {
  .request-band > .container { padding-inline: 0; }
}

@media (min-width: 640px) {
  .request-band { padding-block: 40px 72px; }
}

.wizard {
  max-width: 860px;
  margin-inline: auto;
  padding: 24px var(--gutter) 32px;
  background: var(--white);
}

@media (min-width: 640px) {
  .wizard {
    padding: 40px 48px 44px;
    border: 1px solid var(--sand);
    border-radius: var(--radius);
  }
}

.noscript {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 2px solid var(--black);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.wizard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.progress-text {
  color: var(--evergreen);
  font-size: 0.9375rem;
  font-weight: 500;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--black);
  color: var(--light-green);
  font-size: 0.875rem;
  font-weight: 500;
}

.progress-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 28px;
}

.progress-bar span {
  height: 6px;
  border-radius: 3px;
  background: var(--sand);
}

.progress-bar span.is-done { background: var(--evergreen); }

.step-title { margin-bottom: 8px; }

.step-intro {
  max-width: 62ch;
  margin-bottom: 28px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend { padding: 0; }

.field { margin-bottom: 28px; }

.field--tight { margin-bottom: 16px; }

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--evergreen);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}

.label--sub { font-size: 1rem; }

.opt {
  color: var(--black);
  font-weight: 400;
}

.hint {
  display: block;
  margin: -2px 0 10px;
  color: var(--black);
  font-size: 0.9375rem;
}

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--viridian);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  font: inherit;
  line-height: 1.4;
}

.input:hover,
.input:focus { border-color: var(--evergreen); }

textarea.input {
  min-height: 112px;
  resize: vertical;
}

.input--zip { max-width: 11em; }

.input--md { max-width: 28em; }

.select-wrap { position: relative; }

.select-wrap select {
  padding-right: 44px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--evergreen);
  border-bottom: 2px solid var(--evergreen);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.row-2 {
  display: grid;
  gap: 0 20px;
}

@media (min-width: 600px) {
  .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Errors: icon, words, thicker border and a side bar. Never color alone. */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--black);
  font-weight: 500;
}

.field-error .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.has-error {
  padding-left: 14px;
  border-left: 4px solid var(--black);
}

.input[aria-invalid="true"] {
  border-width: 3px;
  border-color: var(--black);
}

.error-summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 4px solid var(--black);
  border-radius: var(--radius-sm);
}

.error-summary:focus {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}

.error-summary__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--black);
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}

.error-summary ul {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.error-summary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--black);
  font-weight: 500;
}

/* Choice tiles (real radio buttons inside large labels) */
.choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.choices--row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border: 2px solid var(--viridian);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.choice:hover { border-color: var(--evergreen); }

.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--evergreen);
}

.choice .icon {
  width: 28px;
  height: 28px;
  color: var(--evergreen);
}

.choice__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.choice__title {
  color: var(--evergreen);
  font-weight: 500;
  line-height: 1.3;
}

.choice__desc {
  font-size: 0.9375rem;
  line-height: 1.4;
}

.choice--compact {
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
}

.choice--wide { grid-column: 1 / -1; }

.choice:has(input:checked) {
  border-color: var(--evergreen);
  box-shadow: inset 0 0 0 2px var(--evergreen);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}

@supports selector(:has(*)) {
  .choice input:focus-visible { outline: none; }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--evergreen);
}

.check--boxed {
  padding: 14px 16px;
  border: 2px solid var(--viridian);
  border-radius: var(--radius);
  font-weight: 500;
}

.check--boxed:has(input:checked) {
  border-color: var(--evergreen);
  box-shadow: inset 0 0 0 2px var(--evergreen);
}

/* Optional, expandable sections */
.more {
  margin-bottom: 28px;
  border: 2px solid var(--sand);
  border-radius: var(--radius);
}

.more > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--evergreen);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.more > summary::-webkit-details-marker { display: none; }

.more > summary::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.more[open] > summary::before { transform: rotate(45deg); }

.more[open] > summary { border-bottom: 1px solid var(--sand); }

.more__body { padding: 20px 16px 24px; }

@media (min-width: 640px) {
  .more__body { padding: 24px 24px 28px; }
}

.more__body > .hint { margin: 0 0 20px; }

/* Photos */
.upload {
  position: relative;
  padding: 18px;
  border: 2px dashed var(--viridian);
  border-radius: var(--radius);
}

.file-input {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.file-input:focus-visible + .btn {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}

.photo-count {
  margin-top: 12px;
  font-weight: 500;
}

.photo-problems {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--black);
}

.photo-problems ul {
  display: grid;
  gap: 4px;
  padding-left: 20px;
}

.photo-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.photo-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}

.photo-item img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.photo-name {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.photo-meta {
  margin-top: 2px;
  font-size: 0.875rem;
}

/* Notes and callouts */
.note {
  margin-top: 10px;
  font-size: 0.9375rem;
}

.note--strong {
  padding: 12px 14px;
  border-left: 4px solid var(--black);
  font-weight: 500;
}

.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius-sm);
}

.callout .icon {
  margin-top: 1px;
  color: var(--evergreen);
}

/* Review step */
.review-card {
  padding: 18px 18px 6px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
}

.review-card + .review-card { margin-top: 16px; }

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 4px;
}

.review-list > div {
  padding: 10px 0;
  border-top: 1px solid var(--sand);
}

.review-list dt {
  font-size: 0.9375rem;
  font-weight: 500;
}

.review-list dd {
  margin-top: 2px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.review-list dd ul { padding-left: 20px; }

.review-list .dd-note {
  margin-top: 6px;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .review-list > div {
    display: grid;
    grid-template-columns: 13em minmax(0, 1fr);
    gap: 16px;
  }

  .review-list dd { margin-top: 0; }
}

.ack { margin: 28px 0 0; }

.preview-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--light-green);
}

.preview-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sand);
  font-size: 1.0625rem;
}

.download-actions { margin-top: 20px; }

.status {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.status .icon { color: var(--evergreen); }

.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.wizard-nav .spacer { flex: 1 1 auto; }

@media (max-width: 599px) {
  .wizard-nav .btn,
  .download-actions .btn { width: 100%; }
}

/* Windows high contrast and other forced color modes */
@media (forced-colors: active) {
  .choice:has(input:checked),
  .check--boxed:has(input:checked) { outline: 3px solid Highlight; }

  .progress-bar span { border: 1px solid CanvasText; }

  .progress-bar span.is-done { background: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.clear-confirm { display: grid; gap: 12px; margin-top: 16px; padding: 16px 18px; border: 2px solid var(--black); border-radius: var(--radius-sm); }

/* v4.1: receipt panel has a single child; span full width and wrap long reference */
#receipt-panel { grid-template-columns: minmax(0, 1fr); }
#receipt-panel > div { min-width: 0; }
#receipt-reference { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* v6: customer uploads */
.upl { position: relative; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sand); }
.upl__title { margin: 0 0 4px; }
.upl__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.upl__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 10px; border: 1px solid var(--viridian); border-radius: var(--radius-sm); }
.upl__name { overflow-wrap: anywhere; font-weight: 500; }
.upl__item progress { width: 100%; height: 10px; accent-color: var(--evergreen); }
.upl__item.is-error { border-color: #B42318; }
.upl__item.is-error .upl__msg { color: #B42318; }
.upl__item.is-done .upl__msg { color: var(--evergreen); font-weight: 500; }
.upl__later { margin-top: 12px; overflow-wrap: anywhere; }
.upl__pick, .upl__copy { cursor: pointer; }
.upl-page { padding: 32px 0 48px; }
.status--single { grid-template-columns: minmax(0, 1fr); }
.upl__pick { background: var(--evergreen); color: var(--white); border-color: var(--evergreen); }
.upl__pick:hover { background: var(--viridian); }
.upl-page h1.step-title { font-size: 1.75rem; margin: 0 0 4px; }
.upl-page .upl { border-top: 0; margin-top: 4px; padding-top: 0; }
.upl-page .upl__title { display: none; }
