/* ==========================================================
   FORMMOST — gaya tampilan
   Sistem desain SAMA dengan MOSTQR & PDFMOST (latar putih,
   Plus Jakarta Sans, teks navy, kartu putih, footer navy).
   Bedanya hanya AKSEN: FORMMOST memakai teal → cyan,
   sedangkan MOSTQR/PDFMOST memakai magenta → cyan.
   Ganti warna cukup di blok :root ini.
   ========================================================== */
:root {
  color-scheme: light;
  /* --- palet keluarga THEMOST (sama dengan saudaranya) --- */
  --navy:    #06174B;   /* teks utama & footer */
  --cyan:    #45D7E4;
  --ice:     #E3FBFE;
  --magenta: #CE20D3;

  /* --- aksen khas FORMMOST --- */
  --teal:       #317A9D;  /* tombol utama (kontras teks putih ±4.9:1) */
  --teal-dark:  #245E7A;  /* hover tombol & link */
  --aqua:       #2FA9C2;
  --tint:       #EEFAFC;  /* latar pilihan aktif */
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--aqua) 45%, var(--cyan) 100%);

  --bg: #FFFFFF;
  --ink: var(--navy);
  --muted: #55607F;
  --line: #E6E8F0;
  --surface: #FAFBFD;
  --radius: 16px;
  --ok: #138A5B;
  --danger: #D1284B;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: clip; /* glow dekoratif tidak boleh membuat halaman geser ke samping */
}
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Navigasi (struktur sama dengan MOSTQR / PDFMOST) ---------- */
nav.topnav {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
nav.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; flex: none; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
nav.topnav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav.topnav ul a, nav.topnav .link-btn { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
nav.topnav ul a:hover, nav.topnav .link-btn:hover { color: var(--teal); text-decoration: none; }
nav .sister {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font-size: .85rem !important; font-weight: 600 !important;
}
nav .sister:hover { border-color: var(--aqua); }
.nav-user { color: var(--muted); font-size: .9rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { nav.topnav ul li.hide-sm { display: none; } nav.topnav ul { gap: 14px; } }
@media (max-width: 420px) { nav.topnav .brand-name { display: none; } }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--teal);
  background: var(--teal); color: #fff; font: 700 .95rem/1.2 var(--font);
  cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: .15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 8px 13px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--aqua); color: var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border-color: #F3C9D2; }
.btn-danger:hover { background: #FFF4F6; border-color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; font: 600 .9rem var(--font); color: var(--teal-dark); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; font-size: .95rem;
}
.icon-btn:hover { border-color: var(--aqua); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- Kartu & isian ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(6, 23, 75, .06); padding: 22px; }
.card.narrow { max-width: 440px; margin: 24px auto; }
.card.empty { padding: 40px 22px; }
.auth h1 { margin-bottom: .2em; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem; color: var(--navy);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .12s;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
textarea { resize: vertical; }
input[type=file] { width: 100%; color: var(--muted); font-size: .88rem; }
/* Kolom password + tombol mata */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--teal); background: var(--tint); }
.pw-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; }
.pw-toggle[aria-pressed="true"] { color: var(--teal); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }

