/* Public application wizard + applicant status page.
   Embedded in the SITE'S OWN theme via shortcode, so everything is scoped
   under .nemtp-wizard and sets its own background, type and control styles
   rather than trusting the theme's. It follows the visitor's OS color
   preference; the card carries its own background so dark-mode text is never
   light-on-light against a page background this stylesheet doesn't control.
   Without JS (no .is-js on the form) every step renders stacked as one form. */

.nemtp-wizard {
	--pf-bg: #ffffff;
	--pf-surface: #f5f7fb;
	--pf-border: #e1e6ef;
	--pf-border-strong: #c9d1de;
	--pf-text: #172033;
	--pf-muted: #5f6b80;
	--pf-accent: #2f6fed;
	--pf-accent-hover: #1f5bd6;
	--pf-accent-soft: rgba(47, 111, 237, 0.10);
	--pf-success: #15803d;
	--pf-success-soft: #e9f8ee;
	--pf-warning: #a15c07;
	--pf-warning-soft: #fff6e5;
	--pf-warning-border: #f3c77a;
	--pf-danger: #c62828;
	--pf-danger-soft: #fdecec;
	--pf-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
	--pf-radius: 16px;
	--pf-radius-sm: 10px;
	color-scheme: light;

	box-sizing: border-box;
	max-width: 760px;
	margin: 24px auto;
	padding: 32px;
	background: var(--pf-bg);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	box-shadow: var(--pf-shadow);
	color: var(--pf-text);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}

@media (prefers-color-scheme: dark) {
	.nemtp-wizard {
		--pf-bg: #121a2b;
		--pf-surface: #17213a;
		--pf-border: #26314d;
		--pf-border-strong: #3a4769;
		--pf-text: #e6ebf5;
		--pf-muted: #97a2b9;
		--pf-accent: #4d85f3;
		--pf-accent-hover: #6a99f5;
		--pf-accent-soft: rgba(77, 133, 243, 0.16);
		--pf-success: #3ddc7c;
		--pf-success-soft: rgba(34, 197, 94, 0.14);
		--pf-warning: #f5b94a;
		--pf-warning-soft: rgba(240, 180, 41, 0.12);
		--pf-warning-border: rgba(240, 180, 41, 0.45);
		--pf-danger: #f87171;
		--pf-danger-soft: rgba(239, 68, 68, 0.14);
		--pf-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
		color-scheme: dark;
	}
}

.nemtp-wizard *,
.nemtp-wizard *::before,
.nemtp-wizard *::after {
	box-sizing: border-box;
}

.nemtp-wizard h2,
.nemtp-wizard h3,
.nemtp-wizard h4 {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--pf-text);
	font-family: inherit;
	letter-spacing: -0.01em;
	text-transform: none;
}

.nemtp-wizard p {
	margin: 0;
}

.nemtp-wizard a {
	color: var(--pf-accent);
}

.nemtp-wizard .nemtp-ic {
	flex: none;
	width: 20px;
	height: 20px;
}

.nemtp-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------------------------
 * Intro + progress
 * ---------------------------------------------------------------- */

.nemtp-wz-intro {
	margin-bottom: 20px;
}

.nemtp-wz-eyebrow {
	display: inline-block;
	margin-bottom: 4px;
	color: var(--pf-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nemtp-wz-intro h2 {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.nemtp-wz-progress {
	display: none;
	margin-bottom: 28px;
}

.nemtp-wz-form.is-js .nemtp-wz-progress {
	display: block;
}

.nemtp-wz-progress-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--pf-muted);
}

.nemtp-wz-progress-count {
	font-weight: 600;
	color: var(--pf-text);
}

.nemtp-wz-bar {
	height: 8px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: 999px;
	overflow: hidden;
}

.nemtp-wz-bar span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--pf-accent), #22c1dc);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.nemtp-wz-track {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.nemtp-wz-track li {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	min-width: 0;
	color: var(--pf-muted);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
}

.nemtp-wz-dot {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	background: var(--pf-bg);
	border: 2px solid var(--pf-border-strong);
	border-radius: 50%;
	font-size: 12px;
	transition: all 0.25s ease;
}

.nemtp-wz-track li.is-done .nemtp-wz-dot {
	background: var(--pf-accent);
	border-color: var(--pf-accent);
	color: #fff;
}

.nemtp-wz-track li.is-current {
	color: var(--pf-text);
}

