/* ChristianWorks Employee Ordering Portal
   Brand tokens: replace with verified brand values when available. */
:root {
  --green: #006f51;
  --green-dark: #00563f;
  --green-tint: #e7f3ef;
  --green-tint-2: #cfe7df;
  --blue: #007ac2;
  --blue-dark: #00609a;
  --blue-tint: #e6f2fa;
  --yellow: #ffc425;
  --charcoal: #1a1a1a;
  --text: #1a1a1a;
  --muted: #4f5a56;
  --subtle: #6b7571;
  --white: #ffffff;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --border: #dbe1de;
  --border-strong: #b9c3bf;
  --error: #b42318;
  --error-tint: #fdeceb;
  --success-tint: #e7f3ef;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, 0.06);
  --shadow: 0 1px 3px rgba(16, 24, 20, 0.06), 0 6px 16px rgba(16, 24, 20, 0.06);
  --focus: 0 0 0 3px rgba(0, 122, 194, 0.45);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-top: 4px solid var(--yellow);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--charcoal); }
.brand__mark { font-weight: 800; font-size: 1.3rem; color: var(--green); letter-spacing: -0.02em; }
.brand__mark img { display: block; height: 46px; width: auto; }
@media (max-width: 520px) { .brand__mark img { height: 34px; } }
.brand__divider { width: 1px; height: 26px; background: var(--border-strong); }
.brand__label { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.header-actions { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 520px) {
  .brand { gap: 10px; }
  .brand__mark { font-size: 1.12rem; }
  .brand__label { font-size: 0.82rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.06);
}
.hero__inner { padding-top: 48px; padding-bottom: 56px; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--yellow); margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; max-width: 760px; }
.hero__intro { margin-top: 14px; max-width: 720px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.92); }
.hero__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.hero__steps li {
  counter-increment: step; display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius); padding: 14px 16px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.95);
}
.hero__steps li::before {
  content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  background: var(--white); color: var(--green);
}
@media (max-width: 760px) { .hero__steps { grid-template-columns: 1fr; } .hero__inner { padding-top: 32px; padding-bottom: 36px; } }

/* ---------- Page and panels ---------- */
.page { padding-top: 32px; padding-bottom: 64px; }
.order-form, .review, .confirmation { display: grid; gap: 24px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px;
}
@media (max-width: 600px) { .panel { padding: 20px 16px; border-radius: var(--radius); } }
.panel__header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.panel__header--plain { margin-bottom: 18px; }
.panel__title { font-size: 1.35rem; font-weight: 750; color: var(--charcoal); }
.panel__hint { color: var(--muted); margin-top: 4px; }
.step-badge {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green); font-weight: 800; border: 1px solid var(--green-tint-2);
}
.subhead { font-size: 1.05rem; font-weight: 700; margin: 8px 0 14px; }
.required-legend { font-size: 0.88rem; color: var(--muted); margin: -8px 0 16px; }
.req { color: var(--error); font-weight: 700; }
.optional { color: var(--subtle); font-weight: 400; font-size: 0.9em; }

/* ---------- Choice cards ---------- */
.choice-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  position: relative; display: grid; gap: 6px; padding: 22px 22px 22px 22px; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.choice-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.choice-card__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card__icon { color: var(--green); margin-bottom: 4px; }
.choice-card--cards .choice-card__icon { color: var(--blue); }
.choice-card__title { font-weight: 750; font-size: 1.12rem; color: var(--charcoal); }
.choice-card__text { color: var(--muted); font-size: 0.95rem; padding-right: 24px; }
.choice-card__check {
  position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 6px;
  border: 2px solid var(--border-strong); background: var(--white); transition: all 0.15s;
}
.choice-card__input:checked ~ .choice-card__check {
  background: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px; background-position: center; background-repeat: no-repeat;
}
.choice-card:has(.choice-card__input:checked) { border-color: var(--green); background: var(--green-tint); }
.choice-card:has(.choice-card__input:focus-visible) { box-shadow: var(--focus); }

