/* Customer-form theme. The base sheet owns field layout and functional states. */
:root {
  color: #14232e;
  background: #edf3f2;
  --blue: #0d5d52;
  --blue-hover: #084b42;
  --muted: #5d6d7b;
  --border: #dce5e4;
  --soft: #f4f8f7;
  --glass: rgba(255, 255, 255, .46);
  --glass-edge: rgba(255, 255, 255, .94);
  --glass-shadow: 0 16px 38px -16px rgba(32, 67, 63, .28), 0 3px 10px rgba(32, 67, 63, .04);
  --card-radius: 24px;
  --focus-ring: 0 0 0 4px rgba(13, 93, 82, .12);
  --header-expanded: 174px;
  --header-row: 88px;
  --header-compact: 64px;
  --header-top: max(12px, env(safe-area-inset-top));
}

html { scroll-padding: calc(var(--header-compact) + var(--header-top) + 16px) 0 140px; }
body {
  padding: 24px 24px 0;
  background: transparent;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 18%, rgba(143, 196, 178, .43), transparent 56%),
    radial-gradient(ellipse at 100% 42%, rgba(174, 198, 222, .47), transparent 57%),
    linear-gradient(135deg, #e9f2ef, #f3f6f5 54%, #e9f0f4);
}
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #347f73;
  outline-offset: 4px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}
