/* Copyright 2026 Ecsper Ltd. All rights reserved. */
/* SPDX-License-Identifier: LicenseRef-Ecsper-Proprietary */

body.ecsper-q-library .ecsper-assess {
	padding: 0;
	background: var(--bg);
}

body.ecsper-q-library .ecsper-assess-wrap {
	max-width: none;
	margin: 0;
}

body.ecsper-q-library .ecsper-assess-prog,
body.ecsper-q-library .ecsper-assess-loading {
	display: none;
}

body.ecsper-q-library .ecsper-assess-wrap > .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ecsper-q {
	--accent: var(--blue);
	--track: var(--bg);
	--navbg: rgba(255, 255, 255, 0.96);
	--btn-off: #a9b7cf;
	--on-accent: #fff;
	--olive: #5b6b12;
	--olive-t: #f4f7e6;
	--edge: #b91c1c;
	color: var(--ink);
	font-family: var(--bd);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {
	body.ecsper-q-library .ecsper-q {
		--blue: #6ac5ff;
		--blue-d: #9bd8ff;
		--blue-t: rgba(106, 197, 255, 0.12);
		--accent: #6ac5ff;
		--ink: #f4f0e9;
		--ink2: #c9cfd9;
		--ink3: #c9cfd9;
		--paper: #15181f;
		--bg: #0b0e14;
		--track: #232833;
		--line: #303540;
		--lines: #262b35;
		--red: #f16b70;
		--red-t: rgba(241, 107, 112, 0.14);
		--warm: #f0a46e;
		--warm-t: rgba(240, 164, 110, 0.14);
		--olive: #c7d36a;
		--olive-t: rgba(199, 211, 106, 0.14);
		--green: #4fd1a1;
		--green-t: rgba(79, 209, 161, 0.14);
		--navbg: rgba(11, 14, 20, 0.96);
		--btn-off: #3a4458;
		--on-accent: #0b0e14;
	}

	body.ecsper-q-library,
	body.ecsper-q-library .wp-site-blocks,
	body.ecsper-q-library .ecsper-assess-main,
	body.ecsper-q-library .ecsper-assess,
	body.ecsper-q-library .ecsper-assess-wrap,
	body.ecsper-q-library header,
	body.ecsper-q-library .wp-site-header,
	body.ecsper-q-library .ecsper-nav,
	body.ecsper-q-library .ecsper-mega,
	body.ecsper-q-library footer,
	body.ecsper-q-library .wp-site-footer,
	body.ecsper-q-library .has-ink-background-color {
		background: #0b0e14 !important;
		background-color: #0b0e14 !important;
	}

	body.ecsper-q-library .ecsper-nav,
	body.ecsper-q-library .ecsper-mega {
		border-bottom-color: #303540;
	}

	body.ecsper-q-library .ecsper-brand .wp-block-site-title,
	body.ecsper-q-library .ecsper-brand .wp-block-site-title a,
	body.ecsper-q-library .ecsper-header-logo,
	body.ecsper-q-library .ecsper-header-logo a,
	body.ecsper-q-library .ecsper-nav a,
	body.ecsper-q-library .ecsper-mega-trigger,
	body.ecsper-q-library .ecsper-mega-link,
	body.ecsper-q-library .ecsper-footer-wordmark,
	body.ecsper-q-library .ecsper-footer-head,
	body.ecsper-q-library .ecsper-footer-descriptor,
	body.ecsper-q-library .ecsper-footer-copy,
	body.ecsper-q-library .ecsper-footer-infra,
	body.ecsper-q-library .ecsper-footer-grid a,
	body.ecsper-q-library .ecsper-footer-legal a {
		color: #f4f0e9 !important;
	}

	body.ecsper-q-library .ecsper-brand .wp-block-site-logo img,
	body.ecsper-q-library .ecsper-header-logo img,
	body.ecsper-q-library .ecsper-footer-logo img {
		filter: brightness(0) invert(1);
	}

	body.ecsper-q-library .ecsper-nav-toggle-bar {
		background: #f4f0e9;
	}

	body.ecsper-q-library .ecsper-q-btn.is-pri:disabled {
		color: #f4f0e9;
	}

	body.ecsper-q-library :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
		outline-color: #f4f0e9;
	}

	body.ecsper-q-library .ecsper-skip-link:focus,
	body.ecsper-q-library #wp-skip-link:focus {
		background-color: #f4f0e9 !important;
		color: #0b0e14 !important;
	}
}

.ecsper-q *,
.ecsper-q *::before,
.ecsper-q *::after {
	box-sizing: border-box;
}

.ecsper-q button,
.ecsper-q input,
.ecsper-q select {
	font: inherit;
	color: inherit;
}

.ecsper-q-prog {
	height: 4px;
	background: var(--lines);
}

