/* =================================================================
   CSC Workforce Intake — Civic-warm design system
   ================================================================= */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --ink: #1A1A1A;
  --ink-soft: #5A5A5A;
  --ink-quiet: #8A8580;
  --border: #D9D4CC;
  --border-strong: #B9B2A6;
  --csc-red: #B91C1C;
  --csc-red-dark: #991B1B;
  --csc-red-soft: #FEF2F2;
  --csc-red-border: #F5D5D5;
  --csc-red-border-soft: #ECCFCF;
  --focus: #2563EB;
  --success: #15803D;
  --error: #DC2626;
  --error-bg: #FEF2F2;

  --content-max: 720px;
  --content-max-staff: 1100px;
  --gap: 24px;

  --font-body: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Noto Sans CJK TC", sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* lang-specific tweaks */
html[lang^="zh"] body { letter-spacing: 0.01em; }

/* skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--r-md);
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* sr-only */
.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;
}

/* =================================================================
   Progress bar (client wizard only)
   ================================================================= */
.progress-bar {
  position: sticky;
  top: 0;
  height: 6px;
  background: var(--border);
  z-index: 50;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--csc-red);
  transition: width 250ms ease;
}
body[data-mode="staff"] .progress-bar { display: none; }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
body[data-mode="staff"] .site-header__inner { max-width: var(--content-max-staff); }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand__mark {
  background: var(--csc-red);
  color: #FFF;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand__text { min-width: 0; }
.brand__org {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
}
.brand__dept {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.3;
  margin-top: 2px;
}

/* language toggle — pill */
.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-toggle__btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  min-width: 60px;
  transition: background 120ms, color 120ms;
}
.lang-toggle__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-toggle__btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* =================================================================
   Main
   ================================================================= */
.main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 20px 48px;
}
body[data-mode="staff"] .main {
  max-width: var(--content-max-staff);
  padding: 24px 20px 40px;
}

.form-section { display: none; margin-bottom: var(--gap); }
.form-section.is-active { display: block; }
/* in staff mode, show all sections at once */
body[data-mode="staff"] .form-section { display: block; }
body[data-mode="staff"] .form-section[data-step="success"] { display: none; }
body[data-mode="staff"] .form-section[data-step="success"].is-active { display: block; }
body[data-mode="staff"] .form-section[data-step="0"] { display: none; }
/* meta section is only visible in staff mode */
body[data-mode="client"] .form-section--staff-only { display: none !important; }

/* =================================================================
   Section card — the workhorse
   ================================================================= */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: var(--gap);
}
@media (max-width: 540px) {
  .section-card { padding: 22px 18px; border-radius: 12px; }
}

/* Strip variant — the staff-mode intake meta row. No card chrome, slimmer. */
.section-card--strip {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 0 18px;
  margin-bottom: 18px;
}
.section-head--inline { margin-bottom: 12px; }
/* Higher specificity needed to beat body[data-mode="staff"] .section-head h2 below. */
body[data-mode="staff"] .section-head--inline h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0;
  margin: 0;
}
.section-head--inline h2::after { display: none; }

/* Commit variant — the certification + signature section, the legal anchor.
   Stronger visual weight: red top accent + warm tint + thicker padding. */
.section-card--commit {
  background: var(--csc-red-soft);
  border: 1px solid var(--csc-red-border);
  border-top: 3px solid var(--csc-red);
  padding-top: 36px;
}
.section-card--commit .legal {
  background: var(--surface);
  border-color: var(--csc-red-border-soft);
}

.section-head {
  margin-bottom: 28px;
  position: relative;
}
.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 10px;
  color: var(--ink);
  /* asymmetric red rule extends past content edge */
  position: relative;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  width: 64px;
  bottom: 0;
  height: 2px;
  background: var(--csc-red);
}
/* Primary sections override the default short stub with a full edge-extended rule. */
.section-card--primary .section-head h2::after,
.section-card--commit .section-head h2::after {
  left: -32px;
  width: auto;
  right: 30%;
}
@media (max-width: 540px) {
  .section-card--primary .section-head h2::after,
  .section-card--commit .section-head h2::after { left: -18px; }
}
.section-head__sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

/* welcome card */
.section-card--welcome { padding-top: 36px; padding-bottom: 36px; }
.section-card__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}
.section-card__lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.55;
}
.welcome-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.welcome-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 17px;
  line-height: 1.5;
}
.welcome-list li:last-child { border-bottom: none; }
.welcome-list__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--csc-red-soft);
  color: var(--csc-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-mono);
}

/* =================================================================
   Form fields
   ================================================================= */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
}