.nemtp-wz-track li.is-current .nemtp-wz-dot {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
	box-shadow: 0 0 0 4px var(--pf-accent-soft);
}

.nemtp-wz-track-label {
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* -------------------------------------------------------------------
 * Panels
 * ---------------------------------------------------------------- */

.nemtp-wz-panel {
	margin: 0 0 32px;
}

.nemtp-wz-form.is-js .nemtp-wz-panel {
	display: none;
	margin: 0;
}

.nemtp-wz-form.is-js .nemtp-wz-panel.is-active {
	display: block;
	animation: nemtp-wz-in 0.3s ease;
}

.nemtp-wz-form.is-js .nemtp-wz-panel.is-active.is-back {
	animation-name: nemtp-wz-in-back;
}

@keyframes nemtp-wz-in {
	from { opacity: 0; transform: translateX(16px); }
	to { opacity: 1; transform: none; }
}

@keyframes nemtp-wz-in-back {
	from { opacity: 0; transform: translateX(-16px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.nemtp-wz-form.is-js .nemtp-wz-panel.is-active,
	.nemtp-wz-bar span {
		animation: none;
		transition: none;
	}
}

.nemtp-wz-panel-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 22px;
}

.nemtp-wz-panel-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--pf-accent-soft);
	border-radius: 12px;
	color: var(--pf-accent);
}

.nemtp-wz-panel-head h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.nemtp-wz-panel-head p {
	margin-top: 2px;
	color: var(--pf-muted);
	font-size: 14px;
}

.nemtp-wz-subhead {
	margin: 20px 0 10px !important;
	color: var(--pf-muted) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase !important;
}

.nemtp-wz-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 16px;
}

/* -------------------------------------------------------------------
 * Fields
 * ---------------------------------------------------------------- */

.nemtp-wz-field {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.nemtp-wz-field.is-half {
	grid-column: span 1;
}

.nemtp-wz-field > label,
.nemtp-wz-field > legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--pf-text);
	font-size: 13px;
	font-weight: 600;
}

.nemtp-wz-req {
	color: var(--pf-danger);
}

.nemtp-wizard input[type="text"],
.nemtp-wizard input[type="tel"],
.nemtp-wizard input[type="email"],
.nemtp-wizard input[type="date"],
.nemtp-wizard select,
.nemtp-wizard textarea {
	display: block;
	width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	background: var(--pf-bg);
	border: 1.5px solid var(--pf-border-strong);
	border-radius: var(--pf-radius-sm);
	box-shadow: none;
	color: var(--pf-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nemtp-wizard textarea {
	min-height: 88px;
	resize: vertical;
}

.nemtp-wizard input::placeholder,
.nemtp-wizard textarea::placeholder {
	color: var(--pf-muted);
	opacity: 0.8;
}

.nemtp-wizard input[type="text"]:focus,
.nemtp-wizard input[type="tel"]:focus,
.nemtp-wizard input[type="email"]:focus,
.nemtp-wizard input[type="date"]:focus,
.nemtp-wizard textarea:focus {
	border-color: var(--pf-accent);
	box-shadow: 0 0 0 4px var(--pf-accent-soft);
	outline: none;
}

.nemtp-wizard .is-invalid input,
.nemtp-wizard input.is-invalid,
.nemtp-wizard textarea.is-invalid {
	border-color: var(--pf-danger);
}

.nemtp-wz-hint {
	margin-top: 6px !important;
	color: var(--pf-muted);
	font-size: 12.5px;
}

.nemtp-wz-error {
	margin-top: 6px !important;
	color: var(--pf-danger);
	font-size: 13px;
	font-weight: 600;
}

.nemtp-wz-error[hidden] {
	display: none;
}

/* Pills (radios + checkboxes). */
.nemtp-wz-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nemtp-wz-pills.is-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.nemtp-wz-pill {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.nemtp-wz-pill input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.nemtp-wz-pill span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	background: var(--pf-bg);
	border: 1.5px solid var(--pf-border-strong);
	border-radius: 999px;
	color: var(--pf-text);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	transition: all 0.15s ease;
	user-select: none;
}

.nemtp-wz-pill:hover span {
	border-color: var(--pf-accent);
}

.nemtp-wz-pill input:checked + span {
	background: var(--pf-accent);
	border-color: var(--pf-accent);
	color: #fff;
	font-weight: 600;
}

.nemtp-wz-pill input:focus-visible + span {
	box-shadow: 0 0 0 4px var(--pf-accent-soft);
}

/* Drop zone. */
.nemtp-wz-drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 76px;
	padding: 14px 16px;
	background: var(--pf-surface);
	border: 1.5px dashed var(--pf-border-strong);
	border-radius: var(--pf-radius-sm);
	transition: all 0.15s ease;
}

.nemtp-wz-drop:hover,
.nemtp-wz-drop.is-dragover {
	background: var(--pf-accent-soft);
	border-color: var(--pf-accent);
}

.nemtp-wz-drop input[type="file"] {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.nemtp-wz-drop input[type="file"]:focus-visible ~ .nemtp-wz-drop-icon {
	box-shadow: 0 0 0 4px var(--pf-accent-soft);
}

.nemtp-wz-drop-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	background: var(--pf-bg);
	border: 1px solid var(--pf-border);
	border-radius: 10px;
	color: var(--pf-accent);
}

.nemtp-wz-drop-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nemtp-wz-drop-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 14px;
}

