/* === Startup journey images next to each fieldset === */

/* Base: mobile-first — stack image above text */
.payment-flow-group .startup-journey {
  display: flex;
  flex-direction: column;
  align-items: center; /* was flex-start and image was therefore aligned on the top left */
  gap: 1rem;
}

.startup-journey-visual {
  align-self: center;
  flex-shrink: 0;
}

/* Ensure the SVGs behave nicely in all browsers, including Safari */
.startup-journey-visual img {
  height: 150px;     /* uniform vertical size */
  width: auto;       /* maintain aspect ratio */
  display: block;
}

/* Let text take full width on small screens */
.startup-journey-text {
  width: 100%;
}

/* Tablet / desktop: put image on the left, text on the right */
@media (min-width: 768px) {
  .payment-flow-group .startup-journey {
    flex-direction: row;
    align-items: center;
  }

  .startup-journey-visual {
    flex: 160px;   /* fixed visual column; adjust 140–200px as you like */
    max-width: 200px;
    flex-shrink: 0;   /* prevents collapsing */
  }

  .startup-journey-text {
    flex: 1 1 auto;
  }
}

/* Container for the image + soft oval background */
.startup-journey-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;     /* adjust if you want the oval larger/smaller */
  height: 190px;    /* taller than wide = nice oval */
  flex-shrink: 0;
}

/* The pastel teal oval behind the image */
.startup-journey-visual::before {
  content: "";
  position: absolute;
  inset: 0;                     /* fill the container */
  margin: 8px 4px 10px 6px;     /* creates that “offset” look */
  background: #c0cec9;          /* your pastel teal */
  border-radius: 50%;           /* makes it an oval */
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
  transform: rotate(-4deg);     /* tiny tilt like your original */
  z-index: 0;
}

/* Make sure the SVG sits on top of the oval */
.startup-journey-visual img {
  position: relative;
  z-index: 1;
  max-width: 70%;   /* so the image sits nicely inside the oval */
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .startup-journey-visual {
    width: 130px;
    height: 160px;
  }

  .startup-journey-visual img {
    max-width: 75%;
  }
}
