/**
 * PRCA-24 Quiz Stylesheet — Premium Animated Experience
 * Plugin: nw-prca-quiz
 * Site: niko-weissbecker.de
 *
 * Design system tokens:
 *   Headings  — Sora 400 / 600, uppercase
 *   Body      — Open Sans 400 / 600
 *   Primary   — #1E40AF
 *   Hover     — #0F2D7A
 *   Body text — #424C55
 *   Dark text — #171B1F
 *   Light bg  — #EEF3F6
 *   Green     — #28a745
 *   Orange    — #E8A317
 *   Red       — #DC3545
 *
 * UX: Category-stepper pattern — one category at a time,
 * questions stagger-animate in, circular progress ring,
 * dramatic result reveal.
 */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600&family=Open+Sans:wght@400;600&display=swap');

/* ==========================================================================
   1. QUIZ CONTAINER
   ========================================================================== */

.nw-prca-quiz {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* ==========================================================================
   2. HERO / INTRO SCREEN
   ========================================================================== */

.nw-prca-hero {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF3F6 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(27, 49, 80, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: nw-hero-enter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.2s;
}

@keyframes nw-hero-enter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nw-prca-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  font-size: 42px;
  margin-bottom: 28px;
  animation: nw-float 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
}

.nw-prca-hero h2 {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #171B1F;
  margin: 0 0 16px;
  line-height: 1.3;
}

.nw-prca-hero p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #424C55;
  margin: 0 0 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.nw-prca-start-btn {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 20px 56px;
  border: none;
  border-radius: 70px;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.35);
  position: relative;
  overflow: hidden;
  animation: nw-pulse-soft 2.5s ease-in-out infinite;
}

@keyframes nw-pulse-soft {
  0%, 100% { box-shadow: 0 8px 30px rgba(30, 64, 175, 0.35); }
  50%      { box-shadow: 0 8px 45px rgba(30, 64, 175, 0.5); }
}

.nw-prca-start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: nw-shimmer 2.5s infinite;
}

.nw-prca-start-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.5);
  background: linear-gradient(135deg, #0F2D7A 0%, #1E40AF 100%);
}

.nw-prca-start-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ==========================================================================
   3. STEP INDICATOR (Horizontal Stepper)
   ========================================================================== */

.nw-prca-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 520px;
  margin: 0 auto 44px;
  padding: 0 20px;
}

/* Connecting line behind steps */
.nw-prca-stepper::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(20px + 22px);
  right: calc(20px + 22px);
  height: 3px;
  background: #E5E7EB;
  z-index: 0;
  border-radius: 2px;
}

.nw-prca-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Animated fill line between steps */
.nw-prca-step::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 3px;
  background: #1E40AF;
  border-radius: 2px;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nw-prca-step:last-child::after {
  display: none;
}

.nw-prca-step.is-complete::after {
  transform: scaleX(1);
}

.nw-prca-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #D1D5DB;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #9CA3AF;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

/* Active step */
.nw-prca-step.is-active .nw-prca-step-number {
  border-color: #1E40AF;
  color: #1E40AF;
  background: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(30, 64, 175, 0.12), 0 4px 12px rgba(30, 64, 175, 0.15);
  transform: scale(1.1);
}

