.care-pathway {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 10px;
  overflow: hidden;
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid #e0eef5;
  border-radius: 23px;
  background: radial-gradient(ellipse at 100% 0%, #e6f6fc 0%, transparent 48%), var(--white);
  color: var(--navy);
  box-shadow: 0 24px 64px #00132855, inset 0 1px 0 #fff;
}

.care-pathway [hidden] { display: none; }

.care-pathway h2 {
  margin: 10px 0 16px;
  font: 700 clamp(23px, 2.5vw, 29px)/1.18 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.care-pathway p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.pathway-progress {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.pathway-progress progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #dcebf5;
  color: #087db8;
  accent-color: #087db8;
}

.pathway-progress progress::-webkit-progress-bar { background: #dcebf5; }
.pathway-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #075c96, #18a5cf);
  transition: width 220ms ease;
}
.pathway-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #075c96, #18a5cf);
}

.pathway-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.pathway-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 9px;
  border: 1px solid #d8e8f2;
  border-radius: 13px;
  background: #fafdff;
  color: var(--navy);
  font: 700 13px/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pathway-choice:hover,
.pathway-choice:focus-visible {
  border-color: #69b6d9;
  background: #f1faff;
  box-shadow: 0 4px 12px #143f6912;
}

.pathway-choice:active { transform: scale(.98); }
.pathway-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pathway-choice::after {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 2px solid #37678b;
  border-right: 2px solid #37678b;
  transform: rotate(45deg);
}

.pathway-choice-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: linear-gradient(145deg, #eaf8fd, #d4eaf9);
  color: #075c96;
}

.pathway-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
}

.pathway-icon::before, .pathway-icon::after {
  position: absolute;
  box-sizing: border-box;
  content: '';
}

.pathway-icon[data-icon="home"]::before {
  inset: 7px 3px 2px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}
.pathway-icon[data-icon="home"]::after {
  top: 3px;
  left: 3.5px;
  width: 11px;
  height: 11px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  border-radius: 2px 0 0;
  transform: rotate(45deg);
}

.pathway-icon[data-icon="conversation"]::before {
  inset: 2px 1px 5px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.pathway-icon[data-icon="conversation"]::after {
  top: 11px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: skewY(-35deg);
}

.pathway-icon[data-icon="pause"]::before {
  inset: 3px 5px;
  border-inline: 1.5px solid currentColor;
  border-radius: 1px;
}

.pathway-icon[data-icon="book"]::before {
  inset: 3px 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.pathway-icon[data-icon="book"]::after {
  inset: 3px auto 3px 8px;
  border-left: 1.5px solid currentColor;
}

.pathway-icon[data-icon="medical"]::before, .pathway-icon[data-icon="medical"]::after {
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.pathway-icon[data-icon="medical"]::after { transform: translate(-50%, -50%) rotate(90deg); }

.pathway-icon:is([data-icon="clock"], [data-icon="compass"])::before {
  inset: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.pathway-icon[data-icon="clock"]::after {
  top: 4px;
  left: 8px;
  width: 4px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 0 1px;
}
.pathway-icon[data-icon="compass"]::after {
  inset: 6px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.pathway-icon[data-icon="calendar"]::before {
  inset: 3px 1px 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.pathway-icon[data-icon="calendar"]::after {
  top: 7px;
  left: 1px;
  right: 1px;
  border-top: 1.5px solid currentColor;
}

.pathway-icon[data-icon="arrow"]::before {
  top: 8px;
  left: 3px;
  width: 13px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-45deg);
}
.pathway-icon[data-icon="arrow"]::after {
  inset: 3px 3px auto auto;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  border-radius: 0 1px 0 0;
}

.pathway-choice-label { min-width: 0; }

.pathway-back {
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #075c96;
  font: 700 13px/1.3 var(--sans);
  cursor: pointer;
}

.pathway-back:hover { background: #eaf5fc; }

.pathway-result-actions, .pathway-direct, .pathway-service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.pathway-direct {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.pathway-result-actions > a, .pathway-direct > a, .pathway-service-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pathway-result-actions > a:not(.button), .pathway-direct > a, .pathway-service-links > a:not(.button) {
  color: #075c96;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.care-pathway .button {
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 13px;
}

.care-pathway :is(button, a, input):focus-visible {
  outline: 2px solid #075c96;
  outline-offset: 3px;
}

.pathway-contact {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #dcebf5;
  border-radius: 15px;
  background: #f1f8fc;
}

.pathway-contact h3 { margin: 0; }
.pathway-contact .pathway-contact-intro { margin: 0; }

.pathway-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pathway-fields label {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  color: var(--navy);
  font: 700 12px/1.3 var(--sans);
}

.pathway-fields label:first-child { grid-column: 1 / -1; }

.pathway-fields input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c5dbe9;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font: 500 16px/1.3 var(--sans);
}

.pathway-contact .pathway-status {
  margin: 0;
  font-size: 13px;
}
.pathway-status:empty { display: none; }

@media (max-width: 400px), (min-width: 761px) and (max-width: 900px) {
  .pathway-choice { grid-template-columns: auto minmax(0, 1fr); }
  .pathway-choice::after { display: none; }
}
@media (max-width: 370px) {
  .pathway-choices, .pathway-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pathway-choice, .pathway-progress progress::-webkit-progress-value { transition: none; }
}
