/* NSPPL Feedback — public form and tracking page. Uses the theme's colour variables. */
.nsfm { --nsfm-p: var(--c-primary, #0f66b2); --nsfm-ink: var(--c-ink, #14232b); --nsfm-line: var(--c-line, #e2eaee); --nsfm-soft: var(--c-soft, #f3f8fa); --nsfm-r: var(--radius, 16px); --nsfm-err: #b42318; --nsfm-ok: #067647; max-width: 860px; margin: 0 auto 48px; }
.nsfm * { box-sizing: border-box; }
.nsfm-form { display: grid; gap: 20px; }
.nsfm-step { margin: 0; padding: 22px 22px 18px; border: 1px solid var(--nsfm-line); border-radius: var(--nsfm-r); background: #fff; min-width: 0; }
.nsfm-step legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-weight: 700; font-size: 1.08rem; color: var(--nsfm-ink); }
.nsfm-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--nsfm-p); color: #fff; font-size: .92rem; }
.nsfm-req { color: var(--nsfm-err); font-style: normal; }
.nsfm-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 8px; }
.nsfm-choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--nsfm-line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; line-height: 1.5; }
.nsfm-choice:hover { border-color: var(--nsfm-p); }
.nsfm-choice input { margin-top: 5px; accent-color: var(--nsfm-p); flex: none; width: 18px; height: 18px; }
.nsfm-choice span { display: grid; gap: 2px; }
.nsfm-choice small { color: var(--c-muted, #6b7d86); font-size: .86rem; }
.nsfm-choice:has(input:checked) { border-color: var(--nsfm-p); background: var(--nsfm-soft); box-shadow: 0 0 0 1px var(--nsfm-p) inset; }
.nsfm-choice.is-serious:has(input:checked) { border-color: #9a3412; background: #fff7ed; box-shadow: 0 0 0 1px #9a3412 inset; }
.nsfm-serious-note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; line-height: 1.7; }
.nsfm-serious-note strong { display: block; margin-bottom: 4px; }
.nsfm-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nsfm-field { display: grid; gap: 6px; margin: 0; }
.nsfm-wide { grid-column: 1 / -1; }
.nsfm-field label { font-weight: 600; color: var(--nsfm-ink); }
.nsfm input[type=text], .nsfm input[type=tel], .nsfm input[type=email], .nsfm input[type=password], .nsfm select, .nsfm textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--nsfm-line); border-radius: 10px; font: inherit; font-size: 1rem; color: var(--nsfm-ink); background: #fff; }
.nsfm textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.nsfm input:focus, .nsfm select:focus, .nsfm textarea:focus { outline: none; border-color: var(--nsfm-p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nsfm-p) 18%, transparent); }
.nsfm input[type=file] { width: 100%; padding: 12px; border: 1.5px dashed var(--nsfm-line); border-radius: 10px; background: var(--nsfm-soft); font: inherit; }
.nsfm-help { color: var(--c-muted, #6b7d86); font-size: .87rem; line-height: 1.6; }
.nsfm-count { white-space: nowrap; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--nsfm-err); }
.nsfm-step.has-error { border-color: #fda29b; }
.nsfm-error { color: var(--nsfm-err); font-size: .9rem; font-weight: 600; margin: 4px 0 0; }
.nsfm-named { margin-top: 16px; }
.nsfm-named[hidden], .nsfm-serious-note[hidden] { display: none; }
.nsfm-final { display: grid; gap: 14px; }
.nsfm-consent { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; cursor: pointer; }
.nsfm-consent input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--nsfm-p); flex: none; }
.nsfm-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nsfm-submit { justify-self: start; min-width: 200px; }
.nsfm-submit[disabled] { opacity: .6; cursor: wait; }
.nsfm-alert { padding: 14px 16px; border-radius: 12px; line-height: 1.7; }
.nsfm-alert.is-error { background: #fef3f2; border: 1px solid #fecdca; color: var(--nsfm-err); }
.nsfm-alert.is-ok { background: #ecfdf3; border: 1px solid #abefc6; color: var(--nsfm-ok); }
/* Success */
.nsfm-success { text-align: center; padding: 34px 24px; border: 1px solid var(--nsfm-line); border-radius: var(--nsfm-r); background: #fff; }
.nsfm-tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ecfdf3; color: var(--nsfm-ok); font-size: 32px; margin-bottom: 8px; }
.nsfm-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px auto; max-width: 520px; }
.nsfm-codes > div { padding: 14px; border-radius: 12px; background: var(--nsfm-soft); border: 1px solid var(--nsfm-line); }
.nsfm-codes span { display: block; font-size: .85rem; color: var(--c-muted, #6b7d86); }
.nsfm-codes strong { display: block; font-size: 1.45rem; letter-spacing: .04em; color: var(--nsfm-ink); direction: ltr; }
.nsfm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nsfm-next { text-align: start; max-width: 560px; margin: 22px auto 0; line-height: 1.8; }
/* Tracking */
.nsfm-track { max-width: 520px; margin-inline: auto; padding: 24px; border: 1px solid var(--nsfm-line); border-radius: var(--nsfm-r); background: #fff; }
.nsfm-case { display: grid; gap: 20px; }
.nsfm-case-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--nsfm-r); background: var(--nsfm-soft); border: 1px solid var(--nsfm-line); }
.nsfm-case-head dl { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }
.nsfm-case-head dt { font-size: .82rem; color: var(--c-muted, #6b7d86); }
.nsfm-case-head dd { margin: 0; font-weight: 700; color: var(--nsfm-ink); }
.nsfm-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: #eef4ff; color: #1d4ed8; }
.nsfm-status.is-resolved, .nsfm-status.is-closed { background: #ecfdf3; color: var(--nsfm-ok); }
.nsfm-status.is-need_info { background: #fffaeb; color: #b54708; }
.nsfm-status.is-appeal { background: #f4f3ff; color: #5925dc; }
.nsfm-status.is-out_of_scope { background: #f2f4f7; color: #475467; }
.nsfm-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nsfm-thread li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--nsfm-line); line-height: 1.8; max-width: 88%; }
.nsfm-thread li.is-person { background: #fff; justify-self: start; }
.nsfm-thread li.is-staff { background: var(--nsfm-soft); border-color: color-mix(in srgb, var(--nsfm-p) 25%, var(--nsfm-line)); justify-self: end; }
.nsfm-who { display: block; font-size: .82rem; color: var(--c-muted, #6b7d86); margin-bottom: 4px; }
.nsfm-appeal { border: 1px solid var(--nsfm-line); border-radius: 12px; padding: 12px 16px; }
.nsfm-appeal summary { cursor: pointer; font-weight: 600; }
.nsfm-logout { text-align: center; }
.nsfm-linkbtn { background: none; border: 0; padding: 0; color: var(--nsfm-p); font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
	.nsfm-step { padding: 18px 14px 14px; }
	.nsfm-grid, .nsfm-codes { grid-template-columns: 1fr; }
	.nsfm-submit { width: 100%; }
	.nsfm-thread li { max-width: 100%; }
}
/* Information pages (feedback, commitments, FAQ). */
.nsfm-page { --nsfm-p: var(--c-primary, #0f66b2); --nsfm-ink: var(--c-ink, #14232b); --nsfm-line: var(--c-line, #e2eaee); --nsfm-soft: var(--c-soft, #f3f8fa); max-width: 860px; margin: 0 auto; line-height: 1.85; }
.nsfm-page h2 { margin-top: 44px; font-size: 1.45rem; }
.nsfm-page h3 { font-size: 1.1rem; margin-bottom: 6px; }
.nsfm-lead { font-size: 1.12rem; color: var(--nsfm-ink); }
.nsfm-callout { padding: 18px 20px; border-radius: 14px; margin: 22px 0; }
.nsfm-callout.is-info { background: var(--nsfm-soft); border-inline-start: 4px solid var(--nsfm-p); }
.nsfm-callout.is-serious { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.nsfm-callout.is-serious h3 { color: #7c2d12; }
.nsfm-callout.is-serious a { color: #9a3412; text-decoration: underline; }
.nsfm-callout p:last-child, .nsfm-callout ul:last-child { margin-bottom: 0; }
.nsfm-channels { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nsfm-channel { padding: 18px; border: 1px solid var(--nsfm-line); border-radius: 14px; background: #fff; }
.nsfm-channel p { margin: 0 0 10px; }
.nsfm-channel.is-main { grid-column: 1 / -1; background: var(--nsfm-soft); border-color: color-mix(in srgb, var(--nsfm-p) 30%, var(--nsfm-line)); }
.nsfm-phone { font-size: 1.6rem; font-weight: 700; color: var(--nsfm-p); letter-spacing: .02em; text-align: start; unicode-bidi: plaintext; }
.nsfm-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.nsfm-list { padding-inline-start: 22px; margin: 0 0 12px; }
.nsfm-list li { margin-bottom: 6px; }
.nsfm-list.is-cols { columns: 2; column-gap: 32px; }
.nsfm-list.is-cols li { break-inside: avoid; }
.nsfm-steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 10px; }
.nsfm-steps li { counter-increment: s; position: relative; padding: 14px 16px; padding-inline-start: 58px; border: 1px solid var(--nsfm-line); border-radius: 12px; background: #fff; }
.nsfm-steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--nsfm-p); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.nsfm-steps strong { display: block; color: var(--nsfm-ink); }
.nsfm-tablewrap { overflow-x: auto; border: 1px solid var(--nsfm-line); border-radius: 12px; }
.nsfm-sla { width: 100%; border-collapse: collapse; min-width: 520px; }
.nsfm-sla th, .nsfm-sla td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--nsfm-line); }
.nsfm-sla thead th { background: var(--nsfm-soft); color: var(--nsfm-ink); }
.nsfm-sla tr:last-child td { border-bottom: 0; }
.nsfm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nsfm-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nsfm-values > div { padding: 16px; border-radius: 12px; background: var(--nsfm-soft); }
.nsfm-values strong { display: block; color: var(--nsfm-ink); }
.nsfm-values span { font-size: .94rem; }
.nsfm-faq { border: 1px solid var(--nsfm-line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; background: #fff; }
.nsfm-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--nsfm-ink); }
.nsfm-faq p { margin: 0 0 14px; }
.nsfm-note { color: var(--c-muted, #6b7d86); text-align: center; margin-top: 18px; }
.nsfm-page .nsfm { margin-top: 18px; }
@media (max-width: 760px) {
	.nsfm-channels, .nsfm-two, .nsfm-values { grid-template-columns: 1fr; }
	.nsfm-list.is-cols { columns: 1; }
	.nsfm-sla { min-width: 0; font-size: .9rem; }
	.nsfm-sla th, .nsfm-sla td { padding: 10px 8px; }
}
/* Staff portal. */
.nsfm-portal { max-width: 1180px; }
.nsfm-auth { margin-top: 10px; }
.nsfm-auth h2 { font-size: 1.3rem; margin-bottom: 14px; }
.nsfm-auth .nsfm-field { margin-bottom: 14px; }
.nsfm-portal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--nsfm-soft); border: 1px solid var(--nsfm-line); }
.nsfm-portal-bar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.nsfm-portal-bar nav a { font-weight: 600; }
.nsfm-portal-bar form { margin: 0; }
.nsfm-portal .nsfm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.nsfm-portal .nsfm-kpi { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--nsfm-line); background: #fff; color: var(--nsfm-ink); text-decoration: none; }
.nsfm-portal .nsfm-kpi strong { display: block; font-size: 1.7rem; line-height: 1.2; }
.nsfm-portal .nsfm-kpi span { color: var(--c-muted, #6b7d86); font-size: .9rem; }
.nsfm-portal .nsfm-kpi.is-alert { border-color: #fecdca; background: #fef3f2; }
.nsfm-portal .nsfm-kpi.is-alert strong { color: #b42318; }
.nsfm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.nsfm-filters select, .nsfm-filters input[type=search] { width: auto !important; min-width: 150px; padding: 8px 10px; border: 1.5px solid var(--nsfm-line); border-radius: 10px; font: inherit; }
.nsfm-mine { display: inline-flex; gap: 6px; align-items: center; }
.nsfm-cases { min-width: 760px; }
.nsfm-cases tr.is-new td { background: #fffbeb; }
.nsfm-cases td a { white-space: nowrap; }
.nsfm-empty { padding: 24px; text-align: center; color: var(--c-muted, #6b7d86); border: 1px dashed var(--nsfm-line); border-radius: 12px; }
.nsfm-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #f2f4f7; color: #344054; white-space: nowrap; }
.nsfm-badge.is-new { background: #fef3f2; color: #b42318; }
.nsfm-badge.is-acknowledged, .nsfm-badge.is-referred, .nsfm-badge.is-in_progress { background: #eef4ff; color: #1d4ed8; }
.nsfm-badge.is-need_info, .nsfm-badge.is-appeal { background: #fffaeb; color: #b54708; }
.nsfm-badge.is-resolved, .nsfm-badge.is-closed { background: #ecfdf3; color: #067647; }
.nsfm-badge.is-urgent, .nsfm-badge.is-sensitive { background: #b42318; color: #fff; }
.nsfm-portal .nsfm-overdue { color: #b42318; font-weight: 700; }
.nsfm-case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.nsfm-box { border: 1px solid var(--nsfm-line); border-radius: 14px; padding: 16px 18px; background: #fff; margin-bottom: 16px; }
.nsfm-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.nsfm-portal .form-table { width: 100%; border-collapse: collapse; }
.nsfm-portal .form-table th { text-align: start; width: 150px; padding: 8px 0; font-weight: 600; color: var(--nsfm-ink); vertical-align: top; }
.nsfm-portal .form-table td { padding: 6px 0; }
.nsfm-portal .nsfm-admin-msg { margin: 14px 0; padding: 14px 16px; background: var(--nsfm-soft); border-inline-start: 4px solid var(--nsfm-p); border-radius: 8px; line-height: 1.8; }
.nsfm-portal .nsfm-admin-thread { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.nsfm-portal .nsfm-admin-thread li { padding: 10px 12px; border: 1px solid var(--nsfm-line); border-radius: 10px; }
.nsfm-portal .nsfm-admin-thread li.is-staff { background: var(--nsfm-soft); }
.nsfm-portal .nsfm-log { list-style: none; margin: 0; padding: 0; font-size: .88rem; max-height: 320px; overflow: auto; }
.nsfm-portal .nsfm-log li { margin-bottom: 6px; }
.nsfm-portal .nsfm-log span { color: var(--c-muted, #6b7d86); direction: ltr; display: inline-block; }
.nsfm-portal .notice { padding: 12px 14px; border-radius: 10px; background: #eef4ff; border: 1px solid #c7d7fe; margin-bottom: 10px; }
.nsfm-portal .description { color: var(--c-muted, #6b7d86); font-size: .9rem; }
.nsfm-portal .button { padding: 7px 12px; border: 1.5px solid var(--nsfm-line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.nsfm-portal input[type=date] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--nsfm-line); border-radius: 10px; font: inherit; }
.nsfm-save { width: 100%; margin-top: 4px; }
@media (max-width: 900px) { .nsfm-case-grid { grid-template-columns: 1fr; } }