.ecsper-q-prog b {
	display: block;
	height: 100%;
	width: 0;
	background: var(--accent);
	transition: width 0.35s ease;
}

.ecsper-q-main {
	max-width: 720px;
	margin: 0 auto;
	padding: 28px 20px 130px;
}

.ecsper-q-screen {
	display: none;
}

.ecsper-q-screen.is-on {
	display: block;
	animation: ecsper-q-in 0.35s ease;
}

@keyframes ecsper-q-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.ecsper-q-eyebrow {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 8px;
}

.ecsper-q-main h1 {
	font-family: var(--dsp);
	font-weight: 400;
	font-size: clamp(32px, 6vw, 44px);
	line-height: 1.1;
	margin: 0;
	color: var(--ink);
}

.ecsper-q-main h2 {
	font-family: var(--dsp);
	font-weight: 400;
	font-size: clamp(23px, 4.6vw, 30px);
	line-height: 1.22;
	margin: 0;
	color: var(--ink);
}

.ecsper-q-explain {
	font-size: 16px;
	color: var(--ink2);
	margin-top: 10px;
	max-width: 620px;
}

.ecsper-q-field {
	margin-top: 22px;
}

.ecsper-q-field label,
.ecsper-q-field .ecsper-q-lbl {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 8px;
}

.ecsper-q-sel {
	position: relative;
}

.ecsper-q-sel select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 52px;
	padding: 13px 44px 13px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	font-size: 16px;
	color: var(--ink);
	cursor: pointer;
}

.ecsper-q-sel::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--ink3);
	border-bottom: 2px solid var(--ink3);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.ecsper-q-sel select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--blue-t);
}

.ecsper-q-sel select.is-empty {
	color: var(--ink3);
}

.ecsper-q-hint {
	font-size: 14px;
	color: var(--ink3);
	margin-top: 7px;
}

.ecsper-q-txt {
	width: 100%;
	min-height: 50px;
	margin-top: 10px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	font-size: 16px;
}

.ecsper-q-txt:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--blue-t);
}

.ecsper-q-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.ecsper-q-chk {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 14px;
	min-height: 50px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-size: 15px;
	cursor: pointer;
}

.ecsper-q-chk input {
	width: 18px;
	height: 18px;
	margin: 0 10px 0 0;
	accent-color: var(--accent);
	flex: none;
}

.ecsper-q-chk:has(input:checked) {
	border-color: var(--accent);
	background: var(--blue-t);
}

.ecsper-q-hide {
	display: none !important;
}

.ecsper-q-qno {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ecsper-q-steps {
	display: flex;
	gap: 5px;
}

.ecsper-q-steps i {
	width: 20px;
	height: 5px;
	border-radius: 3px;
	background: var(--line);
}

.ecsper-q-steps i.is-done {
	background: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.ecsper-q-steps i.is-cur {
	background: var(--accent);
}

.ecsper-q-area {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink3);
	margin: 2px 0 10px;
}

.ecsper-q-opts {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.ecsper-q-opt {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: 14px;
	padding: 15px 16px;
	min-height: 50px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.ecsper-q-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ecsper-q-mark {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--ink3);
	margin-top: 1px;
	display: grid;
	place-items: center;
}

.ecsper-q-mark::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	transform: scale(0);
	transition: transform 0.15s;
}

.ecsper-q-opt .ecsper-q-t {
	font-size: 16px;
	line-height: 1.45;
}

.ecsper-q-opt:has(input:checked) {
	border-color: var(--accent);
	background: var(--blue-t);
}

.ecsper-q-opt:has(input:checked) .ecsper-q-mark {
	border-color: var(--accent);
}

.ecsper-q-opt:has(input:checked) .ecsper-q-mark::after {
	transform: scale(1);
}

.ecsper-q-opt:has(input:focus-visible) {
	box-shadow: 0 0 0 3px var(--blue-t);
}

.ecsper-q-why {
	margin-top: 16px;
	border-left: 3px solid var(--accent);
	background: var(--paper);
	border-radius: 0 12px 12px 0;
	padding: 13px 16px;
}

.ecsper-q-why b {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 3px;
}

.ecsper-q-why p {
	font-size: 15px;
	margin: 0;
}

.ecsper-q-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--navbg);
	backdrop-filter: blur(6px);
	border-top: 1px solid var(--lines);
	z-index: 5;
	padding-bottom: env(safe-area-inset-bottom);
}

