html.quiz-open {
	overflow: hidden;
}

.quiz-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.quiz-overlay[hidden] {
	display: none !important;
}

.quiz-dialog {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow: auto;
	position: relative;
	padding: 28px 24px 24px;
	color: #1a1a1a;
}

.quiz-close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.quiz-title {
	font-size: 22px;
	margin: 0 0 8px;
}

.quiz-subtitle {
	margin: 0 0 16px;
	color: #555;
	font-size: 15px;
}

.quiz-progress-bar {
	height: 6px;
	background: #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
}

.quiz-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: #207ec4;
	transition: width 0.2s ease;
}

.quiz-progress-text {
	font-size: 13px;
	color: #666;
	margin: 8px 0 16px;
}

.quiz-question {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
}

.quiz-hint {
	font-size: 14px;
	color: #666;
	margin: -8px 0 12px;
}

.quiz-counter {
	font-size: 14px;
	color: #207ec4;
	margin-bottom: 12px;
}

.quiz-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.quiz-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.quiz-card:hover,
.quiz-card.is-selected {
	border-color: #207ec4;
	background: rgba(32, 126, 196, 0.06);
}

.quiz-card input {
	margin-top: 3px;
	flex-shrink: 0;
}

.quiz-textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font: inherit;
	resize: vertical;
}

.quiz-form-field {
	margin-bottom: 14px;
}

.quiz-form-field label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.quiz-form-field input[type="text"],
.quiz-form-field input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font: inherit;
}

.quiz-form-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 14px;
	margin-bottom: 10px;
}

.quiz-form-check input {
	margin-top: 3px;
}

.quiz-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.quiz-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

.quiz-btn {
	padding: 12px 20px;
	border-radius: 8px;
	border: none;
	font: inherit;
	cursor: pointer;
	background: #207ec4;
	color: #fff;
}

.quiz-btn-back {
	background: #eee;
	color: #333;
}

.quiz-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.quiz-success {
	text-align: center;
	padding: 24px 0;
}

.quiz-success p {
	font-size: 18px;
	margin-bottom: 16px;
}

@media (max-width: 767px) {
	.quiz-overlay {
		padding: 0;
		align-items: stretch;
	}

	.quiz-dialog {
		max-width: none;
		max-height: none;
		min-height: 100%;
		border-radius: 0;
	}
}
