:root {
  --quizwp-primary: #ff6a00;
  --quizwp-accent: #ff6a00;
  --quizwp-bg-blur: 10px;
}

html.quizwp-no-scroll,
body.quizwp-no-scroll {
  overflow: hidden !important;
}

.quizwp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.quizwp-overlay__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.quizwp-overlay__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 18px;
}

.quizwp-quiz--overlay {
  max-width: 820px;
}

.quizwp-quiz {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 24px auto;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

.quizwp-quiz__backdrop {
  position: absolute;
  inset: -24px;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(var(--quizwp-bg-blur));
  z-index: 0;
  border-radius: 28px;
}

.quizwp-quiz__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #0b1220;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.quizwp-quiz__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.quizwp-quiz__topbar {
  height: 6px;
  background: var(--quizwp-accent);
}

.quizwp-quiz__body {
  padding: 24px;
}

.quizwp-quiz__meta {
  text-align: center;
  color: #7b8794;
  font-size: 14px;
  margin-bottom: 10px;
}

.quizwp-quiz__title {
  text-align: center;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  color: #0b1220;
}

.quizwp-quiz__options {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.quizwp-quiz__option {
  appearance: none;
  border: 2px solid var(--quizwp-accent);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: #fff7f0;
  color: #ff6a00;
}

.quizwp-quiz__option:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.18);
}

.quizwp-quiz__option:active {
  transform: translateY(0);
}

.quizwp-loading {
  padding: 20px 0;
  text-align: center;
}

.quizwp-loading__dots {
  display: inline-flex;
  gap: 8px;
  margin: 12px 0 6px;
}

.quizwp-loading__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--quizwp-accent);
  display: inline-block;
  animation: quizwpPulse 1.2s infinite ease-in-out;
}

.quizwp-loading__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.quizwp-loading__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes quizwpPulse {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.quizwp-loading__text {
  font-size: 18px;
  font-weight: 800;
  color: var(--quizwp-accent);
}

.quizwp-quiz__cta-title {
  text-align: center;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 900;
  color: #0b1220;
}

.quizwp-quiz__cta-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--quizwp-primary);
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.28);
}

.quizwp-quiz__cta-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.quizwp-quiz__cta-subtext {
  text-align: center;
  color: #8a97a6;
  margin-top: 14px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .quizwp-quiz__body {
    padding: 18px;
  }

  .quizwp-quiz__title,
  .quizwp-quiz__cta-title {
    font-size: 22px;
  }

  .quizwp-quiz__option {
    font-size: 16px;
    padding: 14px 14px;
  }
}
