[stepper] > .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  border-bottom: none;
  max-width: 700px;
  margin: 0 auto;

  @include media-min("sm") {
    margin-bottom: 1rem;
  }

  .nav-item {
    flex: 1;

    &:last-child {
      .nav-link:after {
        display: none;
      }
    }

    .nav-link {
      position: relative;
      padding: 0;
      margin: 0;
      white-space: normal;

      // This is the line that connects the steps
      &:after {
        display: block;
        content: '';
        width: calc(100% - 46px);
        background-color: $gray-150;
        position: absolute;
        left: calc(50% + 24px);
        top: calc(1.5rem + 5px);
        height: 2px;
      }

      &.complete:after {
        background-color: $alert-green;
      }
    }
  }

  .nav-link, .nav-link:hover, .nav-link.active, .nav-link.active:hover, .nav-link.active:active, .nav-link.active:focus {
    text-align: center;
    border-bottom: none;
    font-family: $font-family-sans-serif;
    text-transform: none;
    font-size: 1rem;
    color: $gray-850;
  }
}

.stepper-step--number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid $gray-300;
  color: $gray-850;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: 5px;
}

// Step Number & Title States

// Base state
.nav-link {
  .stepper-step--number {
    background-color: white;
  }
}

// Active & Incomplete
.nav-link.active {
  .stepper-step--number {
    background-color: $link-color;
    color: white;
    border-color: $link-color;
  }
}


// Active & Complete
.nav-link.active .stepper-step--number.complete {
  border-color: $alert-green;
  background-color: $alert-green;
  color: white;
}

// Inactive & Complete
.nav-link:not(.active) {
  .stepper-step--number.complete {
    color: $alert-green;
    border-color: $alert-green;

    i { color: $alert-green;}
  }
}

step-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .stepper-step--number.complete {
    i {
      font-size: 1.2rem;
      color: $white;
      position: relative;
      top: 3px;
    }
  }
}

.stepper-step--title {
  display: none;
  @include media-min("sm") {
    display: block;
  }
}
