:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --text: #182230;
  --muted: #667085;
  --line: #d7dee8;
  --line-strong: #bcc7d6;
  --primary: #14532d;
  --primary-2: #1d7a43;
  --primary-soft: rgba(29, 122, 67, 0.12);
  --danger: #c9364f;
  --warning: #a86408;
  --success: #16845b;
  --info: #1d4f91;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 28px 60px -34px rgba(15, 23, 42, 0.32);
  --radius: 22px;
  --field-radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(20, 83, 45, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  font: 400 16px/1.45 "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  padding: clamp(12px, 3vw, 34px);
}

.shell {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.title-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 14px 30px -20px rgba(20, 83, 45, 0.8);
}

.title-icon svg {
  width: 28px;
  height: 28px;
}

.title-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-copy h1 {
  margin: 0;
  font-size: clamp(1.38rem, 2.4vw, 1.82rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.title-copy p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.93rem;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.badge,
.summary-pill,
.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.section-head {
  position: relative;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.section-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-2), #5bb974, #0f766e);
}

.section-copy h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.16;
}

.section-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.9);
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.step-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.step-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.step.is-active {
  color: var(--primary);
}

.step.is-active .step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px var(--primary-soft);
}

.step.is-done {
  color: var(--success);
}

.step.is-done .step-dot {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.stage {
  display: none;
}

.stage.is-active {
  display: block;
}

.stage-body {
  padding: 26px 28px;
}

.stage-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.stage-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.95fr);
  gap: 20px;
}

