/* ════════════════════════════════════════════════════════
   Quiz Page — Premium redesign  (page-id-1991)
   Inspired by: thewishingwellacademy.com/intake/
   ════════════════════════════════════════════════════════ */

/* ── 0. Reset wrapper conflicts ── */
body.page-id-1991 .elementor-location-header,
body.page-id-1991 header.site-header,
body.page-id-1991 #masthead {
  display: none !important;
}

body.page-id-1991 .elementor-section-wrap,
body.page-id-1991 .elementor-page,
body.page-id-1991 .e-con,
body.page-id-1991 .e-con-inner,
body.page-id-1991 .elementor-container,
body.page-id-1991 .elementor-column,
body.page-id-1991 .elementor-col-100,
body.page-id-1991 .elementor-widget-wrap,
body.page-id-1991 .elementor-widget-html {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* ── 1. Page shell ── */
body.page-id-1991,
body.page-id-1991 html {
  background: #FAF6F1 !important;
}

/* ── 2. Entry animation ── */
@keyframes r2w-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── 3. Outer wrap ── */
body.page-id-1991 #r2w-quiz-wrap {
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 20px 80px;
  background: #FAF6F1;
  transition: background 0.6s ease;
  width: 100%;
  box-sizing: border-box;
}

body.page-id-1991 #r2w-quiz-wrap.dark-mode {
  background: #161616;
}

/* ── 4. Header block ── */
body.page-id-1991 .r2w-q-header {
  text-align: center;
  max-width: 560px;
  width: 100%;
  margin-bottom: 28px;
  animation: r2w-enter 0.55s cubic-bezier(.2,.8,.2,1) forwards;
}

body.page-id-1991 .r2w-q-counter {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b5a99a;
  margin-bottom: 18px;
}

body.page-id-1991 .r2w-q-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  color: #1C1917;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

body.page-id-1991 .r2w-q-subtitle {
  font-size: 16px;
  color: #78716c;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── 5. Progress bar ── */
body.page-id-1991 .r2w-progress-wrap {
  width: 100%;
  max-width: 560px;
  height: 4px;
  background: rgba(28,25,23,0.08);
  border-radius: 999px;
  margin-bottom: 32px;
  overflow: hidden;
}

body.page-id-1991 .r2w-progress-fill {
  height: 100%;
  background: #d4af37;
  border-radius: 999px;
  transition: width 0.5s ease-out;
}

/* ── 6. Question card ── */
body.page-id-1991 .r2w-card {
  background: #ffffff;
  border-radius: 40px;
  padding: 48px 44px 40px;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
  border: 1px solid rgba(28,25,23,0.04);
  animation: r2w-enter 0.55s cubic-bezier(.2,.8,.2,1) forwards;
}

body.page-id-1991 .r2w-card-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 600;
  color: #1C1917;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ── 7. Answer options ── */
body.page-id-1991 .r2w-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-id-1991 .r2w-opt {
  background: #FAFAF9;
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: #1C1917;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  user-select: none;
  line-height: 1.45;
}

body.page-id-1991 .r2w-opt:hover {
  background: #ffffff;
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

body.page-id-1991 .r2w-opt.selected {
  background: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 10px 28px rgba(212,175,55,0.15);
  transform: translateY(-2px);
}

body.page-id-1991 .r2w-opt-arrow {
  color: #d4af37;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

body.page-id-1991 .r2w-opt:hover .r2w-opt-arrow,
body.page-id-1991 .r2w-opt.selected .r2w-opt-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ── 8. Card footer trust text ── */
body.page-id-1991 .r2w-card-foot {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c2b9af;
  text-align: center;
  margin-top: 24px;
  line-height: 1.6;
}

/* ── 9. Capture / dark result screen ── */
body.page-id-1991 #r2w-quiz-wrap.dark-mode .r2w-q-header,
body.page-id-1991 #r2w-quiz-wrap.dark-mode .r2w-q-counter,
body.page-id-1991 #r2w-quiz-wrap.dark-mode .r2w-q-subtitle {
  color: rgba(253,251,247,0.7) !important;
}

body.page-id-1991 #r2w-quiz-wrap.dark-mode .r2w-q-title {
  color: #fdfbf7 !important;
}

body.page-id-1991 .r2w-result {
  display: none;
  text-align: center;
  max-width: 560px;
  width: 100%;
  animation: r2w-enter 0.55s cubic-bezier(.2,.8,.2,1) forwards;
}

body.page-id-1991 .r2w-result.visible {
  display: block;
}

body.page-id-1991 .r2w-res-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

body.page-id-1991 .r2w-res-sub,
body.page-id-1991 .r2w-res-trust {
  color: rgba(253,251,247,0.65);
}

/* ── 10. Capture form card ── */
body.page-id-1991 .r2w-form-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 40px 36px;
  max-width: 520px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

body.page-id-1991 .r2w-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

body.page-id-1991 .r2w-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 7px;
}

body.page-id-1991 .r2w-field input {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

body.page-id-1991 .r2w-field input::placeholder { color: rgba(255,255,255,0.3); }

body.page-id-1991 .r2w-field input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}

body.page-id-1991 .r2w-submit {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
  border: none;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: 0 4px 18px rgba(212,175,55,0.35);
  margin-bottom: 12px;
}

body.page-id-1991 .r2w-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.45);
}

body.page-id-1991 .r2w-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

body.page-id-1991 .r2w-privacy {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
  text-align: center;
}

body.page-id-1991 .r2w-msg {
  font-size: 13px;
  color: #d4af37;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* ── 11. Mobile ── */
@media (max-width: 600px) {
  body.page-id-1991 #r2w-quiz-wrap {
    padding: 48px 16px 64px;
  }

  body.page-id-1991 .r2w-card {
    padding: 32px 24px 28px;
    border-radius: 28px;
  }

  body.page-id-1991 .r2w-opt {
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
  }

  body.page-id-1991 .r2w-form-row {
    grid-template-columns: 1fr;
  }

  body.page-id-1991 .r2w-form-card {
    border-radius: 28px;
    padding: 28px 20px;
  }
}
