/* Reusable "edit your taste" quiz modal (used on my-recs & profile). */
.rrq-modal {
  position: fixed; inset: 0; z-index: 6000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.rrq-modal.open { display: flex; }
.rrq-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 55, 0.55); backdrop-filter: blur(3px); }
.rrq-inner {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  animation: rrqIn 0.25s cubic-bezier(.22, .61, .36, 1);
}
@keyframes rrqIn { 0% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.rrq-card {
  position: relative; border-radius: 22px; border: 1px solid rgba(0, 14, 51, 0.10);
  background:
    radial-gradient(circle at top left, rgba(0, 102, 255, 0.07), transparent 46%),
    radial-gradient(circle at top right, rgba(194, 122, 255, 0.07), transparent 46%),
    #ffffff;
  box-shadow: 0 24px 60px -20px rgba(9, 20, 55, 0.5); padding: 24px 26px 22px;
}
.rrq-dismiss {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: transparent; color: #9aa0b5; cursor: pointer;
}
.rrq-dismiss:hover { background: rgba(0, 14, 51, 0.05); color: #000e33; }
.rrq-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #4b5bd5;
}
.rrq-title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; color: #000e33; }
.rrq-subtitle { margin: 0 0 14px; font-size: 0.92rem; color: #5b627a; }
.rrq-progress { height: 6px; max-width: 320px; border-radius: 999px; background: rgba(0, 14, 51, 0.08); overflow: hidden; }
.rrq-progress-bar {
  display: block; height: 100%; width: 33%; border-radius: 999px;
  background: linear-gradient(103deg, #0066ff 0%, #6a5bff 48%, #c27aff 100%);
  transition: width 0.4s cubic-bezier(.22, .61, .36, 1);
}
.rrq-step[hidden] { display: none; }
.rrq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.rrq-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(0, 14, 51, 0.12); background: rgba(255, 255, 255, 0.85); color: #1c2340;
  font-size: 0.92rem; font-weight: 500; cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rrq-chip:hover { transform: translateY(-1px); border-color: rgba(75, 91, 213, 0.4); }
.rrq-chip.selected {
  border-color: transparent; color: #fff;
  background: linear-gradient(103deg, #0066ff 0%, #6a5bff 48%, #c27aff 100%);
  box-shadow: 0 10px 22px -14px rgba(75, 91, 213, 0.7);
}
.rrq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.rrq-back {
  border: none; background: transparent; color: #5b627a; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  padding: 8px 4px; display: inline-flex; align-items: center; gap: 7px;
}
.rrq-back:hover { color: #000e33; }
.rrq-back[hidden] { display: none; }
.rrq-next {
  margin-left: auto; border: none; border-radius: 999px; padding: 11px 24px;
  font-size: 0.95rem; font-weight: 600; color: #fff;
  background: linear-gradient(103deg, #0066ff 0%, #6a5bff 48%, #c27aff 100%);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.rrq-next:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(75, 91, 213, 0.7); }
.rrq-next:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 640px) { .rrq-card { padding: 20px 18px 18px; } .rrq-title { font-size: 1.15rem; } }