.field { display: block; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--small input { max-width: 140px; }

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.required {
  color: var(--csc-red);
  font-weight: 700;
  margin-left: 2px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="month"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 120ms, box-shadow 120ms;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* native date pickers can have inner padding quirks */
.field input[type="date"],
.field input[type="month"] {
  padding-right: 10px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--csc-red);
  box-shadow: 0 0 0 3px var(--csc-red-soft);
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--csc-red);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-quiet);
}

/* error state */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}
.field-error {
  display: block;
  font-size: 14px;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}

/* =================================================================
   Radios + checkboxes
   ================================================================= */
.field-group {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.field-group .field-label { margin-bottom: 12px; }
.checks, .radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
@media (max-width: 600px) {
  .checks, .radios { grid-template-columns: 1fr; }
}
.check, .radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  font-size: 16px;
  line-height: 1.4;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}
.check input, .radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: background 100ms, border-color 100ms;
}
.check input { border-radius: 5px; }
.radio input { border-radius: 50%; }

.check input:checked {
  background: var(--csc-red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 7 L6 11 L12 3' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
  border-color: var(--csc-red);
}
.radio input:checked {
  background: var(--csc-red);
  border-color: var(--csc-red);
  box-shadow: inset 0 0 0 4px var(--surface);
}
.check input:focus-visible, .radio input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* =================================================================
   Job entry
   ================================================================= */
.job-entry {
  padding: 20px 0 4px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.job-entry:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.job-entry__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--csc-red-dark);
}

/* Most Recent — visually weighted. The funder care most about this one. */
.job-entry--primary {
  background: var(--surface-2);
  border-left: 3px solid var(--csc-red);
  padding: 18px 20px;
  margin: 0 -4px 24px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.job-entry--primary .job-entry__title {
  font-size: 18px;
}

/* Earliest — visually receded. Nice-to-have, not the headline. */
.job-entry--muted .job-entry__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.job-entry--muted .field-label {
  color: var(--ink-soft);
}

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 0 22px;
  min-height: 52px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 120ms, border-color 120ms, color 120ms, transform 60ms;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--csc-red);
  color: #FFF;
  border-color: var(--csc-red);
}
.btn--primary:hover:not(:disabled) { background: var(--csc-red-dark); border-color: var(--csc-red-dark); }
.btn--primary:disabled { background: var(--border-strong); border-color: var(--border-strong); cursor: not-allowed; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--submit { padding: 0 32px; }
.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* wizard nav */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}
.wizard-nav--end { justify-content: flex-end; }
body[data-mode="staff"] .wizard-nav--client { display: none; }
.wizard-nav .btn { flex: 1 1 auto; max-width: 240px; }
.wizard-nav--end .btn { max-width: 280px; }

/* =================================================================
   Legal text + consent
   ================================================================= */
.legal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }
.consent { margin: 0 0 24px; }
.consent .check { font-weight: 600; }

/* =================================================================
   Signature pad
   ================================================================= */
.signature-block {
  margin: 0 0 24px;
}
.signature-block__label {
  margin-bottom: 10px;
}
.signature-pad {
  position: relative;
  background: #FAF6EC;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px;
  touch-action: none;
  overflow: hidden;
}
.signature-pad canvas {
  display: block;
  width: 100%;
  height: 180px;
  background: transparent;
  cursor: crosshair;
  touch-action: none;
}
.signature-pad__baseline {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 32px;
  height: 0;
  border-top: 1px dashed var(--ink-quiet);
  pointer-events: none;
}
.signature-pad__clear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.signature-pad.has-error {
  border-color: var(--error);
  background: var(--error-bg);
}

/* =================================================================
   Error summary
   ================================================================= */
.error-summary {
  background: var(--error-bg);
  border: 1.5px solid var(--error);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  color: var(--error);
  font-size: 15px;
  line-height: 1.5;
}
.error-summary__title {
  font-weight: 700;
  margin: 0 0 6px;
}
.error-summary ul {
  margin: 0;
  padding: 0 0 0 18px;
}

/* =================================================================
   Success screen
   ================================================================= */
.section-card--success {
  text-align: center;
  padding: 48px 32px;
}
.success-check { margin: 0 auto 16px; }
.success-screen__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.3;
}
.success-screen__lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.success-screen__h2 {
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--csc-red);
  display: inline-block;
}

/* Reference number badge — the precision element */
.ref-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 12px 22px;
  margin: 0 auto 20px;
  border-radius: 0; /* SHARP corners against the rounded card */
}

