/* PS Quiz split: left objects + right quiz */

/* Parent Spectra row: title | quiz | button → only quiz full width */
body.home .wp-block-spectra-container[data-spectra-id="spectra-mg0bwun5-dbgzu9"],
body.home .wp-block-spectra-container:where([data-spectra-id="spectra-mg0bwun5-dbgzu9"]) {
	display: block !important;
	width: 100% !important;
	grid-template-columns: none !important;
}

body.home [data-spectra-id="spectra-d5ab0bae-root"],
body.home [data-spectra-id="spectra-d5ab0bae-title"],
body.home [data-spectra-id="spectra-0ea0420f"],
body.home .wp-block-spectra-buttons[data-spectra-id="spectra-0ea0420f"],
body.home [data-spectra-id="spectra-9d438389-6c69-4808-b880-3bceaa9f5fef"] {
	display: none !important;
}

body.home [data-spectra-id="spectra-mg0bwun5-dbgzu9"] > .ps-quiz-split {
	width: 100%;
	max-width: 1200px;
}

.ps-quiz-split {
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
	gap: 28px 40px;
	align-items: start;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 0 10px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.ps-quiz-split {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 8px 16px 16px;
		max-width: 100%;
		box-sizing: border-box;
	}

	.ps-objects-aside__title {
		font-size: clamp(24px, 6.5vw, 30px);
	}

	.ps-objects-aside__lead {
		font-size: 15px;
		max-width: none;
	}

	.ps-objects-aside__list {
		max-width: none;
	}

	.ps-quiz-split .ps-quiz {
		padding: 22px 18px;
		border-radius: 14px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.ps-quiz__title {
		font-size: clamp(20px, 5.5vw, 26px);
	}

	.ps-quiz__q {
		font-size: 17px;
	}
}

.ps-objects-aside {
	font-family: "Open Sans", sans-serif;
	color: #212d45;
	padding-top: 8px;
}

.ps-objects-aside__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.25;
	font-weight: 700;
	color: #212d45;
}

.ps-objects-aside__lead {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.55;
	color: #4b4f58;
	max-width: 420px;
}

.ps-objects-aside__list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 8px;
	max-width: 420px;
}

.ps-objects-aside__list li {
	position: relative;
	padding: 12px 14px 12px 38px;
	background: #f2f5f7;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #212d45;
}

.ps-objects-aside__list li::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #44c25d;
	transform: translateY(-50%);
}

.ps-objects-aside__note {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #44c25d;
}

/* Quiz card on the right */
.ps-quiz-split .ps-quiz {
	--ps-green: #44c25d;
	--ps-green-2: #9de377;
	--ps-navy: #212d45;
	--ps-muted: #4b4f58;
	--ps-line: #e6ebf0;
	background: #f2f5f7;
	border-radius: 16px;
	padding: 28px 24px;
	font-family: "Open Sans", sans-serif;
	color: var(--ps-navy);
	box-shadow: 0 10px 28px rgba(33, 45, 69, 0.06);
}

.ps-quiz-split .ps-quiz__inner {
	max-width: none;
	margin: 0;
}

.ps-quiz__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ps-green, #44c25d);
}

.ps-quiz__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.25;
	font-weight: 700;
}

.ps-quiz__desc {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ps-muted, #4b4f58);
}

