/* Paper forms, centered sentence-case labels and pencil navigation. */
#intakeRoot.intake {
  --ink: var(--ht-ink, #151515);
  --blue: var(--ht-blue, #254c9b);
  --paper: var(--ht-paper, #f7f5f0);
  --line: var(--ht-line, #cbc9c2);
  --heading-large: clamp(36px, 10vw, 46px);
  --heading-small: 22px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 17px/1.5 var(--ht-text, "Arial Narrow", sans-serif);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #cecec8 transparent;
  -webkit-text-size-adjust: 100%;
}
.intake *, .intake *::before, .intake *::after { box-sizing: border-box; }
.intake button, .intake input, .intake textarea { font: inherit; }
.intake button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.intake button:disabled { cursor: default; }
.intake [data-step-focus]:focus { outline: none; }
.intake button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.intake-sheet {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(36px, 6vh, 64px) 30px max(24px, var(--safe-bottom));
}
.intake-form { display: flex; flex: 1; flex-direction: column; margin: 0; min-width: 0; }
.intake-content { width: 100%; }
.intake-field { min-width: 0; margin: 0 0 28px; }
.intake-field:last-child { margin-bottom: 0; }
.intake-heading, .intake-field > label {
  display: block;
  margin: 0 0 12px;
  color: var(--blue);
  font-family: var(--ht-display, Impact, "Arial Narrow", sans-serif);
  font-size: var(--heading-small);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .01em;
  text-transform: none;
  text-align: center;
}
.intake .intake-heading { font-size: var(--heading-large); line-height: 1.08; }
.intake h1.intake-heading { margin-bottom: 36px; }
.intake-field-main > label.intake-heading {
  margin-bottom: 28px;
}
.intake-field > label[for="ht-deadline"] { text-align: left; }
.intake-optional {
  display: inline-block;
  margin-left: 3px;
  font-family: var(--ht-text, "Arial Narrow", sans-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  vertical-align: 3px;
}
.intake-field input:not([type=file]), .intake-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #8c9bb4;
  border-radius: 0;
  outline: none;
  background: #ffffff45;
  color: var(--ink);
  font-family: var(--ht-text, "Arial Narrow", sans-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: none;
  appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.intake-field-main input:not([type=file]) { min-height: 76px; font-size: 28px; }
.intake-field input::placeholder, .intake-field textarea::placeholder { color: #96958f; opacity: 1; }
.intake-field input:focus, .intake-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.intake-field textarea { min-height: 150px; padding-top: 9px; resize: vertical; font-size: 19px; font-weight: 400; line-height: 1.55; }
.intake-field input[type=datetime-local] { min-height: 52px; font-size: 20px; color-scheme: light; }
.intake-field input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; }
.intake-field [aria-invalid=true] { border-color: #ab443d !important; }
.intake-error { display: none; margin: 9px 0 0; color: #a34740; font-size: 14px; font-weight: 400; line-height: 1.45; }
.intake-error.is-visible { display: block; }
.intake-footer { display: flex; flex-direction: column; flex-shrink: 0; gap: 6px; margin-top: auto; padding-top: 38px; }
.intake-navigation { display: flex; width: 100%; justify-content: space-between; align-items: flex-end; gap: 20px; }
.intake-exit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
  padding: 10px 8px 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.intake-exit > svg { width: 19px; height: 19px; flex: none; }
.intake-exit:hover, .intake-exit:active { color: var(--blue); }
.intake-next, .intake-back {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: none;
  min-height: 64px;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  transition: color 180ms ease;
}
.intake-next { width: 146px; margin-left: auto; }
.intake-next > svg { display: block; width: 146px; height: 36px; overflow: visible; }
.intake-back { width: 92px; min-height: 48px; }
.intake-back > svg { display: block; width: 92px; height: 28px; transform: scaleX(-1); overflow: visible; }
.intake-next:hover, .intake-back:hover { color: #163a80; }
.intake-next:active, .intake-back:active { color: #122d61; }
.intake-next:disabled, .intake-back:disabled { opacity: .4; }
.intake-field-task > label.intake-heading { margin-bottom: 16px; }
.intake-field > label.intake-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  margin: 0;
  padding: 13px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: var(--heading-small);
  text-align: left;
  line-height: 1.15;
  transition: color 180ms ease, border-color 180ms ease;
}
.intake-drop .intake-attachment-label { flex: 1; min-width: 0; }
.intake-drop > svg { flex: none; width: 24px; height: 28px; }
.intake-drop:hover, .intake-drop.is-dragging { border-bottom-color: var(--blue) !important; color: #163a80; }
.intake-drop:focus-within { outline: 2px solid #254c9b70; outline-offset: 5px; }
.intake-drop input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }
.intake-file-list { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.intake-file { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 2px 0; color: #466294; }
.intake-file > span { flex: 1; min-width: 0; }
.intake-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.intake-file small { display: block; margin-top: 2px; color: #787975; font-size: 12px; font-weight: 400; line-height: 1.4; }
.intake-file button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #7c8490; }
.intake-file button:hover { color: var(--blue); background: #254c9b07; }
.intake-file-pending small { color: #937946; }
.intake-complete-message { max-width: 450px; margin: 0 auto; color: var(--ink); text-align: center; }
.intake-complete-message strong { display: block; margin-bottom: 22px; color: var(--blue); font: 700 var(--heading-large)/1.08 var(--ht-display, Impact, "Arial Narrow", sans-serif); text-transform: none; }
.intake-complete-message > span { display: block; max-width: 320px; margin: 0 auto; font-size: 20px; font-weight: 400; line-height: 1.45; }
.intake-complete-message > span + span { margin-top: 20px; }
@media (min-width: 640px) {
  .intake-sheet { padding-right: 44px; padding-left: 44px; }
  .intake-sheet[data-step="0"] { padding-top: 76px; }
}
@media (max-width: 360px) {
  .intake-sheet { padding-right: 24px; padding-left: 24px; }
  .intake-optional { font-size: 13px; vertical-align: 2px; }
}
@media (max-height: 620px) {
  .intake-sheet { padding-top: 24px; padding-bottom: max(16px, var(--safe-bottom)); }
  .intake-footer { padding-top: 22px; }
  .intake-field { margin-bottom: 23px; }
  .intake h1.intake-heading { margin-bottom: 25px; }
  .intake-field-main > label.intake-heading { margin-bottom: 18px; }
  .intake-next { min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .intake * { transition: none !important; scroll-behavior: auto !important; }
}
