.ddq-quiz {
	max-width: 700px;
	margin: 0 auto 2em;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	font-family: inherit;
	box-sizing: border-box;
}

.ddq-quiz * {
	box-sizing: border-box;
}

.ddq-quiz-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 1em;
}

.ddq-quiz-title {
	margin: 0;
	font-size: 1.4em;
}

.ddq-share {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.ddq-share-label {
	font-size: 0.8em;
	color: #777;
	margin-right: 2px;
}

.ddq-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 0.75em;
	font-weight: 700;
	text-decoration: none;
	color: #fff !important;
	border: none;
	cursor: pointer;
	line-height: 1;
}

.ddq-share-fb { background: #1877f2; }
.ddq-share-tw { background: #000000; }
.ddq-share-wa { background: #25d366; }
.ddq-share-copy { background: #888; font-size: 0.9em; }

.ddq-lang-switch {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85em;
}

.ddq-lang-current {
	color: #777;
	font-style: italic;
}

.ddq-lang-switch-btn {
	background: #fff;
	border: 1px solid #2271b1;
	color: #2271b1;
	border-radius: 16px;
	padding: 5px 12px;
	font-size: 0.9em;
	cursor: pointer;
}

.ddq-lang-switch-btn:hover {
	background: #eef6fc;
}

.ddq-share-bottom {
	margin-top: 1.6em;
	padding-top: 1.2em;
	border-top: 1px solid #e2e2e2;
	justify-content: center;
}


.ddq-unanswered-reminder {
	margin-top: 1em;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fff8e5;
	border: 1px solid #f0c674;
	color: #6b5200;
	font-size: 0.92em;
}

.ddq-unanswered-reminder strong {
	display: block;
	margin-bottom: 6px;
}

.ddq-unanswered-reminder .ddq-jump-link {
	color: #2271b1;
	text-decoration: underline;
	cursor: pointer;
}

.ddq-unanswered-reminder .ddq-finish-anyway {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 14px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9em;
}


.ddq-progress {
	height: 8px;
	background: #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 6px;
}

.ddq-progress-bar {
	height: 100%;
	width: 0%;
	background: #2271b1;
	transition: width 0.25s ease;
}

.ddq-page-indicator {
	font-size: 0.85em;
	color: #666;
	margin-bottom: 1em;
}

.ddq-page {
	display: none;
}

.ddq-page.ddq-active,
.ddq-quiz[data-mode="single"] .ddq-page {
	display: block;
}

.ddq-q {
	margin-bottom: 1.4em;
	padding-bottom: 1.2em;
	border-bottom: 1px solid #e6e6e6;
}

.ddq-quiz[data-mode="multipage"] .ddq-q {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.ddq-q-text {
	font-size: 1.05em;
	margin-bottom: 0.6em;
}

.ddq-media {
	margin-bottom: 1em;
}

.ddq-media img {
	max-width: 100%;
	border-radius: 8px;
	display: block;
}

.ddq-media audio {
	width: 100%;
}

.ddq-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ddq-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.ddq-option:hover {
	border-color: #888;
}

.ddq-option input[type="radio"] {
	margin: 3px 0 0;
	flex-shrink: 0;
}

.ddq-option.ddq-selected {
	border-color: #2271b1;
	background: #eef6fc;
}

.ddq-option.ddq-correct-answer {
	border-color: #1a7e34;
	background: #eaf7ee;
}

.ddq-option.ddq-wrong-answer {
	border-color: #c0392b;
	background: #fdecea;
}

.ddq-letter {
	font-weight: 700;
	flex-shrink: 0;
}

.ddq-option-text {
	word-break: break-word;
}

.ddq-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 1em;
}

.ddq-nav button {
	padding: 10px 22px;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	cursor: pointer;
}

.ddq-prev-btn {
	background: #e2e2e2;
	color: #333;
}

.ddq-prev-btn:hover {
	background: #d4d4d4;
}

.ddq-next-btn,
.ddq-submit-btn {
	background: #2271b1;
	color: #fff;
	margin-left: auto;
}

.ddq-next-btn:hover,
.ddq-submit-btn:hover {
	background: #195a8d;
}

.ddq-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ddq-result {
	margin-top: 1.2em;
	padding: 18px;
	border-radius: 8px;
	background: #eef6fc;
	border: 1px solid #2271b1;
}

.ddq-result h4 {
	margin: 0 0 8px;
}

.ddq-score-big {
	font-size: 1.6em;
	font-weight: 700;
	margin-bottom: 12px;
}

.ddq-result button {
	padding: 9px 18px;
	border: none;
	border-radius: 6px;
	font-size: 0.95em;
	cursor: pointer;
	margin-right: 10px;
	margin-top: 6px;
}

.ddq-review-btn {
	background: #2271b1;
	color: #fff;
}

.ddq-review-btn:hover {
	background: #195a8d;
}

.ddq-retake-btn {
	background: #fff;
	color: #2271b1;
	border: 1px solid #2271b1 !important;
}

.ddq-retake-btn:hover {
	background: #eef6fc;
}

.ddq-review-note {
	margin-top: 10px;
	padding: 10px 14px;
	background: #fdecea;
	border: 1px solid #f1b3ac;
	border-radius: 8px;
}

.ddq-review-text {
	margin: 0 0 8px;
	color: #842c20;
	font-size: 0.92em;
}

.ddq-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #25d366;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.85em;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 20px;
}

.ddq-whatsapp-btn:hover {
	background: #1ebe5b;
}

.ddq-quiz.ddq-review-mode .ddq-page {
	display: block !important;
}

.ddq-quiz.ddq-review-mode .ddq-nav,
.ddq-quiz.ddq-review-mode .ddq-progress,
.ddq-quiz.ddq-review-mode .ddq-page-indicator {
	display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.ddq-quiz {
		padding: 16px;
		border-radius: 0;
		margin-left: -4px;
		margin-right: -4px;
	}

	.ddq-quiz-title {
		font-size: 1.2em;
	}

	.ddq-option {
		padding: 10px;
		font-size: 0.95em;
	}

	.ddq-nav {
		flex-direction: column-reverse;
	}

	.ddq-nav button {
		width: 100%;
		margin-left: 0 !important;
	}

	.ddq-result button {
		width: 100%;
		margin-right: 0;
	}

	.ddq-whatsapp-btn {
		width: 100%;
		justify-content: center;
	}

	.ddq-quiz-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	.ddq-quiz {
		max-width: 90%;
	}
}
