/* =======================================
   QUESTION OVERLAY
======================================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 4, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.overlay.hidden { display: none; }

.overlay-content {
  background: #151f15;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  padding: 20px 22px;
  box-shadow: 0 0 18px rgba(76,255,71,0.35);
  border: 1px solid rgba(76,255,71,0.6);
  position: relative;
}

.overlay-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(76,255,71,0.22);
  pointer-events: none;
}

.overlay-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.35rem;
  color: #e6ffe6;
}

.question-meta {
  font-size: 0.8rem;
  color: #8cff9b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#question-text { font-weight: 600; color: #f3fff3; }

/* =======================================
   IMAGE QUESTIONS
======================================= */

.image-wrapper {
  margin: 12px 0 6px;
  text-align: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  border: 1px solid #3bbf3b;
  box-shadow: 0 0 16px rgba(76,255,71,0.28);
  object-fit: cover;
}

/* =======================================
   MULTIPLE CHOICE
======================================= */

.choices {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.choice-btn {
  border-radius: 8px;
  border: 1px solid #294329;
  background: #182318;
  color: #e6ffe6;
  padding: 8px 11px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  transition: 0.12s;
}

.choice-btn:hover:not(.disabled) {
  background: #1f2f1f;
  border-color: #4cff47;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(76,255,71,0.5);
}

.choice-btn.disabled {
  cursor: default;
  opacity: 0.6;
}

/* =======================================
   FREE TEXT
======================================= */

.text-answer {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.text-answer input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #294329;
  background: #0f150f;
  color: #e6ffe6;
}

.text-answer input:focus {
  border-color: #4cff47;
  box-shadow: 0 0 10px rgba(76,255,71,0.5);
}

/* =======================================
   ORDER QUESTIONS
======================================= */

.order-container {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  background: #151f15;
  border: 1px solid #294329;
}

.order-label {
  font-weight: 600;
  min-width: 26px;
  color: #8cff9b;
}

.order-buttons {
  display: flex;
  gap: 4px;
}

.order-buttons button {
  border-radius: 6px;
  border: 1px solid #3bbf3b;
  background: #182318;
  color: #e6ffe6;
  padding: 3px 7px;
  font-size: 0.8rem;
}

.order-buttons button:hover { background: #223822; }

.order-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* =======================================
   FEEDBACK
======================================= */

.feedback {
  margin-top: 10px;
  min-height: 32px;
  font-size: 0.9rem;
  white-space: pre-line;
}

.feedback::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 6px;
  background: #4cff47;
}

.overlay-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