/* Complete step */
.nw-prca-step.is-complete .nw-prca-step-number {
  border-color: #1E40AF;
  background: #1E40AF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  animation: nw-step-complete 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nw-step-complete {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.nw-prca-step-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  margin-top: 10px;
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.nw-prca-step.is-active .nw-prca-step-label {
  color: #1E40AF;
}

.nw-prca-step.is-complete .nw-prca-step-label {
  color: #424C55;
}

/* ==========================================================================
   4. CIRCULAR PROGRESS RING (Floating)
   ========================================================================== */

.nw-prca-progress-ring {
  position: fixed;
  top: 100px;
  right: 30px;
  width: 70px;
  height: 70px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(27, 49, 80, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.nw-prca-progress-ring:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(27, 49, 80, 0.2);
}

.nw-prca-progress-ring svg {
  width: 62px;
  height: 62px;
  transform: rotate(-90deg);
  position: absolute;
}

.nw-prca-progress-ring svg circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.nw-prca-progress-ring .nw-ring-bg {
  stroke: #EEF3F6;
}

.nw-prca-progress-ring .nw-ring-fill {
  stroke: #1E40AF;
  stroke-dasharray: 176; /* 2 * PI * 28 */
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nw-prca-progress-percent {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1E40AF;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   5. CATEGORY PANELS — Slide Transitions
   ========================================================================== */

.nw-prca-category {
  display: none;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nw-prca-category.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Directional exit animations */
.nw-prca-category.is-exiting-left {
  display: block;
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
}

.nw-prca-category.is-exiting-right {
  display: block;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
}

/* Directional enter animations */
.nw-prca-category.is-entering-left {
  display: block;
  opacity: 0;
  transform: translateX(-60px);
}

.nw-prca-category.is-entering-right {
  display: block;
  opacity: 0;
  transform: translateX(60px);
}

/* ==========================================================================
   6. CATEGORY HEADER
   ========================================================================== */

.nw-prca-category-header {
  text-align: center;
  padding: 40px 20px 30px;
  margin-bottom: 20px;
}

.nw-prca-category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
  animation: nw-float 3s ease-in-out infinite;
}

@keyframes nw-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.nw-prca-category-title {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #171B1F;
  margin: 0 0 8px;
}

.nw-prca-category-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #424C55;
  margin: 0 0 16px;
  line-height: 1.6;
}

.nw-prca-category-counter {
  display: inline-block;
  background: #EEF3F6;
  padding: 6px 18px;
  border-radius: 70px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1E40AF;
  margin-top: 4px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nw-prca-category-counter.is-bumped {
  transform: scale(1.15);
}

/* Category fully answered */
.nw-prca-category.is-complete .nw-prca-category-counter {
  background: #1E40AF;
  color: #FFFFFF;
  animation: nw-counter-celebrate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nw-counter-celebrate {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   7. QUESTIONS — Stagger Animation
   ========================================================================== */

.nw-prca-question {
  padding: 28px 30px;
  margin-bottom: 16px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(27, 49, 80, 0.06);
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  /* Start hidden for stagger entrance */
  opacity: 0;
  transform: translateY(20px);
}

/* Stagger entrance delays
   nth-child offset: header is child 1, so questions are children 2-7 */
.nw-prca-category.is-active > .nw-prca-question:nth-child(2)  { animation: nw-stagger-in 0.5s ease forwards 0.1s; }
.nw-prca-category.is-active > .nw-prca-question:nth-child(3)  { animation: nw-stagger-in 0.5s ease forwards 0.2s; }
.nw-prca-category.is-active > .nw-prca-question:nth-child(4)  { animation: nw-stagger-in 0.5s ease forwards 0.3s; }
.nw-prca-category.is-active > .nw-prca-question:nth-child(5)  { animation: nw-stagger-in 0.5s ease forwards 0.4s; }
.nw-prca-category.is-active > .nw-prca-question:nth-child(6)  { animation: nw-stagger-in 0.5s ease forwards 0.5s; }
.nw-prca-category.is-active > .nw-prca-question:nth-child(7)  { animation: nw-stagger-in 0.5s ease forwards 0.6s; }

@keyframes nw-stagger-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nw-prca-question:hover {
  box-shadow: 0 6px 28px rgba(27, 49, 80, 0.1);
}

.nw-prca-question-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #171B1F;
  margin: 0 0 18px;
  padding-right: 30px;
}

.nw-prca-question-number {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1E40AF;
  margin-right: 8px;
}

/* Answered state */
.nw-prca-question.is-answered {
  border-color: rgba(30, 64, 175, 0.15);
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* Checkmark on answered questions */
.nw-prca-question.is-answered::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 16px;
  width: 26px;
  height: 26px;
  background: #1E40AF;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  animation: nw-check-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nw-check-pop {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* Missing / error state */
.nw-prca-question.is-missing {
  border-color: #DC3545;
  animation: nw-shake 0.5s ease;
}

@keyframes nw-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

/* ==========================================================================
   8. LIKERT SCALE BUBBLES
   ========================================================================== */

.nw-prca-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

.nw-prca-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 8px;
  border-radius: 16px;
  transition: transform 0.15s ease;
}

.nw-prca-option:hover {
  transform: scale(1.08);
}

.nw-prca-option:active {
  transform: scale(0.95);
}

/* Hide native radio */
.nw-prca-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* The clickable bubble */
.nw-prca-option-bubble {
  border-radius: 50%;
  border: 2.5px solid #D1D5DB;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Uniform bubble size */
.nw-prca-option-bubble { width: 48px; height: 48px; }

/* Hover effect */
.nw-prca-option:hover .nw-prca-option-bubble {
  border-color: #93A8E0;
  background: #F0F4FF;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.08);
}

/* Selected state */
.nw-prca-option input:checked + .nw-prca-option-bubble {
  border-color: #1E40AF;
  background: #1E40AF;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.35), 0 0 0 4px rgba(30, 64, 175, 0.12);
  transform: scale(1.1);
}

/* Ripple effect on selection */
.nw-prca-option input:checked + .nw-prca-option-bubble::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.3);
  animation: nw-ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes nw-ripple {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* White dot in selected bubble */
.nw-prca-option input:checked + .nw-prca-option-bubble::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  animation: nw-dot-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nw-dot-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Labels — only first and last visible by default */
.nw-prca-option-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 8px;
  text-align: center;
  max-width: 75px;
  line-height: 1.3;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nw-prca-option:nth-child(2) .nw-prca-option-label,
.nw-prca-option:nth-child(3) .nw-prca-option-label,
.nw-prca-option:nth-child(4) .nw-prca-option-label {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.nw-prca-option:hover .nw-prca-option-label {
  opacity: 1;
  color: #1E40AF;
}

/* ==========================================================================
   9. NAVIGATION BUTTONS (Prev / Next)
   ========================================================================== */

.nw-prca-category-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 20px 0;
}

/* Next button — Primary filled pill */
.nw-prca-btn-next {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px;
  border: none;
  border-radius: 70px;
  background: #1E40AF;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect */
.nw-prca-btn-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: nw-shimmer 2s infinite;
}

@keyframes nw-shimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.nw-prca-btn-next:hover {
  background: #0F2D7A;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.4);
}

.nw-prca-btn-next:active {
  transform: translateY(-1px);
}

.nw-prca-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nw-prca-btn-next:disabled::before {
  animation: none;
}

/* Arrow icon inside next button */
.nw-prca-btn-next .nw-btn-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.nw-prca-btn-next:hover .nw-btn-arrow {
  transform: translateX(4px);
}

/* Previous button — Ghost / outline */
.nw-prca-btn-prev {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border: 2px solid #D1D5DB;
  border-radius: 70px;
  background: transparent;
  color: #424C55;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nw-prca-btn-prev:hover {
  border-color: #1E40AF;
  color: #1E40AF;
  transform: translateX(-3px);
}

.nw-prca-btn-prev:active {
  transform: translateX(-1px);
}

/* ==========================================================================
   10. CONFETTI OVERLAY
   ========================================================================== */

.nw-prca-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   11. CONTACT SECTION — Slide-up Reveal
   ========================================================================== */

.nw-prca-contact {
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF3F6 100%);
  border-radius: 24px;
  padding: 50px 40px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 20px 60px rgba(27, 49, 80, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nw-prca-contact.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nw-prca-contact h3 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 600;
  color: #171B1F;
  margin: 0 0 10px;
}

.nw-prca-contact p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #424C55;
  margin: 0 0 28px;
  line-height: 1.6;
}

.nw-prca-contact input[type="text"],
.nw-prca-contact input[type="email"] {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 16px;
  padding: 16px 24px;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #171B1F;
  background: #FFFFFF;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nw-prca-contact input:focus {
  outline: none;
  border-color: #1E40AF;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1), 0 4px 12px rgba(30, 64, 175, 0.1);
  transform: translateY(-2px);
}

.nw-prca-contact input::placeholder {
  color: #9CA3AF;
}

/* ==========================================================================
   12. SUBMIT BUTTON — Dramatic
   ========================================================================== */

.nw-prca-submit-wrap {
  text-align: center;
  margin: 40px 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nw-prca-submit {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 20px 60px;
  border: none;
  border-radius: 70px;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.35);
  position: relative;
  overflow: hidden;
}

/* Shine sweep when enabled */
.nw-prca-submit:not(:disabled)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: nw-shimmer 2.5s infinite;
}

.nw-prca-submit:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.45);
  background: linear-gradient(135deg, #0F2D7A 0%, #1E40AF 100%);
}

.nw-prca-submit:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
}

.nw-prca-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner */
.nw-prca-submit.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.nw-prca-submit.is-loading::before {
  display: none;
}

.nw-prca-submit.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: nw-spin 0.6s linear infinite;
}

@keyframes nw-spin {
  to { transform: rotate(360deg); }
}

.nw-prca-privacy {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 12px;
}

.nw-prca-privacy a {
  color: #1E40AF;
  text-decoration: underline;
}

/* ==========================================================================
   13. RESULTS PAGE — DRAMATIC REVEAL
   ========================================================================== */

/* Dark overlay */
.nw-prca-result-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 27, 31, 0.95);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nw-reveal-in 0.8s ease;
}

