body.is-join-gateway .rwn-main {
  padding: 0;
  background: #6f456e;
}

body.is-join-gateway .rwn-main > .joomla-alert,
body.is-join-gateway .rwn-main > .alert {
  position: relative;
  z-index: 4;
  width: min(100% - 2rem, var(--rwn-container));
  margin: 1rem auto;
}

.rwn-join-gateway {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1448 / 1002;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  background: #6f456e;
}

.rwn-join-gateway__background,
.rwn-join-gateway__background img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.rwn-join-gateway__background {
  z-index: -1;
}

.rwn-join-gateway__background img {
  object-fit: fill;
}

.rwn-join-gateway__content,
.rwn-join-gateway__choices {
  position: absolute;
  inset: 0;
}

.rwn-join-gateway__heading {
  position: absolute;
  z-index: 2;
  top: 2.2%;
  left: 50%;
  width: min(72%, 860px);
  color: #300b32;
  text-align: center;
  transform: translateX(-50%);
}

.rwn-join-gateway__heading h1 {
  margin: 0;
  color: #300b32 !important;
  font-family: var(--rwn-serif);
  font-size: clamp(2rem, 3.87vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.rwn-join-gateway__flourish {
  display: grid;
  grid-template-columns: minmax(4rem, 1fr) 2.25rem minmax(4rem, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: min(42%, 355px);
  margin: clamp(0.35rem, 0.75vw, 0.7rem) auto 0;
  color: #9a4492;
}

.rwn-join-gateway__flourish span {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef765c 0%, #a8449c 48%, #6152b1 100%);
}

.rwn-join-gateway__flourish span:last-child {
  background: linear-gradient(90deg, #7299bd 0%, #ae4a97 50%, #ef765c 100%);
}

.rwn-join-gateway__flourish svg {
  display: block;
  width: 2.25rem;
  height: auto;
}

.rwn-join-gateway__heading p {
  margin: clamp(0.2rem, 0.45vw, 0.45rem) 0 0;
  color: #300b32 !important;
  font-size: clamp(1rem, 1.52vw, 1.38rem);
  font-weight: 550;
  line-height: 1.2;
}

.rwn-join-gateway__choice {
  position: absolute;
  z-index: 2;
  padding: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(39, 11, 39, 0.48);
}

.rwn-join-gateway__choice--couples {
  top: 32.2%;
  left: 3.45%;
  width: 31%;
}

.rwn-join-gateway__choice--business {
  top: 45.2%;
  right: 3.2%;
  left: auto;
  width: 28.5%;
}

.rwn-join-gateway__choice h2 {
  margin: 0;
  color: #fff !important;
  font-family: var(--rwn-serif);
  font-size: clamp(2rem, 3.84vw, 3.48rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.03em;
}

.rwn-join-gateway__choice h2 span {
  display: block;
  white-space: nowrap;
}

.rwn-join-gateway__choice p {
  margin: clamp(0.65rem, 1.2vw, 1.1rem) 0 clamp(0.85rem, 1.65vw, 1.5rem);
  color: #fff !important;
  font-size: clamp(0.9rem, 1.46vw, 1.32rem);
  font-weight: 400;
  line-height: 1.35;
}

.rwn-join-gateway__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 1.65vw, 1.5rem);
  box-sizing: border-box;
  width: min(19.3vw, 280px);
  height: min(4.75vw, 69px);
  min-height: 52px;
  padding: 0 1.5rem;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(100deg, #8b2a80 0%, #70206e 100%) !important;
  font-size: clamp(1rem, 1.32vw, 1.2rem);
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  text-shadow: none;
  box-shadow: 0 10px 25px rgba(42, 12, 43, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.rwn-join-gateway__choice--business .rwn-join-gateway__button {
  width: min(20.5vw, 298px);
}

.rwn-join-gateway__button,
.rwn-join-gateway__button span,
.rwn-join-gateway__button svg {
  color: #fff !important;
}

.rwn-join-gateway__button:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(42, 12, 43, 0.3);
}

.rwn-join-gateway__button:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.rwn-join-gateway__arrow {
  flex: 0 0 auto;
  width: clamp(1.45rem, 2vw, 1.8rem);
  height: auto;
  transition: transform 180ms ease;
}

.rwn-join-gateway__button:hover .rwn-join-gateway__arrow {
  transform: translateX(0.25rem);
}

/* Let the Join Now photograph flow beneath the footer bubbles before fading
   into the solid footer. These overrides are route-scoped by the body class. */
body.is-join-gateway .rwn-footer {
  margin-top: -7rem;
  background: linear-gradient(
    to bottom,
    rgba(146, 81, 157, 0) 0,
    rgba(146, 81, 157, 0.05) 3.25rem,
    rgba(146, 81, 157, 0.48) 6.35rem,
    #92519d 8.4rem,
    #92519d 100%
  );
}

body.is-join-gateway .rwn-footer__wave {
  background: transparent;
}

body.is-join-gateway .rwn-footer__wave::before {
  opacity: 0.78;
  filter: brightness(1.22) contrast(1.08) saturate(0.92)
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.56));
}

body.is-join-gateway .rwn-footer__wave::after {
  opacity: 0.96;
}

@media (max-width: 760px) {
  .rwn-join-gateway {
    aspect-ratio: auto;
    min-height: 980px;
  }

  .rwn-join-gateway__background img {
    object-fit: cover;
    object-position: 51% center;
  }

  .rwn-join-gateway__heading {
    top: 1.25rem;
    width: calc(100% - 2rem);
  }

  .rwn-join-gateway__heading h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .rwn-join-gateway__flourish {
    width: min(72%, 20rem);
  }

  .rwn-join-gateway__heading p {
    font-size: 1rem;
  }

  .rwn-join-gateway__choices {
    display: grid;
    align-content: end;
    gap: 1.5rem;
    padding: 12rem 1rem 2rem;
  }

  .rwn-join-gateway__choice,
  .rwn-join-gateway__choice--couples,
  .rwn-join-gateway__choice--business {
    position: static;
    width: min(100%, 31rem);
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 1.25rem;
    background: rgba(76, 27, 73, 0.68);
    backdrop-filter: blur(4px);
  }

  .rwn-join-gateway__choice--business {
    justify-self: end;
  }

  .rwn-join-gateway__choice h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
  }

  .rwn-join-gateway__choice h2 span {
    white-space: normal;
  }

  .rwn-join-gateway__desktop-break {
    display: none;
  }

  .rwn-join-gateway__choice p {
    margin: 0.7rem 0 1rem;
    font-size: 1rem;
  }

  .rwn-join-gateway__button,
  .rwn-join-gateway__choice--business .rwn-join-gateway__button {
    width: min(100%, 18.5rem);
    height: 3.75rem;
    min-height: 3.75rem;
    font-size: 1.05rem;
  }

  body.is-join-gateway .rwn-footer {
    margin-top: -5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rwn-join-gateway__button,
  .rwn-join-gateway__arrow {
    transition: none;
  }
}
