/* CBSE Mock Test — match site article / content typography */

/* Reset Bootstrap <code> wrapper if shortcode was pasted inside a code block */
code:has(.cbmt-app),
code:has(.cbmt-app) * {
	color: #2d2d2d !important;
	background-color: transparent !important;
	padding: 0;
	font-size: inherit;
	font-family: 'Roboto', sans-serif;
	border-radius: 0;
}

.cbmt-app {
	color: #2d2d2d;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	line-height: 1.6;
}

.cbmt-app h1,
.cbmt-app h2,
.cbmt-app h3,
.cbmt-app h4,
.cbmt-app h5,
.cbmt-app h6,
.cbmt-app .cbmt-page-heading,
.cbmt-app .cbmt-section-title {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 400;
	font-variant: unset;
	color: #2d2d2d;
}

.cbmt-app .cbmt-lead {
	font-size: 1rem;
	font-weight: 300;
}

.cbmt-app .cbmt-panel.content-wrap {
	margin-bottom: 1.5rem;
}

.cbmt-step {
	display: none;
}

.cbmt-step--active {
	display: block;
}

.cbmt-app label {
	font-weight: 400;
	color: #2d2d2d;
}

.cbmt-required {
	color: #767676;
}

.cbmt-app .form-control {
	border-radius: 0;
	font-weight: 300;
}

.cbmt-app .form-control:focus {
	border-color: #ccc;
	box-shadow: none;
}

.cbmt-app input[type="radio"],
.cbmt-app input[type="checkbox"] {
	accent-color: #2d2d2d;
}

/* Buttons — avoid theme red btn-primary */
.cbmt-app .cbmt-btn {
	border-radius: 0;
	border: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	padding: 14px 24px !important;
	line-height: 1.2;
}

.cbmt-app .cbmt-btn-action {
	background: #2d2d2d !important;
	color: #fff !important;
}

.cbmt-app .cbmt-btn-action:hover,
.cbmt-app .cbmt-btn-action:focus,
.cbmt-app .cbmt-btn-action:active {
	background: #1a1a1a !important;
	color: #fff !important;
	box-shadow: none !important;
}

.cbmt-app .cbmt-btn-secondary {
	background: #767676 !important;
	color: #fff !important;
}

.cbmt-app .cbmt-btn-secondary:hover,
.cbmt-app .cbmt-btn-secondary:focus {
	background: #5a5a5a !important;
	color: #fff !important;
	box-shadow: none !important;
}

.cbmt-app .cbmt-btn-outline {
	background: #fff !important;
	color: #2d2d2d !important;
	border: 1px solid #2d2d2d !important;
}

.cbmt-app .cbmt-btn-outline:hover,
.cbmt-app .cbmt-btn-outline:focus {
	background: #f6f6f6 !important;
	color: #2d2d2d !important;
	box-shadow: none !important;
}

.cbmt-app .cbmt-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Alerts — neutral, no Bootstrap danger pink */
.cbmt-app .cbmt-alert {
	border-radius: 0;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	font-weight: 300;
}

.cbmt-app .cbmt-alert-error {
	background: #f6f6f6;
	border: 1px solid #ccc;
	color: #2d2d2d;
}

.cbmt-app a,
.cbmt-app a:hover,
.cbmt-app a:focus,
.cbmt-app a:visited {
	color: #2d2d2d;
	text-decoration: underline;
}

.cbmt-test-preview {
	font-size: 0.95rem;
	font-weight: 300;
	color: #2d2d2d;
	background: #f6f6f6;
	border: 1px solid #ddd;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.cbmt-spinner {
	width: 3rem;
	height: 3rem;
	color: #2d2d2d;
}

/* Test header */
.cbmt-subject-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.cbmt-app .badge.cbmt-tag {
	font-family: 'Roboto', sans-serif;
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.35em 0.65em;
	border-radius: 0;
}