.ps-quiz__progress {
	height: 6px;
	background: #e6ebf0;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.ps-quiz__progress-bar {
	height: 100%;
	width: 20%;
	background: linear-gradient(90deg, #44c25d, #9de377);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.ps-quiz__step-label {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	color: #4b4f58;
}

.ps-quiz__panel[hidden] {
	display: none !important;
}

.ps-quiz__q {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

.ps-quiz__hint {
	margin: -4px 0 14px;
	color: #4b4f58;
	font-size: 13px;
}

.ps-quiz__options {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
	.ps-quiz-split {
		padding: 6px 14px 14px;
		gap: 18px;
	}

	.ps-objects-aside {
		padding-top: 0;
	}

	.ps-objects-aside__list li {
		padding: 12px 12px 12px 34px;
		font-size: 14px;
	}

	.ps-quiz-split .ps-quiz {
		padding: 18px 14px;
		border-radius: 12px;
		box-shadow: 0 8px 20px rgba(33, 45, 69, 0.06);
	}

	.ps-quiz__desc {
		font-size: 13px;
		margin-bottom: 16px;
	}

	.ps-quiz__options {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ps-quiz__opt {
		min-height: 48px;
		padding: 13px 14px;
		font-size: 14px;
		/* better tap targets; avoid sticky hover lift on touch */
		transform: none;
	}

	.ps-quiz__opt:hover {
		transform: none;
		box-shadow: none;
	}

	.ps-quiz__opt:active,
	.ps-quiz__opt.is-selected {
		transform: none;
	}

	.ps-quiz__submit,
	.ps-quiz__back {
		min-height: 48px;
		width: 100%;
		box-sizing: border-box;
	}

	.ps-quiz__nav {
		margin-top: 14px;
	}

	.ps-quiz__field input,
	.ps-quiz__field textarea {
		min-height: 48px;
		font-size: 16px; /* prevent iOS zoom */
	}

	.ps-quiz__field textarea {
		min-height: 96px;
	}
}

@media (max-width: 380px) {
	.ps-quiz-split {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ps-quiz-split .ps-quiz {
		padding: 16px 12px;
	}

	.ps-quiz__q {
		font-size: 16px;
	}
}

/* Anchor under sticky header */
#ps-quiz {
	scroll-margin-top: 90px;
}

body.home .wp-block-spectra-container[data-spectra-id="spectra-mg0bwun5-dbgzu9"] {
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

.ps-quiz__opt {
	appearance: none;
	border: 1px solid #e6ebf0;
	background: #fff;
	color: #212d45;
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ps-quiz__opt:hover {
	border-color: #44c25d;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(33, 45, 69, 0.08);
}

.ps-quiz__opt.is-selected {
	border-color: #44c25d;
	background: rgba(68, 194, 93, 0.1);
	box-shadow: inset 0 0 0 1px #44c25d;
}

.ps-quiz__form {
	display: grid;
	gap: 12px;
}

.ps-quiz__field {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #4b4f58;
}

.ps-quiz__field em {
	font-style: normal;
	font-weight: 400;
	opacity: 0.8;
}

.ps-quiz__field input,
.ps-quiz__field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e6ebf0;
	border-radius: 10px;
	padding: 11px 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #212d45;
	background: #fff;
}

.ps-quiz__field input:focus,
.ps-quiz__field textarea:focus {
	outline: none;
	border-color: #44c25d;
	box-shadow: 0 0 0 3px rgba(68, 194, 93, 0.18);
}

.ps-quiz__summary {
	background: #fff;
	border: 1px solid #e6ebf0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.5;
	color: #4b4f58;
}

.ps-quiz__summary strong {
	color: #212d45;
}

.ps-quiz__submit {
	appearance: none;
	border: 0;
	border-radius: 10px;
	background: #44c25d;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 13px 16px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(68, 194, 93, 0.28);
}

.ps-quiz__submit:hover {
	background: #38b150;
}

.ps-quiz__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ps-quiz__note {
	margin: 0;
	font-size: 11px;
	color: #4b4f58;
}

.ps-quiz__msg {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
}

.ps-quiz__msg.is-ok {
	background: rgba(68, 194, 93, 0.12);
	color: #1f7a35;
}

.ps-quiz__msg.is-err {
	background: rgba(200, 40, 40, 0.1);
	color: #a11f1f;
}

.ps-quiz__nav {
	margin-top: 16px;
	min-height: 44px;
}

.ps-quiz__back {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d5dde5;
	background: #fff;
	color: #212d45;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 11px 18px;
	border-radius: 10px;
	min-width: 110px;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ps-quiz__back:hover {
	border-color: #44c25d;
	color: #212d45;
	background: #fff;
	box-shadow: 0 6px 14px rgba(33, 45, 69, 0.08);
}

.ps-quiz__back:focus-visible {
	outline: none;
	border-color: #44c25d;
	box-shadow: 0 0 0 3px rgba(68, 194, 93, 0.18);
}
