
:root {
  --navy: #174a70;
  --blue: #287fbd;
  --pale: #eaf6ff;
  --gold: #f5b942;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #d3e5f2;
  --red: #b42318;

  --blue-light: #eaf6ff;
  --blue-mid: #c5e5ff;
  --blue-bright: #91cbf5;
  --blue-dark: #174a70;

  --placeholder: #64748b;
}

/* RESET */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}



/* HEADER DAN LOGO */

header {
  background: linear-gradient(
    120deg,
    #eaf6ff 0%,
    #c5e5ff 55%,
    #91cbf5 100%
  );
  color: #174a70;
  padding: 14px 24px;
  border-bottom: 1px solid #b8d9f0;
}

.head {
  max-width: 1100px;
  min-height: 120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
}

/* Logo di sebelah kiri */
.logo {
  order: 0;
  display: block;
  width: 170px;
  max-width: 25%;
  max-height: 95px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

/* Tulisan rata kiri di samping kanan logo */
.header-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 5px;
  color: #174a70;
  text-align: left;
}

header p {
  margin: 0;
  color: #315f80;
  text-align: left;
}

.passline {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

.powered {
  font-size: 0.92rem;
}

/* Header pada layar HP */
@media (max-width: 650px) {
  header {
    padding: 14px;
  }

  .head {
    min-height: 90px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .logo {
    width: 95px;
    max-width: 30%;
    max-height: 70px;
    margin: 0;
    flex-shrink: 0;
  }

  .header-text {
    flex: 1;
    text-align: left;
  }

  h1 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: left;
  }

  .passline {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  header p {
    text-align: left;
  }
}


/* AREA KONTEN */

main {
  max-width: 1500px;
  margin: 24px auto;
  padding: 0 16px 45px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 5px 18px #174a700d;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 15px;
  color: var(--navy);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid {
  margin-top: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

/* LABEL DAN INPUT */

label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  border: 1px solid #c5d9e8;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
}

input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

input:focus,
select:focus,
summary:focus {
  outline: 3px solid #d6edff;
  border-color: var(--blue);
}

.other-field {
  margin-top: 8px;
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 5px;
}

.note {
  background: #f0f8ff;
  border: 1px solid #c5e2f7;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #315a78;
}

/* DROPDOWN PERUSAHAAN, DEPARTEMEN, JABATAN */

#perusahaan,
#jabatan,
#departemen {
  color: var(--placeholder);
}

#perusahaan.has-value,
#jabatan.has-value,
#departemen.has-value {
  color: var(--ink);
}

#perusahaan option,
#jabatan option,
#departemen option {
  background: #ffffff;
  color: var(--ink);
}

#perusahaan option[value=""],
#jabatan option[value=""],
#departemen option[value=""] {
  color: var(--placeholder);
}

/* INPUT KAPITAL */

#perusahaanOther,
#jabatanOther,
#versatilityOther {
  text-transform: uppercase;
}

/* DROPDOWN VERSATILITY */

.multi-select {
  position: relative;
  width: 100%;
}

.multi-select summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #c5d9e8;
  border-radius: 9px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--placeholder);
  font-size: 0.9rem;
}

.multi-select summary::-webkit-details-marker {
  display: none;
}

.multi-select summary::after {
  content: " ▾";
  float: right;
  color: var(--muted);
}


/* VERSATILITY: SATU KOLOM, URUT VERTIKAL */

.multi-options {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.multi-options .option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.multi-options .option:hover {
  background: #f0f8ff;
  border-color: var(--line);
}

.multi-options .option input {
  width: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.multi-options .option:has(input:checked) {
  background: #e5f3ff;
  border-color: var(--blue);
}

.multi-options .option span {
  min-width: 0;
}

/* Tetap satu kolom pada layar HP */
@media (max-width: 650px) {
  .multi-options {
    grid-template-columns: 1fr;
  }
}


/* TOMBOL */

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.primary {
  background: linear-gradient(
    135deg,
    #64b5ed,
    #287fbd
  );
  color: #ffffff;
}

.primary:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    #429bd9,
    #1b659c
  );
}

.secondary {
  background: #eaf5fd;
  color: var(--navy);
}

.danger {
  background: #fff0ef;
  color: var(--red);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

/* PROGRES UJIAN */

.progressrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.track {
  height: 8px;
  background: #e5eff7;
  border-radius: 99px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    #a9dcff,
    #287fbd
  );
  width: 0;
  transition: width 0.2s;
}

.qtop {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}

.pill {
  background: var(--pale);
  color: var(--blue-dark);
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 750;
}

.qtext {
  font-weight: 750;
  font-size: 1.1rem;
  margin: 12px 0 18px;
  white-space: pre-wrap;
}

/* PILIHAN JAWABAN */

.option {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  margin: 9px 0;
  cursor: pointer;
  font-weight: 450;
}

.option:hover {
  background: #f3f9ff;
  border-color: #9bc9eb;
}

.option input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--blue);
}

.option.selected {
  border-color: var(--blue);
  background: #eaf6ff;
}

.hint {
  margin-top: 12px;
}

/* NILAI DAN ARSIP */

.statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  background: #f4f9fd;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 12px;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf7ff;
  color: #245778;
}

/* FOOTER */

footer,
.site-footer {
  width: 100%;
  text-align: center;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 20px 16px;
  margin-top: 20px;
}

/* KOLOM INPUT TAMBAHAN */

.other-wrap {
  margin-top: 10px;
}

.other-wrap[hidden] {
  display: none !important;
}

/* TAMPILAN HP */

@media (max-width: 650px) {
  .head {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .logo {
    width: 150px;
    max-width: 50%;
    max-height: 75px;
    align-self: flex-end;
    margin-left: auto;
  }

  .header-text {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .card {
    padding: 17px;
  }

  .multi-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .statgrid .stat:last-child {
    grid-column: 1 / -1;
  }
}


/* Semua soal tampil berurutan dalam satu halaman */
#questionMount {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.question-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  scroll-margin-top: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.question-card .qtop {
  margin: 0 0 10px;
}

.question-card .qtext {
  margin: 12px 0 16px;
}

/* Tandai soal yang belum dijawab */
.question-card.unanswered {
  border: 2px solid #dc2626;
  background: #fff7f7;
}

.question-card.unanswered::before {
  content: "Soal ini belum dijawab";
  display: block;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Tombol kumpulkan jawaban */
#submitBtn {
  display: block;
  margin: 22px 0;
  min-width: 200px;
}

/* Jangan tampilkan navigasi soal lama */
#prevBtn,
#nextBtn,
#progressLabel,
#answeredLabel,
#progressBar {
  display: none !important;
}
