.stages-progress {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1000px;
  margin: 1rem auto;

  @media (max-width: 768px) {
    flex-direction: row-reverse;
    margin: 0;
    width: 100%;
    padding-block: 1rem;

    .steppers {
      padding-left: 0 !important;
      flex-direction: column;
      flex: 1;
      padding-top: 2rem;
    }

    .stages-label-wrapper {
      flex-direction: column;
      flex: 1;
      text-align: right;
      gap: 1rem;
    }

    .stages-label-wrapper .label .title {
      text-align: right;
      width: 100% !important;
    }

    .circle-wrapper:not(:last-child)::after {
      top: 2rem !important;
      left: calc(50% - 1px) !important;
      width: 2px !important;
      height: 100% !important;
    }
  }

  .steppers {
    display: flex;
    align-items: center;
    padding-left: 1rem;
  }

  .stages-label-wrapper {
    display: flex;
  }

  .circle-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
  }

  .circle-wrapper:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2rem;
    width: 100%;
    height: 2px;
    background-color: #d1d5db;
  }

  .circle-wrapper:not(:last-child).done::after {
    background-color: #663399;
  }

  .circle {
    width: 2rem;
    aspect-ratio: 1;
    background: transparent;
    border-radius: 100%;
    display: grid;
    place-content: center;
    border: 2px solid;
    border-color: #9ca3af;
  }

  .circle svg circle {
    fill: #d1d5db;
  }

  .circle.partial,
  .circle.done {
    border-color: #663399;
  }

  .circle.partial svg circle {
    fill: #663399;
  }

  .circle.done {
    background: #663399;
  }

  .stages-label-wrapper .label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .stages-label-wrapper .label strong {
    color: #663399;
  }

  .stages-label-wrapper .label .title {
    width: 15ch;
    color: gray;
    font-size: 0.875rem;
  }
}