.panel,
.side-panel,
.sample-panel,
.term-panel,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.panel,
.summary-panel {
  padding: 18px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel.is-locked {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.sample-lock-notice {
  margin-top: 14px;
}

.side-panel {
  position: sticky;
  top: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.side-panel h3,
.panel h3,
.summary-panel h3,
.sample-head h3,
.term-head h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.side-panel p,
.panel p,
.summary-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 14px;
}

.field-group-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.field-group-heading h4 {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.field-group-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.field {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field[data-span="3"] {
  grid-column: span 3;
}

.field[data-span="2"] {
  grid-column: span 2;
}

.field[data-span="4"] {
  grid-column: span 4;
}

.field[data-span="6"] {
  grid-column: span 6;
}

.field[data-span="8"] {
  grid-column: span 8;
}

.field[data-span="12"] {
  grid-column: span 12;
}

/* Mantém o e-mail e a confirmação do produtor lado a lado quando houver espaço. */
.field[data-field-id="42092018"] {
  grid-column: 1 / span 6;
}

.field.is-hidden,
.is-hidden {
  display: none !important;
}

.field label,
.field .field-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.required {
  color: var(--danger);
}

.field-help,
.field-status,
.field-error,
.choice-help {
  font-size: 0.75rem;
  line-height: 1.35;
}

.field-help,
.field-status,
.choice-help {
  color: var(--muted);
}

.field-status.is-success {
  color: var(--success);
}

.field-help:empty,
.field-status:empty,
.field-error:empty,
.choice-help:empty {
  display: none;
}

.state-registration-exemption {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.state-registration-exemption input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-2);
}

.state-registration-exemption input:disabled {
  cursor: not-allowed;
}

.field-error {
  color: var(--danger);
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.gps-control {
  display: grid;
  gap: 12px;
}

.gps-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gps-coordinate {
  display: grid;
  gap: 7px;
}

.gps-coordinate > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.gps-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gps-readout {
  color: var(--muted);
  font-size: 0.8rem;
}

input,
select,
textarea,
.choice-list,
.upload-shell,
.readonly-value {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--field-radius);
  background: var(--surface-2);
}

input,
select,
textarea,
.readonly-value {
  min-height: 46px;
  padding: 11px 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice-card input:focus-visible + span,
.upload-drop input:focus-visible + .upload-box {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .choice-list,
.field.has-error .upload-shell {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 54, 79, 0.12);
}

.choice-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.choice-inline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice-card {
  position: relative;
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-card span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.choice-card input:checked + span {
  border-color: var(--primary-2);
  background: rgba(29, 122, 67, 0.08);
  color: var(--primary);
}

.upload-shell {
  overflow: hidden;
  padding: 12px;
}

.upload-drop {
  position: relative;
}

.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
  min-height: 110px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
}

.upload-title {
  font-size: 0.83rem;
  font-weight: 700;
}

.upload-copy {
  color: var(--muted);
  font-size: 0.76rem;
}

.upload-meta,
.upload-actions,
.upload-preview,
.term-meta,
.sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-meta,
.sample-meta,
.term-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.upload-preview {
  margin-top: 12px;
}

.upload-preview a {
  color: var(--info);
  text-decoration: underline;
}

.upload-actions {
  margin-top: 12px;
}

.readonly-value {
  display: flex;
  align-items: center;
}

.samples-toolbar,
.terms-toolbar,
.price-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.samples-stage-actions,
.sample-eligibility-actions,
.sample-completion-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.samples-stage-actions {
  justify-content: flex-start;
  padding-top: 4px;
}

.sample-completion-actions {
  justify-content: flex-end;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.samples-list,
.terms-list,
.save-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sample-panel,
.term-panel {
  overflow: hidden;
}

.sample-head,
.term-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.96));
}

.sample-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sample-head-side .btn {
  width: 100%;
  white-space: nowrap;
}

.sample-price {
  color: var(--success);
  font-weight: 700;
  font-size: 0.86rem;
}

.sample-panel.is-completed .sample-head {
  background: linear-gradient(180deg, #edf9f1, #ffffff);
}

.sample-body,
.term-body {
  padding: 18px;
}

.sample-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sample-summary .summary-pill {
  justify-content: flex-start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.divider {
  height: 1px;
  background: var(--line);
}

.notice,
.status {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
}

.notice.is-info,
.status.is-info {
  color: var(--info);
  border-color: #bfd3ea;
  background: #eff7ff;
}

.notice.is-success,
.status.is-success {
  color: var(--success);
  border-color: #b7deca;
  background: #edf9f1;
}

.notice.is-warning,
.status.is-warning {
  color: var(--warning);
  border-color: #edd39b;
  background: #fff8ea;
}

.notice.is-danger,
.status.is-danger {
  color: var(--danger);
  border-color: #ebb9c1;
  background: #fff2f4;
}

.status {
  display: none;
  margin: 0 28px 18px;
}

.status.is-info,
.status.is-success,
.status.is-warning,
.status.is-danger {
  display: block;
}

.error-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 17px;
  border: 1px solid #ebb9c1;
  border-radius: 14px;
  color: #8d1d2b;
  background: #fff2f4;
  box-shadow: 0 16px 34px rgba(87, 19, 29, 0.2);
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.error-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.payment-email-notice {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 132, 91, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 122, 67, 0.1), var(--surface));
  box-shadow: var(--shadow-sm);
}

.payment-email-notice[hidden] {
  display: none;
}

.payment-email-notice__bar {
  background: linear-gradient(180deg, var(--success), var(--primary-2));
}

.payment-email-notice > div:last-child {
  padding: 16px 18px 16px 0;
}

.payment-email-notice__title {
  display: block;
  margin-bottom: 4px;
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-email-notice__text {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.summary-row,
.save-row,
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.83rem;
}

.save-row.is-ok {
  border-color: #b7deca;
  color: var(--success);
}

.save-row.is-error {
  border-color: #ebb9c1;
  color: var(--danger);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.84rem;
}

.price-table th {
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
}

.price-table tfoot td {
  font-weight: 800;
  border-bottom: 0;
  background: rgba(29, 122, 67, 0.08);
}

.term-viewer {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #dce6ef;
}

.term-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
}

.term-scroll {
  max-height: min(64vh, 620px);
  overflow: auto;
  padding: 18px;
  background: #edf3f8;
}

.term-doc {
  min-height: 220px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 34px -22px rgba(15, 23, 42, 0.35);
}

.term-doc .docx-wrapper {
  background: transparent !important;
}

.term-accept {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.84rem;
}

.term-accept:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.footer {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px calc(16px + env(safe-area-inset-bottom, 0px));
  /* border-top: 1px solid var(--line); */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-small {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.75rem;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 14px 28px -18px rgba(20, 83, 45, 0.8);
  text-decoration: none;
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.btn-tertiary {
  color: var(--info);
  background: transparent;
  border-color: var(--line);
}

.btn-danger {
  color: var(--danger);
  background: transparent;
  border-color: #ebb9c1;
}

.btn-link {
  color: var(--info);
  text-decoration: underline;
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(2px);
}

.loading-mask.is-active {
  display: grid;
}

.loading-box {
  min-width: min(320px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 3px solid var(--line);
  border-top-color: var(--primary-2);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dark-mode {
  --bg: #0f1720;
  --surface: #182230;
  --surface-2: #202c3c;
  --surface-3: #283445;
  --text: #f5f8fb;
  --muted: #b6c3d2;
  --line: #324154;
  --line-strong: #49607b;
  --primary-soft: rgba(80, 210, 127, 0.14);
  --shadow-sm: none;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
}

.dark-mode body {
  background:
    radial-gradient(circle at top left, rgba(80, 210, 127, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 20%),
    linear-gradient(180deg, #0f1720 0%, #121a24 100%);
}

.dark-mode .card,
.dark-mode .side-panel,
.dark-mode .summary-panel,
.dark-mode .sample-panel,
.dark-mode .term-panel {
  background: rgba(24, 34, 48, 0.96);
}

.dark-mode .section-head,
.dark-mode .sample-head,
.dark-mode .term-head,
.dark-mode .stepper,
.dark-mode .footer {
  background: rgba(18, 26, 36, 0.92);
}

.dark-mode .term-doc {
  color: #101828;
}

@media (max-width: 980px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .sample-summary,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    padding: 10px;
  }

  .section-head,
  .stage-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stepper {
    display: flex;
    overflow-x: auto;
    padding: 14px 16px;
  }

  .step {
    min-width: 122px;
  }

  .field[data-span] {
    grid-column: span 12;
  }

  .field-group-heading {
    display: block;
  }

  .field-group-heading p {
    margin-top: 3px;
  }

  .gps-coordinate-grid {
    grid-template-columns: 1fr;
  }

  .sample-summary,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .footer-actions {
    width: 100%;
    margin-left: 0;
  }

  .footer-actions .btn {
    flex: 1;
  }

  .error-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .status {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
