/* MERP reusable progress stepper */
.merp-stepper {
  --stepper-active: #0057d9;
  --stepper-complete: #138a4b;
  --stepper-inactive: #e6edf6;
  --stepper-line: #c8d6e8;
  --stepper-text: #53627d;
  --stepper-circle-size: 2.75rem;
  list-style: none;
  display: flex;
  width: min(100%, 34rem);
  margin: 0;
  padding: 0;
}

.merp-stepper__step {
  position: relative;
  z-index: 0;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  color: var(--stepper-text);
}

/* Each step draws the connector to the next step. */
.merp-stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--stepper-circle-size) / 2 - 1px);
  left: calc(50% + var(--stepper-circle-size) / 2);
  width: calc(100% - var(--stepper-circle-size));
  height: 2px;
  background: var(--stepper-line);
}

.merp-stepper__step.is-complete:not(:last-child)::after {
  background: var(--stepper-complete);
}

.merp-stepper__marker {
  display: grid;
  place-items: center;
  width: var(--stepper-circle-size);
  height: var(--stepper-circle-size);
  margin: 0 auto .65rem;
  border: 2px solid var(--stepper-inactive);
  border-radius: 50%;
  background: var(--stepper-inactive);
  color: #092653;
  font-weight: 700;
  line-height: 1;
}

.merp-stepper__label {
  display: block;
  max-width: 9rem;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.35;
}

.merp-stepper__step.is-active {
  color: #092653;
  font-weight: 700;
}

.merp-stepper__step.is-active .merp-stepper__marker {
  border-color: var(--stepper-active);
  background: var(--stepper-active);
  color: #fff;
}

.merp-stepper__step.is-complete .merp-stepper__marker {
  border-color: var(--stepper-complete);
  background: var(--stepper-complete);
  color: #fff;
}

.merp-stepper__step.is-complete .merp-stepper__marker::before {
  content: "✓";
}

.merp-stepper__step.is-complete .merp-stepper__number {
  display: none;
}

@media (max-width: 480px) {
  .merp-stepper {
    --stepper-circle-size: 2.25rem;
  }
  .merp-stepper__label {
    font-size: .78rem;
  }
}

@media (forced-colors: active) {
  .merp-stepper__marker { forced-color-adjust: none; border: 2px solid ButtonText; }
  .merp-stepper__step.is-active .merp-stepper__marker,
  .merp-stepper__step.is-complete .merp-stepper__marker {
    background: Highlight;
    color: HighlightText;
  }
  .merp-stepper__step:not(:last-child)::after { background: ButtonText; }
}
