:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b36;
  background: #f5f8f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .7; }
button[data-busy="true"]:disabled { cursor: wait; }
:where(button, input, select, textarea):focus-visible { outline: 3px solid #148988; outline-offset: 2px; }
.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; }

.app-shell { min-height: 100vh; }
.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 318px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: 1440px;
  margin: auto;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 64px) 80px;
}
.intro-panel { align-self: start; position: sticky; top: 28px; }
.eyebrow, .step-count {
  color: #08736c;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
h1 { font-size: clamp(29px, 3vw, 40px); line-height: 1.13; letter-spacing: -.04em; margin: 12px 0 14px; }
.intro-copy { color: #566c75; font-size: 14px; line-height: 1.65; margin: 0 0 31px; }
.more-steps { display: none; }
.steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid #dbe5e4; }
.step { border-bottom: 1px solid #dbe5e4; }
.step button {
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  background: transparent;
  color: #4c626b;
  text-align: left;
  font-size: 14px;
}
.step button:hover { color: #086963; }
.step.active button { color: #075e59; font-weight: 700; background: #e7f2f0; border-radius: 8px; padding-left: 8px; }
.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid #cddcdb;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.step.active .step-number { color: #fff; border-color: #08736c; background: #08736c; }
.step.done .step-number { color: #08736c; border-color: #86bcb8; }
.content-panel {
  min-width: 0;
  min-height: 720px;
  padding: clamp(24px, 3vw, 42px);
  background: #fff;
  border: 1px solid #e1e9e8;
  border-radius: 17px;
  box-shadow: 0 14px 48px rgba(16, 56, 59, .045);
}
.loading { padding: 30px 0; color: #4f6970; }
.section-heading { display: block; }
.heading-body { width: 100%; }
.progress-head { display: flex; align-items: center; gap: 18px; }
.progress-head .text-button { margin-left: auto; }
.progress-track { height: 9px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: #e1e9e9; }
.progress-fill { height: 100%; width: 14.2857%; border-radius: inherit; background: #0b8b82; transition: width .2s ease; }
.view-mode-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.view-mode-button { min-height: 36px; padding: 5px 12px; border: 1px solid #b9d7d3; border-radius: 7px; background: #f3faf8; color: #075e59; font-size: 13px; font-weight: 700; }
.view-mode-button:hover { background: #e4f2ef; }
.section-heading h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.04em; margin: 24px 0 9px; }
.section-description { color: #65777d; font-size: 14px; line-height: 1.5; margin: 0; }
.text-button { border: 0; background: transparent; color: #517078; font-size: 13px; white-space: nowrap; padding: 6px 0; }
.text-button:hover { color: #075e59; text-decoration: underline; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; max-width: 620px; }
.fields.all-mode-fields { display: block; max-width: none; margin-top: 24px; }
.all-section { padding: 24px 0 30px; border-top: 1px solid #dfe9e8; scroll-margin-top: 20px; }
.all-section:first-child { padding-top: 0; border-top: 0; }
.all-section h3 { margin: 7px 0 7px; font-size: 22px; letter-spacing: -.025em; }
.all-section-fields { margin-top: 22px; }
.passport-block { min-width: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
.passport-block + .passport-block { margin-top: 4px; }
.passport-block legend { max-width: 100%; padding: 0; margin-bottom: 20px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.passport-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.field.wide { grid-column: 1 / -1; }
.field-label { margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.optional-mark { color: #647981; font-size: 12px; font-weight: 400; }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c6d6d6;
  border-radius: 8px;
  background: #fff;
  color: #172b36;
  padding: 10px 12px;
  font-size: 15px;
}
.field textarea { min-height: 80px; line-height: 1.5; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #85aca9; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c44135; background: #fffaf8; }
.field-hint { margin-top: 4px; color: #687d83; font-size: 13px; line-height: 1.45; }
.prefix-input { display: flex; align-items: stretch; }
.input-prefix { display: flex; align-items: center; padding: 0 16px; border: 1px solid #c6d6d6; border-right: 0; border-radius: 8px 0 0 8px; background: #eff6f5; color: #075e59; font-weight: 700; }
.field .prefix-input input { border-radius: 0 8px 8px 0; min-width: 0; }
.country-picker { padding: 6px; border: 1px solid #c6d6d6; border-radius: 8px; background: #fff; }
.country-picker:hover { border-color: #85aca9; }
.country-picker:focus-within { outline: 3px solid #148988; outline-offset: 2px; }
.country-picker.is-invalid { border-color: #c44135; background: #fffaf8; }
.field .country-picker input { min-height: 44px; padding: 8px 6px; border: 0; background: transparent; outline: none; }
.country-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.country-chips:not(:empty) { margin-bottom: 4px; }
.country-chip { display: inline-flex; align-items: center; max-width: 100%; padding-left: 12px; border-radius: 22px; background: #eaf5f2; color: #075e59; font-size: 14px; line-height: 1.4; }
.country-chip span { min-width: 0; overflow-wrap: anywhere; }
.country-remove { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #075e59; font-size: 23px; }
.country-remove:hover { background: #d9eeea; }
.country-results { margin-top: 5px; max-height: 270px; overflow-y: auto; border: 1px solid #c6d6d6; border-radius: 8px; background: #fff; }
.country-results[hidden] { display: none; }
.country-option { padding: 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.country-option + .country-option { border-top: 1px solid #eef2f1; }
.country-option:hover, .country-option[aria-selected="true"] { background: #eaf5f2; color: #075e59; }
.country-vaccination-note { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid #2466a6; border-radius: 5px; background: #eef5ff; color: #164b80; font-size: 14px; font-weight: 650; line-height: 1.5; }
.country-vaccination-note[hidden] { display: none; }
.client-branches:not(:empty) { display: flex; flex-direction: column; gap: 4px; }
.client-branches select { min-width: 0; }
.address-current { padding: 12px 14px; margin-bottom: 8px; border-radius: 8px; background: #f1f6f5; }
.address-current span { font-size: 12px; color: #42636a; }
.address-current p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.address-action { align-self: flex-start; min-height: 44px; color: #075e59; }
.owner-action { align-self: flex-start; margin-top: 7px; min-height: 44px; color: #075e59; font-weight: 650; }
.scan-action { align-self: flex-start; min-height: 44px; color: #075e59; font-weight: 650; }
.microchip-scan-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.scanner-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #c6d6d6; border-radius: 16px; color: #172b36; overflow-y: auto; }
.scanner-dialog::backdrop { background: rgb(23 43 54 / 45%); }
.scanner-heading { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.scanner-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.scanner-heading button { min-height: 44px; flex-shrink: 0; color: #075e59; }
.scanner-heading .scanner-close { display: grid; place-items: center; width: 44px; min-width: 44px; padding: 0; margin-top: -8px; margin-right: -8px; border-radius: 8px; }
.scanner-close:hover { background: #f1f6f5; }
.scanner-dialog > p { font-size: 14px; line-height: 1.5; }
.scanner-dialog video { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: #172b36; }
.scanner-dialog video[hidden], .scanner-results[hidden] { display: none; }
.scanner-status { color: #42636a; }
.scanner-status:empty { display: none; }
.scanner-status[data-state="error"] { color: #a8332a; }
.scanner-status[data-state="warning"] { padding: 10px 12px; border-left: 3px solid #b07a20; border-radius: 5px; background: #fff8ea; color: #714d13; }
.scanner-results { border: 0; padding: 0; margin: 22px 0; }
.scanner-results legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 650; line-height: 1.5; }
.scanner-number { display: block; width: 100%; text-align: left; padding: 12px; margin: 8px 0; border: 1px solid #c6d6d6; border-radius: 8px; min-height: 52px; background: #fff; color: #172b36; font-size: clamp(17px, 5vw, 22px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.scanner-number:hover { background: #eff8f6; border-color: #08736c; }
.scanner-previous { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: #42636a; }
@media (max-width: 480px) {
  .scanner-dialog { padding: 20px; }
  .scanner-heading { gap: 12px; }
}
.field-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggestion-button { border: 1px solid #c6d6d6; border-radius: 16px; background: #f7fbfa; color: #075e59; min-height: 34px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.suggestion-button:hover, .suggestion-button:focus-visible { border-color: #08736c; background: #eaf5f2; }
.field-error { margin-top: 4px; color: #a8332a; font-size: 13px; line-height: 1.45; }
.lookup-status { margin-top: 8px; color: #42636a; font-size: 13px; line-height: 1.45; }
.lookup-status:empty { display: none; }
.lookup-apply { align-self: flex-start; color: #075e59; font-weight: 700; }
.language-note { color: #075e59; font-weight: 650; }
.radio-group { display: grid; justify-items: start; gap: 8px; }
.radio-option { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid #c6d6d6; border-radius: 8px; font-size: 14px; min-height: 45px; }
.radio-option:has(input:checked) { border-color: #08736c; background: #eff8f6; }
.radio-option input { accent-color: #08736c; }
.error-summary { margin: 24px 0 0; padding: 14px 17px; background: #fff3ef; border-left: 3px solid #c44135; border-radius: 5px; color: #843127; font-size: 13px; line-height: 1.5; }
.error-summary strong { display: block; margin-bottom: 4px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 48px; }
.primary-button, .secondary-button { border-radius: 8px; min-height: 52px; min-width: 148px; padding: 11px 20px; font-weight: 700; font-size: 14px; }
.primary-button { color: #fff; background: #08736c; border: 1px solid #08736c; }
.primary-button:hover { background: #075e59; }
.secondary-button { color: #294c53; border: 1px solid #c6d6d6; background: #fff; }
.secondary-button:hover { background: #f1f6f5; }
.status { color: #49656a; min-height: 1.4em; font-size: 13px; line-height: 1.45; margin: 11px 0 0; text-align: right; }
.status[data-state="success"] { padding: 14px 16px; border-left: 3px solid #08736c; border-radius: 5px; background: #ebf7f3; color: #174b45; text-align: left; font-weight: 600; }
.status[data-state="error"] { padding: 14px 16px; border-left: 3px solid #c44135; border-radius: 5px; background: #fff3ef; color: #843127; text-align: left; }
.review { margin-top: 28px; }
.review-intro h3 { font-size: 18px; margin: 0 0 7px; }
.review-intro p { font-size: 13px; color: #61767d; line-height: 1.55; margin: 0 0 20px; }
.review-details { max-width: 720px; }
.review-group { padding-top: 15px; margin-top: 14px; border-top: 1px solid #dfe9e8; }
.review-group:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.review-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-group-head h4 { margin: 0; font-size: 14px; line-height: 1.4; }
.review-group-head .text-button { color: #075e59; }
.review-details dl { margin: 0; }
.review-details dl > div { padding: 10px 0; border-bottom: 1px solid #e9eeee; }
.review-details dt { color: #6b7b81; font-size: 11px; line-height: 1.4; }
.review-details dd { font-size: 13px; font-weight: 620; line-height: 1.45; margin: 3px 0 0; overflow-wrap: anywhere; }
.checklist { border: 0; padding: 19px 0 0; margin: 19px 0 0; }
.checklist legend { font-size: 14px; font-weight: 750; padding: 0; }
.checklist label { display: flex; gap: 9px; align-items: start; margin-top: 13px; color: #314d54; font-size: 13px; line-height: 1.5; }
.checklist input { margin-top: 3px; accent-color: #08736c; }
.checklist p { color: #677a80; font-size: 12px; line-height: 1.5; }
.checklist .checklist-error { color: #a8332a; font-size: 13px; }
.delivery-card { margin-top: 26px; padding: 23px; border: 1px solid #d8e8e5; border-radius: 12px; background: #f7fbfa; }
.delivery-card h3 { margin: 0 0 5px; font-size: 18px; }
.delivery-card > p { margin: 0 0 20px; color: #587077; font-size: 13px; line-height: 1.5; }
.delivery-card label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.delivery-card input { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid #bbd0ce; border-radius: 8px; background: #fff; color: #172b36; font-size: 15px; }
.delivery-card input[aria-invalid="true"] { border-color: #c44135; background: #fffaf8; }
.delivery-card .delivery-hint { margin: 7px 0 0; font-size: 12px; }
.delivery-card .field-error { margin: 7px 0 0; }

@media (max-width: 1000px) {
  .workspace { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 26px 24px 60px; }
  .content-panel { padding: 26px; }
}
@media (max-width: 700px) {
  :root { background: #fff; }
  .workspace { display: block; padding: 0 0 50px; }
  .intro-panel { display: none; position: static; }
  body.steps-open .intro-panel { display: block; padding: 12px 18px 4px; background: #f7fbfa; border-bottom: 1px solid #e0e9e8; }
  .intro-panel > :not(nav) { display: none; }
  .intro-panel nav { max-height: 350px; overflow-y: auto; }
  .step button { min-height: 42px; }
  .more-steps { display: inline-flex; border: 0; background: transparent; color: #075e59; font-size: 12px; font-weight: 700; white-space: nowrap; padding: 4px 0; }
  .content-panel { min-height: 0; padding: 25px 20px 30px; border: 0; border-radius: 0; box-shadow: none; }
  .progress-head { gap: 12px; flex-wrap: wrap; }
  .progress-head .text-button { font-size: 12px; }
  .progress-track { margin-top: 12px; }
  .view-mode-row { justify-content: flex-start; margin-top: 11px; }
  .view-mode-button { min-height: 38px; }
  .section-heading h2 { font-size: 28px; margin: 22px 0 9px; }
  .section-description { font-size: 14px; }
  .fields { gap: 24px; margin-top: 27px; }
  .fields.all-mode-fields { margin-top: 19px; }
  .all-section { padding: 23px 0 30px; }
  .all-section h3 { font-size: 21px; }
  .field.wide { grid-column: auto; }
  .actions { margin-top: 32px; }
  .actions button { flex: 1; min-width: 0; }
  .actions:has(#email-button:not([hidden])) { flex-wrap: wrap; }
  .actions:has(#email-button:not([hidden])) #back-button { flex: 0 0 100%; }
  .delivery-card { padding: 18px; }
}
