/* ============================================================
   Cakrawala Policy Lab — style.css
   Formal & kredibel: biru tua (#0F2B46) + aksen emas (#C5A059)
   Tanpa dependensi eksternal; font sistem serif/sans.
   ============================================================ */

:root {
  --navy: #0F2B46;
  --navy-dark: #0A1E33;
  --navy-soft: #1C4066;
  --gold: #C5A059;
  --gold-dark: #A8863F;
  --ink: #22303C;
  --muted: #5A6B78;
  --line: #D9DEE3;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F7;
  --danger: #B3261E;
  --danger-bg: #FDECEA;
  --ok: #146C2E;
  --ok-bg: #E6F4EA;
  --wa: #1FA855;
  --wa-dark: #178A45;
  --serif: Georgia, "Times New Roman", "Playfair Display", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .75rem;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy-soft); }
a:hover { color: var(--gold-dark); }

/* ---------- Header & navigasi ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(10, 30, 51, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* Logo Cakrawala di header & footer */
.brand { display: flex; flex-direction: row; align-items: center; gap: .7rem; }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.footer-line { display: flex; align-items: center; gap: .6rem; }
.footer-logo { width: 30px; height: 30px; border-radius: 7px; background: #fff; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.brand-sub {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-top: .2rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  border-radius: 6px;
  padding: .45rem .8rem;
  font-size: .95rem;
  cursor: pointer;
  font-family: var(--sans);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  display: block;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .95rem;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.main-nav a.active {
  color: var(--gold);
  font-weight: 600;
}

/* Dropdown "Layanan" */
.main-nav li.has-dropdown { position: relative; }

.main-nav .submenu {
  display: flex;
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(10, 30, 51, .22);
  padding: .45rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 70;
  /* Meluncur turun (slide down) saat menu Layanan disentuh */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.main-nav li.has-dropdown:hover .submenu,
.main-nav li.has-dropdown:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .main-nav .submenu { transition: none; }
}

.main-nav .submenu a {
  color: var(--navy);
  border-radius: 8px;
  padding: .55rem .8rem;
}

.main-nav .submenu a:hover { background: var(--bg-soft); color: var(--gold-dark); }
.main-nav .submenu a.active { color: var(--gold-dark); }

/* Tombol CTA di navigasi */
.main-nav a.nav-cta-btn {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: .55rem 1.1rem;
  margin-left: .4rem;
}

.main-nav a.nav-cta-btn:hover { background: var(--gold-dark); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 .25rem; }
  .main-nav a { padding: .65rem .5rem; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0; }
  .main-nav .submenu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1.1rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  .main-nav .submenu a { color: rgba(255, 255, 255, .85); }
  .main-nav .submenu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .main-nav a.nav-cta-btn { margin: .6rem 0 .3rem; text-align: center; border-radius: 999px; border-top: none; }
}

/* ---------- Hero & section ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(197, 160, 89, .28), rgba(197, 160, 89, 0) 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  border-bottom: 4px solid var(--gold);
}

.hero-sm { padding: 2.6rem 0 2.2rem; }

.hero h1 { color: #fff; max-width: 46rem; }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero .lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .88);
  max-width: 44rem;
}

.hero .hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }

.quick-links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }

.quick-links a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .92rem;
}

.quick-links a:hover { border-color: var(--gold); color: var(--gold); }

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 1.8rem;
}

.page-head .kicker,
.kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .5rem;
}

.hero .kicker { color: var(--gold); }

section { padding: 2.8rem 0; }
section.alt { background: var(--bg-soft); }

.section-head { max-width: 46rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); }

/* Strip disclaimer di bawah hero */
.disclaimer {
  background: #FBF6E9;
  border-bottom: 1px solid #EADFC0;
  color: #6D5410;
  font-size: .9rem;
  padding: .7rem 0;
}

.disclaimer p { margin: 0; }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: rgba(255, 255, 255, .75); margin-bottom: .9rem; }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ---------- Tombol ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--sans);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-wa { background: var(--wa); color: #fff; font-size: 1.05rem; padding: .9rem 1.6rem; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }

.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }

.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Bilah fakta ---------- */

.factbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
  text-align: left;
}

.fact .fact-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.fact .fact-num em { font-style: normal; color: var(--gold-dark); }

.fact .fact-label { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

/* ---------- Kartu bidang & layanan ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); flex: 1; }
.card a.card-link { font-weight: 600; text-decoration: none; }

/* Kartu ringkas jenis perizinan (beranda & halaman layanan) */
.permit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.permit-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.permit-tile:hover { border-color: var(--gold); box-shadow: 0 4px 18px rgba(15, 43, 70, .10); }
.permit-tile h3 { font-size: 1.1rem; }
.permit-tile .permit-desc { color: var(--muted); font-size: .94rem; flex: 1; }

.permit-tile .doc-count {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9rem;
}

.permit-tile .tile-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Langkah proses ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  counter-reset: langkah;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: .6rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Daftar cakupan ---------- */

.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 2.5rem;
  padding-left: 1.2rem;
}

.coverage li { margin-bottom: .55rem; }
.coverage li::marker { color: var(--gold-dark); }

/* Checklist dokumen pada halaman detail izin */
.doc-check { list-style: none; margin: 0 0 1rem; padding: 0; }