.site-shell {
  max-width: 1080px;
  min-height: calc(100vh - 24px);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.header-slot {
  position: sticky;
  top: var(--header-top);
  z-index: 10;
  height: var(--header-expanded);
  pointer-events: none;
  overflow-anchor: none;
}
.glass-header {
  display: grid;
  grid-template-rows: var(--header-row) 1fr;
  width: 100%;
  height: var(--header-expanded);
  margin: 0 auto;
  pointer-events: auto;
  background: #f4faf9;
  border: 1px solid var(--glass-edge);
  border-radius: 32px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 #fff;
  overflow: hidden;
}
.site-header {
  height: var(--header-row);
  padding: 0 32px;
  border-bottom: 1px solid rgba(93, 122, 118, .14);
}
.brand { color: #14232e; }
.brand-mark { --logo-width: 122px; }
.header-right { gap: 20px; }
.header-right > span { color: var(--muted); font-size: 14px; font-weight: 500; }
.language-button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(131, 157, 152, .21);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: var(--muted);
}
.language-button:hover { background: #fff; color: var(--blue); }
.steps { width: 100%; max-width: 890px; margin: 0 auto; padding: 24px; gap: 16px; }
.step { gap: 10px; font-size: 14px; color: var(--muted); }
.step-label { line-height: 1.4; }
.step-number {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 2px solid #d1dcdd;
  background: rgba(255, 255, 255, .6);
  color: #61717c;
  font-size: 16px;
  font-weight: 650;
}
.step.active { color: #14232e; font-weight: 650; }
.step.active .step-number {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 7px rgba(13, 93, 82, .06);
}
.step.completed .step-number { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-number svg { width: 21px; height: 21px; stroke-width: 2.4; }
.glass-header.is-compact .step-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.step-connector { width: 48px; max-width: 64px; min-width: 24px; height: 2px; background: #d3dddf; }
.step.completed + .step-connector { background: var(--blue); }
.glass-header.is-compact {
  width: min(680px, calc(100% - 32px));
  height: var(--header-compact);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-radius: 24px;
  box-shadow: 0 12px 30px -12px rgba(32, 67, 63, .3), inset 0 1px 0 #fff;
}
.glass-header.is-compact .site-header { display: contents; }
.glass-header.is-compact .brand { grid-column: 1; grid-row: 1; justify-self: start; }
.glass-header.is-compact .brand-mark { --logo-width: 88px; }
.glass-header.is-compact .header-right { display: flex; grid-column: 3; grid-row: 1; justify-self: end; }
.glass-header.is-compact .header-right > span { display: none; }
.glass-header.is-compact .steps {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}
.glass-header.is-compact .step { flex-direction: row; gap: 0; }
.glass-header.is-compact .step-number { width: 30px; height: 30px; font-size: 13px; }
.glass-header.is-compact .step.active .step-number { box-shadow: 0 0 0 4px rgba(13, 93, 82, .06); }
.glass-header.is-compact .step-number svg { display: none; }
.glass-header.is-compact .step-number .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.glass-header.is-compact .step-connector { align-self: center; flex: none; width: 22px; min-width: 0; max-width: none; margin: 0; }
.header-slot:has(.steps[hidden]), .glass-header:not(.is-compact):has(.steps[hidden]) { height: calc(var(--header-row) + 2px); }
.skip-link { z-index: 20; }
main { max-width: 980px; padding: 0 20px 16px; }
.page-heading { margin: 52px auto 40px; }
.page-heading h1, .success-state h1 {
  color: #12222e;
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 730;
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.lead { max-width: 780px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.micro-copy { color: #62776f; font-size: 12px; margin-top: 14px; }
.form-section, .optional-section, .supporting-section, .review-section, .consent-box {
  border: 1px solid rgba(172, 201, 189, .58);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 16px -10px rgba(31, 65, 60, .18);
  scroll-margin-top: 24px;
}
.form-section { padding: 30px; margin: 0 0 22px; }
.form-section:last-of-type { margin-bottom: 22px; }
.section-heading { margin-bottom: 24px; gap: 20px; }
.section-heading h2 { font-size: 19px; font-weight: 660; letter-spacing: -.35px; color: #192a35; }
.required-hint { color: #65757f; }
.fields-grid { gap: 24px; }
.field > label, .category-choice > label { color: #364b54; font-size: 13px; font-weight: 560; margin-bottom: 9px; }
.field input, .field textarea, .field select, .category-choice select {
  color: #172d36;
  border-color: #d8e2e0;
  border-radius: 11px;
  background: #fcfdfd;
  padding: 12px 14px;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(23, 52, 47, .025);
}
.field input, .field select, .category-choice select { height: 48px; }
.field input:hover, .field textarea:hover, .field select:hover, .category-choice select:hover { border-color: #abc4bd; }
.field input:focus, .field textarea:focus, .field select:focus, .category-choice select:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}
.field input::placeholder { color: #82928f; }
.field input:disabled, .field textarea:disabled, .field select:disabled { background: #eef3f1; }
.field-help, .section-description, .upload-hint { color: #65757f; }
.field-error { color: var(--danger); }
.has-error input, .has-error textarea, .has-error select, .has-error .drop-zone { border-color: #c9525c; }
.select-wrap select { padding-right: 38px; }
.select-wrap > svg { top: 16px; color: #698077; }
.input-unit input { padding-right: 90px; }
.unit-label { color: #647a71; }
.temperature-input input { padding-right: 78px; }
.temperature-select {
  height: 46px !important;
  width: 68px !important;
  background: #f1f6f4 !important;
  border-left-color: #d8e2e0 !important;
  border-radius: 0 10px 10px 0 !important;
  color: var(--blue) !important;
}
.temperature-select:focus { outline-color: #347f73; }
.optional-section { margin-bottom: 16px; }
.optional-section > summary {
  background: transparent;
  padding: 22px 26px;
  gap: 18px;
  min-height: 98px;
  transition: background .18s;
}
.optional-section > summary:hover { background: #f5faf8; }
.optional-section[open] > summary { border-bottom: 1px solid var(--border); }
.section-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: #e9f2ef;
  color: var(--blue);
}
.section-icon svg { width: 25px; height: 25px; stroke-width: 1.7; }
.summary-title { flex-direction: row; align-items: center; gap: 14px; font-size: 20px; font-weight: 660; min-width: 0; line-height: 1.4; }
.summary-name { overflow-wrap: anywhere; }
.summary-subtitle { border-radius: 999px; padding: 3px 11px; background: #f0f3f5; color: #62717d; font-size: 12px; white-space: nowrap; }
.summary-count {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  background: #e8f2ee;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.summary-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.disclosure-icon { width: 20px; height: 20px; color: #5e727a; flex-shrink: 0; }
.optional-content { padding: 28px; }
.optional-content > .section-description { margin-bottom: 24px; }
.group-heading h3, .compact-group-info h3 { color: #61776d; }
.equipment-group { border-bottom-color: var(--border); }
.equipment-group.is-collapsed {
  background: #f6f9f8;
  border-color: #dfe8e4;
  border-radius: 14px;
  padding: 18px;
}
.group-summary { color: #2b4148; }
.group-save-row > p, .empty-group { color: #677b72; }
.save-group { min-height: 42px; padding: 11px 22px; border-radius: 999px; }
.add-group { background: #ecf5f1; border-color: #d1e5dc; color: var(--blue); border-radius: 999px; padding: 11px 16px; }
.add-group:hover { background: #e0efe8; }
.text-button { min-height: 32px; }
.remove-group { color: #73827b; }
.supporting-section { padding: 30px; margin: 28px 0 0; }
.drop-zone { border-color: #bdcfc8; border-radius: 16px; background: #f4f8f6; min-height: 148px; }
.drop-zone:hover, .drop-zone.dragover { background: #eaf4ef; border-color: #75a693; }
.drop-zone:focus-within { outline-color: #347f73; }
.drop-title { color: #24463c; }
.upload-icon { width: 29px; height: 29px; margin-bottom: 12px; }
.file-row { border-color: #e0e8e4; border-radius: 12px; padding: 12px 14px; }
.file-name { color: #243c44; font-size: 13px; }
.file-meta, .file-category-label { color: #6c7e75; }
.upload-total { color: #5e7369; border-color: var(--border); }
.icon-button { color: #73887d; border-radius: 50%; }
.privacy-foot { color: #60756b; margin: 20px 0; }
.bill-limits { line-height: 1.9; margin-top: 24px; }
.button {
  min-height: 52px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.button-primary { background: var(--blue); box-shadow: 0 2px 3px rgba(7, 67, 55, .07), inset 0 1px 0 rgba(255, 255, 255, .1); }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 5px 14px rgba(7, 67, 55, .18); }
.button-primary:disabled { background: #d4e2dc; color: #526a5f; opacity: 1; box-shadow: none; }
.button-secondary { background: rgba(255, 255, 255, .6); border-color: #dce3e3; color: #253a43; border-radius: 999px; min-width: 114px; }
.button-secondary:hover { background: #fff; }
.button:active:not(:disabled) { transform: translateY(1px); }
.form-actions {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 48px));
  padding: 16px 24px;
  margin: 0;
  gap: 20px;
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background: #f9fbfa;
  box-shadow: var(--glass-shadow), inset 0 1px 0 #fff;
}
.form-actions .button-primary { min-width: 210px; }
.single-action .button { min-width: 280px; }
.step-count { color: #63786e; margin-top: 24px; }
.site-footer { color: #6b7d76; padding: 12px 20px 142px; }
.skip-note { color: #60736b; }
.review-section { padding: 28px 30px; margin-bottom: 18px; }
.review-item dt { color: #6b7d75; font-size: 12px; }
.review-item dd { font-size: 14px; color: #223a43; }
.review-group-title { color: #5d776b; }
.review-file-actions { gap: 12px; }
.consent-box { padding: 24px 30px; }
.checkbox-label { color: #425950; font-size: 13px; }
.consent-box > p { color: #687e72; }
.prefill-notice { border-color: #bbd8ca; background: #f4faf6; color: #2d6351; border-radius: 16px; padding: 18px 22px; }
.prefill-notice p { color: #587363; }
.error-banner { border-radius: 16px; }
.success-state { max-width: 640px; margin: 64px auto 40px; }
.success-icon { color: var(--blue); }
.success-state h1 { font-size: 36px; }
.receipt-card { background: rgba(255, 255, 255, .87); border-color: #d2e2db; border-radius: 22px; box-shadow: var(--glass-shadow); }
.receipt-label, .receipt-details span, .success-foot { color: #657c6f; }
.receipt-details { border-color: var(--border); }
.receipt-number { color: #1e3d32; }
.copy-button { margin-top: 24px; }
.site-shell:has(.success-state, .invitation-unavailable, .loading-state) .site-footer { padding-bottom: 28px; }
dialog { color: #223c33; border-color: #d7e4dc; border-radius: 24px; background: #f9fcfa; box-shadow: 0 24px 80px rgba(22, 51, 41, .23); }
dialog::backdrop { background: rgba(27, 57, 49, .3); backdrop-filter: blur(6px); }
dialog > p { color: #5c7167; }
.signature-section .section-description { margin-bottom: 18px; }
.signature-section .field { max-width: 560px; margin-bottom: 24px; }
.signature-confirmation { margin-top: 20px; }
.signature-confirmation .checkbox-label { line-height: 1.7; }
.signature-confirmation .field-error { margin-left: 28px; }
.terms-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.terms-actions .text-button { text-align: left; flex-wrap: wrap; overflow-wrap: anywhere; }
.terms-actions .field-help { font-size: inherit; }
.privacy-view { margin: 8px 0 0 28px; }
.retry-evidence-note { padding: 16px 22px; color: #425950; font-size: 13px; line-height: 1.7; }
#legal-dialog { max-width: 720px; max-height: calc(100dvh - 48px); overflow-y: auto; }
#legal-dialog > p, #privacy-dialog > p { white-space: pre-wrap; overflow-wrap: anywhere; }
.provider-name { margin: -8px 0 20px; color: #425950; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.legal-language-notice { padding: 14px 18px; border: 1px solid #bbd8ca; border-radius: 12px; background: #f0f7f3; color: #24463c; font-size: 13px; line-height: 1.7; margin: 18px 0 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-language-label { margin-top: 24px; font-size: 16px; color: #223c33; }
#legal-dialog section > p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; color: #425950; margin: 20px 0; }
#legal-dialog section h4 { font-size: 15px; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.reference-translation { border-top: 1px solid #d7e4dc; margin-top: 28px; padding-top: 16px; }
.reference-translation h3 { font-size: 16px; color: #5c7167; }
#legal-dialog:has(.agreement-html-reader) { max-width: 1040px; }
.agreement-html-reader { display: block; width: 100%; height: min(65dvh, 640px); min-height: 320px; border: 1px solid #d7e4dc; border-radius: 12px; background: #fff; }
.document-text-fallback { border: 1px solid #d7e4dc; border-radius: 12px; margin-top: 20px; padding: 14px 18px; }
.document-text-fallback > summary { cursor: pointer; color: #24463c; font-size: 14px; font-weight: 600; }
.document-text-fallback > summary:focus-visible { outline: 3px solid #347f73; outline-offset: 4px; }
.skip-link { border-radius: 10px; color: var(--blue); }

/* Blur only the two floating surfaces; field and document text stays crisp. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-header, .form-actions {
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px) saturate(145%);
    backdrop-filter: blur(10px) saturate(145%);
  }
}

@media (min-width: 1400px) {
  body { padding-top: 32px; }
  .site-shell { min-height: calc(100vh - 32px); }
}
@media (max-width: 900px) {
  :root { --header-expanded: 202px; }
  .steps { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: start; padding: 16px 28px; gap: 12px; }
  .step { flex-direction: column; text-align: center; gap: 8px; white-space: normal; }
  .step-label { max-width: 160px; }
  .step-connector { width: 24px; min-width: 0; margin-top: 17px; }
}
@media (max-width: 760px) {
  :root { --header-expanded: 188px; --header-row: 74px; --header-compact: 60px; --header-top: max(10px, env(safe-area-inset-top)); }
  body { padding: 16px 16px 0; }
  .site-shell { min-height: calc(100vh - 16px); }
  .glass-header { border-radius: 26px; }
  .site-header { height: var(--header-row); padding: 0 24px; }
  .brand-mark { --logo-width: 102px; }
  .header-right { gap: 14px; }
  .header-right > span { font-size: 12px; }
  .steps { padding: 18px 22px; gap: 12px; }
  .step { font-size: 14px; }
  .step-number { width: 33px; height: 33px; font-size: 15px; }
  .step-connector { max-width: 48px; }
  .glass-header.is-compact { width: calc(100% - 24px); padding: 0 16px; gap: 12px; }
  .glass-header.is-compact .brand-mark { --logo-width: 76px; }
  main { padding: 0 8px 14px; }
  .page-heading { margin: 40px auto 30px; }
  .page-heading h1 { font-size: 32px; letter-spacing: -1.1px; }
  .lead { font-size: 15px; }
  .form-section, .supporting-section, .review-section { padding: 26px; }
  .optional-section > summary { padding: 20px; gap: 14px; }
  .summary-title { font-size: 18px; gap: 10px; flex-wrap: wrap; }
  .summary-count { font-size: 11px; padding: 5px 9px; }
  .optional-content { padding: 24px; }
  /* Keep the bar in flow on small screens so focus changes never move a click target. */
  .form-actions {
    position: sticky;
    left: auto;
    transform: none;
    width: 100%;
    bottom: max(12px, env(safe-area-inset-bottom));
    margin: 32px auto 0;
    padding: 14px 18px;
    border-radius: 26px;
  }
  .site-footer { padding-bottom: 28px; }
}
@media (max-width: 540px) {
  :root { --card-radius: 20px; --header-expanded: 198px; --header-row: 88px; --header-compact: 56px; --header-top: max(8px, env(safe-area-inset-top)); }
  body { padding: 12px 12px 0; }
  .site-shell { min-height: calc(100vh - 12px); }
  .glass-header { border-radius: 24px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 44px 16px; gap: 4px 12px; height: var(--header-row); padding: 11px 18px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .brand-mark { --logo-width: 98px; }
  .header-right { display: contents; }
  .header-right > span { display: block; grid-column: 1 / -1; grid-row: 2; font-size: 11px; line-height: 16px; }
  .language-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .language-button { min-height: 34px; font-size: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); margin: 0; padding: 16px 12px; gap: 6px; }
  .step { font-size: 11px; gap: 8px; }
  .step-label { max-width: 110px; }
  .step-number { width: 30px; height: 30px; font-size: 13px; }
  .step.active .step-number { box-shadow: 0 0 0 5px rgba(13, 93, 82, .06); }
  .step-connector { min-width: 0; width: 12px; max-width: 12px; margin-top: 14px; }
  .step-number svg { width: 18px; height: 18px; }
  .glass-header.is-compact { padding: 0 10px; gap: 6px; border-radius: 20px; }
  .glass-header.is-compact .brand-mark { --logo-width: 56px; }
  .glass-header.is-compact .steps { gap: 6px; }
  .glass-header.is-compact .step-number { width: 24px; height: 24px; font-size: 11px; }
  .glass-header.is-compact .step-connector { width: 8px; }
  .glass-header.is-compact .language-button { min-width: 0; min-height: 38px; padding: 6px 8px; font-size: 11px; }
  main { padding: 0 2px 12px; }
  .page-heading { margin: 34px 4px 28px; }
  .page-heading h1 { max-width: 100%; font-size: 29px; line-height: 1.22; letter-spacing: -.95px; margin-bottom: 14px; }
  .lead { font-size: 14px; line-height: 1.65; }
  .micro-copy { font-size: 11px; }
  .form-section, .supporting-section, .review-section { padding: 22px 18px; margin-bottom: 18px; }
  .section-heading { gap: 12px; margin-bottom: 23px; flex-wrap: wrap; align-items: center; }
  .section-heading h2 { font-size: 17px; }
  .required-hint { font-size: 10px; padding: 0; }
  .fields-grid { gap: 21px; }
  .field > label, .category-choice > label { font-size: 13px; margin-bottom: 8px; }
  .field input, .field select, .field textarea, .category-choice select { font-size: 16px; }
  .field-help, .section-description { font-size: 12px; }
  .optional-section { margin-bottom: 12px; }
  .optional-section > summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; padding: 17px 15px; min-height: 84px; gap: 10px 12px; }
  .section-icon { width: 42px; height: 42px; border-radius: 13px; }
  .section-icon svg { width: 23px; height: 23px; }
  .summary-title { font-size: 16px; flex-direction: row; align-items: center; gap: 7px; }
  .summary-subtitle { font-size: 10px; padding: 2px 8px; }
  .summary-count { grid-column: 2; grid-row: 2; justify-self: start; font-size: 11px; }
  .disclosure-icon { grid-column: 3; grid-row: 1; width: 18px; height: 18px; }
  .optional-content { padding: 22px 18px; }
  .equipment-group.is-collapsed { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .compact-group-info { flex-basis: 100%; }
  .group-summary { white-space: normal; font-size: 12px; }
  .compact-group-info h3 { font-size: 12px; }
  .compact-group-actions { margin-left: auto; }
  .compact-group-actions .text-button { min-height: 36px; }
  .group-save-row { align-items: center; }
  .group-save-row > p { font-size: 11px; }
  .save-group { min-height: 42px; padding: 10px 18px; }
  .drop-zone { min-height: 140px; }
  .file-row { padding: 11px; }
  .file-name { font-size: 12px; }
  .icon-button { width: 36px; height: 36px; }
  .upload-hint { font-size: 11px; }
  .bill-limits { padding: 0 8px; }
  .privacy-foot { font-size: 11px; padding: 0 8px; }
  .form-actions { bottom: max(10px, env(safe-area-inset-bottom)); gap: 12px; padding: 12px; border-radius: 24px; }
  .form-actions .button { min-width: 0; min-height: 48px; font-size: 13px; padding: 12px 18px; }
  .form-actions .button-primary { flex: 1; }
  .form-actions .button-secondary { flex: 0 0 auto; padding: 12px 22px; }
  .single-action .button { max-width: none; }
  .button svg { width: 15px; height: 15px; }
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 10px; }
  .skip-note { font-size: 12px; margin: 24px 12px 0; }
  .consent-box { padding: 22px 18px; }
  .checkbox-label { font-size: 12px; }
  .review-item dt { font-size: 12px; }
  .review-item dd { font-size: 14px; }
  .prefill-notice { padding: 16px 18px; font-size: 12px; }
  .success-state { margin-top: 44px; }
  .success-state h1 { font-size: 29px; }
  .success-foot { font-size: 11px; }
  .receipt-card { padding: 24px 20px; }
  dialog { padding: 24px; }
}
@media (max-height: 500px) and (max-width: 960px) {
  .form-actions { position: static; transform: none; width: 100%; margin-top: 28px; }
  .site-footer { padding-bottom: 24px; }
}
/* One action gets a snug glass rim rather than an empty full-width toolbar. */
.form-actions.single-action { width: min(298px, calc(100% - 24px)); padding: 8px; border-radius: 999px; }
.form-actions.single-action .button { width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .form-actions.single-action { width: min(298px, 100%); }
}

/* The same semantic elements move between measured responsive endpoints. */
.header-divider { display: none; }
.glass-header.is-morphing { position: relative; display: block; padding: 0; contain: layout; }
.glass-header.is-morphing .site-header,
.glass-header.is-morphing .header-right,
.glass-header.is-morphing .steps,
.glass-header.is-morphing .step { display: contents; }
.glass-header.is-morphing :is(.brand, .language-button, .step-number, .step-connector, .step-label, #header-caption) {
  position: absolute; top: 0; left: 0; margin: 0; transform-origin: top left;
  max-width: none; min-width: 0; min-height: 0; transition: none;
}
.glass-header.is-morphing .step-label { padding: 0; overflow: visible; clip: auto; pointer-events: none; }
.glass-header.is-morphing #header-caption { display: block; pointer-events: none; }
.glass-header.is-morphing .header-divider { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: rgba(93, 122, 118, .14); pointer-events: none; }
.glass-header.is-morphing .step-number svg { display: block; }
.glass-header.is-morphing .step-number .sr-only { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; clip: auto; overflow: visible; }

@media (prefers-reduced-transparency: reduce) {
  .glass-header, .form-actions { background: #f8fbfa; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .form-section, .optional-section, .supporting-section, .review-section, .consent-box { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .button:active:not(:disabled) { transform: none; }
}
@media (forced-colors: active) {
  body::before { display: none; }
  .glass-header, .form-actions, .form-section, .optional-section, .supporting-section, .review-section, .consent-box {
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .step-number { border-color: ButtonText; }
  .step.active .step-number { outline: 2px solid Highlight; outline-offset: 3px; }
  .step-connector { background: CanvasText; }
  .button { border: 1px solid ButtonText; }
}