.nemtp-wz-drop-text strong {
	color: var(--pf-accent);
}

.nemtp-wz-drop-text span {
	color: var(--pf-muted);
	font-size: 12.5px;
}

.nemtp-wz-drop-preview:empty {
	display: none;
}

.nemtp-wz-drop.has-file {
	background: var(--pf-success-soft);
	border-style: solid;
	border-color: var(--pf-success);
}

.nemtp-wz-drop.has-file .nemtp-wz-drop-text strong {
	overflow: hidden;
	color: var(--pf-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nemtp-wz-drop.has-file .nemtp-wz-drop-text span {
	color: var(--pf-success);
	font-weight: 600;
}

.nemtp-wz-field.is-invalid .nemtp-wz-drop {
	background: var(--pf-danger-soft);
	border-color: var(--pf-danger);
}

/* Agree / confirm checkbox rows. */
.nemtp-wz-agree {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 20px 0 0;
	padding: 14px 16px;
	background: var(--pf-surface);
	border: 1.5px solid var(--pf-border);
	border-radius: var(--pf-radius-sm);
	color: var(--pf-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.nemtp-wz-agree.is-compact {
	margin: 0 0 8px;
	padding: 10px 12px;
}

.nemtp-wz-agree input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--pf-accent);
}

.nemtp-wz-agree:has(input:checked) {
	background: var(--pf-accent-soft);
	border-color: var(--pf-accent);
}

.nemtp-wz-agree.is-invalid {
	border-color: var(--pf-danger);
	background: var(--pf-danger-soft);
}

.nemtp-wz-same {
	align-self: end;
}

/* -------------------------------------------------------------------
 * Checklists, callouts, briefing
 * ---------------------------------------------------------------- */

.nemtp-wz-checklist {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nemtp-wz-checklist li,
.nemtp-wz-later-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
}

.nemtp-wz-checklist li {
	padding: 14px 16px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-sm);
}

.nemtp-wz-checklist li > div,
.nemtp-wz-later-head > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nemtp-wz-checklist li span:not(.nemtp-wz-cl-icon),
.nemtp-wz-later-head span:not(.nemtp-wz-cl-icon) {
	color: var(--pf-muted);
	font-size: 13.5px;
}

.nemtp-wz-cl-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	background: var(--pf-accent-soft);
	border-radius: 10px;
	color: var(--pf-accent);
}

.nemtp-wz-checklist.is-later .nemtp-wz-cl-icon {
	background: var(--pf-warning-soft);
	color: var(--pf-warning);
}

.nemtp-wz-callout {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: var(--pf-radius-sm);
	font-size: 14px;
}

.nemtp-wz-callout[hidden] {
	display: none;
}

.nemtp-wz-callout ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.nemtp-wz-callout.is-info {
	background: var(--pf-accent-soft);
	color: var(--pf-text);
}

.nemtp-wz-callout.is-info .nemtp-ic {
	color: var(--pf-accent);
}

.nemtp-wz-callout.is-warning {
	background: var(--pf-warning-soft);
	border-color: var(--pf-warning-border);
	color: var(--pf-text);
}

.nemtp-wz-callout.is-warning .nemtp-ic,
.nemtp-wz-callout.is-warning strong {
	color: var(--pf-warning);
}

.nemtp-wz-callout.is-success {
	background: var(--pf-success-soft);
	color: var(--pf-success);
	font-weight: 600;
}

.nemtp-wz-callout.is-danger {
	background: var(--pf-danger-soft);
	color: var(--pf-danger);
	font-weight: 600;
}

