.egq-quiz {
	--egq-ink: #1a1a1a;
	--egq-muted: #6b6b6b;
	--egq-border: #e7e1d8;
	--egq-surface: #ffffff;
	--egq-pill-bg: #efe9e0;
	--egq-icon-bg: #efece6;
	--egq-radius-lg: 24px;
	--egq-radius-md: 14px;
	--egq-radius-sm: 8px;

	max-width: 685px;
	margin: 0 auto;
	box-sizing: border-box;
	transition: max-width 0.2s ease;
}

.egq-quiz *,
.egq-quiz *::before,
.egq-quiz *::after {
	box-sizing: border-box;
}

.egq-quiz.egq-results-active {
	max-width: 960px;
}

.egq-card {
	background: var( --egq-surface );
	border-radius: var( --egq-radius-lg );
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.06 );
	padding: 48px;
}

@media ( max-width: 600px ) {
	.egq-card {
		padding: 28px 20px;
	}
}

.egq-results-active .egq-card {
	background: transparent;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
}

.egq-question-title {
	margin: 0 0 12px;
	text-align: center;
	font-size: 26px;
	line-height: 1.25;
	color: var( --egq-ink );
}

.egq-question-subtitle {
	margin: 0 auto 28px;
	max-width: 460px;
	text-align: center;
	color: var( --egq-muted );
	font-size: 15px;
	line-height: 1.5;
}

.egq-answers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.egq-answer {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	background: var( --egq-surface );
	border: 1px solid var( --egq-border );
	border-radius: var( --egq-radius-md );
	padding: 14px 20px;
	cursor: pointer;
	font: inherit;
	color: var( --egq-ink );
	transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.egq-answer:hover {
	background: #fafaf8;
}

.egq-answer.is-selected {
	box-shadow: 0 0 0 1px var( --egq-ink );
	background: #fafaf8;
}

.egq-answer-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var( --egq-icon-bg );
	color: var( --egq-ink );
}

.egq-answer-icon svg {
	width: 18px;
	height: 18px;
}

.egq-answer-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
}

.egq-answer-check {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	border: 1.5px solid var( --egq-border );
	color: transparent;
	background: transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.egq-answer-check svg {
	width: 15px;
	height: 15px;
}

.egq-answer.is-selected .egq-answer-check {
	background: var( --egq-ink );
	border-color: var( --egq-ink );
	color: #fff;
}

.egq-answer-text strong {
	font-size: 15px;
}

.egq-answer-desc {
	color: var( --egq-muted );
	font-size: 13px;
	line-height: 1.4;
}

.egq-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
}

.egq-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 9999px;
	padding: 12px 32px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	background: var( --egq-pill-bg );
	color: var( --egq-ink );
	text-decoration: none;
}

.egq-btn svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.egq-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.egq-btn-prev {
	background: transparent;
	padding: 12px 8px;
	text-decoration: underline;
}

.egq-progress {
	margin-top: 24px;
}

.egq-progress-label {
	font-size: 13px;
	color: var( --egq-muted );
	margin-bottom: 8px;
}

.egq-progress-bar {
	height: 4px;
	border-radius: 9999px;
	background: var( --egq-border );
	overflow: hidden;
}

.egq-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: var( --egq-ink );
	border-radius: 9999px;
	transition: width 0.25s ease;
}

.egq-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.egq-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --egq-border );
}

.egq-dot.is-active {
	background: var( --egq-ink );
}

.egq-loading,
.egq-error,
.egq-no-match {
	text-align: center;
	color: var( --egq-muted );
	padding: 24px 0;
}

.egq-results-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 260px ) );
	justify-content: center;
	gap: 24px;
}

@media ( max-width: 600px ) {
	.egq-results-grid {
		grid-template-columns: minmax( 0, 1fr );
	}
}

.egq-result-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e0dad2;
	border-radius: var( --egq-radius-md );
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.04 );
	background: var( --egq-surface );
}

.egq-result-body {
	padding: 12px;
}

.egq-result-image {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var( --egq-icon-bg );
}

.egq-result-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.egq-result-subtitle {
	margin-top: 12px;
	color: var( --egq-muted );
	font-size: 13px;
}

.egq-result-title {
	margin-top: 4px;
	font-weight: 600;
	color: var( --egq-ink );
	text-decoration: none;
}

.egq-result-rating {
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.egq-rating-count {
	color: var( --egq-muted );
	font-size: 13px;
}

.egq-result-price {
	margin-top: 6px;
	color: var( --egq-muted );
	font-size: 14px;
}

a.egq-result-btn.button {
	margin-top: 12px;
	display: block;
	width: 100%;
	text-align: center;
	background: var( --egq-pill-bg );
	color: var( --egq-ink );
	border: none;
	border-radius: var( --egq-radius-sm );
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
}

.egq-advice-box {
	margin-top: 28px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #f7ead2;
	border-radius: var( --egq-radius-md );
	padding: 20px 24px;
}

.egq-advice-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f0dcb3;
	color: #a86a00;
}

.egq-advice-icon svg {
	width: 17px;
	height: 17px;
}

.egq-advice-text strong {
	display: block;
	color: #a86a00;
	font-size: 14px;
	margin-bottom: 4px;
}

.egq-advice-text p {
	margin: 0;
	color: var( --egq-ink );
	font-size: 14px;
	line-height: 1.5;
}

.egq-result-actions {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.egq-btn-restart {
	background: var( --egq-pill-bg );
	color: var( --egq-ink );
}

.egq-btn-viewall {
	background: var( --egq-ink );
	color: #fff;
}
