/* HerMoment Quiz Brand System — 2026-08-26 */
:root {
  --hm-ink: #161317;
  --hm-plum: #4b1833;
  --hm-pink: #c81c62;
  --hm-pink-dark: #971247;
  --hm-blush: #f8e8ef;
  --hm-paper: #fffaf8;
  --hm-line: rgba(22, 19, 23, 0.14);
  --hm-shadow: 0 18px 44px rgba(59, 22, 41, 0.12);
}

/* The same elevated, editorial frame is applied to every Thrive quiz. */
.tqb-shortcode-wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  min-height: 160px;
  margin: 2rem auto 3rem;
  overflow: visible;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background: var(--hm-paper);
  box-shadow: var(--hm-shadow);
}

.tqb-shortcode-wrapper *,
.tqb-shortcode-wrapper *::before,
.tqb-shortcode-wrapper *::after {
  box-sizing: border-box;
}

.tqb-shortcode-wrapper .tqb-loading-overlay {
  background: linear-gradient(135deg, #fffaf8 0%, #f8e8ef 100%);
}

.tqb-shortcode-wrapper .tqb-loading-bullets > div,
.tqb-shortcode-wrapper .tqb-loading-bullets span {
  background-color: var(--hm-pink) !important;
}

.tqb-shortcode-wrapper .tqb-frontend-error-message {
  margin: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(151, 18, 71, 0.25);
  border-radius: 10px;
  color: var(--hm-plum);
  background: var(--hm-blush);
  font-family: inherit;
}

/* Thrive content is injected asynchronously; these selectors style its splash, questions and results alike. */
.tqb-shortcode-wrapper .tqb-shortcode-new-content,
.tqb-shortcode-wrapper .tqb-shortcode-old-content {
  overflow: visible;
  color: var(--hm-ink);
  background: var(--hm-paper);
}

.tqb-shortcode-wrapper .thrv_wrapper,
.tqb-shortcode-wrapper .tqb-question-wrapper,
.tqb-shortcode-wrapper .tqb-question-container,
.tqb-shortcode-wrapper .tqb-result-container {
  font-family: inherit;
}

.tqb-shortcode-wrapper h1,
.tqb-shortcode-wrapper h2,
.tqb-shortcode-wrapper h3,
.tqb-shortcode-wrapper .tqb-question-text,
.tqb-shortcode-wrapper .tqb-state-title {
  color: var(--hm-ink) !important;
  letter-spacing: -0.025em;
}

.tqb-shortcode-wrapper .tqb-question-description,
.tqb-shortcode-wrapper .thrv_text_element p {
  color: #514a4e;
  line-height: 1.65;
}

.tqb-shortcode-wrapper .tqb-btn-start .tcb-button-link,
.tqb-shortcode-wrapper .tqb-nav-button,
.tqb-shortcode-wrapper .tqb-nav-button a,
.tqb-shortcode-wrapper .thrv-button .tcb-button-link,
.tqb-shortcode-wrapper button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.45rem;
  border: 1px solid var(--hm-pink) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--hm-pink) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.tqb-shortcode-wrapper .tqb-btn-start .tcb-button-link:hover,
.tqb-shortcode-wrapper .tqb-nav-button:hover,
.tqb-shortcode-wrapper .tqb-nav-button a:hover,
.tqb-shortcode-wrapper .thrv-button .tcb-button-link:hover,
.tqb-shortcode-wrapper button[type="submit"]:hover {
  border-color: var(--hm-pink-dark) !important;
  background: var(--hm-pink-dark) !important;
  box-shadow: 0 8px 18px rgba(151, 18, 71, 0.22) !important;
  transform: translateY(-1px);
}

