:root {
  --stepper-background-color: black;
  --stepper-accent-color: rgb(255, 220, 0);
  --step-width: 80px;
  --step-stroke-border-width: 3px;
  --step-circle-size-s: 50px;
  --step-circle-size-l: 80px;
  --step-column-gap: 40px;
}

.so-stepper-wrapper {
  margin: 0 40px;
  padding: 40px 0;
}

.so-stepper-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.so-stepper-header {
  text-align: center;
  margin-bottom: 100px;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 70px;
  line-height: 1.5;
  font-size: 18px;
}

.so-stepper-header .so-stepper-heading {
  margin-bottom: 30px;
}

.so-stepper-process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: var(--step-column-gap);
  margin: 0 auto;
}

.so-stepper-step {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  width: 33.333%;
}

.so-stepper-step-content {
  margin-right: calc(var(--step-column-gap) / 2);
}

.so-stepper-step:after {
  content: "";
  position: absolute;
  left: 0;
  top: calc((var(--step-circle-size-l) / 2) - 1px);
  width: 90%;
  height: var(--step-stroke-border-width);
  background-color: var(--stepper-accent-color);
}

.so-stepper-step:first-child:before {
  display: none;
}

.so-stepper-step-circle {
  width: var(--step-width);
  height: var(--step-width);
  border-radius: 50%;
  border: 1px solid var(--stepper-accent-color);
  background-color: var(--stepper-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  font-family: "Everett-Medium", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--stepper-accent-color);
  position: relative;
  z-index: 1;
}

/* Fix text alignment offset in FF */
@supports (-moz-appearance: none) {
  .so-stepper-step-circle {
    padding-top: 0.75em;
    padding-bottom: 0.65em; 
  }
}


.so-stepper-step-title {
  font-family: "Everett-Bold", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 20px 0;
  white-space: normal;
  hyphens: none;
  word-wrap: break-word;
}

.so-stepper-step-description {
  line-height: 1.5;
  margin: 0 auto;
}

.so-stepper-arrow-container {
  position: absolute;
  top: calc((var(--step-width) / 2) - 1px);
  right: -40px;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  background-color: var(--stepper-background-color);
  width: calc(var(--step-column-gap) * 2);
  height: 40px;
}

.so-stepper-arrow {
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--stepper-accent-color);
  border-right: 3px solid var(--stepper-accent-color);
  transform: rotate(45deg);
  margin-left: calc(50% - 10px);
  margin-top: 2px;
}

.so-stepper-step:last-child .so-stepper-arrow-container {
  display: none;
}

@media (max-width: 768px) {
  .so-stepper-wrapper {
    margin: 0;
  }
  
  .so-stepper-header {
    text-align: left;
    max-width: calc(100% - 28px);
    margin: 0 40px 40px 40px;
    margin-left: 40px;
  }
  
  .so-stepper-header .so-stepper-heading {
    margin-bottom: 20px;
  }
  
  .so-stepper-header p {
    font-size: 18px;
  }

  .so-stepper-process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--step-column-gap);
    margin: 0 auto;
    width: 80%;
  }

  .so-stepper-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: var(--step-column-gap);
  }

  .so-stepper-step-content {
    margin-right: 0;
  }

  .so-stepper-step:after {
    bottom: 0;
    height: 100%;
    left: 23px;
    margin-bottom: 0;
    margin-left: 0;
    top: auto;
    width: var(--step-stroke-border-width);
  }

  .so-stepper-step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
    width: var(--step-circle-size-s);
    height: var(--step-circle-size-s);
    font-size: 22px;
  }

  .so-stepper-step-content {
    text-align: left;
    padding: 0;
  }

  .so-stepper-step-title {
    margin: 0 0 10px 0;
    max-width: 100%;
  }

  .so-stepper-step-description {
    margin: 0;
    max-width: 100%;
  }

  .so-stepper-step-description p {
    font-size: 18px;
  }

  .so-stepper-arrow-container {
    bottom: -40px;
    height: 40px;
    left: 23px;
    right: auto;
    top: auto;
    transform: translateX(-50%) rotate(90deg);
    width: 40px;
  }

  .so-stepper-arrow {
    width: 10px;
    height: 10px;
    margin-top: -2px;
    margin-left: 12px;
  }
}
