/* TinggalIsi: tampilan form (halaman publik, pratinjau editor, peraga halaman depan). Font sistem: ringan di HP. */
.tf-page, .tf {
  --ink: #15211B; --muted: #5E6B64; --line: #DCE3DE; --bad: #B42318;
  --fa: #0E6B3A; --fa-soft: color-mix(in srgb, var(--fa) 8%, #fff); --fa-ring: color-mix(in srgb, var(--fa) 20%, transparent);
}
html { overflow-x: clip; }
.tf-page {
  margin: 0; min-height: 100vh; color: var(--ink); overflow-x: clip;
  background:
    radial-gradient(900px 420px at 0% -8%, color-mix(in srgb, var(--fa) 13%, transparent), transparent 70%),
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--fa) 8%, transparent), transparent 70%),
    #F1F5F2;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.tf-wrap { max-width: 620px; margin: 0 auto; padding: 8px 14px 6px; }
.tf-wrap *, .tf, .tf * { box-sizing: border-box; }

/* bilah atas halaman publik */
.tf-top { max-width: 620px; margin: 0 auto; padding: 14px 18px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.tf-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.tf-logo svg { width: 26px; height: 26px; }
.tf-logo b { color: #2F5BEA; }
.tf-menu { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; margin-left: auto; }
.tf-menu:hover { background: rgba(21, 33, 27, .06); }
.tf-pop { position: absolute; right: 14px; top: 54px; z-index: 30; min-width: 220px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(10, 25, 18, .16); border: 1px solid var(--line); }
.tf-pop a, .tf-pop button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: .94rem; text-align: left; text-decoration: none; cursor: pointer; }
.tf-pop a:hover, .tf-pop button:hover { background: #F2F5F3; }

/* kartu form */
.tf { background: #fff; border-radius: 26px; overflow: hidden; color: var(--ink); border: 1px solid rgba(21, 33, 27, .06);
  box-shadow: 0 1px 2px rgba(16, 40, 28, .04), 0 18px 48px rgba(16, 40, 28, .07);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.tf-head { position: relative; margin: 10px; padding: 26px 24px 24px; min-height: 150px; border-radius: 20px; overflow: hidden; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.tf-head:not(.is-photo)::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; top: -110px; border-radius: 50%; background: radial-gradient(circle at 35% 65%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%); }
.tf-head:not(.is-photo)::after { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: 40px; bottom: -95px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .07); }
.tf-head.is-photo { min-height: 190px; }
.tf-hicon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 15px; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1)); border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px rgba(0, 0, 0, .12); backdrop-filter: blur(6px); }
.tf-kicker { margin: 0 0 8px; font-size: .74rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; opacity: .88; }
.tf-title { margin: 0; font-size: 1.72rem; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; max-width: 22ch; }
.tf-desc { margin: 10px 0 0; color: rgba(255, 255, 255, .92); overflow-wrap: anywhere; font-size: .97rem; max-width: 46ch; }
.tf-reqnote { margin: 12px 26px 0; font-size: .86rem; color: var(--muted); }
.tf-star { color: var(--bad); font-weight: 700; }
.tf-empty { color: var(--muted); margin: 8px 0; }