.nemtp-wz-briefing {
	max-height: 420px;
	overflow-y: auto;
	padding: 20px 22px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-sm);
	font-size: 14.5px;
	scroll-behavior: smooth;
}

.nemtp-wz-briefing:focus-visible {
	outline: 2px solid var(--pf-accent);
}

.nemtp-wz-briefing h4 {
	margin: 20px 0 8px;
	color: var(--pf-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nemtp-wz-briefing h4:first-child {
	margin-top: 0;
}

.nemtp-wz-briefing p {
	margin: 0 0 10px;
}

.nemtp-wz-briefing ol,
.nemtp-wz-briefing ul {
	margin: 0 0 10px;
	padding-left: 22px;
}

.nemtp-wz-briefing li {
	margin-bottom: 6px;
}

/* Screening: upload-now vs later. */
.nemtp-wz-later {
	margin-bottom: 16px;
	padding: 18px;
	background: var(--pf-bg);
	border: 1.5px solid var(--pf-border);
	border-radius: var(--pf-radius-sm);
	transition: border-color 0.2s ease;
}

.nemtp-wz-later .nemtp-wz-pills {
	margin: 14px 0 0;
}

.nemtp-wz-later-now,
.nemtp-wz-later .nemtp-wz-callout {
	margin: 14px 0 0;
}

.nemtp-wz-form.is-js [data-nemtp-mode] {
	display: none;
}

.nemtp-wz-form.is-js .nemtp-wz-later[data-mode="now"] [data-nemtp-mode="now"],
.nemtp-wz-form.is-js .nemtp-wz-later[data-mode="later"] [data-nemtp-mode="later"] {
	display: flex;
}

.nemtp-wz-form.is-js .nemtp-wz-later[data-mode="now"] [data-nemtp-mode="now"] {
	display: block;
}

.nemtp-wz-later[data-mode="later"] {
	border-color: var(--pf-warning-border);
}

.nemtp-wz-later[data-mode="now"] {
	border-color: var(--pf-accent);
}

/* Review summary. */
.nemtp-wz-summary {
	display: grid;
	gap: 12px;
	margin-bottom: 20px;
}

.nemtp-wz-summary:empty {
	display: none;
}

.nemtp-wz-sum-group {
	padding: 14px 16px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-sm);
}

.nemtp-wz-sum-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
}

.nemtp-wizard .nemtp-wz-sum-edit {
	margin: 0;
	padding: 2px 8px;
	background: none;
	border: 0;
	border-radius: 6px;
	color: var(--pf-accent);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.nemtp-wizard .nemtp-wz-sum-edit:hover {
	background: var(--pf-accent-soft);
}

.nemtp-wz-sum-group dl {
	display: grid;
	grid-template-columns: minmax(120px, 40%) 1fr;
	gap: 6px 12px;
	margin: 0;
	font-size: 13.5px;
}

.nemtp-wz-sum-group dt {
	color: var(--pf-muted);
}

.nemtp-wz-sum-group dd {
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--pf-text);
	font-weight: 500;
}

.nemtp-wz-sum-group dd.is-empty {
	color: var(--pf-muted);
	font-weight: 400;
	font-style: italic;
}

.nemtp-wz-sum-group dd.is-later {
	color: var(--pf-warning);
	font-weight: 700;
}

/* Signature pad. */
.nemtp-wz-signature {
	margin-top: 4px;
}

.nemtp-wz-sigpad {
	display: none;
	position: relative;
	height: 170px;
	background: #ffffff; /* Always paper-white: the saved PNG has dark ink, readable on the white admin review screen. */
	border: 1.5px solid var(--pf-border-strong);
	border-radius: var(--pf-radius-sm);
	overflow: hidden;
	touch-action: none;
}

.nemtp-wz-form.is-js .nemtp-wz-sigpad {
	display: block;
}

.nemtp-wz-sigpad canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	cursor: crosshair;
}

.nemtp-wz-sigpad-line {
	position: absolute;
	right: 24px;
	bottom: 40px;
	left: 24px;
	border-bottom: 1.5px dashed #c9d1de;
}

.nemtp-wz-sigpad-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #7a8699;
	font-size: 14px;
	pointer-events: none;
}

.nemtp-wz-sigpad.is-signed .nemtp-wz-sigpad-placeholder {
	display: none;
}

