/* Progressive enhancement: the original intake diagram is the default. */
.intake-step-jump,
.intake-scroll-controls,
.intake-scene,
.intake-scroll-progress-track {
  display: none;
}
.is-scroll-enhanced {
  overflow-anchor: none;
  margin-bottom: 30px;
}
.is-scroll-enhanced::after {
  content: "";
  display: block;
  height: var(--intake-scroll-distance, 160vh);
}
.is-scroll-enhanced .intake-journey {
  position: sticky;
  top: clamp(28px, calc((100vh - 570px) / 2), 180px);
  margin-bottom: 0;
  padding: 22px 28px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 100%, #e6f4ff, transparent 55%), #fafdff;
  box-shadow: 0 18px 55px #1c578811;
}
.is-scroll-enhanced .intake-example-label {
  display: none;
}
.is-scroll-enhanced .intake-scroll-controls {
  display: flex;
  align-items: center;
  gap: 21px;
  font-size: 10px;
  color: #567086;
}
[data-intake-counter] {
  color: #254f71;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 1px;
}
.intake-scroll-hint > span {
  display: inline-block;
  margin-left: 5px;
  color: #2476b8;
}
.intake-scroll-controls a {
  padding-block: 5px;
  color: #245482;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.is-scroll-enhanced .intake-story-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  height: 410px;
  margin: 22px 0;
}
.is-scroll-enhanced .intake-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 0;
}
.is-scroll-enhanced .intake-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition:
    background 250ms,
    border-color 250ms,
    box-shadow 250ms;
}
.is-scroll-enhanced .intake-step::before,
.is-scroll-enhanced .intake-step::after {
  display: none;
}
.is-scroll-enhanced .intake-step-jump {
  display: block;
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.is-scroll-enhanced .intake-step-jump:hover {
  background: #258cf105;
}
.is-scroll-enhanced .intake-step-marker {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 11px;
  color: #5b7a93;
  background: #edf4f9;
  border-color: #d9e6ef;
  box-shadow: none;
  transition:
    color 250ms,
    background 250ms,
    box-shadow 250ms;
}
.is-scroll-enhanced .intake-step-marker svg {
  width: 20px;
  height: 20px;
}
.is-scroll-enhanced .intake-step-marker > span {
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  font-size: 7px;
  border-width: 2px;
  background: #e1edf6;
  color: #42637d;
}
.is-scroll-enhanced .intake-step-copy h3 {
  min-height: 0;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: #4b657a;
}
/* Collapse visually, keeping all five descriptions available to assistive tech. */
.is-scroll-enhanced .intake-step-copy > p,
.is-scroll-enhanced .intake-step-tags {
  min-height: 0;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 250ms,
    margin-top 250ms;
}
.is-scroll-enhanced .intake-step.is-active {
  background: #fff;
  border-color: #d5e7f6;
  box-shadow: 0 5px 18px #30648c09;
}
.is-scroll-enhanced .is-active .intake-step-marker {
  color: #fff;
  background: #246fa7;
  border-color: #246fa7;
  box-shadow: 0 4px 12px #1c6da72a;
}
.is-scroll-enhanced .is-active .intake-step-marker > span {
  color: #fff;
  background: #162c50;
}
.is-scroll-enhanced .is-active .intake-step-copy h3 {
  color: var(--navy);
}
.is-scroll-enhanced .is-active .intake-step-copy > p {
  max-height: 85px;
  margin-top: 9px;
  opacity: 1;
}
.is-scroll-enhanced .is-active .intake-step-tags {
  max-height: 60px;
  margin-top: 10px;
  opacity: 1;
}
.is-scroll-enhanced .is-complete .intake-step-marker {
  color: #326c59;
  background: #e6f3ed;
  border-color: #cee5d9;
}
.is-scroll-enhanced .is-complete .intake-step-marker > span {
  color: #326554;
  background: #d8eddf;
}
.is-scroll-enhanced .intake-scene {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 25px;
  border: 1px solid #d5e9fa;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, #b6dfff, transparent 68%),
    linear-gradient(145deg, #f2faff, #e3f2ff);
}
.intake-scene-header,
.intake-scene-brand {
  display: flex;
  align-items: center;
}
.intake-scene-header {
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 21px;
  border-bottom: 1px solid #cbe1f2;
}
.intake-scene-brand {
  gap: 8px;
  color: #284c6b;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.intake-scene-brand img {
  object-fit: contain;
}
.intake-scene-header > span:last-child {
  color: #57738a;
  font-size: 9px;
}
.intake-scene-view.is-active {
  animation: intake-scene-enter 450ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.intake-scene-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3c6483;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.intake-scene-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #318bd0;
  box-shadow: 0 0 0 3px #3486c412;
}
.intake-scene-view h4 {
  margin: 8px 0 20px;
  color: var(--navy);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.intake-conversation {
  display: grid;
  gap: 13px;
}
.intake-chat-patient,
.intake-chat-stable {
  padding: 12px 16px;
  max-width: 85%;
  border-radius: 13px;
  box-shadow: 0 4px 12px #22558607;
}
.intake-chat-patient {
  justify-self: end;
  color: #fff;
  background: #285f8c;
  border-bottom-right-radius: 3px;
}
.intake-chat-stable {
  background: #fff;
  border: 1px solid #d8e8f5;
  border-bottom-left-radius: 3px;
}
.intake-conversation span {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  opacity: 0.85;
}
.intake-conversation p {
  font-size: 12px;
  line-height: 1.6;
}
.intake-scene-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: #476a7f;
  font-size: 10px;
}
.intake-scene-note > span {
  color: #32745c;
}
.intake-fax-referral {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid #d4e6f3;
  border-radius: 9px;
  background: #ffffffba;
}
.intake-fax-referral > svg {
  width: 23px;
  height: 27px;
  flex: 0 0 23px;
  stroke: #3d7096;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intake-fax-referral > div {
  display: grid;
  gap: 2px;
}
.intake-fax-referral strong {
  color: #32546e;
  font-size: 10px;
  font-weight: 500;
}
.intake-fax-referral > div > span {
  color: #5b7183;
  font-size: 9px;
}
.intake-fax-status {
  margin-left: auto;
  color: #376e57;
  font-size: 9px;
  text-align: right;
}
.intake-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.intake-profile-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c5e2f8;
  color: #2a5c82;
  font-size: 10px;
}
.intake-profile > div {
  display: grid;
  gap: 2px;
}
.intake-profile strong {
  font-size: 12px;
  font-weight: 500;
}
.intake-profile > div > span {
  color: #536d81;
  font-size: 10px;
}
.intake-scene-check {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 23px;
  height: 23px;
  background: #dbeee4;
  color: #326554;
  border-radius: 50%;
  font-size: 12px;
}
.intake-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.intake-detail-grid > div {
  display: grid;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid #d9e9f5;
  border-radius: 8px;
  background: #ffffffdf;
}
.intake-detail-grid span {
  color: #61778b;
  font-size: 9px;
}
.intake-detail-grid strong {
  display: flex;
  justify-content: space-between;
  color: #2a4d6a;
  font-size: 11px;
  font-weight: 500;
}
.intake-detail-grid em {
  font-style: normal;
  color: #38755d;
}
.intake-coverage-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid #d1e6f5;
  border-radius: 12px;
  background: #fff;
}
.intake-coverage-card svg,
.intake-appointment-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #287ab6;
}
.intake-coverage-card > div {
  display: grid;
  gap: 3px;
}
.intake-coverage-card strong {
  color: #275678;
  font-size: 13px;
  font-weight: 500;
}
.intake-coverage-card > div > span {
  color: #647b8c;
  font-size: 9px;
}
.intake-checklist {
  margin-top: 17px;
}
.intake-checklist > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid #d2e5f3;
  font-size: 10px;
  color: #4e6c82;
}
.intake-checklist strong {
  color: #2e5b73;
  font-size: 10px;
  font-weight: 500;
}
.intake-checklist i {
  margin-left: 6px;
  color: #39775d;
  font-style: normal;
}
.intake-forms-list {
  display: grid;
  gap: 8px;
}
.intake-forms-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d9e9f5;
  border-radius: 9px;
  background: #ffffffea;
}
.intake-form-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #396a58;
  background: #eaf6f0;
  border-radius: 6px;
  font-size: 11px;
}
.intake-forms-list strong {
  color: #32546e;
  font-size: 11px;
  font-weight: 500;
}
.intake-forms-list > div > span:last-child {
  margin-left: auto;
  color: #526f60;
  font-size: 9px;
}
.intake-appointment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 19px 16px;
  border: 1px solid #d1e5f5;
  border-radius: 13px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 24px #2a6a9a09;
}
.intake-appointment-icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  margin-bottom: 13px;
  border-radius: 15px;
  background: #eaf5ff;
}
.intake-appointment-card > span {
  color: #376e57;
  font-size: 10px;
}
.intake-appointment-card > strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.intake-appointment-card p {
  margin-top: 4px;
  color: #62768a;
  font-size: 11px;
}
.intake-appointment-card > div:last-child {
  display: flex;
  gap: 16px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #e5edf3;
  color: #48715c;
  font-size: 9px;
}
.is-scroll-enhanced .intake-journey-footer {
  padding-block: 16px;
}
.is-scroll-enhanced .intake-scroll-progress-track {
  display: block;
  height: 3px;
  margin-inline: -28px;
  background: #e2eef7;
}
.intake-scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, #80c6f5, #267cb9);
  transform: scaleX(0);
  transform-origin: left;
}
@keyframes intake-scene-enter {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}
@media (min-width: 941px) and (max-width: 1100px) {
  .is-scroll-enhanced .intake-journey {
    padding-inline: 20px;
  }
  .is-scroll-enhanced .intake-story-layout {
    gap: 15px;
  }
  .is-scroll-enhanced .intake-step {
    padding: 9px 8px;
    gap: 13px;
  }
  .is-scroll-enhanced .intake-step-copy h3 {
    font-size: 14px;
  }
  .is-scroll-enhanced .intake-scene {
    padding-inline: 19px;
  }
  .intake-scene-view h4 {
    font-size: 22px;
  }
  .intake-scene-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .intake-scene-header > span:last-child {
    max-width: 80px;
    text-align: right;
  }
  .intake-coverage-card {
    padding-inline: 12px;
    gap: 9px;
  }
  .intake-forms-list > div {
    gap: 7px;
    padding: 9px;
  }
  .intake-forms-list strong {
    font-size: 10px;
  }
  .is-scroll-enhanced .intake-scroll-progress-track {
    margin-inline: -20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intake-scene-view {
    animation: none !important;
  }
}
