/* Block background, independent of the builder page wrapper. */
.lock-quiz {
  background: #F6B501;
  color: #000;
  padding: 20px;
}

/* Quiz form controls (previously reset by Tailwind preflight). */
.answer-input {
  background: transparent;
  border: none;
}

.submit-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 10px 15px;
  cursor: pointer;
}

.answer-label {
  display: block;
  text-align: left;
}

/* Dialogs. */
.quiz-dialog {
  border: none;
  border-radius: 10px;
  padding: 24px;
  max-width: 425px;
  width: calc(100% - 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #111;
  text-align: left;
}

.quiz-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.quiz-dialog h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.quiz-dialog p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.quiz-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.quiz-dialog-close:hover {
  color: #111;
}

/* Discount code box in the success dialog. */
.quiz-code-box {
  margin-top: 16px;
  padding: 16px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-code-label {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 4px;
}

.quiz-code {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
  margin: 0;
}

.quiz-copy-button {
  padding: 8px 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.quiz-copy-button:hover {
  background: #2563eb;
}

/* Toast notifications. */
.quiz-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s;
}

.quiz-toast--error {
  color: #dc2626;
}

.quiz-toast--hide {
  opacity: 0;
}
