/* Form Penilaian Mandiri Wisatawan (livewire publik.pmw.pmw-create) — gaya tema publik */
.pmw-page { padding: 8px 0 80px; }
.pmw-wrap { max-width: 760px; margin: 0 auto; }
.pmw { --pmw-line: var(--stoke-color, #E7E7E7); --pmw-ink: var(--heading-color, #24272C); --pmw-muted: #6B6E6A; --pmw-danger: #B3261E; }

.pmw-intro { padding: 20px 22px; border-radius: 16px; background: var(--secondary-color); color: var(--pmw-ink); margin-bottom: 16px; }
.pmw-intro p { margin: 0; line-height: 1.6; }
.pmw-intro .pmw-req-note { margin-top: 8px; font-size: 14px; color: var(--pmw-muted); }
.pmw-req { color: var(--pmw-danger); font-weight: 600; }
.pmw-opt { font-size: 14px; font-weight: 400; color: var(--pmw-muted); }

/* Progres menempel di bawah header saat menggulir */
.pmw-progress { position: sticky; top: 92px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--pmw-line); border-radius: 999px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(4px); }
.pmw-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: #F1EEF4; overflow: hidden; }
.pmw-progress-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--primary-color); transition: width .25s ease; }
.pmw-progress-text { font-size: 13px; font-weight: 600; color: var(--pmw-ink); white-space: nowrap; }
@media (max-width: 1199.98px) { .pmw-progress { top: 80px; } }

.pmw-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: #FCEEEE; color: var(--pmw-danger); font-size: 14px; font-weight: 500; }

.pmw-section { padding: 24px; margin-bottom: 16px; border: 1px solid var(--pmw-line); border-radius: 20px; background: #fff; }
.pmw-section-title { margin: 0 0 18px; font-size: 18px !important; line-height: 1.3; color: var(--pmw-ink); }
.pmw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 767.98px) { .pmw-grid { grid-template-columns: minmax(0, 1fr); } }

.pmw-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.pmw-field:last-child { margin-bottom: 0; }
.pmw-grid .pmw-field:last-child { margin-bottom: 18px; }
.pmw-field > label, .pmw-field > legend { display: block; float: none; width: auto; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; color: var(--pmw-ink); }
.pmw-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--pmw-line); border-radius: 12px; background: #fff; font-size: 15px; color: var(--pmw-ink); }
textarea.pmw-input { min-height: 120px; resize: vertical; }
select.pmw-input { appearance: auto; }
.pmw-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, transparent); }
.has-error .pmw-input { border-color: var(--pmw-danger); }
.pmw-error { margin: 6px 0 0; font-size: 13px; color: var(--pmw-danger); }

/* Pilihan jawaban sebagai chip (radio tetap ada untuk keyboard & pembaca layar) */
.pmw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pmw-chips.is-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .pmw-chips.is-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pmw-chip { position: relative; margin: 0; cursor: pointer; }
.pmw-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmw-chip span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; text-align: center;
  border: 1px solid var(--pmw-line); border-radius: 999px; background: #fff; color: var(--pmw-ink); font-size: 14px; font-weight: 500;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pmw-chip:hover span { border-color: var(--primary-color); }
.pmw-chip input:checked + span { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }
.pmw-chip input:focus-visible + span { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.has-error .pmw-chip span { border-color: #E9A9A5; }

.pmw-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pmw-question { padding: 18px; border: 1px solid var(--pmw-line); border-radius: 16px; scroll-margin-top: 160px; }
.pmw-question.has-error { border-color: #E9A9A5; background: #FFFBFB; }
.pmw-question fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pmw-question legend { display: flex; gap: 12px; float: none; width: auto; margin: 0 0 14px; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--pmw-ink); }
.pmw-qno { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--secondary-color); color: var(--primary-color); font-size: 13px; font-weight: 700; }
.pmw-question .pmw-chips { padding-left: 40px; }
@media (max-width: 575.98px) { .pmw-question .pmw-chips { padding-left: 0; } }

.pmw-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pmw-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 32px; border: 1px solid var(--primary-color);
  border-radius: 999px; background: var(--primary-color); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, color .15s ease;
}
.pmw-btn:hover { color: #fff; filter: brightness(.93); }
.pmw-btn:disabled { cursor: progress; opacity: .85; }
.pmw-btn.is-ghost { background: #fff; color: var(--pmw-muted); border-color: var(--pmw-line); font-weight: 500; }
.pmw-btn.is-ghost:hover { color: var(--pmw-ink); border-color: var(--pmw-ink); filter: none; }
.pmw-btn:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
@media (max-width: 575.98px) { .pmw-actions .pmw-btn { width: 100%; } .pmw-section { padding: 18px; } }

.pmw-done { padding: 48px 24px; text-align: center; border: 1px solid var(--pmw-line); border-radius: 20px; background: #fff; scroll-margin-top: 120px; }
.pmw-done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #EAF6EE; color: #1F7A3D; }
.pmw-done-icon svg { width: 32px; height: 32px; }
.pmw-done h2 { margin: 0 0 8px; font-size: 24px !important; color: var(--pmw-ink); }
.pmw-done p { max-width: 460px; margin: 0 auto 22px; color: var(--pmw-muted); }
.pmw-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
