.ampelem-steps {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  font-family: inherit;
}

/* Shared */
.ampelem-step {
  position: relative;
  display: flex;
  gap: 18px;
}

.ampelem-step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  font-size: 18px;
}

.ampelem-step__content {
  min-width: 0;
}

.ampelem-step__title {
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 8px 0;
}

.ampelem-step__text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  max-width: 560px;
}

.ampelem-step__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ampelem-step__btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.ampelem-step__btn.is-filled {
  background: #0b6b4f;
  color: #fff;
}

.ampelem-step__btn.is-outline {
  background: transparent;
  border-color: #0b6b4f;
  color: #0b6b4f;
}

/* VERTICAL LAYOUT */
.ampelem-steps.ampelem-layout-vertical {
  flex-direction: column;
  row-gap: 24px;
  padding-left: 26px; /* space for line */
}

.ampelem-steps.ampelem-layout-vertical:before {
  content: "";
  position: absolute;
  left: 21px;                /* aligns behind the circles */
  top: 6px;
  bottom: 6px;
  width: 6px;
  background: #111;
  border-radius: 999px;
}

.ampelem-steps.ampelem-layout-vertical .ampelem-step {
  align-items: flex-start;
}

.ampelem-steps.ampelem-layout-vertical .ampelem-step__num {
  margin-left: -26px;       /* pulls circle onto the line */
  z-index: 1;
}

/* HORIZONTAL LAYOUT */
.ampelem-steps.ampelem-layout-horizontal {
  flex-direction: row;
  column-gap: 24px;
  align-items: flex-start;
  padding-top: 26px;        /* space for line */
}

.ampelem-steps.ampelem-layout-horizontal:before {
  content: "";
  position: absolute;
  left: 21px;
  right: 6px;
  top: 6px;                 /* line sits behind circles */
  height: 6px;
  background: #111;
  border-radius: 999px;
}

.ampelem-steps.ampelem-layout-horizontal .ampelem-step {
  flex: 1 1 0;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding-top: 0;
}

.ampelem-steps.ampelem-layout-horizontal .ampelem-step__num {
  z-index: 1;
}

/* Simple responsive behavior */
@media (max-width: 767px) {
  .ampelem-steps.ampelem-layout-horizontal {
    flex-direction: column;
    padding-top: 0;
    padding-left: 26px;
    row-gap: 24px;
  }
  .ampelem-steps.ampelem-layout-horizontal:before {
    left: 6px;
    top: 6px;
    bottom: 6px;
    right: auto;
    width: 6px;
    height: auto;
  }
  .ampelem-steps.ampelem-layout-horizontal .ampelem-step {
    flex-direction: row;
    gap: 18px;
  }
  .ampelem-steps.ampelem-layout-horizontal .ampelem-step__num {
    margin-left: -26px;
  }
}