/* ---------- Pesan ---------- */
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; border: 1px solid; }
.alert-success { background: #EDFAF4; border-color: #BDE9D5; color: #0C6B46; }
.alert-error { background: #FFF4F6; border-color: #F3C9D2; color: #A3173A; }
.alert-info { background: var(--ice); border-color: #BDEFF5; color: var(--teal-dark); }

/* ---------- Hero & section (sama dengan saudaranya) ---------- */
.hero { text-align: center; padding: 40px 0 28px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto; height: 420px; z-index: -1;
  background: radial-gradient(closest-side, rgba(69, 215, 228, .2), transparent),
              radial-gradient(closest-side at 30% 60%, rgba(49, 122, 157, .12), transparent);
}
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--ice); color: var(--teal); font-weight: 600; font-size: .85rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; margin: 18px auto 12px; max-width: 900px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

section.block { padding: 56px 0; }
section.alt { background: linear-gradient(180deg, #fff, var(--ice) 40%, #fff); border-radius: 24px; padding-left: 16px; padding-right: 16px; }
.sec-title { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.sec-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 8px; }
.sec-title p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 24px; }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--grad); }
.feature .ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- FAQ (sama dengan saudaranya) ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; background: #fff; }
.faq details[open] { border-color: #BDEFF5; box-shadow: 0 6px 20px rgba(49, 122, 157, .08); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Dashboard ---------- */
.verify-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 22px; border-radius: var(--radius);
  background: #FFF8E6; border: 1px solid #F6D98B; color: #6B4E00;
}
.verify-banner b { color: #4A3600; }
.verify-banner p { margin: 2px 0 0; font-size: .9rem; }
.verify-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #FDEBB8; color: #8A6400; }
.verify-banner .btn-ghost { background: #fff; border-color: #F0CF73; }
.verify-banner .btn-ghost:hover { border-color: #C99A1A; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 0; }
.back { display: inline-block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; text-decoration: none; }
.form-grid { display: grid; gap: 16px; }
.form-card-top { display: flex; gap: 16px; align-items: flex-start; }
.form-card-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.form-card-title { margin: 6px 0 2px; font-size: 1.2rem; }
.form-card p { margin: 0; }
.stat { text-align: center; min-width: 76px; padding: 8px 10px; border-radius: 12px; background: var(--ice); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--teal); }
.stat span { font-size: .78rem; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.badge-open { background: #E6F7EF; color: var(--ok); }
.badge-closed { background: #F0F2F7; color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.copy-row input { flex: 1 1 220px; min-width: 0; font-size: .88rem; padding: 8px 12px; color: var(--muted); background: var(--surface); }
/* Tombol "Buat QR" memakai aksen MOSTQR (magenta) sebagai penanda tools saudara */
.btn-qr { background: #fff; color: #B52BBE; border-color: #F1C6F3; }
.btn-qr:hover { background: #FFF5FF; border-color: #B52BBE; color: #9E22A6; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Form builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.builder-meta { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.logo-box { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.logo-preview {
  width: 84px; height: 84px; flex: none; border-radius: 12px; border: 2px dashed var(--line); background: var(--surface);
  display: grid; place-items: center; padding: 8px; overflow: hidden; text-align: center;
}
.logo-preview img { max-height: 100%; object-fit: contain; }
.logo-preview .muted { font-size: .75rem; }
.builder-fields-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.field-list { display: grid; gap: 12px; }
.field-card { padding: 16px; box-shadow: 0 4px 16px rgba(6, 23, 75, .05); }
.field-card:focus-within { border-color: var(--aqua); }
.field-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.field-head .f-type { width: auto; flex: 1; min-width: 140px; padding: 8px 10px; background: var(--surface); }
.drag { cursor: grab; color: var(--muted); font-size: 1.1rem; letter-spacing: -2px; padding: 4px; user-select: none; }
.drag-ghost { opacity: .4; }
.f-label { font-weight: 600; }
.f-options-label { display: block; margin-top: 10px; }
.f-options-label span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.sig-mock {
  margin-top: 10px; height: 70px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem;
}
.add-box { margin-top: 12px; padding: 16px; }
.add-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); font: 600 .85rem var(--font); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--teal); background: var(--tint); color: var(--teal-dark); }
.savebar {
  grid-column: 2; position: sticky; bottom: 12px; z-index: 10; /* hanya di kolom kanan: tidak menutupi panel identitas (tombol QR) */
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(6, 23, 75, .1);
}

/* ---------- Tabel respons ---------- */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { position: sticky; top: 0; background: var(--surface); font-weight: 700; white-space: nowrap; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFEFF; }
.sig-thumb { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; display: block; }

/* ---------- Form publik (yang diisi peserta) ---------- */
body.v-public .container { max-width: 640px; padding-top: 32px; position: relative; }
body.v-public .container::before {
  content: ""; position: absolute; inset: -40px 0 auto; height: 380px; z-index: -1;
  background: radial-gradient(closest-side, rgba(69, 215, 228, .18), transparent);
}
.pform-card { padding: 32px 28px; }
.pform-logo { text-align: center; margin-bottom: 18px; }
.pform-logo img { max-height: 90px; max-width: 260px; object-fit: contain; }
.pform-title { text-align: center; font-size: 1.6rem; }
.pform-desc { text-align: center; color: var(--muted); margin-bottom: 26px; }
.pfield { margin-bottom: 20px; }
.pfield-label { display: block; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--danger); }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; background: #fff; transition: .15s;
}
.choice:hover { border-color: var(--aqua); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--tint); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input { width: 18px; height: 18px; accent-color: var(--teal); }
.sig {
  position: relative; height: 190px; border: 2px dashed var(--line); border-radius: 14px;
  background: #fff; overflow: hidden; touch-action: none;
}
.sig:hover { border-color: var(--cyan); }
.sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #A9B0C4; font-size: .95rem; }
.sig-hint[hidden] { display: none; }
.sig-clear { margin-top: 6px; font-size: .86rem; }
.pfield.has-error input, .pfield.has-error select, .pfield.has-error textarea,
.pfield.has-error .sig, .pfield.has-error .choice { border-color: var(--danger); }
.pfield-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.done { padding: 10px 0; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad); color: #fff; }

/* ---------- Footer (navy, sama dengan saudaranya) ---------- */
.grad-bar { height: 4px; background: var(--grad); }
footer.site-footer { background: var(--navy); color: #C9D2EE; padding: 40px 0 24px; }
footer.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer.site-footer .brand { color: #fff; }
footer.site-footer p { max-width: 340px; font-size: .9rem; margin: 10px 0 0; }
footer.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .9rem; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.site-footer a { color: #C9D2EE; text-decoration: none; font-size: .9rem; }
footer.site-footer a:hover { color: var(--cyan); }
footer.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px;
  font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
/* footer ringkas di halaman peserta */
.mini-footer { text-align: center; padding: 8px 16px 28px; font-size: .85rem; color: var(--muted); }
.mini-footer a { font-weight: 700; text-decoration: none; }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .builder-meta { position: static; max-height: none; overflow: visible; }
  .savebar { grid-column: 1; }
}
@media (max-width: 560px) {
  .nav-user { display: none; }
  .card { padding: 18px 16px; }
  .pform-card { padding: 24px 18px; }
  .form-card-top { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; }
  .savebar { flex-direction: column; align-items: stretch; bottom: 8px; }
  .savebar .muted { text-align: center; }
}

/* ============================================================
   v.02 — lupa password, admin, upload file
   ============================================================ */
.forgot-link { margin: -6px 0 14px; text-align: right; }

/* Builder: pilihan jenis file */
.f-kinds { display: grid; gap: 8px; margin-top: 10px; }
.f-kinds .f-options-label { margin: 0; font-size: .8rem; color: var(--muted); }

/* Form peserta: kotak upload */
.upload-box {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 1.5px dashed var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.upload-box::before {
  content: ""; flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--ice)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23317A9D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}
.upload-box:hover { border-color: var(--aqua); }
.upload-box.has-file { border-style: solid; border-color: var(--teal); background: var(--tint); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-hint { display: grid; gap: 2px; min-width: 0; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--teal-dark); }
.upload-hint small { color: var(--muted); font-size: .8rem; }
.pfield.has-error .upload-box { border-color: var(--danger); }

/* Tabel respons: link file */
.file-link { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 600; }

/* Admin */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 16px 18px; display: grid; gap: 2px; }
.kpi span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font-size: 1.9rem; line-height: 1.15; color: var(--teal); }
.kpi small { font-size: .8rem; color: var(--muted); }
.month-card { margin-bottom: 18px; }
.month-card h2 { font-size: 1.05rem; margin: 0 0 12px; }
.month-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.month-bar { display: grid; gap: 4px; text-align: center; font-size: .8rem; color: var(--muted); }
.month-bar b { color: var(--ink); font-size: .9rem; }
.month-bar .bar { height: 90px; display: flex; align-items: flex-end; background: var(--surface); border-radius: 8px; overflow: hidden; }
.month-bar .bar i { display: block; width: 100%; min-height: 3px; background: var(--grad); border-radius: 8px 8px 0 0; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; margin-bottom: 10px; }
.admin-filter input[type=search] { flex: 1 1 220px; }
.admin-filter select { flex: 0 1 220px; }
.row-disabled td { color: var(--muted); background: #FAFAFC; }
.badge-admin { background: var(--ice); color: var(--teal-dark); }
.badge-warn { background: #FFF6DB; color: #8A6100; margin-top: 4px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }

/* ============================================================
   v.03 — Pro, berbagi form, template, keterangan form, tetap masuk
   ============================================================ */
.badge-pro { background: linear-gradient(120deg, #F2B705, #F59E0B); color: #3D2A00; letter-spacing: .08em; vertical-align: middle; }
.badge-shared { background: var(--ice); color: var(--teal-dark); text-transform: none; letter-spacing: 0; }
h1 .badge, h2 .badge { font-size: .62rem; vertical-align: middle; }
.btn-pro { background: linear-gradient(120deg, #F2B705, #F59E0B); color: #3D2A00; border-color: transparent; }
.btn-pro:hover { filter: brightness(.95); color: #3D2A00; }
.admin-actions form + form { margin-left: 6px; }

/* Ajakan Pro di dashboard / halaman bagikan */
.pro-hint { display: flex; gap: 10px; align-items: center; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px;
  background: #FFF9E6; border: 1px solid #F6DD8C; font-size: .9rem; color: #5A4300; }

/* Tombol "+ Buat form baru" dengan pilihan template */
.new-form { position: relative; }
.new-form > summary { list-style: none; cursor: pointer; }
.new-form > summary::-webkit-details-marker { display: none; }
.new-form > summary.is-disabled { opacity: .55; }
.new-form-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, 86vw); padding: 12px;
  display: grid; gap: 8px; box-shadow: 0 16px 40px rgba(6, 23, 75, .14); }
.new-form-menu p { margin: 0 4px 2px; }
.tpl-btn { width: 100%; display: grid; gap: 2px; text-align: left; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.tpl-btn:hover { border-color: var(--aqua); background: var(--tint); }
.tpl-btn span { font-size: .8rem; color: var(--muted); }
.shared-head { margin-top: 34px; }
.shared-head h2 { margin: 0; }

/* Builder: kotak keterangan & link custom */
.info-editor #info-rows { display: grid; gap: 10px; margin-bottom: 6px; }
.info-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.info-row input:first-child { font-weight: 600; }
.info-row input:nth-child(2) { grid-column: 1; }
.info-row .icon-btn { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.slug-row { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.slug-prefix { display: flex; align-items: center; padding: 0 10px; background: var(--surface); color: var(--muted); font-size: .85rem; white-space: nowrap; border-right: 1px solid var(--line); }
.slug-row input { border: 0; border-radius: 0; min-width: 0; }
.slug-row input:focus { box-shadow: none; }

/* Form peserta: kotak keterangan (Label → Isi) */
.pform-info { margin: 4px 0 18px; padding: 4px 18px; background: #F1F4F8; border: 1px solid var(--line); border-radius: 12px; }
.pform-info-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #DFE4EC; }
.pform-info-row:last-child { border-bottom: 0; }
.pform-info-row.no-label { grid-template-columns: 1fr; }
.pform-info dt { color: var(--muted); font-weight: 500; }
.pform-info dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.pform-info-row.no-label dd { text-align: left; }
@media (max-width: 520px) {
  .pform-info-row { grid-template-columns: 1fr; gap: 2px; }
  .pform-info dd { text-align: left; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Halaman bagikan */
.share-card { max-width: 720px; }
.share-add { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.share-add .field { margin-bottom: 0; flex: 1 1 260px; }
.share-title { font-size: 1.05rem; margin: 22px 0 10px; }
.share-list { list-style: none; margin: 0; padding: 0; }
.share-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }

/* Halaman masuk: "Tetap masuk" + lupa password */
.login-opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 16px; }

/* ============================================================
   v.04 — form beberapa halaman
   ============================================================ */
/* Builder: kartu pemisah halaman */
.field-card.is-page { background: var(--tint); border: 1.5px dashed var(--aqua); }
.field-card.is-page .f-label { font-weight: 700; }
.page-badge { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--teal-dark); background: #fff; border: 1px solid #BDEFF5; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.page-hint { margin: 8px 0 0; }

/* Form peserta */
.fpage-bar { height: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin: 0 0 18px; }
.fpage-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .45s cubic-bezier(.22, .61, .36, 1); }
.fpage-head { margin-bottom: 14px; }
.fpage-step { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--aqua); }
.fpage-title { font-size: 1.2rem; margin: 4px 0 0; }
.fpage + .fpage { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); } /* tampilan tanpa JS */
.fpage-nav { display: flex; gap: 10px; margin-top: 8px; }
.fpage-nav .btn { flex: 1 1 0; }
.fpage-nav [data-prev] { flex: 0 0 auto; }

/* Dengan JS: satu halaman tampil, geser halus saat pindah */
.fpages.js-on { overflow: hidden; }
.fpages.js-on .fpage { display: none; margin: 0; padding: 0; border: 0; }
.fpages.js-on .fpage.is-active { display: block; }
.fpage.slide-next { animation: fpage-in-next .42s cubic-bezier(.22, .61, .36, 1); }
.fpage.slide-prev { animation: fpage-in-prev .42s cubic-bezier(.22, .61, .36, 1); }
@keyframes fpage-in-next { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes fpage-in-prev { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fpage.slide-next, .fpage.slide-prev, .fpage-bar i { animation: none; transition: none; } }

/* ============================================================
   v.06 — kartu pertanyaan ala Google Form, keterangan form, link form
   ============================================================ */
/* Kotak keterangan: sama dengan teks deskripsi, jadi judul tetap paling menonjol */
.pform-info dt, .pform-info dd { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* Kartu pertanyaan */
.field-card { position: relative; padding: 6px 22px 10px; }
.field-card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; border-radius: var(--radius) 0 0 var(--radius); background: var(--teal); opacity: 0; transition: opacity .15s; }
.field-card.is-active::before { opacity: 1; }
.field-card:focus-within { border-color: var(--line); }
.field-card.is-active { box-shadow: 0 8px 24px rgba(6, 23, 75, .1); }
.fc-grip { display: flex; justify-content: center; padding: 2px 0 6px; color: #B4BBCB; letter-spacing: 0; font-size: 0; }
.fc-grip:hover { color: var(--muted); }
.fc-grip:active { cursor: grabbing; }
.fc-top { display: flex; gap: 14px; align-items: flex-start; }
.field-card .f-label { flex: 1 1 auto; min-width: 0; font-weight: 500; padding: 14px 14px 12px; background: var(--surface); border: 0; border-bottom: 1px solid #8A93A8; border-radius: 6px 6px 0 0; }
.field-card .f-label:focus { box-shadow: inset 0 -1px 0 var(--teal); border-bottom-color: var(--teal); background: var(--surface); }
.field-card .fc-top .f-type { flex: 0 0 200px; width: 200px; padding: 12px; }

.answer-preview { width: min(100%, 360px); margin: 16px 0 6px; padding-bottom: 6px; border-bottom: 1px dotted #B4BBCB; color: var(--muted); font-size: .9rem; }
.answer-preview.is-long { width: min(100%, 560px); }

.opt-list { display: grid; gap: 4px; margin-top: 12px; }
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-mark { flex: 0 0 20px; height: 20px; color: var(--muted); font-size: .9rem; text-align: center; line-height: 20px; }
.opt-radio { border: 2px solid #B4BBCB; border-radius: 50%; flex-basis: 18px; height: 18px; }
.opt-check { border: 2px solid #B4BBCB; border-radius: 4px; flex-basis: 18px; height: 18px; }
.field-card .opt-input { flex: 1 1 auto; min-width: 0; padding: 7px 2px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; }
.field-card .opt-input:hover { border-bottom-color: var(--line); }
.field-card .opt-input:focus { box-shadow: none; border-bottom-color: var(--teal); }
.opt-add { justify-self: start; margin: 4px 0 0 30px; font-size: .88rem; }

.fc-foot { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.fc-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.fc-icon:hover, .fc-icon:focus-visible { background: var(--surface); color: var(--ink); }
.fc-icon.danger:hover, .fc-icon.danger:focus-visible { color: var(--danger); }
.opt-row .fc-icon { width: 30px; height: 30px; flex: none; }
.fc-divider { width: 1px; height: 26px; margin: 0 10px; background: var(--line); }
.req-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; user-select: none; }
.req-toggle input { position: absolute; opacity: 0; width: 36px; height: 20px; right: 0; margin: 0; cursor: pointer; }
.switch { position: relative; width: 36px; height: 14px; border-radius: 99px; background: #C5CBD8; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: -2px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(6, 23, 75, .35); transition: transform .15s, background .15s; }
.req-toggle input:checked + .switch { background: #A9DCE6; }
.req-toggle input:checked + .switch::after { transform: translateX(20px); background: var(--teal); }
.req-toggle input:focus-visible + .switch { outline: 2px solid var(--aqua); outline-offset: 3px; }

/* Pemisah halaman memakai kartu yang sama */
.field-card.is-page .page-badge { margin: 0 auto 0 0; }

@media (max-width: 620px) {
  .fc-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .field-card .fc-top .f-type { flex: none; width: 100%; }
  .field-card { padding: 6px 16px 10px; }
}

/* Link form: satu baris link + Salin link */
.link-field { margin-bottom: 4px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.link-row .slug-row { flex: 1 1 200px; min-width: 0; }
.link-row .slug-row input { flex: 1 1 auto; width: 100%; padding: 9px 10px; font-size: .92rem; }
.link-row .slug-prefix { font-size: .8rem; padding: 0 8px; }
.link-row > input { flex: 1 1 200px; min-width: 0; font-size: .88rem; padding: 8px 12px; color: var(--muted); background: var(--surface); }
.link-row a[aria-disabled="true"] { pointer-events: none; }
.link-hint, .link-pending { display: block; margin-top: 8px; font-size: .82rem; line-height: 1.5; }
.link-pending[hidden] { display: none; }
.link-pending { color: #8A6100; background: #FFF6DB; padding: 7px 10px; border-radius: 8px; }

/* ============================================================
   v.07 — blok tautan, tombol link (CTA) & auto redirect
   ============================================================ */
.field-tip { display: block; margin-top: 6px; font-size: .8rem; font-weight: 400; line-height: 1.5; }

/* Builder: kartu Tautan */
.field-card.is-link .f-label { font-weight: 600; color: var(--teal-dark); }
.link-editor { display: grid; gap: 8px; margin-top: 12px; }
.link-editor .link-intro { font-size: .9rem; min-height: 0; }
.link-url-row { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.link-url-label { display: flex; align-items: center; padding: 0 12px; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 700; border-right: 1px solid var(--line); }
.link-url-row .link-url { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.link-url-row .link-url:focus { box-shadow: none; }
.link-url-row:focus-within { border-color: var(--teal); }
.link-err { color: var(--danger); font-size: .8rem; }
.link-err[hidden] { display: none; }
.link-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Form peserta: blok tautan */
.plink { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.plink-intro { margin: 0 0 6px; color: var(--muted); }
.plink-a { font-weight: 700; color: var(--teal-dark); text-decoration: none; border-bottom: 2px solid #BDEFF5; }
.plink-a:hover, .plink-a:focus-visible { color: var(--teal); border-bottom-color: var(--aqua); }

/* Builder: tombol link setelah kirim */
.cta-box { margin: -4px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.switch-row { position: relative; display: flex; align-items: center; gap: 10px; font-size: .88rem; cursor: pointer; user-select: none; }
.switch-row input { position: absolute; opacity: 0; width: 36px; height: 20px; left: 0; margin: 0; cursor: pointer; }
.switch-row .switch { flex: none; }
.switch-row input:checked + .switch { background: #A9DCE6; }
.switch-row input:checked + .switch::after { transform: translateX(20px); background: var(--teal); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--aqua); outline-offset: 3px; }
.cta-fields { margin-top: 14px; }
.cta-fields[hidden] { display: none; }
.cta-fields .field { margin-bottom: 12px; }
.cta-redirect { margin-top: 2px; }
.cta-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cta-preview-btn { pointer-events: none; }

/* Halaman terima kasih */
.done-cta { margin-top: 10px; }
.done-redirect { margin: 14px 0 0; }