.doc-check li {
  padding: .55rem 0 .55rem 2rem;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.doc-check li:last-child { border-bottom: none; }

.doc-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Kotak catatan / poin penting */
.note-box {
  background: #FBF6E9;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0;
}

.note-box h3, .note-box h4 { margin-bottom: .4rem; }
.note-box p:last-child, .note-box ul:last-child { margin-bottom: 0; }
.note-box ul { margin: 0; padding-left: 1.2rem; }
.note-box li { margin-bottom: .3rem; }

/* ---------- FAQ accordion ---------- */

.faq-list { display: flex; flex-direction: column; gap: .8rem; max-width: 820px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.faq-item[open ] summary::after { content: "–"; }

.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

.faq-cat { margin-bottom: 2.2rem; }
.faq-cat > h2 { margin-bottom: 1rem; }

/* ---------- Artikel panduan ---------- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold-dark); }

.article-meta { color: rgba(255, 255, 255, .75); font-size: .92rem; margin-top: .4rem; }

.ref-list { padding-left: 1.2rem; }
.ref-list li { margin-bottom: .35rem; }

/* ---------- Katalog perizinan (dirender script.js) ---------- */

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.permit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.permit-card:hover { border-color: var(--gold); box-shadow: 0 4px 18px rgba(15, 43, 70, .10); }

.permit-card.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy) inset;
}

.permit-card h3 { font-size: 1.12rem; }
.permit-card .permit-desc { color: var(--muted); font-size: .95rem; }

.permit-card .doc-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: .6rem 0 .35rem;
}

.permit-card ul { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--ink); font-size: .93rem; }
.permit-card ul li { margin-bottom: .25rem; }

.permit-card .btn { margin-top: auto; align-self: flex-start; padding: .55rem 1rem; font-size: .92rem; }

/* ---------- Formulir ---------- */

.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  max-width: 820px;
}

@media (max-width: 560px) {
  .form-wrap { padding: 1.3rem; }
  h1 { font-size: 1.8rem; }
}

.field { margin-bottom: 1.2rem; }

.field label,
.field .field-label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--navy);
}

.field .hint { font-size: .87rem; color: var(--muted); margin-top: .25rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold-dark);
}

.req { color: var(--danger); }

/* Item dokumen dinamis */

.doc-list { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }

.doc-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
}

.doc-item.invalid { border-color: var(--danger); background: var(--danger-bg); }

.doc-item .doc-name { font-weight: 600; color: var(--navy); margin-bottom: .55rem; }

.doc-choices { display: flex; gap: .6rem; flex-wrap: wrap; }

.doc-choices label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem .9rem;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
}

.doc-choices label:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.doc-upload { margin-top: .8rem; }
.doc-upload input[type="file"] { font: inherit; max-width: 100%; }
.doc-upload .file-name { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

.field-error {
  display: none;
  color: var(--danger);
  font-size: .9rem;
  margin-top: .4rem;
  font-weight: 500;
}

.field-error.show { display: block; }

.form-alert {
  display: none;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
  font-weight: 500;
}

.form-alert.show { display: block; }
.form-alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.form-alert.info { background: #FFF7E0; color: #6D5410; border: 1px solid var(--gold); }

/* Panel sukses */

.success-panel {
  max-width: 820px;
  background: var(--ok-bg);
  border: 1px solid var(--ok);
  border-radius: 12px;
  padding: 2rem;
}

.success-panel h2 { color: var(--ok); }

.success-panel .wa-wrap { margin: 1.4rem 0; }

.preview-note {
  background: #FFF7E0;
  border: 1px solid var(--gold);
  color: #6D5410;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

/* Catatan hasil formulir konsultasi cepat */
.consult-note {
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  font-weight: 500;
  max-width: 820px;
}

.consult-note.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok); }
.consult-note.error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }

/* ---------- Banner CTA pra-footer ---------- */

.cta-banner {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(197, 160, 89, .30), rgba(197, 160, 89, 0) 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 2.8rem 0;
  border-top: 4px solid var(--gold);
}

.cta-banner h2 { color: #fff; margin-bottom: .4rem; }
.cta-banner p { color: rgba(255, 255, 255, .85); max-width: 40rem; }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Tombol WhatsApp melayang ---------- */

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(10, 30, 51, .35);
}

.wa-float:hover { background: var(--wa-dark); color: #fff; }

/* ---------- Kontak ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
}

.contact-card h3 { margin-bottom: .4rem; }
.contact-card p { color: var(--muted); margin-bottom: .6rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .82);
  padding: 2.6rem 0 1.8rem;
  margin-top: 0;
  font-size: .94rem;
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid p { color: rgba(255, 255, 255, .75); }

.footer-line {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.1rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
}

/* Formulir pengajuan v3: judul bagian, pemilih izin, grup dokumen,
   kotak kode pengajuan, dan kartu hasil cek status */
.form-section-title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.3rem;
  margin: 1.9rem 0 .4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-section-title:first-of-type { border-top: none; padding-top: 0; margin-top: .3rem; }

.permit-picker { display: flex; flex-direction: column; gap: 1.1rem; margin-top: .6rem; }
.picker-group h4 {
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.picker-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.picker-item {
  display: flex; gap: .6rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .8rem; cursor: pointer; background: #fff;
  font-weight: 400;
}
.picker-item:hover { border-color: var(--gold); }
.picker-item.checked { border-color: var(--gold); background: #FBF6E9; }
.picker-item input { margin-top: .25rem; }
.picker-item .pi-name { font-weight: 600; display: block; }
.picker-item .pi-count { font-size: .82rem; color: var(--muted); }

.doc-group {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem; margin-top: 1rem; background: #fff;
}
.doc-group h4 { margin: 0 0 .3rem; color: var(--navy); font-size: 1.05rem; }

.kode-box {
  background: #FBF6E9; border: 1px dashed var(--gold); border-radius: 10px;
  padding: .9rem 1.1rem; margin: 1rem 0; font-size: 1.02rem;
}
.kode-box strong { letter-spacing: .05em; }

.status-card {
  border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 1.1rem 1.2rem; background: #fff; margin-top: 1.2rem;
}
.status-badge {
  display: inline-block; background: var(--navy); color: #fff;
  border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; font-weight: 600;
}