.nemtp-wizard .nemtp-wz-sigpad-clear {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: none;
	margin: 0;
	padding: 4px 12px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: 999px;
	color: var(--pf-muted);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.nemtp-wz-sigpad.is-signed .nemtp-wz-sigpad-clear {
	display: block;
}

.nemtp-wz-signature.is-invalid .nemtp-wz-sigpad {
	border-color: var(--pf-danger);
}

.nemtp-wz-sigfallback {
	margin-top: 10px;
	font-size: 13px;
}

.nemtp-wz-sigfallback summary {
	color: var(--pf-accent);
	font-weight: 600;
	cursor: pointer;
}

.nemtp-wz-sigfallback .nemtp-wz-field {
	margin-top: 10px;
}

.nemtp-wz-form:not(.is-js) .nemtp-wz-sigfallback {
	display: block;
}

/* -------------------------------------------------------------------
 * Buttons + nav
 * ---------------------------------------------------------------- */

.nemtp-wz-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--pf-border);
}

.nemtp-wizard .nemtp-wz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 12px 24px;
	background: var(--pf-surface);
	border: 1.5px solid var(--pf-border-strong);
	border-radius: 12px;
	box-shadow: none;
	color: var(--pf-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.nemtp-wizard .nemtp-wz-btn:active {
	transform: translateY(1px);
}

.nemtp-wizard .nemtp-wz-btn.is-primary {
	background: var(--pf-accent);
	border-color: var(--pf-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(47, 111, 237, 0.28);
}

.nemtp-wizard .nemtp-wz-btn.is-primary:hover {
	background: var(--pf-accent-hover);
	border-color: var(--pf-accent-hover);
}

.nemtp-wizard .nemtp-wz-btn.is-ghost {
	margin-right: auto;
	background: transparent;
	border-color: transparent;
	color: var(--pf-muted);
}

.nemtp-wizard .nemtp-wz-btn.is-ghost:hover {
	background: var(--pf-surface);
	color: var(--pf-text);
}

.nemtp-wizard .nemtp-wz-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.nemtp-wizard .nemtp-wz-btn.is-busy .nemtp-ic {
	animation: nemtp-wz-spin 0.9s linear infinite;
}

@keyframes nemtp-wz-spin {
	to { transform: rotate(360deg); }
}

/* Without JS only the submit button shows. */
.nemtp-wz-form:not(.is-js) [data-nemtp-prev],
.nemtp-wz-form:not(.is-js) [data-nemtp-next] {
	display: none;
}

.nemtp-wz-form.is-js .nemtp-wz-nav [hidden] {
	display: none;
}

.nemtp-wz-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 16px !important;
	color: var(--pf-muted);
	font-size: 12.5px;
	text-align: center;
}

.nemtp-wz-secure .nemtp-ic {
	width: 14px;
	height: 14px;
}

/* -------------------------------------------------------------------
 * Status page
 * ---------------------------------------------------------------- */

.nemtp-status-hero {
	margin-bottom: 20px;
	text-align: center;
}

.nemtp-status-hero-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	background: var(--pf-success-soft);
	border-radius: 50%;
	color: var(--pf-success);
}

.nemtp-status-hero-icon .nemtp-ic {
	width: 30px;
	height: 30px;
}

.nemtp-status-hero.is-muted .nemtp-status-hero-icon {
	background: var(--pf-surface);
	color: var(--pf-muted);
}

.nemtp-status-hero h2 {
	margin-bottom: 6px;
	font-size: 24px;
	font-weight: 700;
}

.nemtp-status-hero p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--pf-muted);
}

.nemtp-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.nemtp-status-pill.is-pending {
	background: var(--pf-accent-soft);
	color: var(--pf-accent);
}

.nemtp-status-pill.is-approved {
	background: var(--pf-success-soft);
	color: var(--pf-success);
}

.nemtp-status-pill.is-rejected,
.nemtp-status-pill.is-missing {
	background: var(--pf-danger-soft);
	color: var(--pf-danger);
}

.nemtp-status-pill.is-missing::before {
	content: "";
	width: 7px;
	height: 7px;
	background: currentColor;
	border-radius: 50%;
	animation: nemtp-wz-pulse 1.6s ease-in-out infinite;
}

@keyframes nemtp-wz-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.nemtp-status-attention {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 24px;
	padding: 18px 20px;
	background: var(--pf-warning-soft);
	border: 1.5px solid var(--pf-warning-border);
	border-left-width: 5px;
	border-left-color: var(--pf-warning);
	border-radius: var(--pf-radius-sm);
}

