/* =========================================================
   EXIT GUIDE — STAGE 1
   Front-end only. Email delivery is connected in Stage 2.
   Visual language mirrors the offer CTA surface.
   ========================================================= */

.rr-exit-guide,
.rr-exit-guide * {
  box-sizing: border-box;
}

.rr-exit-guide {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(18, 19, 17, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.rr-exit-guide.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rr-exit-guide__card {
  position: relative;
  width: min(100%, 650px);
  padding: 46px 48px 40px;
  overflow: hidden;

  border: 1px solid rgba(255, 250, 242, 0.10);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(209, 125, 89, 0.055),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #343632 0%,
      #292c29 100%
    );

  color: #fffaf2;

  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 10px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transform: translateY(10px) scale(0.99);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);

  outline: none;
}

.rr-exit-guide.is-open .rr-exit-guide__card {
  transform: translateY(0) scale(1);
}

.rr-exit-guide__close {
  position: absolute;
  top: 17px;
  right: 17px;

  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 1px solid rgba(255, 250, 242, 0.08);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 250, 242, 0.72);

  font: inherit;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.rr-exit-guide__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf2;
}

.rr-exit-guide__kicker {
  margin: 0;

  color: #e9e3d8;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.rr-exit-guide__rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 17px 0 30px;
  background: rgba(215, 123, 83, 0.72);
}

.rr-exit-guide__title {
  max-width: 560px;
  margin: 0;

  color: #fffaf2;

  font-family:
    "Cormorant Garamond",
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(40px, 4.3vw, 50px);
  line-height: 0.99;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.rr-exit-guide__copy {
  max-width: 540px;
  margin: 22px 0 0;

  color: #d8d3c9;

  font-family:
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 17px;
  line-height: 1.52;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.rr-exit-guide__form {
  margin-top: 30px;
}

.rr-exit-guide__form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.rr-exit-guide__email {
  width: 100%;
  min-width: 0;
  min-height: 56px;

  padding: 0 20px;

  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;

  background: #fffaf2;
  color: #292c29;

  font-family:
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1;
  font-weight: 400;

  outline: none;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 6px 18px rgba(0, 0, 0, 0.08);
}

.rr-exit-guide__email::placeholder {
  color: rgba(41, 44, 41, 0.58);
}

.rr-exit-guide__email:focus {
  border-color: rgba(215, 123, 83, 0.82);
  box-shadow:
    0 0 0 3px rgba(215, 123, 83, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.rr-exit-guide__submit {
  min-height: 56px;
  padding: 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  border: 0;
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #d77b53,
      #ca6943
    );

  color: #fffaf5;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;

  cursor: pointer;

  box-shadow:
    0 10px 24px rgba(135, 72, 43, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.rr-exit-guide__submit:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}

.rr-exit-guide__arrow {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

.rr-exit-guide__status {
  min-height: 0;
  margin: 0;

  color: #e9e3d8;

  font-family:
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 13px;
  line-height: 1.4;
}

.rr-exit-guide__status.is-visible {
  min-height: 18px;
  margin-top: 12px;
}

.rr-exit-guide__leave {
  display: block;
  margin: 18px auto 0;
  padding: 4px 0;

  border: 0;
  background: transparent;

  color: rgba(233, 227, 216, 0.66);

  font-family:
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;

  cursor: pointer;
}

.rr-exit-guide__leave:hover {
  color: #fffaf2;
}

.rr-exit-guide__close:focus-visible,
.rr-exit-guide__submit:focus-visible,
.rr-exit-guide__leave:focus-visible {
  outline: 2px solid rgba(215, 123, 83, 0.95);
  outline-offset: 3px;
}

body.rr-exit-guide-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .rr-exit-guide {
    align-items: center;
    padding: 16px;
  }

  .rr-exit-guide__card {
    width: 100%;
    padding: 38px 24px 30px;
    border-radius: 24px;
  }

  .rr-exit-guide__close {
    top: 13px;
    right: 13px;
    width: 36px;
    height: 36px;
  }

  .rr-exit-guide__kicker {
    padding-right: 38px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .rr-exit-guide__rule {
    width: 42px;
    margin: 15px 0 25px;
  }

  .rr-exit-guide__title {
    max-width: 420px;
    font-size: clamp(33px, 9.2vw, 40px);
    line-height: 1.0;
    letter-spacing: -0.038em;
  }

  .rr-exit-guide__copy {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.5;
  }

  .rr-exit-guide__form {
    margin-top: 25px;
  }

  .rr-exit-guide__form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rr-exit-guide__email,
  .rr-exit-guide__submit {
    min-height: 54px;
  }

  .rr-exit-guide__submit {
    width: 100%;
  }

  .rr-exit-guide__leave {
    margin-top: 16px;
  }
}

@media (max-width: 390px) {
  .rr-exit-guide {
    padding: 12px;
  }

  .rr-exit-guide__card {
    padding: 36px 21px 27px;
    border-radius: 22px;
  }

  .rr-exit-guide__title {
    font-size: clamp(31px, 9vw, 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-exit-guide,
  .rr-exit-guide__card,
  .rr-exit-guide__submit {
    transition: none;
  }
}


/* Accessible label helper used by the popup form. */
.rr-exit-guide .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