.tqb-shortcode-wrapper .tqb-answer-action {
  overflow: hidden;
  margin: 0.6rem 0;
  border: 1px solid var(--hm-line) !important;
  border-radius: 12px !important;
  color: var(--hm-ink);
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.tqb-shortcode-wrapper .tqb-answer-action:hover,
.tqb-shortcode-wrapper .tqb-answer-action:focus-within,
.tqb-shortcode-wrapper .tqb-answer-action.tqb-selected,
.tqb-shortcode-wrapper .tqb-answer-action.tqb-right-answer {
  border-color: var(--hm-pink) !important;
  background: #fff8fb !important;
  box-shadow: 0 8px 20px rgba(200, 28, 98, 0.1) !important;
  transform: translateY(-1px);
}

.tqb-shortcode-wrapper .tqb-answer-text,
.tqb-shortcode-wrapper .tqb-answer-text-container,
.tqb-shortcode-wrapper .tqb-span-text {
  color: var(--hm-ink) !important;
  font-family: inherit !important;
  font-size: 1rem;
  line-height: 1.45;
}

.tqb-shortcode-wrapper .tqb-fancy-icon,
.tqb-shortcode-wrapper .tqb-fancy-container {
  border-color: var(--hm-pink) !important;
}

.tqb-shortcode-wrapper .tqb-answer-action.tqb-right-answer .tqb-fancy-icon,
.tqb-shortcode-wrapper .tqb-answer-action.tqb-selected .tqb-fancy-icon {
  color: #fff !important;
  background: var(--hm-pink) !important;
}

.tqb-shortcode-wrapper .tqb-progress,
.tqb-shortcode-wrapper .tqb-progress-container {
  color: var(--hm-plum) !important;
  background: transparent !important;
}

.tqb-shortcode-wrapper .tqb-progress-abs {
  overflow: hidden;
  height: 8px !important;
  border-radius: 999px;
  background: #f0dbe5 !important;
}

.tqb-shortcode-wrapper .tqb-progress-completed {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hm-pink), #e7739d) !important;
}

.tqb-shortcode-wrapper .tqb-social-share-buttons a,
.tqb-shortcode-wrapper .tqb-restart-quiz {
  color: var(--hm-pink) !important;
}

/* The Thrive Leads sidebar form needs a predictable right-hand breathing room. */
.potter-sidebar-wrapper #tve-leads-track-shortcode_160,
.potter-sidebar-wrapper [id^="tve-leads-track-shortcode_160"],
.potter-sidebar-wrapper .tve-leads-shortcode,
.potter-sidebar-wrapper .tve-leads-conversion-object {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  padding-right: 18px !important;
}

.potter-sidebar-wrapper #tve-leads-track-shortcode_160 *,
.potter-sidebar-wrapper [id^="tve-leads-track-shortcode_160"] *,
.potter-sidebar-wrapper .tve-leads-shortcode *,
.potter-sidebar-wrapper .tve-leads-conversion-object * {
  box-sizing: border-box;
}

