.ui-stepper .step-bar {
  display: flex;
  align-items: flex-end;
}
.ui-stepper .step-bar .step-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ui-stepper .step-bar .step-head .step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ddd;
  border-radius: 9999px;
  color: #999;
  font-weight: bold;
}
.ui-stepper .step-bar .step-head.complete .step-number, .ui-stepper .step-bar .step-head.in-progress .step-number {
  background: var(--main_color);
  color: var(--font_negative_light);
}
.ui-stepper .step-bar .step-head .step-title {
  margin-top: 8px;
}
.ui-stepper .step-bar .step-head:not(:last-child):after {
  content: "";
  position: relative;
  height: 3px;
  background: #ccc;
  order: -1;
  z-index: 1;
  display: block;
  border-radius: 9999px;
  left: 50%;
}
.ui-stepper .step-bar .step-head:not(:last-child).complete:after {
  background: var(--main_color);
}
.ui-stepper .step-bar .step-head:first-child {
  justify-content: flex-start;
}
.ui-stepper .step-bar .step-head:last-child {
  justify-content: flex-end;
}
.ui-stepper .step-contents .step-description {
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding: 8px;
}
.ui-stepper .step-contents .step-buttons {
  display: flex;
}
.ui-stepper .step-contents .step-buttons button {
  padding: 4px 32px;
  font-size: 1em;
  background: var(--main_color);
  color: var(--font_negative_light);
  border-radius: 4px;
  cursor: pointer;
}
.ui-stepper .step-contents .step-buttons button:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .step-head {
    position: relative;
  }
  .step-head .step-number {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }
  .step-head:not(.in-progress) .step-title {
    display: none;
  }
  .step-head .step-title {
    position: absolute;
    white-space: nowrap;
    top: 35px;
    font-size: 12px;
  }
  .step-head:not(:last-child):after {
    top: 17.5px;
    width: calc(100% - 43px);
  }
  .step-head:not(:last-child).complete:after {
    background: var(--main_color);
  }
  .step-contents {
    margin-top: 64px;
  }
  .step-contents .step-description {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .step-contents .step-buttons {
    -moz-column-gap: 16px;
         column-gap: 16px;
    margin-top: 32px;
  }
  .step-contents .step-buttons button {
    font-size: 12px;
  }
}
@media (min-width: 768px) {
  .step-head .step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .step-head .step-title {
    font-size: 16px;
  }
  .step-head:not(:last-child):after {
    top: 25px;
    width: calc(100% - 58px);
  }
  .step-head:not(:last-child).complete:after {
    background: var(--main_color);
  }
  .step-contents {
    margin-top: 64px;
  }
  .step-contents .step-description {
    font-size: 22px;
    margin-bottom: 32px;
  }
  .step-contents .step-buttons {
    -moz-column-gap: 32px;
         column-gap: 32px;
    margin-top: 32px;
  }
  .step-contents .step-buttons button {
    font-size: 14px;
  }
}