#custom-quiz {
  max-width: 100%;
  margin: auto;
  color: #eee;
  background: #2e2e2e;
  padding: 4.5vw;
  border-radius: 6px;
  margin-top: -10px;
}

.quiz-slide {
  min-height: 10px;
  display: none;
  animation: fade 0.4s ease;
  margin-bottom: 12px;
}

.quiz-slide.active {
  display: block;
}

.quiz-slide label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: large;
  background: repeating-linear-gradient(to right, #f5ff62 0%, #fff454 30%, #fcff64 70%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: white !important;
}

.quiz-slide input,
.quiz-slide textarea,
.quiz-slide select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: none;
  background: #1a1a1a;
  color: #fff;
}

.quiz-controls {
  display: none;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.quiz-controls button,
.start-btn {
  background: #d9ff2e;
  color: #000;
  padding: 10px 26px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}

.progressbar {
  height: 4px;
  background: #333;
  margin-bottom: 30px;
}

.progressfill {
  height: 100%;
  width: 0%;
  background: #d9ff2e;
  transition: width 0.3s ease;
}

.hint {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 10px;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.summaryBox {
  color: #000;
  background: #ffffff;
  padding: 20px;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-height: 50vh;
  overflow: auto;
}

#custom-quiz input,
#custom-quiz select,
#custom-quiz textarea {
  height: 48px;
  line-height: 1.2;
  box-sizing: border-box;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
}

/* Textarea: allow growth but keep first impression consistent */
#custom-quiz textarea {
  min-height: 48px;
  resize: vertical;
  overflow-y: hidden;
}

/* Select dropdown arrow alignment */
#custom-quiz select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-bottom: 20px;
}


#custom-quiz .confirm-row {
  display: block;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

#custom-quiz .confirm-row input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}


#custom-quiz #signatureName {
  font-family: 'Georgia', serif;
  letter-spacing: 0.5px;
}


.quiz-success {
  display: none;
  text-align: left;
  background: #2e2e2e;
  padding: 4.5vw;
  border-radius: 6px;
  margin-top: -10px;
  padding-top: 4vw;
}