/* ---------- Fields ---------- */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 680px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .fieldset legend { font-weight: 650; font-size: 0.95rem; color: var(--charcoal); }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.fieldset legend { margin-bottom: 10px; padding: 0; }
.field-hint { font-size: 0.86rem; color: var(--muted); }
.field-error { font-size: 0.88rem; color: var(--error); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--error); color: var(--white); font-size: 0.72rem; display: grid; place-items: center; margin-top: 2px; }
.field-error--block { background: var(--error-tint); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 46px; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 88px; }
select {
  appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%234f5a56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input:hover, select:hover, textarea:hover { border-color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
[aria-invalid="true"] { border-color: var(--error) !important; background-color: #fffafa; }
input[readonly] { background: var(--bg); }
::placeholder { color: #8a938f; opacity: 1; }

.office-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 680px) { .office-row { grid-template-columns: 1fr; gap: 10px; } }
.office-address {
  display: grid; gap: 2px; align-content: center; padding: 10px 14px; min-height: 46px;
  background: var(--bg); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
}
.office-address__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); font-weight: 700; }
.office-address__value { font-size: 0.95rem; color: var(--muted); }
.office-address.is-set { background: var(--green-tint); border: 1px solid var(--green-tint-2); }
.office-address.is-set .office-address__value { color: var(--charcoal); font-weight: 600; }

.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card, .radio-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); transition: border-color 0.15s, background 0.15s;
}
.radio-card:hover, .radio-row:hover { border-color: var(--border-strong); }
.radio-card span { display: grid; gap: 2px; }
.radio-card small { color: var(--muted); font-size: 0.88rem; }
.radio-card:has(input:checked), .radio-row:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.radio-card:has(input:focus-visible), .radio-row:has(input:focus-visible) { box-shadow: var(--focus); }
.radio-list { display: grid; gap: 10px; }
input[type="radio"] { accent-color: var(--green); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  display: flex; flex-direction: column; background: var(--surface); overflow: hidden;
  border: 2px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.product-card.is-unavailable { opacity: 0.7; }
.product-card__media { aspect-ratio: 4 / 3; background: var(--bg); position: relative; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media.has-photo { background: var(--white); border-bottom: 1px solid var(--border); }
.product-card__media.has-photo img { object-fit: contain; }
.view-switch { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; padding: 3px; gap: 2px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); }
.view-switch__btn { font: inherit; font-size: 0.82rem; font-weight: 650; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 5px 14px; min-height: 30px; cursor: pointer; }
.view-switch__btn:hover { color: var(--charcoal); }
.view-switch__btn[aria-pressed="true"] { background: var(--green); color: var(--white); }
.view-switch__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.product-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 111, 81, 0.08), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(0, 122, 194, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f9f8, #eef2f0);
  color: var(--subtle);
}
.product-placeholder svg { color: var(--green); opacity: 0.55; }
.product-placeholder span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.product-card__name { font-size: 1.08rem; font-weight: 750; }
.product-card__badge {
  flex: none; font-size: 0.74rem; font-weight: 700; color: var(--green-dark); background: var(--green-tint);
  border: 1px solid var(--green-tint-2); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.product-card__badge.is-unavailable { color: var(--muted); background: var(--bg); border-color: var(--border); }
.product-card__desc { color: var(--muted); font-size: 0.93rem; }
.color-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-picker__label { font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.color-picker__options { display: flex; gap: 6px; }
.color-picker__btn { font: inherit; font-size: 0.86rem; font-weight: 650; color: var(--charcoal); background: var(--white); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 4px 14px; min-height: 32px; cursor: pointer; }
.color-picker__btn:hover { border-color: var(--green); }
.color-picker__btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); }
.color-picker__chip { display: inline-flex; align-items: center; font-size: 0.86rem; font-weight: 650; border: 1.5px solid var(--green); background: var(--green-tint); color: var(--green-dark); border-radius: 999px; padding: 4px 14px; min-height: 32px; box-sizing: border-box; }
.color-picker__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.product-card__add { align-self: flex-start; margin-top: auto; }

.line-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line-list:empty { display: none; }
.line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: end;
  padding: 10px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.line.has-error { border-color: var(--error); background: #fffafa; }
.line__field { display: grid; gap: 4px; min-width: 0; }
.line__field--wide { grid-column: 1 / -1; }
.line__check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--charcoal); cursor: pointer; padding-top: 2px; }
.line__check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.line .icon-btn { justify-self: end; }
.line__label { font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.line select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.line .field-error { grid-column: 1 / -1; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; height: 42px; }
.stepper:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.stepper button { width: 34px; border: 0; background: transparent; font-size: 1.15rem; color: var(--green); cursor: pointer; font-weight: 700; }
.stepper button:hover { background: var(--green-tint); }
.stepper button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.stepper input { width: 52px; border: 0 !important; box-shadow: none !important; min-height: 0; text-align: center; padding: 0 4px; border-radius: 0; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--error); background: var(--error-tint); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.apparel-notes { margin-top: 24px; }
#bc-details + #bc-order-fields { margin-top: 18px; }
.bc-split__fields { display: grid; gap: 18px; align-content: start; min-width: 0; }
.bc-mockup { margin: 0; min-width: 0; align-self: start; }
.bc-mockup img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.bc-mockup figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--subtle); }
.phone-row { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem; gap: 12px; align-items: end; }
.phone-row__ext label { white-space: nowrap; }
.phone-row__number, .phone-row__ext { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 520px) { .phone-row { grid-template-columns: 1fr; } .phone-row__ext { max-width: 10.5rem; } }

