//
// Form Wizard
//

.form-wizard-wrapper {
  label {
    font-size: 14px;
    text-align: right;
  }
}

.wizard {
  // step
  .stepper-header {
    > ol {
      display: flex;
      flex-wrap: wrap;
      padding-left: 0;
      margin-bottom: 0;
      list-style: none;

      @media (max-width: 1199.98px) {
        flex-direction: column;
      }

      > a,
      > li {
        flex-basis: 0;
        flex-grow: 1;
      }

      > li {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 0.5rem 1rem;
        color: var(--#{$prefix}gray-600);
        font-weight: $font-weight-semibold;
        background-color: rgba($primary, 0.1);
      }

      .current-info {
        position: absolute;
        left: -999em;
      }

      li {
        &.active {
          background-color: rgba($primary, 0.2);
          color: var(--#{$prefix}gray-600);

          .number {
            background-color: $primary;
            color: $white;
          }
        }
      }
    }

    .number {
      display: inline-block;
      width: 38px;
      height: 38px;
      line-height: 34px;
      border: 2px solid $primary;
      color: $primary;
      text-align: center;
      border-radius: 50%;
      margin-right: 0.5rem;
    }
  }

  // content
  > .content {
    background-color: transparent;
    padding: 14px;
    margin-top: 0;
    border-radius: 0;
    min-height: 150px;

    > .title {
      position: absolute;
      left: -999em;
    }

    > .body {
      width: 100%;
      height: 100%;
      padding: 14px 0 0;
      position: static;
    }
  }

  // actions

  > .actions {
    position: relative;
    display: block;
    text-align: right;
    width: 100%;

    > ul {
      display: block;
      text-align: right;
      padding-left: 0;

      > li {
        display: inline-block;
        margin: 0 0.5em;
      }
    }

    a,
    a:active,
    a:hover {
      background-color: $primary;
      border-radius: 4px;
      padding: 8px 15px;
      color: $white;
    }

    .disabled {
      a,
      a:active,
      a:hover {
        opacity: 0.65;
        background-color: $primary;
        color: $white;
        cursor: not-allowed;
      }
    }
  }

  .content {
    margin-top: 0;
    padding: 0;
  }

  .stepper-body {
    margin-bottom: 0 !important;
  }
}

// verticl wixard
.vertical-wizard {
  .stepper {
    display: flex;

    .stepper-header {
      flex-shrink: 0;

      .steps {
        flex-direction: column;
        padding: 0;

        .step {
          min-width: 390px;
          display: block;
          padding: 0.5rem 1rem;
          color: var(--#{$prefix}gray-600);
          font-weight: $font-weight-semibold;
          background-color: rgba($primary, 0.1);
          text-align: start !important;

          .number {
            display: inline-block;
            width: 38px;
            height: 38px;
            line-height: 34px;
            border: 2px solid $primary;
            color: $primary;
            text-align: center;
            border-radius: 50%;
            margin-right: 0.5rem;
          }

          &.active {
            background-color: rgba($primary, 0.2);
            color: var(--#{$prefix}gray-600);

            .number {
              background-color: $primary;
              color: #fff;
            }
          }
        }
      }
    }

    .stepper-body {
      width: 100%;
      flex-grow: 1;
      margin: 0;
    }
  }

  // step
  .steps {
    > ul {
      flex-direction: column;

      > li {
        width: 100% !important;
      }
    }
  }

  .steps,
  .content,
  .actions {
    width: 100%;
    margin-top: 0;
    padding: 0;
  }

  .steps {
    @media (min-width: 1200px) {
      width: 25%;
    }
  }
}