.nemtp-status-attention strong {
	display: block;
	margin-bottom: 2px;
	color: var(--pf-warning);
	font-size: 16px;
}

.nemtp-status-attention p {
	color: var(--pf-text);
	font-size: 14px;
}

.nemtp-status-attention-icon {
	color: var(--pf-warning);
}

.nemtp-status-attention-icon .nemtp-ic {
	width: 26px;
	height: 26px;
}

.nemtp-status-timeline {
	position: relative;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.nemtp-status-timeline li {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0 0 20px;
}

.nemtp-status-timeline li:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 36px;
	bottom: 4px;
	left: 17px;
	width: 2px;
	background: var(--pf-border);
}

.nemtp-status-timeline li.is-done:not(:last-child)::before {
	background: var(--pf-success);
}

.nemtp-status-timeline li > div {
	display: flex;
	flex-direction: column;
	padding-top: 6px;
}

.nemtp-status-timeline li span:not(.nemtp-status-step) {
	color: var(--pf-muted);
	font-size: 13.5px;
}

.nemtp-status-step {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--pf-surface);
	border: 2px solid var(--pf-border-strong);
	border-radius: 50%;
	color: var(--pf-muted);
}

.nemtp-status-step .nemtp-ic {
	width: 18px;
	height: 18px;
}

.is-done > .nemtp-status-step {
	background: var(--pf-success);
	border-color: var(--pf-success);
	color: #fff;
}

.is-current > .nemtp-status-step {
	background: var(--pf-accent-soft);
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

.is-attention > .nemtp-status-step {
	background: var(--pf-warning-soft);
	border-color: var(--pf-warning);
	color: var(--pf-warning);
}

.is-attention > div strong {
	color: var(--pf-warning);
}

.is-rejected > .nemtp-status-step {
	background: var(--pf-danger-soft);
	border-color: var(--pf-danger);
	color: var(--pf-danger);
}

.nemtp-status-heading {
	margin-bottom: 12px !important;
	font-size: 17px;
	font-weight: 700;
}

.nemtp-status-docs {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nemtp-status-docs > li {
	margin: 0;
	padding: 14px 16px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-sm);
}

.nemtp-status-docs > li.is-missing {
	background: var(--pf-bg);
	border: 1.5px solid var(--pf-danger);
	box-shadow: 0 0 0 4px var(--pf-danger-soft);
}

.nemtp-status-doc-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nemtp-status-doc-name {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.nemtp-status-doc-name span {
	color: var(--pf-muted);
	font-size: 13px;
}

.is-missing .nemtp-wz-cl-icon {
	background: var(--pf-danger-soft);
	color: var(--pf-danger);
}

.is-done .nemtp-status-doc-row .nemtp-wz-cl-icon {
	background: var(--pf-success-soft);
	color: var(--pf-success);
}

.nemtp-status-upload {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--pf-border);
}

/* -------------------------------------------------------------------
 * Small screens
 * ---------------------------------------------------------------- */

@media (max-width: 600px) {
	.nemtp-wizard {
		margin: 12px 0;
		padding: 20px 16px;
		border-radius: 12px;
	}

	.nemtp-wz-intro h2 {
		font-size: 22px;
	}

	.nemtp-wz-grid {
		grid-template-columns: 1fr;
	}

	.nemtp-wz-field.is-half {
		grid-column: 1 / -1;
	}

	.nemtp-wz-track-label {
		display: none;
	}

	.nemtp-wz-dot {
		width: 22px;
		height: 22px;
		font-size: 11px;
	}

	.nemtp-wz-pills.is-split {
		grid-template-columns: 1fr;
	}

	.nemtp-wz-nav {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 24px -16px -20px;
		padding: 12px 16px;
		background: var(--pf-bg);
		border-radius: 0 0 12px 12px;
	}

	.nemtp-wizard .nemtp-wz-btn.is-primary {
		flex: 1;
	}

	.nemtp-wizard .nemtp-wz-btn.is-ghost {
		padding: 12px 14px;
	}

	.nemtp-wz-sum-group dl {
		grid-template-columns: 1fr;
		gap: 0 0;
	}

	.nemtp-wz-sum-group dd {
		margin-bottom: 8px;
	}

	.nemtp-status-upload {
		grid-template-columns: 1fr;
	}

	.nemtp-status-doc-row {
		flex-wrap: wrap;
	}
}
