/**
 * DamageRoute Quizzes - Shared Styles
 * Version: 1.0.0
 */

/* Quiz Container */
.dr-quiz-container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quiz Title */
.dr-quiz-title {
	font-size: 1.8rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 1.5rem;
	text-align: center;
}

/* Quiz Intro */
.dr-quiz-intro {
	background: #f9f9f9;
	padding: 1.5rem;
	border-left: 4px solid #0073aa;
	margin-bottom: 2rem;
	border-radius: 4px;
	line-height: 1.6;
}

.dr-quiz-intro p {
	margin-bottom: 0.75rem;
}

.dr-quiz-intro p:last-child {
	margin-bottom: 0;
}

/* CTA Box */
.dr-quiz-cta-box {
	background: #e7f5ff;
	padding: 1.5rem;
	border-left: 4px solid #0056b3;
	margin-bottom: 2rem;
	border-radius: 4px;
}

.dr-quiz-cta-box h3 {
	color: #0056b3;
	margin-top: 0;
	margin-bottom: 0.75rem;
	font-size: 1.3rem;
}

.dr-quiz-cta-box p {
	margin-bottom: 0;
	line-height: 1.6;
}

/* Question Container */
.dr-quiz-question {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f9f9f9;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
}

.dr-quiz-question h3 {
	font-size: 1.2rem;
	color: #333;
	margin-top: 0;
	margin-bottom: 1rem;
}

/* Answer Options */
.dr-quiz-options {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dr-quiz-options li {
	margin-bottom: 0.75rem;
}

.dr-quiz-options label {
	display: flex;
	align-items: flex-start;
	padding: 0.75rem;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1.5;
}

.dr-quiz-options label:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.dr-quiz-options input[type="radio"],
.dr-quiz-options input[type="checkbox"] {
	margin-right: 0.75rem;
	margin-top: 0.25rem;
	flex-shrink: 0;
}

/* Submit Button */
.dr-quiz-submit {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: #0073aa;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-top: 1rem;
}

.dr-quiz-submit:hover {
	background: #005a87;
}

.dr-quiz-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Results Container */
.dr-quiz-results {
	padding: 2rem;
	background: #f0f8ff;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
	margin-top: 2rem;
}

.dr-quiz-results h3 {
	color: #0073aa;
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.dr-quiz-results h4 {
	color: #333;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

/* Result Box */
.dr-result-box {
	background: #f0f8ff;
	padding: 1.5rem;
	border-left: 4px solid #28a745;
	margin-bottom: 1.5rem;
	border-radius: 4px;
}

.dr-result-box h4 {
	color: #28a745;
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.dr-result-box p {
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

.dr-result-box a {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #0073aa;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	margin-top: 0.5rem;
	transition: background 0.3s ease;
}

.dr-result-box a:hover {
	background: #005a87;
	color: #ffffff;
}

/* Disclaimer Box */
.dr-quiz-disclaimer {
	background: #fff3cd;
	padding: 1.5rem;
	border-left: 4px solid #ffc107;
	margin: 2rem 0;
	border-radius: 4px;
}

.dr-quiz-disclaimer h4 {
	color: #856404;
	margin-top: 0;
	margin-bottom: 1rem;
}

.dr-quiz-disclaimer p {
	color: #856404;
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

.dr-quiz-disclaimer p:last-child {
	margin-bottom: 0;
}

/* Score Display */
.dr-quiz-score {
	font-size: 2rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 1rem;
}

.dr-quiz-feedback {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.6;
}

/* Correct/Incorrect Indicators */
.dr-quiz-correct {
	color: #28a745;
	font-weight: bold;
}

.dr-quiz-incorrect {
	color: #dc3545;
	font-weight: bold;
}

/* Progress Bar */
.dr-quiz-progress {
	width: 100%;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 2rem;
	overflow: hidden;
}

.dr-quiz-progress-bar {
	height: 100%;
	background: #0073aa;
	transition: width 0.3s ease;
}

/* Reset Button */
.dr-quiz-reset {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background: #6c757d;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-top: 1rem;
}

.dr-quiz-reset:hover {
	background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
	.dr-quiz-container {
		padding: 1rem;
		margin: 1rem;
	}

	.dr-quiz-title {
		font-size: 1.4rem;
	}

	.dr-quiz-question h3 {
		font-size: 1rem;
	}

	.dr-quiz-submit,
	.dr-quiz-reset {
		width: 100%;
		margin: 0.5rem 0;
	}

	.dr-quiz-intro,
	.dr-quiz-cta-box,
	.dr-result-box,
	.dr-quiz-disclaimer {
		padding: 1rem;
	}
}
