body.bot-quiz-page {
  background: #0b0b0d;
}

.bot-quiz {
  min-height: 68vh;
  padding: 120px 24px 90px;
  color: #f6f7f7;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(29, 145, 94, 0.22), transparent 48%),
    #0b0b0d;
  font-family: "Archivo", "Instrument Sans", sans-serif;
}

.bot-quiz *,
.bot-quiz *::before,
.bot-quiz *::after {
  box-sizing: border-box;
}

.bot-quiz__shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.bot-quiz__eyebrow {
  margin: 0 0 12px;
  color: #75e8ad;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.bot-quiz__page-title {
  margin: 0 0 34px;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-align: center;
}

.bot-quiz__panel {
  min-height: 480px;
  padding: 34px;
  border: 1px solid rgba(117, 232, 173, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(29, 39, 34, 0.96), rgba(22, 23, 26, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.bot-quiz__topline {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  margin-bottom: 32px;
}

.bot-quiz__back {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e7e9e8;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.bot-quiz__back:hover,
.bot-quiz__back:focus-visible {
  border-color: #75e8ad;
  color: #75e8ad;
}

.bot-quiz__back[hidden] {
  display: none;
}

.bot-quiz__progress-wrap {
  flex: 1;
  min-width: 0;
}

.bot-quiz__progress-label {
  display: block;
  margin-bottom: 8px;
  color: #b9c2bd;
  font-size: 12px;
}

.bot-quiz__progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bot-quiz__progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54d99a, #a1f2c8);
  transition: width 240ms ease;
}

.bot-quiz__welcome,
.bot-quiz__email,
.bot-quiz__result {
  max-width: 590px;
  margin: 0 auto;
  padding: 16px 0 24px;
  text-align: center;
}

.bot-quiz__welcome h2,
.bot-quiz__question-title,
.bot-quiz__email h2,
.bot-quiz__result h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.bot-quiz__welcome p,
.bot-quiz__email > p,
.bot-quiz__result p {
  color: #c5ccc8;
  font-size: 16px;
  line-height: 1.65;
}

.bot-quiz__action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #07120b;
  background: #75e8ad;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.bot-quiz__action:hover {
  transform: translateY(-1px);
  background: #93f4bf;
}

.bot-quiz__action:focus-visible,
.bot-quiz__back:focus-visible,
.bot-quiz__answer:focus-within,
.bot-quiz__email-input:focus-visible {
  outline: 3px solid #a1f2c8;
  outline-offset: 3px;
}

.bot-quiz__question-title {
  margin: 4px 0 24px;
  text-align: left;
}

.bot-quiz__answers {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.bot-quiz__answer {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #f1f3f2;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.bot-quiz__answer:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 232, 173, 0.7);
  background: rgba(117, 232, 173, 0.08);
}

.bot-quiz__answer input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #75e8ad;
}

.bot-quiz__answer input:checked + span {
  color: #a1f2c8;
}

.bot-quiz__answer span {
  color: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.bot-quiz__email-form {
  margin-top: 26px;
  text-align: left;
}

.bot-quiz__email-label {
  display: block;
  margin-bottom: 8px;
  color: #edf2ef;
  font-size: 14px;
  font-weight: 600;
}

.bot-quiz__email-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: #101214;
  font: inherit;
  font-size: 16px;
}

.bot-quiz__privacy-note {
  margin: 14px 0 0 !important;
  color: #aab4ae !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  text-align: left;
}

.bot-quiz__privacy-note a {
  color: #a1f2c8;
  text-decoration: underline;
}

.bot-quiz__error {
  margin: 14px 0 0;
  color: #ff9b9b;
  font-size: 14px;
  text-align: left;
}

.bot-quiz__error[hidden] {
  display: none;
}

.bot-quiz__result-title {
  margin: 0 0 16px !important;
  font-size: clamp(27px, 4.5vw, 40px) !important;
  line-height: 1.2 !important;
}

.bot-quiz__result-name {
  color: #75e8ad;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.bot-quiz__result[data-quiz-result="optionbots"] .bot-quiz__result-name {
  padding: 0.02em 0.16em;
  border-radius: 0.16em;
  color: #ffc66d;
  background: rgba(255, 198, 109, 0.12);
  text-decoration-color: #ffc66d;
}

.bot-quiz__result-subtitle {
  max-width: 420px;
  margin: 0 auto !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
}

.bot-quiz__result .bot-quiz__result-cta {
  width: min(100%, 480px);
  min-height: 70px;
  margin-top: 26px;
  padding: 0 30px;
  border-radius: 12px;
  font-size: 19px;
}

.bot-quiz__restart {
  display: block;
  margin: 20px auto 0;
  padding: 8px;
  border: 0;
  color: #a1f2c8;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.bot-quiz__disclaimer {
  max-width: 700px;
  margin: 22px auto 0;
  color: #969e99;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.bot-quiz__disclaimer strong {
  color: #c5ccc8;
}

.bot-quiz__panel[aria-busy="true"] {
  cursor: progress;
}

@media (max-width: 767px) {
  .bot-quiz {
    min-height: 60vh;
    padding: 104px 16px 60px;
  }

  .bot-quiz__page-title {
    margin-bottom: 24px;
  }

  .bot-quiz__panel {
    min-height: 430px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .bot-quiz__topline {
    gap: 10px;
    margin-bottom: 24px;
  }

  .bot-quiz__back {
    padding: 8px 11px;
    font-size: 13px;
  }

  .bot-quiz__answer {
    min-height: 60px;
    padding: 13px 12px;
  }

  .bot-quiz__answer span {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-quiz *,
  .bot-quiz *::before,
  .bot-quiz *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage hero entry point */
.tbe-home-quiz {
  display: flex;
  width: 100%;
  max-width: 560px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(117, 232, 173, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 38, 31, 0.98), rgba(18, 22, 20, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  color: #f6f7f7;
  text-align: left;
}

.tbe-home-quiz__copy {
  min-width: 0;
}

.tbe-home-quiz__eyebrow {
  margin: 0 0 4px;
  color: #75e8ad;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tbe-home-quiz__text {
  margin: 0;
  color: #d1d8d4;
  font-size: 14px;
  line-height: 1.45;
}

.tbe-home-quiz__button {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: #75e8ad;
  color: #07120b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.tbe-home-quiz__button:hover {
  transform: translateY(-1px);
  background: #93f4bf;
}

.tbe-home-quiz__button:focus-visible {
  outline: 3px solid #a1f2c8;
  outline-offset: 3px;
}

/* Shared quiz modal */
body.tbe-quiz-open {
  overflow: hidden;
}

/* Keep an undecided cookie banner behind the active quiz, then restore it
   naturally when the visitor closes the quiz. */
body.tbe-quiz-open .tbe-cc-banner,
body.tbe-quiz-open .tbe-cc-modal {
  z-index: 11000 !important;
}

.tbe-quiz-modal {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.tbe-quiz-modal[hidden] {
  display: none !important;
}

.tbe-quiz-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.tbe-quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 9, 7, 0.82);
  backdrop-filter: blur(7px);
  cursor: default;
}

.tbe-quiz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(90dvh, 880px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 30px 32px 24px;
  border: 1px solid rgba(117, 232, 173, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(29, 145, 94, 0.18), transparent 48%),
    #101214;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58);
  color: #f6f7f7;
  transform: translateY(14px) scale(0.99);
  transition: transform 180ms ease;
}

.tbe-quiz-modal.is-open .tbe-quiz-modal__dialog {
  transform: translateY(0) scale(1);
}

.tbe-quiz-modal.has-quiz-result .bot-quiz__eyebrow,
.tbe-quiz-modal.has-quiz-result .bot-quiz__page-title {
  display: none;
}

.tbe-quiz-modal.has-quiz-result .bot-quiz__panel {
  min-height: 250px;
}

.tbe-quiz-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #f6f7f7;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tbe-quiz-modal__close:hover,
.tbe-quiz-modal__close:focus-visible {
  border-color: #75e8ad;
  color: #a1f2c8;
}

.tbe-quiz-modal__dialog .bot-quiz__page-title {
  margin: 0 42px 22px;
  font-size: clamp(25px, 4vw, 38px);
}

.tbe-quiz-modal__dialog .bot-quiz__panel {
  min-height: 360px;
  padding: 26px;
  border-color: rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(29, 39, 34, 0.72), rgba(22, 23, 26, 0.82));
  box-shadow: none;
}

.tbe-quiz-modal__dialog .bot-quiz__disclaimer {
  margin: 16px auto 0;
  text-align: center;
}

.tbe-quiz-modal__close:focus-visible,
.tbe-quiz-modal__dialog:focus-visible {
  outline: 3px solid #a1f2c8;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .tbe-home-quiz {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .tbe-home-quiz__button {
    width: 100%;
  }

  .tbe-quiz-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .tbe-quiz-modal__dialog {
    width: 100%;
    max-height: 94dvh;
    padding: 24px 14px 18px;
    border-radius: 18px 18px 14px 14px;
  }

  .tbe-quiz-modal__dialog .bot-quiz__page-title {
    margin: 0 36px 18px;
    font-size: clamp(23px, 7vw, 30px);
  }

  .tbe-quiz-modal__dialog .bot-quiz__eyebrow {
    padding-right: 48px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-align: left;
  }

  .tbe-quiz-modal__dialog .bot-quiz__panel {
    min-height: 0;
    padding: 18px 13px;
    border-radius: 14px;
  }

  .tbe-quiz-modal__dialog .bot-quiz__topline {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbe-quiz-modal,
  .tbe-quiz-modal__dialog,
  .tbe-home-quiz__button {
    transition-duration: 0.01ms !important;
  }
}