.cbmt-tag--chemistry { background: #f0f0f0; color: #2d2d2d; }
.cbmt-tag--biology   { background: #e8e8e8; color: #2d2d2d; }
.cbmt-tag--physics   { background: #f5f5f5; color: #2d2d2d; }
.cbmt-tag--math      { background: #ececec; color: #2d2d2d; }

/* Questions */
.cbmt-question-block {
	margin-bottom: 1.25rem;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 0 0 1px #ccc;
	border: 0;
}

.cbmt-question-block .card-body {
	padding: 1.25rem 1.5rem;
}

.cbmt-question-header {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.cbmt-question-number {
	flex-shrink: 0;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.35rem;
	background: #ee2d2d;
	color: #fff;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
}

.cbmt-question-text {
	font-weight: 300;
	flex: 1;
	padding-top: 0.2rem;
	color: #2d2d2d;
}

.cbmt-options {
	padding-left: 0;
}

.cbmt-option {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	margin-bottom: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 0;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	background: #fff;
	font-weight: 300;
}

.cbmt-option:hover {
	border-color: #ccc;
	background: #f6f6f6;
}

.cbmt-option input[type="radio"] {
	margin-top: 0.25rem;
	flex-shrink: 0;
}

.cbmt-option--selected {
	border-color: #2d2d2d;
	background: #f6f6f6;
}

.cbmt-student-name {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 700;
	color: #2d2d2d;
}

/* Results */
.cbmt-result-summary {
	padding: 1.5rem;
	background: #f6f6f6;
	border: 1px solid #e5e5e5;
}

.cbmt-score-circle {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: #2d2d2d;
	line-height: 1.2;
}

.cbmt-score-label {
	color: #767676;
	font-size: 0.95rem;
	font-weight: 300;
}

.cbmt-student-detail {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: #767676;
	font-weight: 300;
}

.cbmt-subject-card {
	padding: 1rem;
	border: 1px solid #ddd;
	background: #fff;
	text-align: center;
	margin-bottom: 1rem;
	height: calc(100% - 1rem);
	box-shadow: 0 0 0 1px #eee;
}

.cbmt-subject-card h4 {
	margin: 0 0 0.5rem;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	font-variant: unset;
	text-transform: none;
	letter-spacing: normal;
	color: #2d2d2d;
}

.cbmt-subject-score {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #2d2d2d;
}

.cbmt-section-title {
	font-size: 1.35rem;
	font-weight: 400;
	margin-bottom: 0.75rem;
}

.cbmt-review-item {
	border: 1px solid #ddd;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	background: #fff;
}

.cbmt-review-item--correct {
	border-left: 4px solid #1d894d;
}

.cbmt-review-item--incorrect {
	border-left: 4px solid #888;
}

.cbmt-review-question {
	font-weight: 300;
	margin-bottom: 0.75rem;
}

.cbmt-review-options {
	list-style: none;
	padding: 0;
	margin: 0 0 0.5rem;
}

.cbmt-review-options li {
	padding: 0.3rem 0;
	font-size: 0.9rem;
	font-weight: 300;
}

.cbmt-review-options .cbmt-opt-correct {
	color: #1d894d;
	font-weight: 500;
}

.cbmt-review-options .cbmt-opt-wrong {
	color: #7A0000;
	text-decoration: line-through;
}

.cbmt-review-options .cbmt-opt-chosen::before {
	content: "→ ";
}

.cbmt-review-answer {
	font-size: 0.85rem;
	color: #767676;
	font-weight: 300;
}

/* Print */
@media print {
	body * {
		visibility: hidden;
	}

	.cbmt-print-area,
	.cbmt-print-area * {
		visibility: visible;
	}

	.cbmt-print-area {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}

	.cbmt-no-print {
		display: none !important;
	}

	.cbmt-question-block,
	.cbmt-panel {
		box-shadow: none !important;
	}

	.cbmt-review-item,
	.cbmt-question-block {
		page-break-inside: avoid;
	}
}

/* Block theme / panel-layout red leaks */
.panel-layout .cbmt-app,
.panel-layout .cbmt-app h1,
.panel-layout .cbmt-app h2,
.panel-layout .cbmt-app h3,
.panel-layout .cbmt-app h4,
.panel-layout .cbmt-app h5,
.panel-layout .cbmt-app h6,
.panel-layout .cbmt-app label,
.panel-layout .cbmt-app p,
.panel-layout .cbmt-app strong,
.panel-layout .cbmt-app .widget-title {
	color: #2d2d2d !important;
	font-variant: unset !important;
}

.cbmt-app .btn-primary,
.cbmt-app .btn-danger,
.cbmt-app .text-danger,
.cbmt-app .alert-danger {
	background: #f6f6f6 !important;
	border-color: #ccc !important;
	color: #2d2d2d !important;
}

.cbmt-app .btn-primary:hover,
.cbmt-app .btn-danger:hover {
	background: #ececec !important;
	color: #2d2d2d !important;
}

@media (max-width: 767.98px) {
	.cbmt-app .cbmt-page-heading {
		font-size: 1.45rem;
	}
}

.cbmt-timer {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 5.5rem;
	padding: 0.35rem 0.75rem;
	background: #f6f6f6;
	border: 1px solid #ccc;
	text-align: center;
}

.cbmt-timer-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #767676;
	line-height: 1.2;
}

.cbmt-timer-value {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #2d2d2d;
	line-height: 1.2;
}

.cbmt-timer--warning .cbmt-timer-value {
	color: #c47a00;
}

.cbmt-timer--critical .cbmt-timer-value {
	color: #b3261e;
}
