 /* ===== RESET DAN WARNA ===== */
    * {
      box-sizing: border-box;
    }

    :root {
      --primary: #673ab7;
      --primary-dark: #512da8;
      --background: #f0ebf8;
      --surface: #ffffff;
      --text: #202124;
      --muted: #5f6368;
      --border: #dadce0;
      --success: #137333;
      --success-bg: #e6f4ea;
      --error: #b3261e;
      --error-bg: #fce8e6;
    }

    body {
      margin: 0;
      background-image: url("/images/background-web.JPG");
      /* === background: var(--background);=== (default background)*/
      color: var(--text);
      font-family: Arial, Helvetica, sans-serif;
      font-size: 16px;
      line-height: 1.6;
    }

    .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-text {
  flex: 1;
  min-width: 0;
}

.header-text h1 {
  margin: 0 0 8px;
}

.header-text p {
  margin: 0;
  color: #5f6368;
}

.header-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Tampilan HP */
@media (max-width: 480px) {
  .header-top {
    gap: 12px;
  }

  .header-logo {
    width: 55px;
    height: 55px;
  }

  .header-text h1 {
    font-size: 21px;
  }

  .header-text p {
    font-size: 13px;
  }
}

    button, textarea, select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    button:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
      outline: 3px solid #b69bea;
      outline-offset: 2px;
    }

    .container {
      width: min(100% - 32px, 700px);
      margin: 32px auto;
    }

    /* ===== KARTU FORM ===== */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 16px;
      padding: 24px;
    }

    .header-card {
      border-top: 10px solid var(--primary);
      padding-top: 20px;
    }

    h1 {
      margin: 0 0 8px;
      font-size: 28px;
      line-height: 1.3;
    }

    h2 {
      margin: 0 0 12px;
      font-size: 21px;
    }

    p {
      margin: 8px 0;
    }

    .muted {
      color: var(--muted);
      font-size: 14px;
    }

    .required {
      color: var(--error);
    }

    .instructions {
      border-top: 1px solid var(--border);
      margin-top: 20px;
      padding-top: 14px;
      font-size: 14px;
    }

    /* ===== AUDIO PLAYER ===== */
    .audio-box {
      background: #f8f7fa;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px;
      margin: 18px 0;
    }

    .audio-title {
      font-weight: 600;
      margin-bottom: 12px;
    }

    .audio-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .audio-buttons button {
      min-height: 42px;
    }

    .audio-status {
      font-size: 13px;
      color: var(--muted);
      margin-top: 12px;
      overflow-wrap: anywhere;
    }

    .audio-status.error {
      color: var(--error);
    }

    .speed-control {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 14px;
      font-size: 14px;
    }

    select {
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 7px;
      background: white;
      color: var(--text);
    }

    /* ===== KOLOM JAWABAN ===== */
    .answer-label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
    }

    textarea {
      display: block;
      width: 100%;
      min-height: 110px;
      resize: vertical;
      padding: 12px;
      border: none;
      border-bottom: 2px solid var(--border);
      border-radius: 4px 4px 0 0;
      background: #fafafa;
      color: var(--text);
      line-height: 1.6;
    }

    textarea:focus {
      border-bottom-color: var(--primary);
      outline: none;
    }

    textarea.invalid {
      border-bottom-color: var(--error);
    }

    /* ===== TOMBOL ===== */
    .button {
      border: 1px solid var(--border);
      background: white;
      color: var(--primary);
      border-radius: 6px;
      padding: 10px 16px;
      min-height: 42px;
      font-weight: 600;
    }

    .button:hover {
      background: #f5f0fc;
    }

    .button.primary {
      color: white;
      background: var(--primary);
      border-color: var(--primary);
    }

    .button.primary:hover {
      background: var(--primary-dark);
    }

    .button.home {
      color: white;
      background: var(--primary);
      border-color: var(--primary);
    }

    .button.button.home:hover {
      background: var(--primary-dark);
    }

    .button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .navigation-group {
      display: flex;
      gap: 8px;
    }

    .progress-track {
      height: 7px;
      background: #e8e3ef;
      border-radius: 10px;
      overflow: hidden;
      margin: 12px 0 6px;
    }

    .progress-bar {
      height: 100%;
      width: 0;
      background: var(--primary);
      transition: width 0.2s ease;
    }

    .status-message {
      margin-top: 14px;
      font-size: 14px;
    }

    .status-message.error {
      color: var(--error);
    }

    .status-message.success {
      color: var(--success);
    }

    .footer-actions {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .text-button {
      color: var(--primary);
      background: none;
      border: none;
      padding: 8px 0;
      text-decoration: underline;
    }

    /* ===== HASIL ===== */
    .score-box {
      text-align: center;
      background: #f8f7fa;
      padding: 24px;
      border-radius: 10px;
      margin: 18px 0;
    }

    .score-number {
      font-size: 38px;
      font-weight: 700;
      color: var(--primary);
      line-height: 1.3;
    }

    .result-item {
      border: 1px solid var(--border);
      border-left: 5px solid var(--border);
      border-radius: 8px;
      padding: 16px;
      margin-top: 14px;
      overflow-wrap: anywhere;
    }

    .result-item.correct {
      border-left-color: var(--success);
    }

    .result-item.incorrect {
      border-left-color: var(--error);
    }

    .result-label {
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .correct .result-label {
      color: var(--success);
    }

    .incorrect .result-label {
      color: var(--error);
    }

    .answer-text {
      white-space: pre-wrap;
      margin-top: 4px;
    }

    .hidden {
      display: none !important;
    }

    .page-footer {
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      padding: 10px 0 24px;
    }

    @media (max-width: 480px) {
      .container {
        width: calc(100% - 20px);
        margin: 12px auto;
      }

      .card {
        padding: 18px;
        border-radius: 10px;
      }

      h1 {
        font-size: 24px;
      }

      h2 {
        font-size: 19px;
      }

      .button {
        padding: 9px 12px;
      }

      .footer-actions {
        align-items: flex-start;
      }

      .audio-buttons button {
        flex: 1;
      }
    }
    

/* Kolom nama peserta */
#name-section {
  margin-bottom: 20px;
}

#participant-name {
  width: 100%;
  padding: 12px;
  margin: 10px 0 16px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

#start-button {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background: #1a73e8;
  color: white;
  font-size: 15px;
  cursor: pointer;
}

#start-button:hover {
  background: #1558b0;
}

/* Soal disembunyikan sebelum nama diisi */
#questions-section {
  display: none;
}
