.next-step,
.next-step * {
  box-sizing: border-box;
}

aside.next-step {
  --next-step-offset: calc((100vw - 100%) / 2);
  --next-step-inset: 0px;
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  width: 70vw;
  max-width: none;
  margin: 64px 0 64px calc(-1 * var(--next-step-offset));
  padding: 52px 200px 52px max(24px, calc(var(--next-step-offset) + var(--next-step-inset)));
  border-radius: 0 20px 20px 0;
  background: var(--lavander--light-2, #dfddff);
  color: #181631;
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  text-align: left;
}

aside.next-step.next-step--flush {
  margin-bottom: 0;
}

aside.next-step.next-step--right {
  align-self: flex-end;
  justify-self: end;
  margin-right: calc(-1 * var(--next-step-offset));
  margin-left: 0;
  padding-left: 48px;
  border-radius: 20px 0 0 20px;
}

.next-step .next-step-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 300px) 1px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.next-step img.next-step-lines {
  position: absolute;
  z-index: 0;
  top: -18%;
  right: 0;
  width: auto;
  max-width: none;
  height: 140%;
  margin: 0;
  pointer-events: none;
}

.next-step img.next-step-lines-mobile {
  display: none;
}

.next-step p.next-step-title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #181631;
}

.next-step .next-step-rule {
  align-self: stretch;
  background: #181631;
}

.next-step .next-step-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 360px;
}

.next-step p.next-step-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #343446;
}

.next-step a.next-step-button {
  display: inline-block;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: #181631;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.next-step a.next-step-button:hover {
  background: #2d008c;
  color: #fff;
}

@media only screen and (max-width: 991px) {
  aside.next-step {
    width: 92vw;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 32px 24px 140px;
  }

  aside.next-step.next-step--flush {
    margin-bottom: 0;
  }

  aside.next-step.next-step--right {
    padding-left: 24px;
  }

  .next-step .next-step-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .next-step .next-step-rule {
    display: none;
  }

  .next-step img.next-step-lines {
    display: none;
  }

  .next-step img.next-step-lines-mobile {
    display: block;
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    pointer-events: none;
  }
}
