/* =====================================================================
   PPKPT ITP2I - Stylesheet
   Palet diambil dari cover laporan: merah, marun, arang, dengan aksen
   hijau, oranye, dan cokelat (motif empat kotak).
   ===================================================================== */

:root {
  --red: #C62828;
  --red-700: #9B0A0A;
  --red-800: #7A0808;
  --red-50: #FCEDEC;
  --ink: #222222;
  --ink-2: #444444;
  --muted: #6A6461;
  --green: #1F6B3A;
  --green-50: #E7F2EA;
  --orange: #F28C28;
  --orange-50: #FEF1E3;
  --brown: #A0612F;
  --paper: #FFFFFF;
  --mist: #F7F3F1;
  --line: #E8E1DD;
  --dark: #1C1C1C;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(34, 34, 34, .06), 0 8px 24px rgba(34, 34, 34, .07);
  --shadow-lg: 0 20px 50px rgba(122, 8, 8, .18);
  --container: 1160px;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2em; }
b, strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow, .narrow { max-width: 820px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.block { display: block; }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(198, 40, 40, .28); }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-light { background: #fff; color: var(--red-700); }
.btn-light:hover { background: var(--mist); color: var(--red-800); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-lg { font-size: 1.2rem; padding: .85em 1.6em; }
.btn-sm { font-size: .95rem; padding: .5em 1em; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; }
.btn-link:hover { color: var(--red-700); text-decoration: underline; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow .icon { transition: transform .15s ease; color: var(--red); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--red-700); letter-spacing: .02em; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav-cta { font-size: .98rem; padding: .55em 1.1em; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav ul a:hover { border-bottom-color: var(--line); }
  .nav-cta { width: 100%; }
}

/* ---------- Motif empat kotak ---------- */
.mark { display: inline-grid; grid-template-columns: 7px 7px; gap: 2px; vertical-align: middle; margin-right: 6px; }
.mark i { width: 7px; height: 7px; border-radius: 2px; display: block; }
.mark i:nth-child(1) { background: var(--green); }
.mark i:nth-child(2) { background: var(--orange); }
.mark i:nth-child(3) { background: var(--red); }
.mark i:nth-child(4) { background: var(--brown); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 110% -10%, var(--red-50), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  padding: 64px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; font-weight: 600; font-size: .95rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.hero h1 { margin-bottom: .45em; position: relative; isolation: isolate; }
.hero h1 .accent { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--orange); border-radius: 4px; opacity: .55; z-index: -1; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 30px 0 28px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 500; color: var(--ink-2); background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); }
.hero-chips .icon { color: var(--green); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 40px rgba(122, 8, 8, .2)); }
.hero-logo { position: absolute; left: 50%; top: 50%; width: 52%; height: auto; transform: translate(-50%, -50%); }

@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 280px; order: -1; }
}

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--red); margin-bottom: 10px; }
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--red); }
.section-lead { font-size: 1.15rem; color: var(--ink-2); }
.sub-title { margin-top: 56px; margin-bottom: 18px; font-size: 1.45rem; }
.fine-print { font-size: .92rem; color: var(--muted); margin-top: 20px; }

@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Tentang */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.fact-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.fact-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--red); opacity: .9; }
.fact-card h3 { color: #fff; font-size: 1.35rem; }
.fact-card dl { margin: 0; position: relative; z-index: 1; }
.fact-card dl > div { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fact-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #F4B7B2; font-weight: 600; }
.fact-card dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 7px; font-weight: 500; }
.chip-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red-50); color: var(--red-700); font-family: var(--font-head); font-weight: 800; font-size: .95rem; }

