/* iMedical Anatomical Services: the blank tissue order form and its specimen
   picker. Built on the house tokens at the end of styles.css. */

.anat-shell { background: var(--band); }
.anat-hero { border-bottom: 1px solid var(--rule); }
.anat-hero .topbar-logos .brand-img { height: 46px; width: auto; }
.anat-intro { max-width: 1040px; margin: 0 auto; padding: 48px 32px 44px; }
.anat-eyebrow { display: block; color: var(--ink-muted); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.anat-intro h1 { color: var(--ink); font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.15; margin-bottom: 14px; }
.anat-intro p { max-width: 720px; color: var(--ink-muted); font-size: 17px; line-height: 1.65; }
.anat-intro a { color: var(--brand-link); }

.anat-main { max-width: 1040px; margin: 0 auto; padding: 36px 32px 72px; }
.anat-form { display: grid; gap: 28px; }

.anat-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.anat-card-head { background: #f1f0ef; padding: 18px 24px 14px; text-align: center; }
.anat-card-head h2 { color: var(--brand-accent); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.anat-card-head h2::after { content: ''; display: block; width: 64px; height: 3px; margin: 10px auto 0; background: var(--brand-accent); }
.anat-card-head p { margin-top: 10px; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.anat-card-body { padding: 6px 24px 22px; }

/* Label / answer rows, like the two-column table on the original form. */
.anat-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.anat-row:last-child { border-bottom: 0; }
.anat-row > label, .anat-row > .anat-label { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.45; padding-top: 9px; }
.anat-label small, .anat-row > label small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 13px; margin-top: 3px; }
.anat-req { color: var(--brand-action); }

.anat-form input[type="text"], .anat-form input[type="date"], .anat-form input[type="time"],
.anat-form input[type="number"], .anat-form input[type="tel"], .anat-form input[type="email"],
.anat-form select, .anat-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; background: #fff;
  font: 400 15px/1.4 'Open Sans', sans-serif; color: var(--ink);
}
.anat-form textarea { min-height: 120px; resize: vertical; }
.anat-form input:focus-visible, .anat-form select:focus-visible, .anat-form textarea:focus-visible, .anat-btn:focus-visible {
  outline: 3px solid rgba(232, 97, 25, .35); outline-offset: 1px; border-color: var(--brand-action);
}
.anat-form :user-invalid { border-color: #b3261e; }
.anat-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.anat-pair span { color: var(--ink-muted); font-size: 14px; }
.anat-choices { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 9px; }
.anat-choices label { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.anat-choices input { accent-color: var(--brand-action); width: 17px; height: 17px; }

/* Specimen lines. */
.anat-lines { width: 100%; border-collapse: collapse; margin-top: 12px; }
.anat-lines th { background: #f7f6f5; border: 1px solid var(--rule); padding: 10px; font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; }
.anat-lines td { border: 1px solid var(--rule); padding: 10px; vertical-align: top; }
.anat-lines .anat-col-qty { width: 110px; }
.anat-lines .anat-col-price { width: 150px; }
.anat-lines .anat-col-total { width: 130px; text-align: right; font-variant-numeric: tabular-nums; padding-top: 20px; }
.anat-lines .anat-col-remove { width: 48px; text-align: center; }
.anat-spec { margin-top: 10px; display: grid; gap: 6px; padding: 12px 14px; background: var(--tint); border-left: 3px solid var(--brand-accent); font-size: 13px; line-height: 1.5; color: var(--ink); }
.anat-spec[hidden] { display: none; }
.anat-spec b { color: var(--brand-action); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: block; }
.anat-remove { background: none; border: 0; color: var(--ink-muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 6px; }
.anat-remove:hover { color: #b3261e; }
.anat-empty td { color: var(--ink-muted); text-align: center; font-size: 14px; padding: 16px; }

.anat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 3px;
  font: 600 15px/1.2 'Open Sans', sans-serif; cursor: pointer; border: 1px solid var(--brand-action); text-decoration: none;
}
.anat-btn-primary { background: var(--brand-action); color: #fff; }
.anat-btn-primary:hover { background: var(--brand-action-hover); border-color: var(--brand-action-hover); }
.anat-btn-secondary { background: #fff; color: var(--brand-action); }
.anat-btn-secondary:hover { background: var(--tint); }
.anat-btn-quiet { background: none; border-color: transparent; color: var(--ink-muted); }
.anat-btn-quiet:hover { color: var(--brand-action); text-decoration: underline; }
.anat-btn[disabled] { opacity: .6; cursor: progress; }
.anat-add { margin-top: 14px; }


/* Ship to / bill to. */
.anat-address { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 14px; }
.anat-address fieldset { border: 0; display: grid; gap: 12px; }
.anat-address legend { font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.anat-address label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.anat-copy { display: inline-flex !important; grid-template-columns: none !important; gap: 8px !important; align-items: center; font-weight: 400 !important; font-size: 14px !important; color: var(--ink) !important; margin-bottom: 4px; }
.anat-copy input { accent-color: var(--brand-action); }

.anat-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 14px; }
.anat-sign label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.anat-sign .anat-sign-office { padding: 14px; border: 1px dashed var(--rule-strong); color: var(--ink-muted); font-size: 14px; line-height: 1.5; }

.anat-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 22px 24px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.anat-actions p { color: var(--ink-muted); font-size: 14px; line-height: 1.5; max-width: 520px; }
.anat-actions-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.anat-status { font-size: 14px; color: var(--ink); }
.anat-status[data-tone="error"] { color: #b3261e; }

.anat-footer { border-top: 1px solid var(--rule); background: #fff; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; color: var(--ink-muted); font-size: 14px; }
.anat-footer a { color: var(--brand-link); text-underline-offset: 4px; }

@media (max-width: 760px) {
  .anat-intro, .anat-main { padding-left: 18px; padding-right: 18px; }
  .anat-card-body { padding: 4px 16px 18px; }
  .anat-row { grid-template-columns: 1fr; gap: 6px; }
  .anat-row > label, .anat-row > .anat-label { padding-top: 0; }
  .anat-address, .anat-sign { grid-template-columns: 1fr; }
  .anat-lines thead { display: none; }
  .anat-lines, .anat-lines tbody, .anat-lines tr, .anat-lines td { display: block; width: 100% !important; }
  .anat-lines tr { border: 1px solid var(--rule); margin-bottom: 12px; }
  .anat-lines td { border: 0; border-bottom: 1px solid var(--rule); text-align: left !important; padding-top: 10px !important; }
  .anat-lines td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-bottom: 4px; }
  .anat-actions { flex-direction: column; align-items: flex-start; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