.potter-sidebar-wrapper #tve-leads-track-shortcode_160 input,
.potter-sidebar-wrapper [id^="tve-leads-track-shortcode_160"] input,
.potter-sidebar-wrapper #tve-leads-track-shortcode_160 button,
.potter-sidebar-wrapper [id^="tve-leads-track-shortcode_160"] button {
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .tqb-shortcode-wrapper {
    margin: 1.25rem auto 2rem;
    border-radius: 14px;
  }

  .tqb-shortcode-wrapper .tqb-btn-start .tcb-button-link,
  .tqb-shortcode-wrapper .tqb-nav-button,
  .tqb-shortcode-wrapper .tqb-nav-button a,
  .tqb-shortcode-wrapper .thrv-button .tcb-button-link,
  .tqb-shortcode-wrapper button[type="submit"] {
    width: 100%;
  }

  .tqb-shortcode-wrapper .tqb-answer-action {
    margin: 0.5rem 0;
    border-radius: 10px !important;
  }

  .potter-sidebar-wrapper #tve-leads-track-shortcode_160,
  .potter-sidebar-wrapper [id^="tve-leads-track-shortcode_160"],
  .potter-sidebar-wrapper .tve-leads-shortcode,
  .potter-sidebar-wrapper .tve-leads-conversion-object {
    padding-right: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tqb-shortcode-wrapper .tqb-answer-action,
  .tqb-shortcode-wrapper .tqb-btn-start .tcb-button-link,
  .tqb-shortcode-wrapper .tqb-nav-button,
  .tqb-shortcode-wrapper .tqb-nav-button a,
  .tqb-shortcode-wrapper .thrv-button .tcb-button-link,
  .tqb-shortcode-wrapper button[type="submit"] {
    transition: none;
  }
}

/* Thrive templates set inline background gradients; these final overrides keep every quiz state in the shared HerMoment palette. */
.tqb-shortcode-wrapper .tve-tqb-page-type,
.tqb-shortcode-wrapper .tqb-splash-template-1,
.tqb-shortcode-wrapper .tqb-question-wrapper,
.tqb-shortcode-wrapper .tqb-question-container,
.tqb-shortcode-wrapper .tqb-result-container {
  background-color: var(--hm-paper) !important;
  background-image: linear-gradient(145deg, #fffaf8 0%, #f8e8ef 100%) !important;
}

.tqb-shortcode-wrapper .tve-tqb-page-type .thrv_wrapper[data-css],
.tqb-shortcode-wrapper .tqb-splash-template-1 .thrv_wrapper[data-css] {
  background-image: none !important;
}

.tqb-shortcode-wrapper .tve-tqb-page-type .tcb-button-link,
.tqb-shortcode-wrapper .tqb-splash-template-1 .tcb-button-link,
.tqb-shortcode-wrapper a.tcb-button-link.tve-dynamic-link {
  border-color: var(--hm-pink) !important;
  color: #fff !important;
  background-color: var(--hm-pink) !important;
  background-image: none !important;
}

.tqb-shortcode-wrapper .tve-tqb-page-type .tcb-button-link:hover,
.tqb-shortcode-wrapper .tqb-splash-template-1 .tcb-button-link:hover,
.tqb-shortcode-wrapper a.tcb-button-link.tve-dynamic-link:hover {
  border-color: var(--hm-pink-dark) !important;
  background-color: var(--hm-pink-dark) !important;
}

.tqb-shortcode-wrapper .tve-tqb-page-type .thrv_text_element,
.tqb-shortcode-wrapper .tve-tqb-page-type .thrv_text_element p,
.tqb-shortcode-wrapper .tve-tqb-page-type .thrv_text_element h1,
.tqb-shortcode-wrapper .tve-tqb-page-type .thrv_text_element h2,
.tqb-shortcode-wrapper .tve-tqb-page-type .thrv_text_element h3 {
  color: var(--hm-ink) !important;
}

/* Treasure Chest: resilient direct-download library built from the existing vetted PDF assets. */
.hm-treasure-resources {
  max-width: 1120px;
  margin: 3.5rem auto 1rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.25rem);
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffaf8 0%, #f8e8ef 100%);
  box-shadow: var(--hm-shadow);
}

.hm-treasure-resources__intro {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}

.hm-treasure-resources__eyebrow,
.hm-treasure-resource__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--hm-pink-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hm-treasure-resources h2,
.hm-treasure-resource h3 {
  margin: 0;
  color: var(--hm-ink);
  line-height: 1.15;
}

.hm-treasure-resources__intro > p:last-child,
.hm-treasure-resource > p:not(.hm-treasure-resource__eyebrow) {
  color: #514a4e;
  line-height: 1.65;
}

.hm-treasure-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hm-treasure-resource {
  display: flex;
  min-height: 230px;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid rgba(75, 24, 51, 0.15);
  border-radius: 14px;
  background: #fff;
}

.hm-treasure-resource > p:not(.hm-treasure-resource__eyebrow) {
  margin: 0.8rem 0 1.3rem;
}

.hm-treasure-resource__button {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 0.78rem 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff !important;
  background: var(--hm-pink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hm-treasure-resource__button:hover,
.hm-treasure-resource__button:focus {
  color: #fff !important;
  background: var(--hm-pink-dark);
  box-shadow: 0 8px 18px rgba(151, 18, 71, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .hm-treasure-resources {
    margin-top: 2.25rem;
    padding: 1.5rem 1rem;
    border-radius: 14px;
  }

  .hm-treasure-resources__grid {
    grid-template-columns: 1fr;
  }

  .hm-treasure-resource {
    min-height: 0;
  }

  .hm-treasure-resource__button {
    width: 100%;
  }
}
