/* DocBox.id — /testimoni/. Basis tampilan = css/tailwind.css (sama dengan homepage).
   File ini hanya berisi: salinan <style> kustom index.html yang dipakai header/hero,
   dan pemilih rating bintang + honeypot (tidak bisa dibuat dengan kelas Tailwind saja). */

/* --- salinan dari <style> index.html --- */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
.hero-gradient { background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%); }
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
  background-color: #2563eb; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- halaman legal (/kebijakan-privasi/, /syarat-ketentuan/): tipografi isi panjang --- */
.legal-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
@media (min-width: 640px) { .legal-toc { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.legal { color: #374151; line-height: 1.75; font-size: 16px; }
.legal-section { scroll-margin-top: 96px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; line-height: 1.35; font-weight: 700; color: #111827; margin: 0 0 14px; }
.legal h3 { font-size: 17px; font-weight: 600; color: #111827; margin: 20px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: #2563eb; }
.legal a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #1d4ed8; }
.legal strong { color: #111827; font-weight: 600; }
.legal .note { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.legal .contact { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 16px; padding: 20px 24px; }
.legal .contact p { margin: 0 0 6px; }

/* --- tombol WhatsApp melayang (pola indocoolant.com; salinan inline di index.html) --- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa:hover { transform: scale(1.08); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.wa:focus-visible { outline: 3px solid rgba(37,211,102,.5); outline-offset: 3px; }
@media (max-width: 640px) { .wa { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
/* halaman dengan badge reCAPTCHA (kanan bawah): naikkan tombol agar tidak menutupinya */
body.has-recaptcha .wa { bottom: 96px; }

/* --- form --- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
textarea { min-height: 128px; resize: vertical; }
.consent { width: 16px; height: 16px; flex: none; accent-color: #2563eb; }

/* rating bintang 1–5 (radio + CSS; urutan DOM 5→1, ditampilkan 1→5 lewat row-reverse) */
fieldset.rating-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.stars label { margin: 0; padding: 2px; cursor: pointer; color: #d1d5db; line-height: 0; border-radius: 6px; transition: color .1s, transform .1s; }
.stars label svg { width: 34px; height: 34px; display: block; }
.stars input:checked ~ label { color: #facc15; }              /* = text-yellow-400 kartu homepage */
.stars:has(label:hover) label { color: #d1d5db; }
.stars:has(label:hover) label:hover,
.stars:has(label:hover) label:hover ~ label { color: #fde047; }
.stars label:hover { transform: scale(1.08); }
.stars input:focus-visible + label { outline: 3px solid rgba(59,130,246,.45); outline-offset: 1px; }
.stars.is-invalid label { color: #fca5a5; }
.rating-caption { order: -1; margin-left: 12px; font-size: 14px; font-weight: 600; color: #6b7280; min-width: 7em; }
.rating-caption span { display: none; }
.rating-caption .cap-0 { display: inline; font-weight: 400; }
.stars input:checked ~ .rating-caption .cap-0 { display: none; }
#rating-1:checked ~ .rating-caption .cap-1,
#rating-2:checked ~ .rating-caption .cap-2,
#rating-3:checked ~ .rating-caption .cap-3,
#rating-4:checked ~ .rating-caption .cap-4,
#rating-5:checked ~ .rating-caption .cap-5 { display: inline; color: #2563eb; }