.ecsper-q-nav-in {
	max-width: 720px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ecsper-q-status {
	flex: 1;
	font-size: 14px;
	color: var(--ink3);
	min-width: 0;
}

.ecsper-q-btn {
	border: 0;
	border-radius: 12px;
	padding: 14px 22px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	min-height: 50px;
}

.ecsper-q-btn.is-pri {
	background: var(--accent);
	color: var(--on-accent);
}

.ecsper-q-btn.is-sec {
	background: transparent;
	border: 1.5px solid var(--line);
	color: var(--ink);
}

.ecsper-q-btn.is-pri:disabled {
	background: var(--btn-off);
	color: #1c2433;
	cursor: not-allowed;
}

.ecsper-q-btn.is-wide {
	width: 100%;
}

.ecsper-q .ecsper-assess-card {
	background: var(--paper);
	border: 1px solid var(--lines);
	border-radius: 20px;
	padding: 36px 28px;
	box-shadow: none;
}

.ecsper-q .ecsper-assess-ring-pct {
	font-size: 14px;
	color: var(--ink3);
}

.ecsper-q .ecsper-assess-bar-fill {
	display: block;
}

.ecsper-q .ecsper-assess-ring-fill.band-progressing {
	stroke: var(--olive);
}

.ecsper-q .ecsper-assess-band-pill.band-progressing {
	background: var(--olive-t);
	color: var(--olive);
}

.ecsper-q-cap {
	font-size: 14px;
	text-align: center;
	color: var(--ink2);
	margin: -8px 0 20px;
}

.ecsper-q-lim {
	color: var(--red);
	font-weight: 600;
}

.ecsper-q .ecsper-assess-form {
	max-width: none;
}

.ecsper-q .ecsper-assess-field input,
.ecsper-q .ecsper-assess-field select {
	min-height: 50px;
	font-size: 16px;
}

.ecsper-q-ok {
	background: var(--green-t);
	color: var(--ink);
	border-radius: 12px;
	padding: 13px 16px;
	font-size: 15px;
	margin: 16px 0 4px;
}

.ecsper-q-tbl {
	width: 100%;
	border-collapse: collapse;
	background: var(--paper);
	border: 1px solid var(--lines);
	border-radius: 14px;
	overflow: hidden;
	margin-top: 16px;
}

.ecsper-q-tbl th {
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink3);
	padding: 11px 14px;
	border-bottom: 1px solid var(--lines);
}

.ecsper-q-tbl td {
	padding: 14px;
	border-bottom: 1px solid var(--lines);
	vertical-align: top;
	font-size: 15px;
}

.ecsper-q-tbl tr:last-child td {
	border-bottom: 0;
}

.ecsper-q-tbl td:first-child {
	font-weight: 600;
	width: 28%;
}

.ecsper-q-tbl .ecsper-q-lim-note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--red);
}

.ecsper-q-notice {
	margin-top: 16px;
	font-size: 14px;
	color: var(--ink2);
	background: var(--paper);
	border: 1px solid var(--lines);
	border-radius: 12px;
	padding: 12px 14px;
}

.ecsper-q-foot {
	margin-top: 16px;
	font-size: 13px;
	color: var(--ink3);
}

.ecsper-q-error {
	margin-top: 20px;
}

.ecsper-q-error p {
	font-size: 16px;
	color: var(--ink2);
	margin: 0 0 16px;
}

@media (max-width: 600px) {
	.ecsper-q-main {
		padding: 20px 16px 130px;
	}

	.ecsper-q-nav-in {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ecsper-q .ecsper-assess-card {
		padding: 28px 18px;
		border-radius: 16px;
	}

	.ecsper-q-tbl thead {
		display: none;
	}

	.ecsper-q-tbl,
	.ecsper-q-tbl tbody,
	.ecsper-q-tbl tr,
	.ecsper-q-tbl td {
		display: block;
		width: 100%;
	}

	.ecsper-q-tbl tr {
		border-bottom: 1px solid var(--lines);
		padding: 12px 14px;
	}

	.ecsper-q-tbl td {
		border: 0;
		padding: 3px 0;
	}

	.ecsper-q-tbl td:first-child {
		width: auto;
	}

	.ecsper-q-tbl td[data-l]::before {
		content: attr(data-l);
		display: block;
		font-size: 12px;
		font-weight: 600;
		color: var(--ink3);
		margin-top: 6px;
	}

	.ecsper-q-steps i {
		width: 12px;
	}

	.ecsper-q-btn {
		padding: 13px 18px;
	}

	.ecsper-q-status {
		font-size: 13px;
	}

	.ecsper-q-opt,
	.ecsper-q-chk,
	.ecsper-q-btn,
	.ecsper-q-sel select,
	.ecsper-q-txt,
	.ecsper-q .ecsper-assess-field input,
	.ecsper-q .ecsper-assess-field select {
		min-height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecsper-q-screen.is-on {
		animation: none;
	}

	.ecsper-q-prog b,
	.ecsper-q .ecsper-assess-ring-fill,
	.ecsper-q .ecsper-assess-bar-fill {
		transition: none;
	}
}