@keyframes nw-reveal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Result container */
.nw-prca-result {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* --- Score circle --- */

.nw-prca-result-score {
  text-align: center;
  margin-bottom: 40px;
}

.nw-prca-score-circle {
  position: relative;
  display: inline-block;
  width: 240px;
  height: 240px;
}

.nw-prca-score-circle svg {
  width: 240px;
  height: 240px;
  transform: rotate(-90deg);
}

.nw-prca-score-circle svg circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.nw-prca-score-circle .nw-prca-circle-bg {
  stroke: #EEF3F6;
}

.nw-prca-score-circle .nw-prca-circle-fill {
  stroke: #1E40AF;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Level-specific circle colors */
.nw-prca-result[data-level="niedrig"] .nw-prca-circle-fill { stroke: #28a745; }
.nw-prca-result[data-level="moderat"] .nw-prca-circle-fill { stroke: #E8A317; }
.nw-prca-result[data-level="hoch"]    .nw-prca-circle-fill { stroke: #DC3545; }

/* Glow behind circle based on level */
.nw-prca-result[data-level="niedrig"] .nw-prca-score-circle {
  filter: drop-shadow(0 0 30px rgba(40, 167, 69, 0.3));
}
.nw-prca-result[data-level="moderat"] .nw-prca-score-circle {
  filter: drop-shadow(0 0 30px rgba(232, 163, 23, 0.3));
}
.nw-prca-result[data-level="hoch"] .nw-prca-score-circle {
  filter: drop-shadow(0 0 30px rgba(220, 53, 69, 0.3));
}

.nw-prca-score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-family: 'Sora', sans-serif;
  font-size: 64px;
  font-weight: 600;
  color: #171B1F;
  font-variant-numeric: tabular-nums;
}

.nw-prca-score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40%);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #424C55;
}

/* --- Level badge --- */

.nw-prca-result-level {
  text-align: center;
  margin-bottom: 40px;
}

.nw-prca-result-level h2 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  padding: 14px 36px;
  border-radius: 70px;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.8);
  animation: nw-badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.5s;
}