/* ---------- Business card preview ---------- */
.card-preview { margin-top: 24px; }
.card-preview__caption { font-size: 0.82rem; color: var(--subtle); margin-bottom: 8px; }
.biz-card {
  position: relative; max-width: 420px; aspect-ratio: 3.5 / 2; padding: 22px 24px 18px 30px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.biz-card__accent { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--green), var(--blue)); }
.biz-card__name { font-weight: 800; font-size: 1.12rem; color: var(--charcoal); }
.biz-card__title { color: var(--green); font-weight: 650; font-size: 0.9rem; }
.biz-card__logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 12px; }
.biz-card__contact { margin: auto 0 0; display: grid; gap: 1px; font-size: 0.78rem; color: var(--charcoal); }
.biz-card__contact div { display: flex; gap: 8px; }
.biz-card__contact dt { width: 44px; flex: none; color: var(--subtle); font-weight: 600; }
.biz-card__contact dd { margin: 0; overflow-wrap: anywhere; }
.biz-card [data-empty="true"] { color: var(--border-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-decoration: none;
  border-radius: var(--radius-sm); border: 2px solid transparent; padding: 11px 20px; min-height: 46px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { background: var(--white); color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green-tint); }
.btn--ghost { background: var(--white); color: var(--charcoal); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn--secondary { background: var(--blue); color: var(--white); }
.btn--secondary:hover { background: var(--blue-dark); color: var(--white); }
.btn--sm { padding: 7px 14px; min-height: 38px; font-size: 0.9rem; }
.btn--lg { padding: 13px 26px; min-height: 52px; font-size: 1.04rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: var(--white); animation: spin 0.8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  position: sticky; bottom: 12px; box-shadow: var(--shadow); z-index: 5;
}
.form-actions__summary { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .form-actions { padding: 14px 16px; } .form-actions .btn { width: 100%; } }

/* ---------- Notices and errors ---------- */
.notice { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--blue-tint); color: var(--charcoal); }
.notice--error { background: var(--error-tint); border-color: #f4c7c3; }
.notice--warning { background: #fff7e0; border-color: #f5d98a; }
.notice--success { background: var(--success-tint); border-color: var(--green-tint-2); }
.notice strong { display: block; margin-bottom: 4px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.error-summary { border: 2px solid var(--error); background: var(--white); border-radius: var(--radius); padding: 18px 20px; }
.error-summary:focus { outline: none; box-shadow: 0 0 0 4px var(--error-tint); }
.error-summary__title { font-size: 1.05rem; color: var(--error); margin-bottom: 8px; }
.error-summary__list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.error-summary__list a { color: var(--error); font-weight: 600; }

/* ---------- Review ---------- */
.review:focus, .confirmation:focus { outline: none; }
.review-section { border-top: 1px solid var(--border); padding: 20px 0; }
.review-section:first-child { border-top: 0; padding-top: 0; }
.review-section__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-section__title { font-size: 1.08rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.tag { font-size: 0.74rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-tint-2); }
.tag--blue { background: var(--blue-tint); color: var(--blue-dark); border-color: #bcdcf0; }
.review-dl { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.review-dl dt { color: var(--muted); font-weight: 600; }
.review-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 560px) { .review-dl { grid-template-columns: 1fr; gap: 2px; } .review-dl dd { margin-bottom: 10px; } }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tfoot td { font-weight: 700; background: var(--bg); border-bottom: 0; border-top: 1px solid var(--border); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.review__actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 600px) { .review__actions { flex-direction: column-reverse; } .review__actions .btn { width: 100%; } }
#submit-status { margin-top: 16px; }

/* ---------- Confirmation ---------- */
.confirmation__panel { text-align: center; max-width: 720px; margin: 0 auto; padding: 40px 32px; }
.confirmation__icon { color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.confirmation__title { font-size: 1.6rem; font-weight: 800; }
.confirmation__lead { color: var(--muted); margin-top: 8px; }
.confirmation__ids { margin: 24px auto; display: grid; gap: 10px; text-align: left; max-width: 520px; }
.confirmation__ids div { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.confirmation__ids dt { color: var(--muted); font-weight: 600; }
.confirmation__ids dd { margin: 0; font-weight: 800; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.confirmation__ids dd.is-plain { font-family: inherit; font-weight: 650; letter-spacing: 0; }
.confirmation__note { color: var(--muted); font-size: 0.95rem; max-width: 560px; margin: 0 auto; }
.confirmation__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.88rem; padding: 20px 0; }

@media print {
  .site-header, .hero, .site-footer, .confirmation__actions, .skip-link { display: none !important; }
  body { background: var(--white); }
  .panel { box-shadow: none; border: 0; }
}
