/* Survei dinamis TPM: tata letak formulir & hasil, mengikuti template TPM. */
.sv-wrap { max-width: 980px; margin: 0 auto; width: 100%; }
.sv-card { background: #fff; border: 1px solid #e7eaed; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.sv-card h1 { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0 0 .5rem; }
.sv-card h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; }
.sv-desc { color: #4b5563; line-height: 1.6; white-space: pre-line; }
.sv-nav { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .75rem; }
.sv-field { margin-bottom: 1rem; }
.sv-field label.sv-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.sv-req { color: #c0392b; margin-left: .15rem; }
.sv-q { padding: .9rem 0; border-top: 1px solid #eef0f2; }
.sv-q:first-of-type { border-top: 0; }
.sv-q-text { font-weight: 500; margin-bottom: .6rem; line-height: 1.5; }
.sv-q-no { display: inline-block; min-width: 2rem; color: #6b7280; }
.sv-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; }
.sv-scale label, .sv-choice label { display: flex; align-items: center; gap: .45rem; border: 1px solid #d6dbe0; border-radius: 6px; padding: .5rem .7rem; cursor: pointer; margin: 0; background: #fafbfc; }
.sv-scale input, .sv-choice input { margin: 0; }
.sv-scale label:has(input:checked), .sv-choice label:has(input:checked) { border-color: #1e88e5; background: #e8f2fd; }
.sv-choice { display: grid; gap: .4rem; }
.sv-has-error .sv-q-text, .sv-has-error label.sv-label { color: #c0392b; }
.sv-err { color: #c0392b; font-size: .875rem; margin-top: .3rem; }
.sv-alert { padding: .8rem 1rem; border-radius: 6px; margin: 0 0 1rem; }
.sv-alert-ok { background: #e7f6ec; color: #1d6b3a; border: 1px solid #b7e1c4; }
.sv-alert-warn { background: #fdf3e6; color: #8a4b0f; border: 1px solid #f3d3a8; }
.sv-alert-info { background: #eef4fb; color: #1f4e79; border: 1px solid #c9dcf0; }
.sv-actions { text-align: center; }
.sv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sv-filter { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.sv-filter > div { min-width: 180px; }
.sv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.sv-stat { border: 1px solid #e7eaed; border-radius: 8px; padding: .8rem 1rem; }
.sv-stat .v { font-size: 1.6rem; font-weight: 700; }
.sv-stat .k { color: #6b7280; font-size: .85rem; }
.sv-table-wrap { overflow-x: auto; }
.sv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sv-table th, .sv-table td { border: 1px solid #d6dbe0; padding: .45rem .55rem; vertical-align: top; }
.sv-table th { background: #f3f5f7; text-align: center; }
.sv-table td.num { text-align: center; white-space: nowrap; }
.sv-table tr.sv-sub td { background: #f8fafc; font-weight: 600; }
.sv-bar { height: 6px; background: #e5e7eb; border-radius: 3px; margin-top: 3px; }
.sv-bar span { display: block; height: 100%; background: #1e88e5; border-radius: 3px; }
.sv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.sv-list li { border: 1px solid #e7eaed; border-radius: 8px; padding: 1rem 1.25rem; background: #fff; }
.sv-list h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.sv-text-answers { max-height: 240px; overflow-y: auto; margin: .4rem 0 0; padding-left: 1.1rem; }
@media (max-width: 600px) {
  .sv-card { padding: 1rem; }
  .sv-scale { grid-template-columns: 1fr 1fr; }
}