.tf-qs { display: grid; gap: 24px; padding: 16px 24px 8px; }
.tf-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.tf-label { display: block; padding: 0; margin: 0 0 9px; font-weight: 700; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.tf-help { margin: -4px 0 10px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }

.tf-in {
  display: block; width: 100%; min-height: 54px; padding: 13px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea.tf-in { resize: vertical; min-height: 110px; }
select.tf-in {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2315211B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.tf-in::placeholder { color: #9AA59F; }
.tf-in:hover { border-color: #BFC9C3; }
.tf-in:focus { outline: none; border-color: var(--fa); box-shadow: 0 0 0 4px var(--fa-ring); }
.tf-inw { position: relative; }
.tf-inw .tf-in { padding-left: 48px; }
.tf-ii { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8A958F; pointer-events: none; transition: color .18s; }
.tf-inw:focus-within .tf-ii { color: var(--fa); }

/* pilihan bergaya kartu */
.tf-opts { display: grid; gap: 10px; }
.tf-opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 13px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
}
.tf-opt:hover { border-color: #BFC9C3; }
.tf-opt:active { transform: scale(.995); }
.tf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tf-oi { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--fa-soft); color: var(--fa); }
.tf-ot { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tf-ot b { display: block; font-weight: 650; }
.tf-ot small { display: block; margin-top: 2px; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.tf-mark { flex: none; position: relative; width: 26px; height: 26px; border: 2px solid #C5CEC8; border-radius: 50%; transition: background .18s, border-color .18s, transform .2s; }
.tf-mark.checkbox { border-radius: 8px; }
.tf-mark::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .2s cubic-bezier(.2, 1.4, .4, 1); }
.tf-opt:has(input:checked) { border-color: var(--fa); background: var(--fa-soft); box-shadow: 0 0 0 3px var(--fa-ring); }
.tf-opt:has(input:checked) .tf-mark { background: var(--fa); border-color: var(--fa); transform: scale(1.06); }
.tf-opt:has(input:checked) .tf-mark::after { transform: rotate(45deg) scale(1); }
.tf-opt:has(input:focus-visible) { outline: 3px solid var(--fa-ring); outline-offset: 2px; }

.tf-q.is-bad .tf-in, .tf-q.is-bad .tf-opt { border-color: var(--bad); }
.tf-err { margin: 8px 0 0; font-size: .87rem; color: var(--bad); font-weight: 550; }

.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 8px 24px 0; }
.tf-alert { margin: 12px 24px 0; padding: 12px 14px; border-radius: 12px; background: #FDEDEB; color: #8A1C12; font-size: .92rem; }

.tf-foot { padding: 18px 24px 26px; }
.tf-send {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 52px;
  font: inherit; font-size: 1.06rem; font-weight: 700; color: #fff; background: var(--fa); border: 0; border-radius: 16px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--fa) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.tf-send span { overflow: hidden; text-overflow: ellipsis; }
.tf-send .tf-chev { position: absolute; right: 18px; transition: transform .2s; }
.tf-send:hover { filter: brightness(1.08); }
.tf-send:hover .tf-chev { transform: translateX(3px); }
.tf-send:active { transform: translateY(1px) scale(.995); }
.tf-send:focus-visible { outline: 3px solid var(--fa-ring); outline-offset: 3px; }
.tf-send:disabled { cursor: default; }
.tf-send.is-busy { opacity: .78; cursor: progress; }
.tf-note { margin: 12px 0 0; text-align: center; font-size: .86rem; color: var(--muted); }

.tf-state { padding: 26px 24px 30px; }
.tf-state h2 { margin: 0 0 6px; font-size: 1.15rem; }
.tf-state p { margin: 0; color: var(--muted); }

.tf-done { padding: 30px 24px 30px; text-align: center; outline: none; }
.tf-done-ic { color: var(--fa); margin: 0 auto 10px; display: block; }
.tf-done-ic .c { stroke-dasharray: 145; stroke-dashoffset: 145; animation: tfDraw .6s .1s ease-out forwards; }
.tf-done-ic .k { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tfDraw .35s .6s ease-out forwards; }
.tf-done h2 { margin: 0 0 8px; font-size: 1.3rem; text-wrap: balance; }
.tf-done p { margin: 0 auto 14px; max-width: 46ch; color: var(--muted); }
.tf-done .tf-thanks { color: var(--ink); }
.tf-no { color: var(--muted); font-weight: 600; }
.tf-done .tf-send { max-width: 360px; margin: 8px auto 0; }

.tf-pagefoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; padding: 18px 16px 40px; font-size: .86rem; color: var(--muted); }
.tf-pagefoot a { color: var(--muted); text-decoration: none; }
.tf-pagefoot a:hover { color: var(--ink); }
.tf-pagefoot b { color: var(--ink); }
.tf-pagefoot .sep { width: 1px; height: 14px; background: var(--line); }
.tf-linkbtn { font: inherit; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tf-linkbtn:hover { color: var(--ink); }

/* modal laporan */
.tf-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; padding: 16px; background: rgba(16, 24, 20, .45); }
.tf-sheet { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 22px 20px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.tf-sheet h2 { margin: 0 0 4px; font-size: 1.15rem; }
.tf-sheet > p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.tf-sheet .tf-opts { margin-bottom: 12px; }
.tf-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.tf-btn { font: inherit; font-weight: 650; min-height: 44px; padding: 10px 16px; border-radius: 12px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; }
.tf-btn.is-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.tf-btn:disabled { opacity: .6; cursor: not-allowed; }

/* gerak masuk (hanya halaman publik; pratinjau editor dirender ulang terus jadi tanpa animasi) */
.tf-page .tf { animation: tfIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.tf-page .tf-head { animation: tfIn .6s .05s cubic-bezier(.2, .8, .2, 1) both; }
.tf-page .tf-q { animation: tfUp .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + .15s); }
@keyframes tfIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes tfUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes tfDraw { to { stroke-dashoffset: 0; } }

@media (min-width: 640px) {
  .tf-modal { place-items: center; }
  .tf-wrap { padding-top: 10px; }
  .tf-head { margin: 12px; padding: 34px 32px 28px; min-height: 170px; }
  .tf-head.is-photo { min-height: 220px; }
  .tf-title { font-size: 2rem; }
  .tf-qs { padding: 20px 34px 8px; }
  .tf-reqnote, .tf-alert { margin-left: 34px; margin-right: 34px; }
  .tf-foot { padding: 20px 34px 30px; }
}
@media (max-width: 400px) { .tf-send { padding: 14px 16px; font-size: 1rem; } .tf-send > svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .tf *, .tf-send, .tf, .tf-page .tf, .tf-page .tf-head, .tf-page .tf-q { animation: none !important; transition: none !important; } .tf-done-ic .c, .tf-done-ic .k { stroke-dashoffset: 0; } }
