/* Skill level quiz (/levels). */

/*
 * Behavioral rules the quiz depends on: levels.js reveals sections, the
 * results, and the admin button by setting display: block, so they must start
 * hidden.
 */
.questions,
.level--results,
#level-show-all {
  display: none;
}

/* Layout */
.level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.level-header h2 { margin: 0; }

.questions { margin: 1rem 0; }

/* Each statement is one big tap target: the whole label toggles the box. */
.question { position: relative; margin-bottom: 0.5rem; }
.question input[type="checkbox"] {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  accent-color: var(--accent);
}
.question input[type="checkbox"] + label {
  display: block;
  min-height: 3.25rem;
  padding: 0.85rem 1rem 0.85rem 3.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.question input[type="checkbox"]:checked + label {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* DUPR field */
.question label[for="dupr"] { display: block; margin: 1rem 0 0.35rem; font-weight: 600; }
#dupr {
  width: 7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.level-submit { margin-top: 1rem; }
.level-submit input[type="submit"] { width: 100%; }
@media (min-width: 30rem) {
  .level-submit input[type="submit"] { width: auto; min-width: 12rem; }
}

#level-show-all {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}

/* Result */
.level--results {
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.level--results:focus { outline: none; }
.level--message { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.level--instructions { margin: 0; font-size: 1.125rem; }
.level-result { font-style: italic; }

.level-signup { margin-top: 2rem; color: var(--muted); font-size: 0.9375rem; text-align: center; }