@keyframes nw-badge-pop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.nw-prca-level-niedrig h2 { background: linear-gradient(135deg, #28a745, #34d058); }
.nw-prca-level-moderat h2 { background: linear-gradient(135deg, #E8A317, #F0C040); }
.nw-prca-level-hoch h2    { background: linear-gradient(135deg, #DC3545, #E55565); }

/* --- Breakdown bars --- */

.nw-prca-breakdown {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(27, 49, 80, 0.08);
  padding: 40px;
  margin-bottom: 40px;
}

.nw-prca-breakdown h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 400;
  color: #171B1F;
  margin: 0 0 30px;
}

.nw-prca-breakdown-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-20px);
}

.nw-prca-breakdown-item:last-child {
  margin-bottom: 0;
}

/* Stagger reveal for breakdown items */
.nw-prca-breakdown-item:nth-child(1) { animation: nw-slide-in-left 0.5s ease forwards 2.0s; }
.nw-prca-breakdown-item:nth-child(2) { animation: nw-slide-in-left 0.5s ease forwards 2.2s; }
.nw-prca-breakdown-item:nth-child(3) { animation: nw-slide-in-left 0.5s ease forwards 2.4s; }
.nw-prca-breakdown-item:nth-child(4) { animation: nw-slide-in-left 0.5s ease forwards 2.6s; }

@keyframes nw-slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nw-prca-breakdown-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #424C55;
  min-width: 160px;
  flex-shrink: 0;
}

.nw-prca-breakdown-track {
  flex: 1;
  height: 12px;
  background: #EEF3F6;
  border-radius: 6px;
  overflow: hidden;
}

.nw-prca-breakdown-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient fills per level */
.nw-prca-result[data-level="niedrig"] .nw-prca-breakdown-fill {
  background: linear-gradient(90deg, #28a745, #34d058);
}
.nw-prca-result[data-level="moderat"] .nw-prca-breakdown-fill {
  background: linear-gradient(90deg, #E8A317, #F0C040);
}
.nw-prca-result[data-level="hoch"] .nw-prca-breakdown-fill {
  background: linear-gradient(90deg, #DC3545, #F06070);
}

.nw-prca-breakdown-score {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #171B1F;
  min-width: 50px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Result content cards --- */

.nw-prca-result-content {
  margin-bottom: 40px;
}

.nw-prca-result-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(27, 49, 80, 0.08);
  padding: 36px 40px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nw-prca-result-card.is-visible {
  animation: nw-stagger-in 0.6s ease forwards;
}

/* Accent stripe per level */
.nw-prca-result[data-level="niedrig"] .nw-prca-result-card { border-left: 5px solid #28a745; }
.nw-prca-result[data-level="moderat"] .nw-prca-result-card { border-left: 5px solid #E8A317; }
.nw-prca-result[data-level="hoch"]    .nw-prca-result-card { border-left: 5px solid #DC3545; }

.nw-prca-result-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  color: #171B1F;
  margin: 0 0 15px;
}

.nw-prca-result-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #424C55;
  margin: 0 0 12px;
}

.nw-prca-result-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nw-prca-result-card ul li {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #424C55;
  padding: 6px 0 6px 24px;
  position: relative;
}

.nw-prca-result-card ul li::before {
  content: '\2022';
  color: #1E40AF;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 4px;
}

/* --- CTA section --- */

.nw-prca-result-cta {
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nw-prca-result-cta.is-visible {
  animation: nw-stagger-in 0.6s ease forwards;
}

/* Level-based CTA backgrounds */
.nw-prca-result[data-level="niedrig"] .nw-prca-result-cta {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}
.nw-prca-result[data-level="moderat"] .nw-prca-result-cta {
  background: linear-gradient(135deg, #fffbea 0%, #fef3c7 100%);
}
.nw-prca-result[data-level="hoch"] .nw-prca-result-cta {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.nw-prca-result-cta h3 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: #171B1F;
  margin: 0 0 12px;
}

.nw-prca-result-cta p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #424C55;
  margin: 0 0 30px;
  line-height: 1.6;
}

/* ==========================================================================
   14. CTA BUTTONS
   ========================================================================== */

.nw-prca-btn-primary {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 70px;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  margin: 5px;
  position: relative;
  overflow: hidden;
}

.nw-prca-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: nw-shimmer 3s infinite;
}

.nw-prca-btn-primary:hover {
  background: linear-gradient(135deg, #0F2D7A 0%, #1E40AF 100%);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
  text-decoration: none;
}

.nw-prca-btn-outline {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 38px;
  border-radius: 70px;
  border: 2px solid #1E40AF;
  color: #1E40AF;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 5px;
}

.nw-prca-btn-outline:hover {
  background: #1E40AF;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* Urgent button — Glowing pulse for "hoch" */
.nw-prca-btn-urgent {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 20px 50px;
  border-radius: 70px;
  background: linear-gradient(135deg, #DC3545 0%, #E55565 100%);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4), 0 0 60px rgba(220, 53, 69, 0.15);
  animation: nw-glow-pulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes nw-glow-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4), 0 0 40px rgba(220, 53, 69, 0.1); }
  50%      { box-shadow: 0 4px 30px rgba(220, 53, 69, 0.6), 0 0 80px rgba(220, 53, 69, 0.2); }
}

.nw-prca-btn-urgent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: nw-shimmer 2s infinite;
}

.nw-prca-btn-urgent:hover {
  background: linear-gradient(135deg, #B02A37 0%, #DC3545 100%);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(220, 53, 69, 0.5), 0 0 80px rgba(220, 53, 69, 0.2);
}

/* --- Sharing section --- */

.nw-prca-share {
  text-align: center;
  margin-top: 30px;
}

.nw-prca-share p {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #424C55;
  margin-bottom: 10px;
}

/* ==========================================================================
   15. ADMIN STYLES (WP backend results page)
   ========================================================================== */

.nw-prca-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.nw-prca-admin-stat {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.nw-prca-admin-stat .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #1E40AF;
  display: block;
}

.nw-prca-admin-stat .stat-label {
  font-size: 14px;
  color: #424C55;
  margin-top: 5px;
}

.nw-prca-admin-dist {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
}

.nw-prca-admin-dist .dist-niedrig { background: #28a745; }
.nw-prca-admin-dist .dist-moderat { background: #E8A317; }
.nw-prca-admin-dist .dist-hoch    { background: #DC3545; }

.nw-prca-level-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 70px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #FFFFFF;
}

.nw-prca-level-badge.niedrig { background: #28a745; }
.nw-prca-level-badge.moderat { background: #E8A317; }
.nw-prca-level-badge.hoch    { background: #DC3545; }

/* ==========================================================================
   16. MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .nw-prca-quiz {
    padding: 15px;
  }

  /* Hero */
  .nw-prca-hero {
    padding: 50px 25px;
  }

  .nw-prca-hero h2 {
    font-size: 24px;
  }

  .nw-prca-hero p {
    font-size: 16px;
  }

  .nw-prca-hero-icon {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }

  .nw-prca-start-btn {
    padding: 18px 40px;
    font-size: 16px;
    width: 100%;
  }

  /* Stepper: hide labels on mobile, just dots */
  .nw-prca-step-label {
    display: none;
  }

  .nw-prca-step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .nw-prca-stepper::before {
    top: 18px;
    left: calc(20px + 18px);
    right: calc(20px + 18px);
  }

  .nw-prca-step::after {
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
  }

  /* Progress ring: smaller */
  .nw-prca-progress-ring {
    width: 56px;
    height: 56px;
    top: 85px;
    right: 15px;
  }

  .nw-prca-progress-ring svg {
    width: 48px;
    height: 48px;
  }

  .nw-prca-progress-percent {
    font-size: 12px;
  }

  /* Category header */
  .nw-prca-category-header {
    padding: 30px 15px 20px;
  }

  .nw-prca-category-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .nw-prca-category-title {
    font-size: 20px;
  }

  .nw-prca-category-desc {
    font-size: 14px;
  }

  /* Questions */
  .nw-prca-question {
    padding: 20px 18px;
    margin-bottom: 12px;
  }

  .nw-prca-question-text {
    font-size: 15px;
    padding-right: 24px;
  }

  .nw-prca-question.is-answered::after {
    width: 22px;
    height: 22px;
    font-size: 12px;
    top: 10px;
    right: 12px;
  }

  /* Scale bubbles: smaller on mobile */
  .nw-prca-scale {
    gap: 6px;
  }

  .nw-prca-option {
    padding: 6px;
  }

  .nw-prca-option-bubble { width: 38px; height: 38px; }

  .nw-prca-option-label {
    font-size: 10px;
    max-width: 60px;
  }

  /* Navigation: stack vertically */
  .nw-prca-category-nav {
    flex-direction: column;
    gap: 12px;
  }

  .nw-prca-btn-next,
  .nw-prca-btn-prev {
    width: 100%;
    text-align: center;
  }

  /* Contact */
  .nw-prca-contact {
    padding: 35px 20px;
  }

  .nw-prca-contact h3 {
    font-size: 20px;
  }

  /* Submit */
  .nw-prca-submit {
    width: 100%;
    padding: 18px 30px;
    font-size: 16px;
  }

  /* Results mobile */
  .nw-prca-score-circle {
    width: 180px;
    height: 180px;
  }

  .nw-prca-score-circle svg {
    width: 180px;
    height: 180px;
  }

  .nw-prca-score-number {
    font-size: 48px;
  }

  .nw-prca-result-level h2 {
    font-size: 20px;
    padding: 12px 24px;
  }

  .nw-prca-breakdown {
    padding: 28px 20px;
  }

  .nw-prca-breakdown-item {
    flex-wrap: wrap;
  }

  .nw-prca-breakdown-label {
    width: 100%;
    min-width: auto;
    margin-bottom: 5px;
  }

  .nw-prca-result-card {
    padding: 28px 24px;
  }

  .nw-prca-result-cta {
    padding: 40px 24px;
  }

  .nw-prca-result-cta h3 {
    font-size: 22px;
  }

  .nw-prca-btn-primary,
  .nw-prca-btn-outline,
  .nw-prca-btn-urgent {
    display: block;
    width: 100%;
    margin: 10px 0;
    text-align: center;
    box-sizing: border-box;
  }

  .nw-prca-admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phones */
@media (max-width: 380px) {
  .nw-prca-hero h2 {
    font-size: 20px;
  }

  .nw-prca-category-title {
    font-size: 18px;
  }

  .nw-prca-option-bubble { width: 34px; height: 34px; }

  .nw-prca-scale {
    gap: 4px;
  }
}

/* ==========================================================================
   17. REDUCED MOTION — Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nw-prca-confetti {
    display: none !important;
  }

  .nw-prca-category {
    transition: none !important;
  }

  .nw-prca-question {
    opacity: 1 !important;
    transform: none !important;
  }

  .nw-prca-hero {
    opacity: 1 !important;
    transform: none !important;
  }

  .nw-prca-contact {
    opacity: 1 !important;
    transform: none !important;
  }

  .nw-prca-breakdown-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .nw-prca-result-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .nw-prca-result-cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .nw-prca-result-level h2 {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   18. PRINT STYLES
   ========================================================================== */

@media print {
  .nw-prca-hero,
  .nw-prca-stepper,
  .nw-prca-progress-ring,
  .nw-prca-category-nav,
  .nw-prca-submit-wrap,
  .nw-prca-contact,
  .nw-prca-result-cta,
  .nw-prca-share,
  .nw-prca-confetti,
  .nw-prca-btn-primary,
  .nw-prca-btn-outline,
  .nw-prca-btn-urgent {
    display: none !important;
  }

  .nw-prca-result-card {
    box-shadow: none !important;
    border: 1px solid #EEF3F6 !important;
    break-inside: avoid;
  }

  .nw-prca-breakdown {
    box-shadow: none !important;
    border: 1px solid #EEF3F6 !important;
  }

  .nw-prca-score-circle {
    filter: none !important;
  }

  .nw-prca-result-level h2 {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .nw-prca-breakdown-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
