.wqb-quiz {
	--wqb-primary: #FB5FAB;
	--wqb-primary-dark: #E64491;
	--wqb-primary-light: #FAD8E9;
	--wqb-surface: #ffffff;
	--wqb-text: #33202B;
	--wqb-text-muted: #7A6470;
	--wqb-border: #F3D6E4;

	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
	color: var(--wqb-text);
	background: var(--wqb-surface);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 12px 40px rgba(251, 95, 171, 0.16), 0 2px 8px rgba(51, 32, 43, 0.06);
}

.wqb-quiz *,
.wqb-quiz *::before,
.wqb-quiz *::after {
	box-sizing: inherit;
}

@keyframes wqbFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wqb-fade-in {
	animation: wqbFadeIn 0.35s ease-out;
}

.wqb-quiz-title {
	margin-top: 0;
	font-size: 26px;
	font-weight: 700;
	color: var(--wqb-text);
}

.wqb-quiz-intro {
	text-align: center;
	padding: 12px 0 4px;
}

.wqb-intro-text {
	color: var(--wqb-text-muted);
	margin-bottom: 24px;
}

.wqb-btn {
	display: inline-block;
	border: none;
	border-radius: 999px;
	padding: 13px 28px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.2px;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s ease-out;
}

.wqb-btn-primary {
	background: linear-gradient(135deg, var(--wqb-primary), var(--wqb-primary-dark));
	color: #fff;
	box-shadow: 0 6px 18px rgba(251, 95, 171, 0.4);
}

.wqb-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(251, 95, 171, 0.48);
}

.wqb-btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(251, 95, 171, 0.4);
}

.wqb-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
}

.wqb-btn-secondary {
	background: var(--wqb-primary-light);
	color: var(--wqb-primary-dark);
}

.wqb-btn-secondary:hover {
	background: #f6c3de;
}

.wqb-progress-track {
	background: var(--wqb-primary-light);
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
	margin-bottom: 8px;
}

.wqb-progress-fill {
	background: linear-gradient(90deg, var(--wqb-primary), var(--wqb-primary-dark));
	height: 100%;
	width: 0;
	border-radius: 999px;
	transition: width 0.3s ease-in-out;
}

.wqb-progress-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wqb-text-muted);
	margin: 0 0 20px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.wqb-question-text {
	margin-top: 0;
	font-size: 20px;
	font-weight: 700;
}

.wqb-question-image {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
	margin-bottom: 18px;
	box-shadow: 0 6px 20px rgba(51, 32, 43, 0.12);
}

.wqb-answers {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.wqb-answer-option {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 2px solid var(--wqb-border);
	border-radius: 14px;
	padding: 14px 18px;
	cursor: pointer;
	background: var(--wqb-surface);
	transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wqb-answer-option:hover {
	border-color: var(--wqb-primary);
	background: #FFF6FB;
}

.wqb-answer-option:has(input:checked) {
	border-color: var(--wqb-primary);
	background: var(--wqb-primary-light);
	box-shadow: 0 0 0 4px rgba(251, 95, 171, 0.14);
}

.wqb-answer-option input[type="radio"] {
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 2px solid #E3B9CE;
	border-radius: 50%;
	position: relative;
	cursor: pointer;
	transition: border-color 0.15s ease-in-out;
}

.wqb-answer-option input[type="radio"]:checked {
	border-color: var(--wqb-primary);
}

.wqb-answer-option input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--wqb-primary);
}

.wqb-answer-letter {
	color: var(--wqb-primary-dark);
	margin-right: 4px;
}

.wqb-error-message,
.wqb-email-error {
	color: #C5286B;
	background: #FFF0F6;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	margin: 0 0 12px;
}

.wqb-quiz-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 24px;
}

.wqb-quiz-nav .wqb-prev-btn {
	margin-right: auto;
}

.wqb-quiz-results {
	text-align: center;
}

.wqb-loading {
	color: var(--wqb-text-muted);
	font-weight: 600;
	padding: 20px 0;
}

.wqb-result-badge {
	width: 68px;
	height: 68px;
	line-height: 68px;
	margin: 4px auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wqb-primary), var(--wqb-primary-dark));
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	box-shadow: 0 8px 22px rgba(251, 95, 171, 0.42);
}

.wqb-result-title {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 10px;
}

.wqb-result-description {
	color: var(--wqb-text-muted);
	margin-bottom: 14px;
}

.wqb-result-score {
	display: inline-block;
	font-weight: 700;
	color: var(--wqb-primary-dark);
	background: var(--wqb-primary-light);
	border-radius: 999px;
	padding: 6px 18px;
	margin-bottom: 20px;
}

.wqb-email-capture {
	border-top: 1px solid var(--wqb-border);
	margin-top: 24px;
	padding-top: 24px;
}

.wqb-email-prompt {
	font-weight: 700;
	margin-bottom: 14px;
}

.wqb-email-form {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.wqb-email-input {
	flex: 1 1 240px;
	max-width: 320px;
	padding: 12px 16px;
	border: 2px solid var(--wqb-border);
	border-radius: 999px;
	font-size: 15px;
	background: var(--wqb-surface);
	color: var(--wqb-text);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wqb-email-input:focus {
	outline: none;
	border-color: var(--wqb-primary);
	box-shadow: 0 0 0 4px rgba(251, 95, 171, 0.14);
}

.wqb-thank-you {
	font-weight: 700;
	color: #1B8A5A;
}

.wqb-privacy-text {
	color: var(--wqb-text-muted);
	font-size: 12px;
	margin: 10px 0 0;
}

@media (max-width: 480px) {
	.wqb-quiz {
		padding: 22px 18px;
		border-radius: 14px;
	}

	.wqb-email-form {
		flex-direction: column;
		align-items: stretch;
	}

	.wqb-email-input,
	.wqb-email-form .wqb-btn {
		max-width: none;
	}
}
