.qc-quiz-app {
	max-width: 760px;
	margin: 20px auto;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1d2327;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ----- Start screen ----- */
.qc-start-screen {
	padding: 40px 24px;
	text-align: center;
}
.qc-start-screen h2 {
	margin-top: 0;
}

/* ----- Header / timer / progress ----- */
.qc-quiz-header {
	background: #2271b1;
	color: #fff;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.qc-quiz-title {
	font-weight: 600;
	font-size: 15px;
}
.qc-quiz-timer {
	font-variant-numeric: tabular-nums;
	background: rgba(255,255,255,0.15);
	padding: 4px 10px;
	border-radius: 4px;
}

.qc-quiz-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-top: 1px solid #dcdcde;
	background: #f6f7f7;
}
.qc-quiz-progress {
	font-size: 13px;
	color: #555;
}

/* ----- Body / question ----- */
.qc-quiz-body {
	padding: 20px 24px;
	min-height: 220px;
}
.qc-section-title {
	margin-top: 0;
	color: #2271b1;
}
.qc-section-instruction {
	color: #555;
}
.qc-mark-note {
	font-size: 12px;
	color: #2271b1;
	font-weight: 600;
}
.qc-question-number {
	font-weight: 600;
	margin-bottom: 4px;
}
.qc-question-text {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 15px;
}

.qc-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}
.qc-option {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 10px 14px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.qc-option:hover {
	border-color: #2271b1;
}
.qc-option.qc-correct {
	border-color: #1a7e28;
	background: #edfaef;
}
.qc-option.qc-incorrect {
	border-color: #b32d2e;
	background: #fbeaea;
}

.qc-explanation {
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.6;
}

/* ----- Fill in the blank ----- */
.qc-fillblank {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.qc-fillblank-input {
	flex: 1;
	min-width: 200px;
	padding: 9px 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 14px;
}
.qc-fillblank-input.qc-correct-input {
	border-color: #1a7e28;
	background: #edfaef;
}
.qc-fillblank-input.qc-incorrect-input {
	border-color: #b32d2e;
	background: #fbeaea;
}
.qc-fillblank-result {
	width: 100%;
	margin: 0;
	font-size: 13px;
}
.qc-fillblank-result.qc-correct-text {
	color: #1a7e28;
	font-weight: 600;
}
.qc-fillblank-result.qc-incorrect-text {
	color: #b32d2e;
	font-weight: 600;
}

/* ----- True / False ----- */
.qc-truefalse {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.qc-truefalse-btn {
	flex: 1 1 130px;
	min-height: 48px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.qc-truefalse-btn:hover {
	border-color: #2271b1;
}
.qc-truefalse-btn.qc-correct {
	border-color: #1a7e28;
	background: #edfaef;
}
.qc-truefalse-btn.qc-incorrect {
	border-color: #b32d2e;
	background: #fbeaea;
}

/* ----- Word order (tap để thêm/bỏ) ----- */
.qc-wordorder {
	margin-bottom: 12px;
}
.qc-wordorder-instruction {
	font-size: 12px;
	color: #555;
	margin-top: 0;
	margin-bottom: 10px;
}
.qc-wordorder-answer,
.qc-wordorder-bank {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 12px;
}
.qc-wordorder-answer {
	border: 1px dashed #b8bac0;
	background: #f9f9f9;
}
.qc-wordorder-answer.qc-correct-box {
	border: 1px solid #1a7e28;
	background: #edfaef;
}
.qc-wordorder-answer.qc-incorrect-box {
	border: 1px solid #b32d2e;
	background: #fbeaea;
}
.qc-wordorder-bank {
	border: 1px solid #dcdcde;
	background: #fff;
}
.qc-wordorder-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #2271b1;
	border-radius: 6px;
	background: #f0f6fc;
	color: #2271b1;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s;
}
.qc-wordorder-chip:hover {
	background: #dcecfa;
}
.qc-wordorder-chip-placed {
	background: #2271b1;
	color: #fff;
}
.qc-wordorder-chip-placed:hover {
	background: #1a5a8f;
}
.qc-wordorder-result {
	width: 100%;
	margin: 0;
	font-size: 13px;
}
.qc-wordorder-result.qc-correct-text {
	color: #1a7e28;
	font-weight: 600;
}
.qc-wordorder-result.qc-incorrect-text {
	color: #b32d2e;
	font-weight: 600;
}

/* ----- Buttons ----- */
.qc-btn {
	border: 1px solid #2271b1;
	background: #fff;
	color: #2271b1;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}
.qc-btn:hover {
	background: #f0f6fc;
}
.qc-btn-primary,
.qc-btn-submit {
	background: #2271b1;
	color: #fff;
}
.qc-btn-primary:hover,
.qc-btn-submit:hover {
	background: #1a5a8f;
}

/* ----- Result screen ----- */
.qc-result-screen {
	padding: 50px 24px;
	text-align: center;
}
.qc-result-score {
	font-size: 22px;
	font-weight: 700;
	color: #2271b1;
}

/* ----- Responsive: màn hình rất hẹp (điện thoại) ----- */
@media (max-width: 480px) {
	.qc-quiz-body {
		padding: 16px;
	}
	.qc-truefalse-btn {
		flex-basis: 100%;
		font-size: 13px;
	}
	.qc-wordorder-chip {
		padding: 7px 10px;
		font-size: 13px;
	}
}
