/* Contact page (/contact), direction B, loaded only by contact.html. Holds: the breadcrumb, the
   "where to go for what" directory (ruled rows; the 911 row set on ink), the general-questions
   section (reply promise and the no-health-information notice beside the form), the form's
   fields, errors and success state. Shared system: css/b.css. */

/* ── Breadcrumb ── */
.breadcrumb { align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--stone); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s ease; }
.breadcrumb a:hover { color: var(--ember-dark); }

/* ── Where to go for what ── */
.ct-dir { padding-top: clamp(40px, 5vw, 64px); }
.ct-rows { list-style: none; margin: 0; padding: 0; }
.ct-row { display: grid; gap: 10px; padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.ct-need { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.02em; }
.ct-what { max-width: 52ch; font-size: 16.5px; line-height: 1.6; color: var(--stone); }
.ct-act { margin-top: 6px; }
.ct-act .link-ul { display: inline-block; padding: 10px 0 4px; color: var(--ink); }
.ct-act .btn-ink { min-height: 50px; }

/* 911: the one row that can't be missed */
.ct-urgent { position: relative; margin: 0 calc(var(--gutter) * -1); padding: 28px var(--gutter) 30px; background: var(--ink); color: #fff; border-bottom: 0; }
.ct-urgent .ct-what { color: rgba(255, 255, 255, .8); }
.ct-911 { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 16px;
  transition: background-color .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.ct-911:hover { background: #FBEBDD; transform: translateY(-1px); }
.ct-911:active { transform: scale(.98); }
.ct-911:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (min-width: 900px) {
  .ct-row { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; padding: 30px 0; }
  .ct-act { margin: 0; justify-self: end; }
  .ct-urgent { margin: 0; padding: 30px 32px; border-radius: var(--r); }
}

/* ── Ask a general question ── */
.ct-ask { display: grid; gap: 36px; align-items: start; }
.ct-ask .b-h2 { max-width: 11ch; }
.letter-when { margin-top: 20px; display: flex; align-items: center; gap: 12px; font-size: 16px; color: #3E4148; }
.phi { display: flex; gap: 14px; margin-top: 32px; padding: 20px 0 0; border-top: 1px solid var(--ink);
  font-size: 16.5px; line-height: 1.6; color: #3E4148; max-width: 44ch; }
.phi-icon { flex: none; margin-top: 1px; color: var(--ember-dark); }
.phi strong { display: block; color: var(--ink); font-weight: 600; font-size: 16.5px; margin-bottom: 4px; }
.phi a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.phi a:hover { color: var(--ember-dark); }
@media (min-width: 1024px) {
  .ct-ask { grid-template-columns: 5fr 7fr; column-gap: clamp(56px, 7vw, 112px); }
  .ct-ask-head { position: sticky; top: calc(var(--hdr) + 32px); }
}

/* The form panel */
.letter { scroll-margin-top: calc(var(--hdr) + 24px); background: #FFFEFB; border: 1px solid var(--rule); border-top: 1px solid var(--ink);
  border-radius: 0 0 var(--r) var(--r); padding: clamp(26px, 3.4vw, 44px) clamp(20px, 3.4vw, 44px) clamp(30px, 3.6vw, 44px); }
.cf-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .cf-row { grid-template-columns: 1fr 1fr; } }
.cf-field { margin-bottom: 22px; }
.cf-field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.cf-opt { font-weight: 400; color: var(--stone); }
.cform input:not([type="hidden"]), .cform textarea { box-sizing: border-box; display: block; width: 100%; min-height: 52px; margin: 0;
  padding: 13px 16px; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper);
  border: 1px solid #CFC8BC; border-radius: var(--r); -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.cform textarea { min-height: 160px; resize: vertical; }
.cform input::placeholder { color: #80858D; }
.cform input:hover, .cform textarea:hover { border-color: #A9A091; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(212, 137, 74, .28); }
.cform [aria-invalid="true"] { border-color: var(--ember-dark); }
.cf-hint { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--stone); }
.cf-err { margin-top: 7px; font-size: 14px; font-weight: 500; color: var(--ember-dark); }
.cf-error { margin: 4px 0 18px; padding: 12px 16px; border-radius: var(--r); border: 1px solid rgba(154, 84, 36, .35);
  background: #FDF3EA; font-size: 16px; font-weight: 500; color: #6E3A16; }
.cf-submit { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cf-submit .btn-ink { min-height: 54px; padding: 0 30px; border: 0; font-family: inherit; cursor: pointer; }
.cf-submit .btn-ink:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cf-submit .btn-ink:disabled { opacity: .65; cursor: progress; transform: none; }
@media (max-width: 479px) { .cf-submit .btn-ink { width: 100%; } }

/* Success */
.cf-done { padding: 10px 0 4px; }
.cf-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.cf-done-title { margin-top: 26px; font-size: clamp(36px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
.cf-done-title:focus { outline: none; }
.cf-done-text { margin-top: 14px; max-width: 46ch; color: var(--stone); }
.cf-done-text .link-ul { color: var(--ink); }
.cf-again { margin-top: 28px; font-family: inherit; cursor: pointer; }