.next-steps {
  text-align: left;
  margin: 0 auto 28px;
  padding: 0 0 0 24px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.next-steps li { padding: 6px 0; }
.success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-qr {
  margin: 0 auto 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: inline-block;
  text-align: center;
}
.success-qr img {
  display: block;
  margin: 0 auto;
  background: #fff;
  padding: 4px;
  max-width: 100%;
  height: auto;
}
.success-qr__caption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 160px;
  line-height: 1.4;
}
.success-qr__url {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  max-width: 200px;
}
.success-qr__url a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-strong);
}
.success-qr__url a:hover { color: var(--csc-red); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
  padding: 28px 20px 36px;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
body[data-mode="staff"] .site-footer__inner { max-width: var(--content-max-staff); }
.site-footer__col { font-size: 14px; color: var(--ink-soft); }
.site-footer__org { font-weight: 600; color: var(--ink); font-size: 15px; }
.site-footer__addr { margin-top: 4px; line-height: 1.55; }
.site-footer__addr a { color: var(--ink-soft); }
.site-footer__col--actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer__legal {
  max-width: var(--content-max);
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
body[data-mode="staff"] .site-footer__legal { max-width: var(--content-max-staff); }

.text-link {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--csc-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 6px;
  cursor: pointer;
  min-height: 44px;
  align-items: center;
}
.text-link:not([hidden]) { display: inline-flex; }
.text-link:hover { color: var(--csc-red-dark); }
.text-link--danger { color: var(--ink-soft); }
.text-link--danger:hover { color: var(--error); }

/* =================================================================
   STAFF MODE — denser, 16px body, 2-column where useful
   ================================================================= */
body[data-mode="staff"] {
  font-size: 16px;
}
body[data-mode="staff"] .main { padding-top: 20px; }
body[data-mode="staff"] .section-card {
  padding: 22px 24px;
  margin-bottom: 18px;
}
body[data-mode="staff"] .section-head { margin-bottom: 18px; }
body[data-mode="staff"] .section-head h2 { font-size: 18px; }
body[data-mode="staff"] .field input,
body[data-mode="staff"] .field select,
body[data-mode="staff"] .field textarea {
  min-height: 40px;
  font-size: 15px;
}
body[data-mode="staff"] .field-label { font-size: 14px; margin-bottom: 5px; }
body[data-mode="staff"] .field-grid { gap: 14px 18px; }
body[data-mode="staff"] .check,
body[data-mode="staff"] .radio { font-size: 14px; min-height: 36px; padding: 4px 0; }
body[data-mode="staff"] .check input,
body[data-mode="staff"] .radio input { width: 18px; height: 18px; }

@media (min-width: 980px) {
  body[data-mode="staff"] .main { display: block; }
  body[data-mode="staff"] .field-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  body[data-mode="staff"] .field--full { grid-column: span 4; }
  body[data-mode="staff"] .field--small { grid-column: span 1; }
  body[data-mode="staff"] .checks,
  body[data-mode="staff"] .radios {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =================================================================
   Print styles — blank form fallback
   ================================================================= */
@media print {
  :root { --bg: #fff; --surface: #fff; }
  body {
    font-size: 11pt;
    background: #fff !important;
    color: #000 !important;
  }
  .site-header__inner { padding: 12px 0; }
  .lang-toggle, .progress-bar, .wizard-nav, .site-footer__col--actions,
  .signature-pad__clear, .btn, .form-section[data-step="success"],
  .form-section[data-step="0"] { display: none !important; }

  .main, .site-header__inner, .site-footer__inner, .site-footer__legal {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .form-section { display: block !important; page-break-inside: avoid; }
  .section-card {
    border: 1px solid #000;
    box-shadow: none;
    padding: 14pt;
    margin-bottom: 12pt;
    border-radius: 4pt;
  }
  .section-head h2 { font-size: 14pt; }
  .section-head h2::after { background: #000; }

  /* render inputs as blank lines for paper fill */
  .field input[type="text"], .field input[type="tel"], .field input[type="email"],
  .field input[type="date"], .field input[type="month"], .field input[type="number"],
  .field select, .field textarea {
    border: 0;
    border-bottom: 1px solid #000;
    border-radius: 0;
    background: transparent !important;
    min-height: 28px;
    padding: 2px 4px;
  }
  .field textarea { min-height: 50px; border-bottom: 0; border: 1px solid #000; }

  /* checkbox/radio as outlined boxes */
  .check input, .radio input {
    border: 1.5px solid #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .check input:checked, .radio input:checked { background: #fff !important; }

  .signature-pad {
    background: #fff !important;
    border: 1px solid #000;
  }
  .signature-pad canvas { display: none; }
  .signature-pad::after {
    content: " ";
    display: block;
    height: 80px;
  }

  .legal { background: #fff; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
}

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

/* focused links don't carry tabindex ring */
[tabindex="-1"]:focus { outline: none; }
