/* Lively Quiz. Everything is scoped under .lq so it cannot leak into the theme. */
.lq {
	--lq-teal: #178aad;
	--lq-teal-dark: #116c88;
	--lq-teal-soft: #eaf5f9;
	--lq-ink: #2b3a42;
	--lq-muted: #5f6f78;
	--lq-line: #d9e3e8;
	--lq-pink: #e9a3b3;
	--lq-error: #b3261e;
	box-sizing: border-box;
	max-width: 680px;
	margin: 32px auto 40px;
	padding: 36px 40px 40px;
	background: #fff;
	border: 1px solid var(--lq-line);
	border-top: 4px solid var(--lq-teal);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(23, 60, 77, 0.08);
	color: var(--lq-ink);
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
}
.lq *,
.lq *::before,
.lq *::after { box-sizing: border-box; }

.lq [hidden] { display: none !important; }

.lq p { margin: 0 0 14px; color: var(--lq-ink); font-size: 17px; line-height: 1.6; }

/* Progress */
.lq .lq-progress { margin-bottom: 26px; }
.lq .lq-progress-row { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 8px; }
.lq .lq-progress-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lq-muted); }
.lq .lq-bar { height: 6px; background: var(--lq-teal-soft); border-radius: 99px; overflow: hidden; }
.lq .lq-bar-fill { height: 100%; width: 0; background: var(--lq-teal); border-radius: 99px; transition: width 0.35s ease; }

.lq button.lq-back,
.lq button.lq-restart {
	appearance: none;
	background: none;
	border: 0;
	padding: 4px 0;
	margin: 0;
	color: var(--lq-teal);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
}
.lq button.lq-back:hover,
.lq button.lq-restart:hover { color: var(--lq-teal-dark); text-decoration: underline; background: none; }

/* Steps */
.lq .lq-form { margin: 0; padding: 0; }
.lq .lq-step.is-active { animation: lq-in 0.3s ease both; }
@keyframes lq-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.lq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lq .lq-q,
.lq legend.lq-q {
	display: block;
	width: 100%;
	float: none;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	color: var(--lq-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-transform: none;
	outline: none;
}

/* Intro */
.lq .lq-lead { font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.45; margin-bottom: 16px; }
.lq .lq-meta { margin: 14px 0 0; font-size: 14px; color: var(--lq-muted); }
.lq .lq-intro .lq-btn { margin-top: 10px; }

/* Answers */
.lq .lq-options { display: grid; gap: 12px; }
.lq label.lq-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 16px 18px;
	background: #fff;
	border: 1.5px solid var(--lq-line);
	border-radius: 10px;
	color: var(--lq-ink);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.lq label.lq-option:hover { border-color: var(--lq-teal); background: var(--lq-teal-soft); }
.lq label.lq-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.lq .lq-dot {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border: 2px solid #a9bcc5;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lq label.lq-option.is-selected { border-color: var(--lq-teal); background: var(--lq-teal-soft); box-shadow: 0 0 0 1px var(--lq-teal); }
.lq label.lq-option.is-selected .lq-dot { border-color: var(--lq-teal); box-shadow: inset 0 0 0 5px var(--lq-teal); }
.lq label.lq-option:focus-within { outline: 3px solid rgba(23, 138, 173, 0.35); outline-offset: 2px; }

/* Buttons */
.lq .lq-btn,
.lq a.lq-btn,
.lq button.lq-btn {
	display: inline-block;
	appearance: none;
	margin: 0;
	padding: 16px 30px;
	background: var(--lq-teal);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease, transform 0.1s ease;
}
.lq .lq-btn:hover,
.lq a.lq-btn:hover,
.lq button.lq-btn:hover { background: var(--lq-teal-dark); color: #fff; }
.lq .lq-btn:active { transform: translateY(1px); }
.lq .lq-btn:focus-visible,
.lq button.lq-back:focus-visible,
.lq button.lq-restart:focus-visible { outline: 3px solid rgba(23, 138, 173, 0.45); outline-offset: 3px; }
.lq .lq-btn[disabled] { opacity: 0.6; cursor: default; }

/* Details */
.lq .lq-field { margin-bottom: 18px; }
.lq .lq-field label { display: block; margin: 0 0 6px; color: var(--lq-ink); font-size: 16px; font-weight: 600; }
.lq .lq-field input[type="text"],
.lq .lq-field input[type="email"] {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid var(--lq-line);
	border-radius: 8px;
	color: var(--lq-ink);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.3;
	box-shadow: none;
}
.lq .lq-field input:focus { border-color: var(--lq-teal); outline: 3px solid rgba(23, 138, 173, 0.25); outline-offset: 0; }
.lq .lq-field input.is-invalid { border-color: var(--lq-error); }
.lq .lq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lq .lq-error { margin: 0 0 14px; color: var(--lq-error); font-size: 15px; font-weight: 600; }
.lq .lq-submit { width: 100%; }
.lq .lq-consent { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--lq-muted); }

/* Results */
.lq .lq-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lq-muted); outline: none; }
.lq .lq-score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 22px; }
.lq .lq-score-num { font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: 1; color: var(--lq-teal); }
.lq .lq-score-label { font-size: 18px; font-weight: 600; color: var(--lq-muted); }
.lq .lq-tier { margin: 0 0 28px; padding: 22px 24px; background: var(--lq-teal-soft); border-left: 4px solid var(--lq-teal); border-radius: 0 10px 10px 0; }
.lq .lq-tier-title,
.lq .lq-next-title {
	margin: 0 0 10px;
	padding: 0;
	color: var(--lq-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}
.lq .lq-tier-text { margin: 0; }
.lq .lq-next { padding-top: 26px; border-top: 1px solid var(--lq-line); }
.lq .lq-cta-image { display: block; margin: 18px 0; }
.lq .lq-cta-image img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 10px; }
.lq a.lq-btn.lq-cta { display: block; width: 100%; margin: 6px 0 24px; }
.lq .lq-ps { margin: 0; color: var(--lq-muted); font-size: 16px; }
.lq .lq-ps strong { color: var(--lq-ink); }
.lq button.lq-restart { display: block; margin: 22px auto 0; }
.lq .lq-noscript { margin: 0 0 16px; font-weight: 600; }

@media (max-width: 600px) {
	.lq { margin: 20px 0 28px; padding: 24px 18px 26px; border-radius: 12px; font-size: 16px; }
	.lq p { font-size: 16px; }
	.lq .lq-q,
	.lq legend.lq-q { font-size: 22px; margin-bottom: 18px; }
	.lq .lq-lead { font-size: 19px; }
	.lq label.lq-option { padding: 15px 14px; font-size: 16px; }
	.lq .lq-intro .lq-btn { width: 100%; }
	.lq .lq-score-num { font-size: 54px; }
	.lq .lq-tier { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.lq .lq-step.is-active { animation: none; }
	.lq .lq-bar-fill,
	.lq label.lq-option,
	.lq .lq-btn { transition: none; }
}