/* Kartu */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-3, .cards-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red-50); color: var(--red); margin-bottom: 16px; }
.card-icon.on-dark { background: rgba(255, 255, 255, .08); color: #FF8A80; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.card li { margin-bottom: .45em; }
.card li::marker { color: var(--red); }

.tupoksi { border-top: 4px solid var(--red); }
.tupoksi:nth-child(2) { border-top-color: var(--green); }
.tupoksi:nth-child(2) .card-icon { background: var(--green-50); color: var(--green); }
.tupoksi:nth-child(3) { border-top-color: var(--orange); }
.tupoksi:nth-child(3) .card-icon { background: var(--orange-50); color: var(--brown); }

.split-note { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; }
.split-note > div { padding: 26px 28px; }
.split-note > div + div { background: var(--red-700); }
.split-note h3 { color: #fff; }
.split-note ul { margin: 0; padding-left: 1.1em; }
.split-note li { margin-bottom: .35em; color: rgba(255, 255, 255, .88); }
@media (max-width: 700px) { .split-note { grid-template-columns: 1fr; } }

.bentuk { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.bentuk:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bentuk-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bentuk-no { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red-50); -webkit-text-stroke: 1.5px var(--red); }
.bentuk p { color: var(--ink-2); font-size: 1rem; }
.contoh-label { margin: auto 0 6px; padding-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.bentuk ul { font-size: .97rem; }

/* Bersuara (gelap) */
.section-dark { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; top: -220px; border-radius: 50%; border: 70px solid var(--red); opacity: .9; }
.section-dark::after { content: ""; position: absolute; width: 300px; height: 300px; right: -40px; top: -40px; border-radius: 50%; border: 26px solid #333; }
.section-dark .container { position: relative; z-index: 1; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark .section-lead { color: rgba(255, 255, 255, .8); }
.section-head.on-dark .kicker { color: #FF8A80; }
.section-head.on-dark .kicker::before { background: #FF8A80; }

.reason { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; }
.reason h3 { color: #fff; font-size: 1.2rem; }
.reason p { color: rgba(255, 255, 255, .78); font-size: 1rem; margin: 0; }

.rights { margin-top: 40px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; }
.rights h3 { font-size: 1.45rem; }
.rights-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.rights-grid li { display: flex; gap: 12px; align-items: flex-start; }
.rights-grid strong { display: block; }
.rights-grid li > div > span { color: var(--ink-2); font-size: .97rem; }
.rights-check { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; flex-shrink: 0; margin-top: 2px; }
.rights-check .icon { stroke-width: 2.6; }
.rights-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .rights-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rights-grid { grid-template-columns: 1fr; } .rights { padding: 22px; } }

.emergency { margin-top: 22px; display: flex; gap: 16px; align-items: flex-start; background: var(--red); border-radius: var(--radius); padding: 20px 24px; }
.emergency strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.emergency span { color: rgba(255, 255, 255, .92); }
.emergency b { color: #fff; font-weight: 700; white-space: nowrap; }

/* Alur */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.step-no { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--ink); margin-bottom: 16px; }
.steps li:nth-child(2) .step-no { background: var(--ink); box-shadow: 0 0 0 3px var(--red); }
.steps li:nth-child(4) .step-no { background: var(--green); }
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps::before { left: 28px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--red) 0 10px, transparent 10px 18px); }
  .steps li { text-align: left; padding: 0 0 18px 80px; min-height: 70px; }
  .step-no { position: absolute; left: 0; top: 0; }
}

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.07rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--red-700); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-700) 70%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -90px; bottom: -150px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(0, 0, 0, .18); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .78); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-logo img { background: #fff; border-radius: 50%; padding: 4px; }
.footer-logo strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.footer-logo span { font-size: .85rem; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-contact .icon { color: #FF8A80; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-link { color: rgba(255, 255, 255, .5); text-decoration: none; }
.admin-link:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =====================================================================
   Halaman formulir
   ===================================================================== */
.page-hero { background: var(--red-700); color: #fff; padding: 52px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 44px solid var(--dark); opacity: .55; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: rgba(255, 255, 255, .88); max-width: 60ch; margin: 0; }
.page-hero .kicker { color: #FFD3CF; }
.page-hero .kicker::before { background: #FFD3CF; }
.req { color: var(--red); font-weight: 700; }
.page-hero .req { color: #FFD3CF; }

.form-section { padding-top: 44px; background: var(--mist); }
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

.report-form { min-width: 0; }
.form-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 10px; margin: 0 0 20px; min-width: 0; }
.form-block legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.form-block legend + * { clear: both; }
.legend-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1rem; }
.optional { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); background: var(--mist); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 600px) { .form-block { padding: 20px 18px 6px; } }

.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1rem; }
input[type="text"], input[type="search"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #D6CDC8; border-radius: var(--radius-sm);
  padding: 11px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .92rem; color: var(--red-700); font-weight: 600; margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Switch anonim */
.switch { display: flex; gap: 14px; align-items: flex-start; background: var(--green-50); border: 1px solid #C8E0CF; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; background: #BDB5B1; position: relative; transition: background .2s ease; margin-top: 2px; }
.switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--orange); outline-offset: 2px; }
.switch-text strong { display: block; }
.switch-text small { color: var(--ink-2); font-size: .92rem; }
.report-form:has(#anonim:checked) .identity, .identity.is-hidden { display: none; }

/* Pilihan radio/checkbox */
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 600px) { .options-grid { grid-template-columns: 1fr; } }
.option { position: relative; display: flex; cursor: pointer; margin: 0 !important; font-weight: 500 !important; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { flex: 1; display: flex; align-items: center; gap: 10px; border: 1.5px solid #D6CDC8; border-radius: var(--radius-sm); padding: 11px 14px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.option span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #A9A09B; background: #fff; transition: all .15s ease; }
.option.check span::before { border-radius: 5px; }
.option:hover span { border-color: var(--red); }
.option input:checked + span { border-color: var(--red); background: var(--red-50); }
.option input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.option.check input:checked + span::before { box-shadow: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Unggah */
.dropzone { position: relative; display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 2px dashed #CFC5C0; border-radius: var(--radius); padding: 28px 18px; background: var(--mist); cursor: pointer; font-weight: 500 !important; transition: border-color .15s ease, background .15s ease; }
.dropzone .icon { color: var(--red); }
.dropzone small { color: var(--muted); font-weight: 400; }
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: var(--red-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: .95rem; }
.file-list li.bad { border-color: var(--red); color: var(--red-700); background: var(--red-50); }
.file-list small { color: var(--muted); white-space: nowrap; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.form-submit { padding-bottom: 26px; }

.form-aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.aside-card h2 .icon { color: var(--green); }
.aside-card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .97rem; }
.aside-card li { margin-bottom: 6px; }
.aside-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.aside-alert { background: var(--ink); border-color: var(--ink); }
.aside-alert h2, .aside-alert p { color: #fff; }
.aside-alert h2 .icon { color: #FF8A80; }
@media (max-width: 960px) { .form-aside { position: static; } }

/* Alert */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.alert .icon { margin-top: 2px; }
.alert-error { background: var(--red-50); color: var(--red-800); border: 1px solid #F3C1BD; }
.alert-warn { background: var(--orange-50); color: #6B3A0C; border: 1px solid #F7D2AA; text-align: left; }
.alert-success { background: var(--green-50); color: #134726; border: 1px solid #C8E0CF; }

/* Sukses */
.success-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px 36px; text-align: center; box-shadow: var(--shadow); }
.success-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 20px; box-shadow: 0 0 0 10px var(--green-50); }
.success-icon .icon { stroke-width: 2.6; }
.success-card .lead { margin: 0 auto 26px; }
.ticket-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.ticket-label { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: #F4B7B2; font-weight: 600; }
.ticket-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 700; letter-spacing: .06em; margin: 6px 0 14px; word-break: break-all; }
.ticket-code.small { font-size: 1.35rem; margin: 2px 0 0; color: var(--ink); }
.success-actions { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 600px) { .success-card { padding: 32px 20px; } }

/* Status */
.status-form { display: flex; gap: 10px; margin-bottom: 22px; }
.status-form input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .05em; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.status-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.status-card .ticket-label { color: var(--muted); }
.status-desc { color: var(--ink-2); }
.progress { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { position: relative; font-size: .9rem; font-weight: 600; color: var(--muted); padding-top: 38px; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done::before { background: var(--green); }
.progress .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: transparent; display: grid; place-items: center; z-index: 1; }
.progress li.done { color: var(--ink); }
.progress li.done .dot { background: var(--green); color: #fff; }
.progress li.current .dot { box-shadow: 0 0 0 5px var(--green-50); }
@media (max-width: 520px) { .progress li { font-size: .78rem; } }

.meta { margin: 0; display: grid; gap: 0; }
.meta > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.meta dt { color: var(--muted); font-size: .95rem; }
.meta dd { margin: 0; font-weight: 500; overflow-wrap: break-word; min-width: 0; }
.detail-side .meta > div { grid-template-columns: 112px 1fr; }
@media (max-width: 520px) { .meta > div { grid-template-columns: 1fr; gap: 0; } }
.reply { margin-top: 18px; background: var(--green-50); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; }
.reply-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.reply p:last-child { margin: 0; }

/* Badge status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-baru { background: var(--orange-50); color: #9A4D07; }
.badge-diverifikasi { background: #F4EBE3; color: var(--brown); }
.badge-diproses { background: var(--red-50); color: var(--red-700); }
.badge-selesai { background: var(--green-50); color: var(--green); }
.badge-ditutup { background: #EEEEEE; color: #555; }

/* =====================================================================
   Admin
   ===================================================================== */
body.admin { background: var(--mist); }
.admin-bar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 62px; gap: 16px; flex-wrap: wrap; }
.admin-bar .brand { color: #fff; }
.admin-bar .brand img { width: 36px; height: 36px; background: #fff; border-radius: 50%; padding: 2px; }
.admin-bar .brand-text strong { color: #fff; font-size: 1.15rem; }
.admin-bar .brand-text small { color: rgba(255, 255, 255, .6); }
.admin-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-nav a, .admin-nav .btn-link { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .97rem; }
.admin-nav a:hover, .admin-nav .btn-link:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.admin-nav a.active { background: var(--red); color: #fff; }
.admin-nav form { margin: 0; }
.admin-main { padding: 30px 0 60px; }
.admin-main > .container > .alert { margin-top: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .1em; }
.admin-head p { margin: 0; }
.link-back { display: inline-block; margin-bottom: 12px; font-weight: 600; text-decoration: none; }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: .93rem; }
.stat-n { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--ink); line-height: 1; }
.stat-hot { background: var(--red); border-color: var(--red); color: rgba(255, 255, 255, .85); }
.stat-hot .stat-n { color: #fff; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.filter-bar .field { margin: 0; }
.filter-bar label { font-size: .88rem; }
.filter-bar input, .filter-bar select { padding: 9px 12px; }
.filter-actions { display: flex; gap: 12px; align-items: center; padding-bottom: 4px; }
@media (max-width: 860px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar .field:first-child { grid-column: 1 / -1; } }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.data-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #FBF9F8; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FCFAF9; }
.data-table tr.unread td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.data-table tr.unread .row-link { font-weight: 700; }
.row-link { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 600; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.dot-new { display: inline-block; margin-left: 6px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px !important; }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .data-table td { border: 0; padding: 6px 16px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  .data-table td::before { content: attr(data-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding-top: 3px; }
  .data-table td > * { justify-self: start; }
  .data-table td.empty { display: block; }
  .data-table td.empty::before { display: none; }
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; font-size: .95rem; }
.pagination a { font-weight: 600; text-decoration: none; }

.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; }
.panel h3 { font-size: 1.05rem; margin-top: 20px; }
.kronologi { background: var(--mist); border-radius: var(--radius-sm); padding: 16px 18px; white-space: normal; word-break: break-word; line-height: 1.7; }
.attach-list { list-style: none; padding: 0; margin: 0; }
.attach-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.attach-list li:first-child { border-top: 0; }
.attach-list .icon { color: var(--red); }
.attach-name { flex: 1; word-break: break-all; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(800px 400px at 100% 0, var(--red-50), transparent 60%), var(--mist); }
.admin-main:has(.login-wrap) { padding: 0; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 18px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.login-card img { margin-bottom: 8px; }
.login-card h1 { font-size: 1.7rem; }
.login-card .field { text-align: left; }
.login-card .link-arrow { margin-top: 18px; }
.login-card .alert { text-align: left; }

/* Cetak */
@media print {
  .site-header, .site-footer, .admin-bar, .form-aside, .btn, .filter-bar { display: none !important; }
  body, body.admin { background: #fff; }
}
