/* Public online intake center — medical hub */

/* Icon color contract: layout-public.css paints every .fa-solid with
   var(--icon-color, var(--icon)) — set the variable on colored surfaces
   so glyphs stay white on green/blue gradients instead of inheriting. */
.btn--primary { --icon-color: #fff; }
.intake-reason__icon,
.intake-reason__check,
.intake-filter__icon,
.intake-select-prompt__icon,
.intake-tile__status { --icon-color: #fff; }
.intake-steps__icon { --icon-color: var(--brand-600, #0d7a55); }
.intake-steps__item.is-active .intake-steps__icon,
.intake-steps__item.is-done .intake-steps__icon { --icon-color: #fff; }

.intake-hero {
  position: relative;
  padding: 3.25rem 0 2.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--brand-200, #a7ddc8) 35%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 45% at 0% 100%, color-mix(in srgb, var(--brand-100, #d6f0e5) 50%, transparent), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-50, #eef8f3) 70%, #fff), var(--surface, #fff));
  border-bottom: 1px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 22%, var(--border, #d7dde7));
}
.intake-hero__copy {
  display: grid;
  gap: 0.95rem;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.intake-hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-900, #063d2b);
}
.intake-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 39rem;
}
.intake-hero__cta {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.intake-hero__cta .btn {
  min-height: 3.15rem;
  padding-inline: 2rem;
  font-size: 1.02rem;
  gap: 0.6rem;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand-600) 30%, transparent);
}
.intake-hero__cta .btn i { font-size: 0.8rem; }
.intake-hero__cta .btn:hover { transform: translateY(-2px); }
.intake-hero__feats {
  margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 56rem;
  margin-inline: auto;
  width: 100%;
}
.intake-hero__feat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 50%, transparent);
  background: color-mix(in srgb, var(--surface, #fff) 88%, var(--brand-50, #eef8f3));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-900) 6%, transparent);
  text-align: start;
}
.intake-hero__feat-icon {
  flex-shrink: 0;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-600) 30%, transparent);
}
.intake-hero__feat-icon i { color: #fff; }
.intake-hero__feat-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.intake-hero__feat-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-900, #063d2b);
}
.intake-hero__feat-desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .intake-hero__feats {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}
[data-theme="dark"] .intake-hero__feat,
html.dark .intake-hero__feat {
  background: color-mix(in srgb, var(--surface, #1a2b25) 86%, var(--brand-800, #084c36));
  border-color: color-mix(in srgb, var(--brand-300, #5ec4a0) 25%, transparent);
}

/* How it works — wizard progress: compact rail on mobile, labeled row on desktop */
.intake-steps-wrap {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}
.intake-steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
}
.intake-steps__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}
/* connector between consecutive circles */
.intake-steps__item + .intake-steps__item::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  inset-inline-start: calc(-50% + 1.45rem);
  inset-inline-end: calc(50% + 1.45rem);
  border-top: 2px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 55%, var(--border, #d7dde7));
  transition: border-color 0.2s ease;
}
.intake-steps__item.is-active + .intake-steps__item::before,
.intake-steps__item.is-done + .intake-steps__item::before {
  border-top-color: color-mix(in srgb, var(--brand-400, #37a97f) 75%, transparent);
}
.intake-steps__icon {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--brand-600, #0d7a55);
  background: color-mix(in srgb, var(--brand-100, #d6f0e5) 55%, var(--surface, #fff));
  border: 1.5px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 60%, transparent);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.intake-steps__item.is-active .intake-steps__icon {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent),
              0 6px 16px color-mix(in srgb, var(--brand-600) 30%, transparent);
}
.intake-steps__item.is-done .intake-steps__icon {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand-600) 22%, transparent);
}
.intake-steps__item.is-done .intake-steps__icon i { display: none; }
.intake-steps__item.is-done .intake-steps__icon::after {
  content: "\f00c";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1;
  color: #fff;
}
.intake-steps__num {
  position: absolute;
  top: -0.4rem;
  inset-inline-end: -0.4rem;
  min-width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  padding-inline: 0.18rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--brand-800, #084c36);
  background: var(--surface, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 60%, transparent);
}
.intake-steps__item.is-active .intake-steps__num {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
}
.intake-steps__label { display: none; }
.intake-steps__status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--brand-800, #084c36);
  text-align: center;
}
@media (min-width: 720px) {
  .intake-steps {
    max-width: 44rem;
    gap: 0;
  }
  .intake-steps__item {
    flex: 1 1 0;
    max-width: 11rem;
    gap: 0.55rem;
  }
  .intake-steps__icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.02rem;
  }
  .intake-steps__item + .intake-steps__item::before { top: 1.5rem; }
  .intake-steps__label {
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.5;
    color: var(--brand-900, #063d2b);
  }
  .intake-steps__item.is-active .intake-steps__label { color: var(--brand-700, #0b5e42); }
  .intake-steps__item:not(.is-active):not(.is-done) .intake-steps__label { color: var(--text-muted); }
  .intake-steps__status { display: none; }
}

.intake--hub {
  padding-top: 2rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, var(--surface-2, #f6f8f7) 0%, var(--surface, #fff) 12rem);
}

/* Step 1 — reason for visit */
.intake--reasons {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, var(--surface, #fff), var(--surface-2, #f6f8f7) 85%);
}
.intake-sec-head {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
.intake-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--brand-800, #084c36);
  background: color-mix(in srgb, var(--brand-100, #d6f0e5) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 45%, transparent);
}
.intake-sec-head__title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--brand-900, #063d2b);
}
.intake-sec-head__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 34rem;
}
.intake-reasons {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
@media (min-width: 980px) {
  .intake-reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.intake-reason {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.05rem 1.05rem;
  border-radius: 16px;
  border: 1.5px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 45%, var(--border));
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand-50, #eef8f3) 40%, #fff), var(--surface, #fff));
  text-decoration: none;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-900) 4%, transparent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.intake-reason:hover {
  border-color: color-mix(in srgb, var(--brand-400) 55%, var(--border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-600) 12%, transparent);
  transform: translateY(-2px);
}
.intake-reason:focus-visible {
  outline: 2px solid var(--brand-500, #148a63);
  outline-offset: 2px;
}
.intake-reason.is-selected {
  border-color: var(--brand-600, #0d7a55);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 22%, transparent),
              0 10px 24px color-mix(in srgb, var(--brand-600) 14%, transparent);
}
.intake-reason__check {
  position: absolute;
  top: 0.7rem;
  inset-inline-start: 0.7rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.intake-reason.is-selected .intake-reason__check {
  opacity: 1;
  transform: scale(1);
}
.intake-reason__icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-600) 32%, transparent);
}
.intake-reason__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--gray-900, #10201b);
}
.intake-reason__desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.intake-reason__meta {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-700, #0b5e42);
}
[data-theme="dark"] .intake-reason,
html.dark .intake-reason {
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand-800, #084c36) 26%, var(--surface, #1a2b25)), var(--surface, #1a2b25));
}
[data-theme="dark"] .intake-reason__icon,
html.dark .intake-reason__icon {
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
}
[data-theme="dark"] .intake-steps__icon,
html.dark .intake-steps__icon {
  background: color-mix(in srgb, var(--brand-800, #084c36) 45%, var(--surface, #1a2b25));
  color: var(--brand-200, #a7ddc8);
  border-color: color-mix(in srgb, var(--brand-300, #5ec4a0) 28%, transparent);
}
[data-theme="dark"] .intake-steps__num,
html.dark .intake-steps__num {
  color: var(--brand-200, #a7ddc8);
  background: var(--surface, #1a2b25);
  border-color: color-mix(in srgb, var(--brand-300, #5ec4a0) 28%, transparent);
}

.intake-catalog { display: grid; gap: 1.35rem; }

/* Active reason filter bar */
.intake-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
  padding: 0.75rem 1.05rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-400, #37a97f) 40%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-50, #eef8f3) 60%, var(--surface, #fff)), var(--surface, #fff));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-900) 5%, transparent);
}
.intake-filter[hidden] { display: none; }
.intake-filter__icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  flex-shrink: 0;
}
.intake-filter__label {
  margin: 0;
  flex: 1;
  min-width: 10rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}
.intake-filter__label strong {
  font-weight: 800;
  color: var(--brand-900, #063d2b);
}
.intake-filter__change {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 55%, transparent);
  background: var(--surface, #fff);
  color: var(--brand-800, #084c36);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.intake-filter__change:hover {
  background: color-mix(in srgb, var(--brand-100, #d6f0e5) 65%, #fff);
  border-color: var(--brand-500, #148a63);
}

/* No-selection placeholder */
.intake-select-prompt {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1.25rem;
  border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--brand-300, #5ec4a0) 55%, var(--border));
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 35%, var(--surface, #fff));
  text-align: center;
}
.intake-select-prompt[hidden] { display: none; }
.intake-select-prompt__icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-600) 28%, transparent);
}
.intake-select-prompt__text {
  margin: 0;
  max-width: 26rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.8;
  color: var(--brand-900, #063d2b);
}
.intake-select-prompt__cta { min-height: 2.8rem; padding-inline: 1.5rem; }
[data-theme="dark"] .intake-select-prompt,
html.dark .intake-select-prompt {
  background: color-mix(in srgb, var(--brand-800, #084c36) 20%, var(--surface, #1a2b25));
}
[data-theme="dark"] .intake-filter,
html.dark .intake-filter {
  background: color-mix(in srgb, var(--brand-800, #084c36) 22%, var(--surface, #1a2b25));
}

/* No-JS fallback: a reason link targets its category directly. */
.intake-category:target {
  display: block;
}

/* Unfinished draft banner */
.intake-resume {
  margin-bottom: 1.1rem;
}
.intake-resume__card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, #fef3c7 55%, var(--surface, #fff)), var(--surface, #fff));
  box-shadow: 0 6px 18px color-mix(in srgb, #f59e0b 14%, transparent);
}
.intake-resume__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1rem;
  color: #92400e;
  background: color-mix(in srgb, #fde68a 75%, #fff);
}
.intake-resume__text { flex: 1; min-width: 12rem; display: grid; gap: 0.15rem; }
.intake-resume__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #78350f;
}
.intake-resume__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: color-mix(in srgb, #92400e 80%, var(--text-muted));
}
.intake-resume__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}
.intake-resume__cta { min-height: 2.4rem; padding-inline: 1rem; font-size: 0.86rem; }
.intake-resume__dismiss {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent);
  background: transparent;
  color: #92400e;
  cursor: pointer;
  transition: background 0.15s ease;
}
.intake-resume__dismiss:hover { background: color-mix(in srgb, #fde68a 60%, transparent); }
[data-theme="dark"] .intake-resume__card,
html.dark .intake-resume__card {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, #78350f 30%, var(--surface, #1a2b25)), var(--surface, #1a2b25));
}
[data-theme="dark"] .intake-resume__title,
html.dark .intake-resume__title { color: #fcd34d; }
[data-theme="dark"] .intake-resume__body,
html.dark .intake-resume__body { color: color-mix(in srgb, #fcd34d 65%, var(--text-muted)); }
[data-theme="dark"] .intake-resume__icon,
html.dark .intake-resume__icon { color: #fcd34d; background: color-mix(in srgb, #78350f 55%, transparent); }
[data-theme="dark"] .intake-resume__dismiss,
html.dark .intake-resume__dismiss { color: #fcd34d; }

/* Category panels */
.intake-category {
  position: relative;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--brand-200) 38%, var(--border));
  background: var(--surface, #fff);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--brand-900) 5%, transparent);
  scroll-margin-top: 5.5rem;
  overflow: hidden;
}
.intake-category::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-500, #148a63);
}
.intake-category--tinnitus::before { background: linear-gradient(180deg, #148a63, #2dd4bf); }
.intake-category--dizziness::before { background: linear-gradient(180deg, #0369a1, #38bdf8); }
.intake-category--hearing::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.intake-category--psych::before { background: linear-gradient(180deg, #be123c, #fb7185); }
.intake-category--other::before { background: linear-gradient(180deg, #64748b, #94a3b8); }

.intake-category__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.intake-category__titles { display: grid; gap: 0.3rem; min-width: 0; justify-items: start; }
.intake-category__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-900, #063d2b);
}
.intake-category__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 42rem;
}

.intake-category__body { display: grid; gap: 1.15rem; }
.intake-block { display: grid; gap: 0.75rem; }
.intake-block--split {
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, var(--brand-300));
}
.intake-block__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--brand-800, #084c36);
  background: color-mix(in srgb, var(--brand-50) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-200) 55%, transparent);
}

/* Tile grids — one row per form (list layout) */
.intake-tiles {
  display: grid;
  gap: 0.8rem;
  align-items: stretch;
  grid-template-columns: 1fr;
}

/* Individual tiles */
.intake-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.05rem 1.05rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, var(--brand-300));
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand-50) 35%, #fff), var(--surface, #fff));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-900) 4%, transparent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.intake-tile:hover {
  border-color: color-mix(in srgb, var(--brand-400) 45%, var(--border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-600) 10%, transparent);
  transform: translateY(-2px);
}
.intake-tile__accent {
  position: absolute;
  top: 0;
  inset-inline-start: 1.1rem;
  width: 3.4rem;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--brand-500, #148a63), color-mix(in srgb, var(--brand-300) 70%, #fff));
  opacity: 0.9;
}
.intake-tile--history .intake-tile__accent {
  background: linear-gradient(90deg, #0ea5e9, #67e8f9);
}
.intake-tile--questionnaire .intake-tile__accent {
  background: linear-gradient(90deg, var(--brand-600, #0d7a55), var(--brand-300, #5ec4a0));
}
.intake-tile__draft {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  color: #92400e;
  background: color-mix(in srgb, #fef3c7 82%, #fff);
  border: 1px solid color-mix(in srgb, #f59e0b 42%, transparent);
}
.intake-tile__draft[hidden] { display: none; }
[data-theme="dark"] .intake-tile__draft,
html.dark .intake-tile__draft {
  color: #fcd34d;
  background: color-mix(in srgb, #78350f 45%, transparent);
}
.intake-tile__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.intake-tile--done {
  border-color: color-mix(in srgb, var(--brand-500, #148a63) 45%, var(--border));
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand-50, #eef8f3) 55%, #fff), var(--surface, #fff));
}
.intake-tile__done {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.3rem;
  justify-items: start;
}
.intake-tile__done[hidden] { display: none; }
.intake-tile__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-500, #148a63));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-600) 30%, transparent);
}
.intake-tile__status i { font-size: 0.62rem; }
.intake-tile__done-date {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--text-muted);
}
.intake-category.is-flash {
  animation: intake-flash 1.4s ease;
}
@keyframes intake-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-500) 45%, transparent); }
  35% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand-500) 26%, transparent); }
  100% { box-shadow: 0 8px 28px color-mix(in srgb, var(--brand-900) 5%, transparent); }
}

.intake-tile__main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.intake-tile__icon {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.05rem;
  --icon-color: #fff;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600, #0d7a55), var(--brand-400, #37a97f));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-600) 25%, transparent);
}
.intake-tile--history .intake-tile__icon {
  --icon-color: #fff;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 4px 12px color-mix(in srgb, #0284c7 25%, transparent);
}
.intake-tile__body {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
  flex: 1;
  align-content: start;
}
.intake-tile__kind {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gray-500, #64748b);
}
.intake-tile__title {
  margin: 0.05rem 0 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--gray-900, #10201b);
}
.intake-tile__code {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.08rem 0.42rem;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-800, #084c36);
  background: color-mix(in srgb, var(--brand-100) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-300) 40%, transparent);
}
.intake-tile__desc {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.intake-tile__foot {
  margin-top: 0.95rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, var(--brand-200));
}
.intake-tile__meta {
  margin: 0.45rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--brand-700, #0b5e42);
  white-space: nowrap;
  min-width: 0;
}
.intake-tile__meta i {
  opacity: 0.85;
  flex-shrink: 0;
}
.intake-tile__count,
.intake-tile__est {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 72%, var(--surface, #fff));
  border: 1px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 55%, transparent);
}
.intake-tile__est {
  color: var(--gray-500, #64748b);
  font-weight: 600;
  background: var(--surface-2, #f6f8f7);
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
}
.intake-tile__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding-inline: 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 750;
  flex-shrink: 0;
}
.intake-tile__cta i { font-size: 0.78rem; }

/* Wide / solo tiles share the same single-row layout as the rest */
@media (max-width: 640px) {
  .intake-tile--wide .intake-tile__cta {
    width: 100%;
  }
}

.intake-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: var(--surface, #fff);
}
.intake-empty__icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
  color: var(--brand-500, #148a63);
  opacity: 0.75;
}


/* Form fill pages */

.intake--form {

  padding-top: 1.25rem;

  padding-bottom: 2.5rem;

}

.intake-form-top {

  margin-bottom: 1.25rem;

}

.intake-breadcrumb {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 0.4rem;

  font-size: 0.86rem;

  color: var(--text-muted);

  line-height: 1.5;

}

.intake-breadcrumb a {

  color: var(--brand-700, #0b5e42);

  text-decoration: none;

  font-weight: 600;

}

.intake-breadcrumb a:hover {

  text-decoration: underline;

}

.intake-breadcrumb__sep {

  opacity: 0.55;

}

.intake-breadcrumb__current {

  color: var(--text);

  font-weight: 600;

}



.intake-form-shell {

  border-radius: 20px;

  border: 1px solid var(--border);

  background: var(--surface, #fff);

  box-shadow: 0 4px 18px rgba(16, 32, 27, 0.06);

  padding: 1.25rem 1.15rem 1.5rem;

}

@media (min-width: 640px) {

  .intake-form-shell {

    padding: 1.5rem 1.5rem 1.75rem;

  }

}



.intake--form .container--narrow {
  max-width: 52rem;
}

.intake--form .pac {

  max-width: none;

  margin: 0;

}

.intake--form .pac-fill-head {

  margin-bottom: 1.25rem;

  padding-bottom: 1rem;

  border-bottom: 1px solid var(--border);

}

.intake--form .pac-progress-sticky {

  top: 0.75rem;

  margin-bottom: 1.25rem;

}

.intake--form .pac-nav {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.25rem -1.15rem -1.5rem;
  padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 20px color-mix(in srgb, var(--brand-900) 6%, transparent);
  align-items: stretch;
}
@media (min-width: 640px) {
  .intake--form .pac-nav {
    margin-inline: -1.5rem;
    margin-bottom: -1.75rem;
    padding-inline: 1.5rem;
  }
}
.intake--form .pac-nav__btn,
.intake--form .pac-nav__btn--primary,
.intake--form .pac-nav__btn--ghost,
.intake--form .pac-nav #pacSubmit,
.intake--form .pac-nav #histSubmit {
  grid-column: auto;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  justify-content: center;
  text-align: center;
}

.intake--form .pac-step__hint {

  margin: 0.35rem 0 0;

  font-size: 0.88rem;

  line-height: 1.6;

  color: var(--text-muted);

  font-weight: 400;

}



/* Inline auth step */

.pac-step--auth .intake-auth-body {

  display: grid;

  gap: 0.85rem;

  max-width: 26rem;

}

.intake-auth-panel {

  display: grid;

  gap: 0.85rem;

}

.intake-auth-panel__hint {

  margin: 0;

  font-size: 0.88rem;

  line-height: 1.55;

  color: var(--text-muted);

}

.intake-auth-panel__actions {

  display: flex;

  flex-wrap: wrap;

  gap: 0.55rem;

}

.intake-auth-msg {

  margin: 0;

  font-size: 0.88rem;

  line-height: 1.5;

}

.intake-auth-msg.is-error {

  color: #c0392b;

}

.intake-auth-msg.is-success {

  color: var(--brand-700, #0b5e42);

}

.pac-step--auth .pac-cta {

  min-height: 2.75rem;

  width: 100%;

  max-width: 18rem;

}



.intake-thanks {

  text-align: center;

  padding: 2rem 1rem 3rem;

  display: grid;

  gap: 0.85rem;

  justify-items: center;

}

.intake-thanks__badge {

  width: 3rem;

  height: 3rem;

  display: grid;

  place-items: center;

  border-radius: 999px;

  background: color-mix(in srgb, var(--brand-600) 14%, #fff);

  color: var(--brand-700);

  font-size: 1.35rem;

  font-weight: 700;

}

.intake-thanks__title {

  margin: 0;

  font-size: 1.35rem;

}

.intake-thanks__body {

  margin: 0;

  color: var(--text-muted);

  max-width: 28rem;

  line-height: 1.6;

}

.intake-thanks__score {

  margin: 0;

  font-size: 1rem;

}

.intake-thanks__actions {

  display: flex;

  flex-wrap: wrap;

  gap: 0.65rem;

  justify-content: center;

  margin-top: 0.5rem;

}

.intake-thanks__next {
  width: 100%;
  max-width: 26rem;
  margin-top: 0.6rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 45%, var(--border));
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 45%, var(--surface, #fff));
  text-align: start;
}

.intake-thanks__next-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-900, #063d2b);
}

.intake-thanks__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.intake-thanks__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.intake-thanks__step-num {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-800, #084c36);
  background: color-mix(in srgb, var(--brand-100, #d6f0e5) 85%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-300, #5ec4a0) 40%, transparent);
  margin-top: 0.15rem;
}

[data-theme="dark"] .intake-thanks__next,
html.dark .intake-thanks__next {
  border-color: color-mix(in srgb, var(--brand-300, #5ec4a0) 22%, var(--border));
  background: color-mix(in srgb, var(--brand-800, #084c36) 22%, var(--surface));
}



.adm-intake .card {
  margin-bottom: 1rem;
}
.adm-intake .inline-form {
  display: inline;
}
.intake-auth-fields .pac-hist-field[hidden] {
  display: none !important;
}
.intake-auth-otp {
  margin-top: 0.15rem;
}
.intake-auth-resend {
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-700, #0b5e42);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
}
.intake-auth-otp-login {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--brand-400, #37a97f) 55%, transparent);
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 60%, transparent);
  color: var(--brand-800, #084c36);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.intake-auth-otp-login:hover {
  background: color-mix(in srgb, var(--brand-100, #d6f0e5) 80%, transparent);
  border-color: var(--brand-500, #148a63);
}
.intake-auth-otp-login[hidden] {
  display: none;
}
[data-theme="dark"] .intake-auth-otp-login,
html.dark .intake-auth-otp-login {
  color: var(--brand-300, #5ec4a0);
  background: color-mix(in srgb, var(--brand-800, #084c36) 30%, transparent);
}
.pac-step--auth .pac-hist-input[readonly] {
  background: var(--surface-2, #f6f8f7);
  color: var(--text-muted);
}


/* Stacked tile footer with full-width CTA on narrow screens */
@media (max-width: 519px) {
  .intake-tile .intake-tile__cta {
    width: 100%;
  }
}

/* List layout reads better capped and centered on wide screens */
@media (min-width: 900px) {
  .intake-category {
    max-width: 52rem;
    margin-inline: auto;
  }
}

/* Mobile density pass — tighter rhythm, same hierarchy (kept last to win the cascade) */
@media (max-width: 719px) {
  .intake-hero { padding: 2.1rem 0 1.9rem; }
  .intake-hero__copy { gap: 0.75rem; }
  .intake-hero__lead { font-size: 0.95rem; line-height: 1.8; }
  .intake-hero__cta { margin-top: 0.35rem; }
  .intake-hero__feats { margin-top: 1.25rem; gap: 0.6rem; }
  .intake-hero__feat { padding: 0.8rem 0.9rem; gap: 0.7rem; }
  .intake-hero__feat-icon { width: 2.35rem; height: 2.35rem; border-radius: 12px; font-size: 0.9rem; }
  .intake-hero__feat-desc { font-size: 0.76rem; }
  .intake-steps-wrap { margin-top: 1.5rem; }
  .intake--reasons { padding-top: 1.5rem; }
  .intake-reason { padding: 0.95rem 0.95rem 0.85rem; gap: 0.3rem; }
  .intake-reason__icon { width: 2.4rem; height: 2.4rem; border-radius: 12px; font-size: 1rem; }
  .intake-select-prompt { padding: 1.35rem 1.1rem; gap: 0.55rem; border-radius: 16px; }
  .intake-select-prompt__icon { width: 2.6rem; height: 2.6rem; font-size: 0.95rem; }
  .intake-select-prompt__text { font-size: 0.92rem; line-height: 1.7; }
}
