.journey-guide {
  padding: 22px 0;
  border-bottom: 1px solid #dce7e1;
  background: #f5f8f6;
}

.journey-guide.is-contained {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.journey-guide.is-contained .journey-guide-inner {
  margin: 22px 0;
}

.journey-guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #cfe0d7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 61, 48, 0.045);
}

.journey-guide-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.journey-guide-label {
  flex: 0 0 auto;
  margin: 0;
  color: #087f67;
  font-size: 13px;
  font-weight: 800;
}

.journey-guide-message {
  margin: 0;
  color: #52635c;
  font-size: 13px;
  line-height: 1.6;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  position: relative;
  min-width: 0;
}

.journey-step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 0;
  left: 30px;
  height: 2px;
  background: #dbe5e0;
  content: "";
}

.journey-step.is-complete:not(:last-child)::after {
  background: #78b09a;
}

.journey-step a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #65746e;
  text-decoration: none;
}

.journey-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #d2dfd8;
  border-radius: 50%;
  color: #6b7a74;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.journey-step-text {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-step.is-complete .journey-step-number {
  border-color: #4e9b7d;
  color: transparent;
  background: #4e9b7d;
}

.journey-step.is-complete .journey-step-number::after {
  color: #fff;
  content: "✓";
  font-size: 15px;
}

.journey-step.is-complete .journey-step-text {
  color: #356d57;
}

.journey-step.is-current .journey-step-number {
  border-color: #087f67;
  color: #087f67;
  box-shadow: 0 0 0 4px rgba(8, 127, 103, 0.1);
}

.journey-step.is-current .journey-step-text {
  color: #172923;
  font-weight: 800;
}

.journey-next {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  border-left: 1px solid #dce5e0;
}

.journey-next-label {
  color: #6b7973;
  font-size: 12px;
  font-weight: 700;
}

.journey-next .button {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.journey-next-alt {
  color: #087f67;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .journey-guide-inner {
    grid-template-columns: 1fr;
  }

  .journey-next {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 14px 0 0;
    border-top: 1px solid #dce5e0;
    border-left: 0;
  }

  .journey-next-label {
    grid-column: 1 / -1;
  }

  .journey-next .button {
    width: auto;
  }
}

@media (max-width: 620px) {
  .journey-guide {
    padding: 14px 0;
  }

  .journey-guide-inner {
    gap: 16px;
    padding: 16px;
  }

  .journey-guide-head {
    display: grid;
    gap: 5px;
    margin-bottom: 16px;
  }

  .journey-steps {
    grid-template-columns: repeat(4, 66px);
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
  }

  .journey-step:not(:last-child)::after {
    right: -10px;
    left: 30px;
  }

  .journey-step a {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .journey-step-text {
    overflow: visible;
    font-size: 11px;
    white-space: normal;
  }

  .journey-next {
    display: grid;
    grid-template-columns: 1fr;
  }

  .journey-next .button {
    width: 100%;
  }
}
