
form .transition-container {
  position: relative;
  /*height: 150px; !* Prevents layout jump *!*/
}

form .transition-box {
  /*position: absolute;*/
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none; /* Prevents clicking hidden div */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

form .js-enabled {
  position: absolute;
}

form .transition-box.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

form .transition-box > nav {
  padding-top: 20px;
  display: flex;
  gap: 20px;
  flex-direction: row-reverse
}

form .back-button {
    width: 70px;
    /*background-color: transparent;*/
    /*position: absolute;*/
    /*top: 20px;*/
    /*left: 20px;*/
    border-radius: 8px;
}

form .back-button {
  width: auto;
  max-width: 20%;
  /*width: 300px;  !* Or percentages like 50% *!*/
  /*height: 200px;*/
  display: grid;
  justify-content: center;
  align-items: center;
  background-color: #1c1c1c;
  /*height: 100px;*/
}

form .back-button:hover {
  background-color: #2b2b2b;
}

form .back-button svg {
  width: 100%;
  height: 100%;
  /*background-color: red;*/
  display: block; /* Overrides default inline behavior to prevent ghost spacing */
}

form .back-button svg.icon > path {
    fill: #afafaf;
    width: 100%;
    height: 100%;
}
form .back-button:hover svg.icon path {
    fill: #4a4a4a;
}
