.progress-steps {
  display: flex;
  position: relative;

  &.horizontal {
    flex-direction: row;
    &.center {
      align-items: center;
      justify-content: center;
      width: 100%;
    }
  }

  &.vertical {
    flex-direction: column;
  }

  .progress-bar-container {
    position: absolute;
    padding: 0px 25px;
    &.horizontal {
      height: 4px;
      width: 100%;
      top: 100px;
      left: 0;
      right: 0;
      transform: translateY(-50%);
    }

    &.vertical {
      height: 100%;
      width: 4px;
      transform: none;
    }

    .fill {
      height: 100%;
      background-color: #007bff;
      transition: width 0.3s ease, height 0.3s ease;

      &.horizontal {
        width: 100%;
      }

      &.vertical {
        height: 100%;
      }
    }
  }

  .steps-container {
    display: flex;
    z-index: 1;
    flex-direction: row;
    width: 100%;
    &.vertical {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .step {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: end;
    position: relative;
    // border-bottom: 2px solid transparent;

    &.xs {
      max-width: fit-content;
    }
    &.sm {
      min-width: fit-content;
    }
    &.md {
    }
    &.lg {
    }
    &.vertical {
      flex-direction: row;
    }

    &.active {
      .title,
      .text {
        color: #007bff;
      }
    }

    .icon-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;

      &.vertical {
        margin-right: 10px;
        margin-bottom: 0;
      }
    }

    .default-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background-color: #ddd;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #007bff;
      transition: background-color 0.3s ease;

      &.filled {
        background-color: #007bff;
        color: #fff;
      }
    }

    .text-container {
      text-align: center;
      position: absolute;
      top: 60px;
      transform: translateX(40%);
      display: flex;
      justify-content: center;
      flex-direction: column;
      width: max-content !important;
      &.vertical {
        text-align: left;
      }

      &__title {
        font-size: 16px;
        margin-bottom: 5px;
        transition: none;
        width: -webkit-fill-available;
      }

      &__text {
        transition: none;
        width: max-content;
      }
    }

    .no-icon {
      position: unset;
    }
  }
  .firstStep {
    align-items: baseline;
  }
  .lastStep {
    align-items: end;
  }

  .progress-bar {
    position: relative;
    left: 0;
    right: 0;
    background-color: #ddd;
    bottom: 70px;

    &.horizontal {
      width: 100%;
      height: 4px;
      transform: translateY(-50%);
    }

    &.vertical {
      width: 4px;
      height: 100%;
    }

    .fill {
      height: 100%;
      background-color: #007bff;
      transition: width 0.3s ease, height 0.3s ease;

      &.horizontal .fill {
        width: 100%;
      }

      &.vertical .fill {
        height: 100%;
      }
    }
  }
}

.mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px;

  &__progress-bar-container {
    display: none;
  }

  &__steps-container {
    position: relative;
    width: 100px;
    height: 100px;
  }

  &__step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    &.active {
      border-color: #007bff;

      .icon-container {
        background-color: #007bff;
      }
    }

    .icon-container {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  &__step-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 16px;
    gap: 16px;
    justify-content: center;
  }
  &__step-info-text-wrapper {
    display: flex;
    width: 187px;
    padding-top: 2px;
    align-items: flex-start;
    gap: 8px;
  }
  &__step-info-text1 {
    width: 64px;
    flex-shrink: 0;
    color: var(--Primary-600, #002b7a);

    /* Text sm/Regular */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
  }
  &__step-info-text2 {
    flex: 1 0 0;
    color: var(--Primary-700, #00256b);

    /* Text sm/Semibold */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
  }

  &__icon-container {
    width: 100%;
    height: 100%;
  }

  &__progress-ring-bg {
    stroke-width: 6px;
    stroke: var(--Gray-200, #eaecf0);
  }

  &__progress-ring {
    transition: stroke-dashoffset 0.3s ease;
  }

  &__step-text {
    font-size: 14px;
    fill: var(--Gray-700, #344054);
  }
}

// ========================================
// Media Queries
// ========================================
// Adjusting desktop screens
@media (min-width: 1024px) {
}
// Adjusting  for tablet screens (between small tablets and desktops)
@media (max-width: 1023px) {
}
// Adjusting for smaller screens (small tablets and mobile)
@media (max-width: 768px) {
}
// Adjusting  for smaller screens (mobile)
@media (max-width: 480px) {
}
