.lea-stepper-horizontal {
  overflow: hidden;
  .stepper-header {
    width: 100%;
    margin-top: 2rem;
    .steps-header-horizontal {
      display: flex;
      box-sizing: border-box;
      .step-container {
        flex: 1;
        display: flex;
        align-items: center;
        position: relative;
        .step-line {
          flex: 1;
          border-bottom: 1px solid $light-grey;
          .step-active-line {
            width: 0;
            transition: width $short-transition;
          }
        }
        .step-circle {
          width: 0.95rem;
          height: 1rem;
          position: absolute;
          border-radius: 4rem;
          background-color: $light-grey;
          transition: $short-transition;
        }
        &:last-of-type {
          flex: 0;
          .step-line {
            display: none;
          }
        }
        &.step-active {
          .step-line {
            .step-active-line {
              display: block;
              border-bottom: 3px solid $accent;
              position: absolute;
              top: -1px;
              width: 40%;
              transition: width $short-transition;
              transition-delay: 0.2s;
            }
          }
          .step-circle {
            box-sizing: border-box;
            background-color: $accent;
            width: 1.25rem;
            height: 1.3rem;
            transition: $short-transition;
            transition-delay: 0.2s;
          }
        }
        &.step-completed {
          .step-line {
            // border-left: 3px solid $accent;
            .step-active-line {
              border-bottom: 3px solid $accent;
              position: absolute;
              top: -1px;
              width: 100%;
              transition: width $short-transition;
            }
          }
          .step-circle {
            box-sizing: border-box;
            background-color: $accent;
            width: 1.25rem;
            height: 1.3rem;
            transition: $short-transition;
          }
        }
      }
    }
    .steps-title {
      display: flex;
      padding: 0 0 0 0.5rem;
      width: calc(100% + 1rem);
      margin-top: 1rem;
      .step-title {
        flex: 1;
        &:last-of-type {
          padding-right: 1rem;
          box-sizing: border-box;
        }
        h2 {
          font-size: 0.8rem;
          color: $dark-grey;
          font-weight: 300;
          color: $light-grey;
          font-size: 0.8rem;
          text-align: center;
          padding: 0;
        }
        &.step-active {
          h2 {
            color: $accent;
            font-weight: bold;
          }
        }
        &.step-completed {
          h2 {
            color: $accent;
          }
        }
      }
    }
    .steps-header-vertical {
      display: none;
    }
  }
  .step-content-container {
    flex: 1;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 300%;
    margin-left: -100%;
    position: relative;
    overflow: hidden;
    .step-content {
      // display: none;
      overflow: hidden;
      opacity: 0;
      transition: $transition;
      transition-delay: 0.1s;
      margin-left: 116.666%;
      position: absolute;
      float: left;
      &.step-content-active {
        // display: inline;
        opacity: 1;
        margin-left: 33.333%;
        width: 33.33333%;
        transition: $transition;
        position: relative;
      }
      &.step-content-completed {
        margin-left: 0%;
        position: absolute;
        transition: $transition;
        overflow: hidden;
      }
    }
    .step-custom-container {
      position: relative;
      float: left;
      width: 100%;
      padding: 0 0 2rem;
    }
  }
  .stepper-buttons-container {
    width: 33% !important;
    margin: 0 auto;
    clear: both;
  }
}

.lea-stepper-vertical {
  display: flex;
  overflow: hidden;
  .stepper-header {
    width: 1.5rem;
    margin-top: 0;
    .steps-header-horizontal {
      display: none;
    }
    .steps-header-vertical {
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      padding: 0.6rem 0;
      .step-container {
        flex: 1;
        flex-direction: column;
        display: flex;
        position: relative;
        .step-line {
          flex: 1;
          border-left: 1px solid $light-grey;
          margin: 0 auto;
          .step-active-line {
            height: 0;
            transition: height $short-transition;
          }
        }
        .step-circle {
          width: 0.95rem;
          height: 1rem;
          margin: 0 auto;
          border-radius: 4rem;
          background-color: $light-grey;
          transition: $short-transition;
        }
        &:last-of-type {
          flex: 0;
          .step-line {
            display: none;
          }
        }
        &.step-active {
          .step-line {
            .step-active-line {
              display: block;
              border-left: 3px solid $accent;
              position: absolute;
              left: 11px;
              // height: 3rem;
              height: 50%;

              transition: height $short-transition;
              transition-delay: 0.2s;
            }
          }
          .step-circle {
            box-sizing: border-box;
            background-color: $accent;
            width: 1.25rem;
            height: 1.3rem;
            transition: $short-transition;
            transition-delay: 0.2s;
          }
        }
        &.step-completed {
          .step-line {
            // border-left: 3px solid $accent;
            .step-active-line {
              border-left: 3px solid $accent;
              position: absolute;
              left: 11px;
              // height: 5rem;
              height: 95%;

              transition: height $short-transition;
            }
          }
          .step-circle {
            box-sizing: border-box;
            background-color: $accent;
            width: 1.25rem;
            height: 1.3rem;
            transition: $short-transition;
          }
        }
      }
    }
  }
  .step-content-container {
    flex: 1;
    padding-left: 2rem;
    box-sizing: border-box;
    .step-content {
      // display: none;
      overflow: hidden;
      // height: auto;
      height: 0;

      opacity: 0;
      transition: $short-transition;
      transition-delay: 0.1s;
      h3 {
        margin-top: 5rem;
        transition: $short-transition;
      }
      &.step-content-active {
        // display: inline;
        opacity: 1;
        height: auto;
        transition: $transition;

        h3 {
          margin-top: 1rem;
          opacity: 1;
          transition: $transition;
        }
      }
      &.step-content-completed {
        height: 0;
        opacity: 0;
        transition: $transition;
        h3 {
          margin-top: -5rem;
          transition: $transition;
        }
      }
    }
    .step-custom-container {
      position: relative;
      float: left;
      width: 100%;
      padding: 0 0 2rem;
    }
  }
  .step-title {
    display: none;
  }
  .step-vertical-title {
    h3 {
      font-size: 0.8rem;
      font-weight: normal;
    }
    h2 {
      font-size: 1.4rem;
    }
  }
  .stepper-buttons-container {
    width: 100% !important;
  }
}

