/* ===== QUIZ SECTION — lrp- prefix to prevent conflicts ===== */

#quiz-section {
  position: relative;
  background: #f5f0e8;
  overflow: hidden;
  scroll-margin-top: 80px;
}

#quiz-section, #quiz-section * {
  box-sizing: border-box;
}

#quiz-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,166,138,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#quiz-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,196,176,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lrp-leaf {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
  font-size: 160px;
  top: 5%;
  left: 3%;
  transform: rotate(-20deg);
  z-index: 0;
}

.lrp-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.lrp-header {
  text-align: center;
  padding: 60px 0 40px;
  animation: lrpFadeDown 0.8s ease both;
}
.lrp-logo-text {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: #8fa68a;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lrp-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  color: #4F4F4F;
  margin-bottom: 16px;
}
.lrp-title em {
  font-style: italic;
  color: #8fa68a;
}
.lrp-subtitle {
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  color: #7a7a72;
  font-weight: 300;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* Progress */
.lrp-progress-wrap {
  margin: 32px 0 40px;
  animation: lrpFadeDown 0.8s 0.2s ease both;
}
.lrp-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Assistant', sans-serif;
  font-size: 12px;
  color: #7a7a72;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.lrp-progress-bar {
  height: 3px;
  background: #c4d4c0;
  border-radius: 2px;
  overflow: hidden;
}
.lrp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8fa68a, #b8956a);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question card */
.lrp-card {
  background: #faf8f4;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 4px 40px rgba(126,143,124,0.10), 0 1px 3px rgba(126,143,124,0.06);
  border: 1px solid rgba(212,196,176,0.3);
  animation: lrpFadeUp 0.5s ease both;
}

.lrp-step-tag {
  display: inline-block;
  font-family: 'Assistant', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8fa68a;
  background: #eef3ec;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.lrp-question-text {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: #4F4F4F;
  margin-bottom: 32px;
}

/* Options */
.lrp-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lrp-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid rgba(212,196,176,0.5);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  text-align: right;
}
.lrp-option:hover {
  border-color: #8fa68a;
  background: #eef3ec;
  transform: translateX(-3px);
}
.lrp-option.selected {
  border-color: #8fa68a;
  background: #eef3ec;
  box-shadow: 0 0 0 3px rgba(143,166,138,0.15);
}
.lrp-option-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d4c4b0;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lrp-option.selected .lrp-option-circle {
  background: #8fa68a;
  border-color: #8fa68a;
}
.lrp-option.selected .lrp-option-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.lrp-option-text {
  font-family: 'Assistant', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #4F4F4F;
  font-weight: 300;
}

/* Open question */
.lrp-open-textarea {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid rgba(212,196,176,0.5);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: 'Assistant', sans-serif;
  font-size: 15px;
  color: #4F4F4F;
  background: transparent;
  resize: none;
  outline: none;
  transition: border-color 0.25s;
  font-weight: 300;
  line-height: 1.7;
  direction: rtl;
}
.lrp-open-textarea:focus { border-color: #8fa68a; }
.lrp-open-textarea::placeholder { color: #7a7a72; font-style: italic; }

/* Next button */
.lrp-btn-next {
  margin-top: 32px;
  width: 100%;
  padding: 18px;
  background: #7E8F7C;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lrp-btn-next:hover:not(:disabled) {
  background: #6a7a68;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143,166,138,0.3);
}
.lrp-btn-next:disabled { opacity: 0.35; cursor: not-allowed; }
.lrp-btn-arrow { font-size: 18px; transition: transform 0.3s; }
.lrp-btn-next:hover:not(:disabled) .lrp-btn-arrow { transform: translateX(-4px); }

/* Result */
.lrp-result-card {
  background: #faf8f4;
  border-radius: 20px;
  padding: 52px 40px;
  box-shadow: 0 4px 40px rgba(126,143,124,0.10);
  border: 1px solid rgba(212,196,176,0.3);
  text-align: center;
  animation: lrpFadeUp 0.7s ease both;
}
.lrp-result-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
  animation: lrpBounceIn 0.6s 0.3s ease both;
}
.lrp-result-tag {
  display: inline-block;
  font-family: 'Assistant', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 500;
}
.lrp-result-tag.yes   { background: #eef3ec; color: #8fa68a; }
.lrp-result-tag.maybe { background: #fdf4e7; color: #b8956a; }
.lrp-result-tag.no    { background: #f0f0ee; color: #7a7a72; }

.lrp-result-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  color: #4F4F4F;
  margin-bottom: 20px;
}
.lrp-result-title em { font-style: italic; color: #8fa68a; }

.lrp-result-body {
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #7a7a72;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 36px;
}

.lrp-result-quote {
  font-family: 'Frank Ruhl Libre', serif;
  font-style: italic;
  font-size: 17px;
  color: #4F4F4F;
  line-height: 1.7;
  padding: 24px 28px;
  background: #eef3ec;
  border-right: 3px solid #8fa68a;
  border-radius: 0 12px 12px 0;
  text-align: right;
  margin: 0 0 36px;
}

.lrp-cta-group { display: flex; flex-direction: column; gap: 12px; }

.lrp-btn-primary {
  padding: 18px 32px;
  background: #7E8F7C;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.lrp-btn-primary:hover {
  background: #6a7a68;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143,166,138,0.3);
  color: #faf8f4;
}
.lrp-btn-secondary {
  padding: 16px 32px;
  background: transparent;
  color: #7a7a72;
  border: 1.5px solid #d4c4b0;
  border-radius: 14px;
  font-family: 'Assistant', sans-serif;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}
.lrp-btn-secondary:hover { border-color: #8fa68a; color: #8fa68a; }

.lrp-restart-btn {
  margin-top: 28px;
  background: none;
  border: none;
  color: #7a7a72;
  font-family: 'Assistant', sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.7;
}
.lrp-restart-btn:hover { opacity: 1; }

/* Intro */
.lrp-intro-card {
  background: #faf8f4;
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  box-shadow: 0 4px 40px rgba(126,143,124,0.10);
  border: 1px solid rgba(212,196,176,0.3);
  animation: lrpFadeUp 0.7s ease both;
}
.lrp-intro-divider {
  width: 48px;
  height: 2px;
  background: #c4d4c0;
  margin: 24px auto;
  border-radius: 1px;
}

.lrp-hidden { display: none !important; }

/* Animations */
@keyframes lrpFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lrpFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lrpBounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 520px) {
  .lrp-card,
  .lrp-result-card,
  .lrp-intro-card { padding: 32px 24px; }
}
