/* Placement Test, form data siswa, dan kuis */

/* ---------- Placement ---------- */
.intro-list { list-style: none; display: grid; gap: .8rem; margin: 0 0 1.5rem; }
.intro-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius-md); background: var(--soft); font-weight: 600; }
.intro-list .i-emoji { font-size: 1.8rem; text-align: center; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Kuis ---------- */
.quiz-count { font-weight: 700; color: var(--sea-dark); }
.quiz-progress { height: 14px; border-radius: 999px; background: var(--bar); overflow: hidden; margin-bottom: 2rem; }
.quiz-progress div { height: 100%; width: 0; background: var(--mint-dark); border-radius: inherit; transition: width .35s ease; }

.question { font-family: var(--font-display); font-size: clamp(1.45rem, 3.4vw, 1.85rem); font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 1.25rem; outline: none; }
.question-code {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--sun); font: 600 1.05rem/1.7 var(--font-code); overflow-x: auto; white-space: pre;
}
.answers { display: grid; gap: .75rem; }
.answer {
  display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 60px;
  padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 16px; background: #FFFDF9;
  text-align: left; font-weight: 600; font-size: 1.05rem; color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.answer:hover { border-color: var(--sea); }
.answer-key {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); font-weight: 800; color: var(--ink);
}
.answer[aria-checked="true"] { background: var(--mint-soft); border-color: var(--mint-dark); }
.answer[aria-checked="true"] .answer-key { background: var(--mint-ink); border-color: var(--mint-ink); color: #fff; }

.quiz-nav { display: grid; grid-template-columns: auto 1fr; gap: .75rem; margin-top: 2rem; }
.quiz-hint { min-height: 1.5em; margin-top: .9rem; text-align: center; color: var(--muted); font-weight: 600; }

/* ---------- Placement Test interaktif ---------- */
.test-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .9rem; }
.test-head .step-label { margin: 0; }
.test-timer { white-space: nowrap; font-weight: 600; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.quiz-count { margin: -1.2rem 0 1.25rem; min-height: 1.5em; }
.question-help { margin: -.6rem 0 1.25rem; color: var(--muted); }
.question-body { margin-top: .25rem; }

.section-intro { text-align: center; padding: 1rem 0 .5rem; }
.section-intro .question { font-size: clamp(1.8rem, 4.5vw, 2.4rem); color: var(--ink); }
.section-intro .lead { max-width: 46ch; margin-inline: auto; }
.section-count { display: inline-block; margin-top: 1rem; padding: .3rem .9rem; border-radius: 999px; background: var(--sun-soft); font-weight: 700; color: var(--ink); }

/* Kartu jawaban */
.answers-cards { grid-template-columns: repeat(2, 1fr); }
.answers-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.answers-cards .answer { flex-direction: column; justify-content: center; text-align: center; min-height: 118px; padding: 1rem .8rem; gap: .5rem; }
.answers-cards .answer-key { display: none; }
.answer-emoji { font-size: 2.2rem; line-height: 1; }
.answers-cards .answer-text { font-size: 1.02rem; }
.answer[role="checkbox"][aria-checked="true"] { background: var(--mint-soft); border-color: var(--mint-dark); }
.answers-bug.is-code .answer-text { font-family: var(--font-code); white-space: pre; font-size: 1rem; }
.pick-counter { margin: 0 0 .75rem; font-weight: 700; color: var(--sea-dark); }
.text-answer + .pick-counter { margin: .6rem 0 0; }

/* Skala emoji */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.scale-btn {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .25rem;
  border: 2px solid var(--line); border-radius: 16px; background: #FFFDF9; cursor: pointer; color: var(--text);
}
.scale-btn:hover { border-color: var(--sea); }
.scale-emoji { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1; }
.scale-label { font-size: .82rem; font-weight: 600; line-height: 1.2; text-align: center; }
.scale-btn[aria-checked="true"] { background: var(--sun-soft); border-color: var(--sun-dark); }

/* Menyusun urutan */
.seq-slots { list-style: none; display: grid; gap: .5rem; margin-bottom: 1rem; }
.seq-slot { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: .6rem; min-height: 54px; }
.seq-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-dark); color: #fff; font: 800 1.1rem/1 var(--font-display); }
.seq-empty {
  display: flex; align-items: center; min-height: 54px; padding: 0 1rem; border: 2px dashed var(--line); border-radius: 14px;
  color: var(--muted); font-weight: 600; font-size: .95rem;
}
.seq-pool { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.seq-item {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .6rem 1rem;
  border: 2px solid var(--sea-line); border-radius: 14px; background: var(--sea-soft); color: var(--ink);
  font-weight: 700; text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--sea-line);
}
.seq-item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sea-line); }
.seq-item.is-placed { width: 100%; background: var(--mint-soft); border-color: var(--mint-dark); color: var(--ink); box-shadow: none; }
.seq-done { width: 100%; margin: 0; color: var(--mint-ink); font-weight: 600; }
.seq-reset { margin-top: .75rem; background: none; border: 0; padding: .4rem 0; color: var(--sea-dark); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Robot di dalam test */
.robot-task { max-width: 460px; margin-inline: auto; }
.robot-task .lab-grid { margin-top: 0; }
.robot-task .lab-cell { font-size: clamp(1.2rem, 4vw, 1.7rem); }

.text-answer { min-height: 150px; resize: vertical; line-height: 1.6; }

@media (max-width: 520px) {
  .scale { gap: .3rem; }
  .scale-label { font-size: .72rem; }
  .answers-cards, .answers-cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .answers-cards .answer { min-height: 104px; }
  .lab-cmd { font-size: .92rem; white-space: nowrap; padding: 0 .25rem; }
}

/* ---------- Musik latar ---------- */
.test-tools { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; flex: 1 1 auto; }
@media (max-width: 560px) {
  .test-tools { width: 100%; justify-content: space-between; }
  .music-btn { min-height: 38px; padding: .3rem .75rem; font-size: .85rem; }
}
.music-btn {
  min-height: 40px; padding: .35rem .85rem; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 600 .9rem var(--font-body); cursor: pointer; white-space: nowrap;
}
.music-btn[aria-pressed="true"] { background: var(--sun-soft); border-color: var(--sun-dark); }
.music-btn:hover { border-color: var(--sea); }
.music-note { margin: 1rem auto 0; max-width: 42ch; font-size: .95rem; color: var(--muted); }
