/* Form /lapor. Token warna, font, .card, .chip, .btn-dl dari style.css. */
.lapor-top { width: min(600px, 100% - 32px); margin-inline: auto; }
.lapor { width: min(600px, 100% - 32px); margin: 8px auto 48px; }
.lapor-form { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; }
.lapor-form h1 { font-size: clamp(30px, 6vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.lapor-sub { margin-top: -10px; color: var(--muted); }
.form-err {
  padding: 12px 14px; border-radius: 14px; font-weight: 600;
  color: #ffd6de; background: rgba(255, 92, 122, .14); box-shadow: inset 0 0 0 1px rgba(255, 92, 122, .35);
}
.form-err[hidden] { display: none; }

/* jenis laporan: kartu bergambar, yang dipilih putih seperti pilihan di jendela Intip */
.cats { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cats legend, .lbl { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; padding: 0; }
.lbl em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.cat { position: relative; }
.cat input { position: absolute; opacity: 0; pointer-events: none; }
.cat span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; padding: 14px 8px 12px; border-radius: 18px; cursor: pointer; text-align: center;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.34, 1.4, .5, 1);
}
.cat svg { width: 30px; height: 30px; }
.cat-bug svg { color: #ff9cb6; }
.cat-saran svg { color: #ffd66b; }
.cat-lainnya svg { color: var(--lav); }
.cat b { font-size: 15px; }
.cat span:hover { background: rgba(255, 255, 255, .1); }
.cat span:active { transform: scale(.96); }
.cat input:checked + span { background: rgba(255, 255, 255, .95); color: #141414; box-shadow: 0 10px 26px -14px rgba(180, 156, 255, .8); }
.cat-bug input:checked + span svg { color: #e0447a; }
.cat-saran input:checked + span svg { color: #c48a00; }
.cat-lainnya input:checked + span svg { color: #7a55e6; }
.cat input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 3px; }

.field { display: block; position: relative; }
.field textarea, .field input {
  display: block; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.45; padding-bottom: 30px; }
.field input { min-height: 52px; }
.field textarea::placeholder, .field input::placeholder { color: rgba(245, 243, 250, .38); }
.field textarea:focus, .field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lav); }
.count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }

/* foto: maks 3, kotak "Tambah foto" + thumbnail dengan tombol × */
.att-head { display: flex; align-items: baseline; justify-content: space-between; }
.att-count { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-radius: 18px; }
.photos.over { outline: 2px dashed var(--lav); outline-offset: 4px; }
.add-photo, .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; }
.add-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; text-align: center; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1.5px dashed rgba(255, 255, 255, .22); transition: background .2s ease, border-color .2s ease;
}
.add-photo[hidden] { display: none; }
.add-photo:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.add-photo input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.add-photo:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.add-photo svg { width: 26px; height: 26px; color: var(--lav); }
.add-photo b { font-size: 14px; }
.add-photo small { color: var(--muted); font-size: 11.5px; }
.thumb { overflow: hidden; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-x {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font: 700 18px/1 var(--font); color: #fff; background: rgba(12, 12, 14, .78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}
.thumb-x:hover { background: rgba(255, 92, 122, .9); }
.thumb-x:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* intip.log: baris kecil terpisah */
.log-row { position: relative; display: flex; align-items: center; gap: 8px; }
.log-pick {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s ease;
}
.log-pick:hover { background: rgba(255, 255, 255, .08); }
.log-pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.log-pick:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.log-pick svg { flex: none; width: 22px; height: 22px; color: var(--lav); }
.log-pick span { display: block; min-width: 0; }
.log-pick b { font-size: 14.5px; overflow-wrap: anywhere; }
.log-pick em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.log-pick small { display: block; color: var(--muted); font-size: 12.5px; }
.log-x {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; font: 700 20px/1 var(--font);
  color: var(--text); background: rgba(255, 255, 255, .08);
}
.log-x[hidden] { display: none; }
.log-x:hover { background: rgba(255, 92, 122, .3); }

/* field jebakan buat bot: tidak kelihatan, tidak bisa di-tab */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.app-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .06); }
.app-chip img { border-radius: 5px; }
.send { justify-content: center; width: 100%; margin-top: 4px; border: 0; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.send:disabled { opacity: .6; transform: none; }

.thanks { align-items: center; text-align: center; padding: 40px 24px; gap: 14px; }
.thanks img { filter: drop-shadow(0 18px 36px rgba(180, 156, 255, .45)); }
.thanks h1 { margin-top: 6px; }
.thanks p { font-size: 18px; }
.thanks .lapor-sub { margin-top: -6px; font-size: 15px; }
.thanks-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.thanks-btns .btn-dl { min-height: 52px; font-size: 16px; padding: 0 22px; }

@media (max-width: 420px) {
  .lapor-form { padding: 22px 16px; }
  .cat span { min-height: 84px; }
}
