/**
 * MedexPrep Free Quiz — standalone quiz page styles.
 * Minimal, mobile-first, self-contained. Uses Brand colors from the main app.
 */

/* ─── Base / Reset ────────────────────────────────────────── */
.medexp-free-quiz {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	background: #f5f7fa;
	color: #1a1a2e;
	min-height: 100vh;
}

#medexp-free-quiz-root {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

/* ─── Theme override protection ─────────────────────────── */
/* Prevent WP themes from forcing white text on hover */
.medexp-free-quiz :where(#medexp-free-quiz-root) a:hover,
.medexp-free-quiz :where(#medexp-free-quiz-root) button:hover,
.medexp-free-quiz :where(#medexp-free-quiz-root) .mfq-btn:hover,
.medexp-free-quiz :where(#medexp-free-quiz-root) .mfq-btn-secondary:hover,
.medexp-free-quiz :where(#medexp-free-quiz-root) .mfq-locked-card:hover,
.medexp-free-quiz :where(#medexp-free-quiz-root) .mfq-locked-card:hover *,
.medexp-free-quiz :where(#medexp-free-quiz-root) a:hover *,
.medexp-free-quiz :where(#medexp-free-quiz-root) button:hover * {
	color: inherit !important;
}
.medexp-free-quiz .mfq-btn-primary:hover,
.medexp-free-quiz .mfq-btn-primary:hover * {
	color: #fff !important;
}
.medexp-free-quiz .mfq-intro-start-btn:hover {
	color: #fff !important;
}

/* ─── Header Bar ─────────────────────────────────────────── */
.mfq-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	padding: 12px 24px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	margin: 0 -24px;
	width: calc(100% + 48px);
}
.mfq-header-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}
.mfq-header-logo img {
	height: 32px;
	width: auto;
	display: block;
}
.mfq-header-title {
	flex: 1;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #162c55;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	overflow: hidden;
}
.mfq-header-meaning {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.mfq-header-spacer {
	flex-shrink: 0;
	width: 80px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.mfq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	line-height: 1.4;
}
.mfq-btn:hover { transform: translateY(-1px); }
.mfq-btn:active { transform: translateY(0); }

.mfq-btn-primary {
	background: #1e3a8a;
	color: #fff;
}
.mfq-btn-primary:hover { background: #117673; }

.mfq-btn-secondary {
	background: #fff;
	color: #162c55;
	border: 2px solid #e2e8f0;
}
.mfq-btn-secondary:hover { border-color: #1e3a8a; color: #1e3a8a; }

.mfq-btn-link {
	background: none;
	color: #64748b;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
}
.mfq-btn-link:hover { color: #1e3a8a; }

.mfq-btn-lg {
	padding: 16px 32px;
	font-size: 17px;
	border-radius: 14px;
	min-width: 220px;
}

/* ─── Intro Phase ─────────────────────────────────────────── */
.mfq-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 0 40px;
	gap: 0;
	max-width: 100%;
	margin: 0;
}

/* ── Hero ── */
.mfq-intro-hero {
	width: calc(100% + 48px);
	margin: 0 -24px;
	padding: 56px 24px 48px;
	background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.mfq-hero-pattern {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(59,130,246,0.1) 0%, transparent 40%),
		radial-gradient(circle at 60% 80%, rgba(139,92,246,0.08) 0%, transparent 40%);
	pointer-events: none;
}
.mfq-hero-pattern::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
}
.mfq-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.mfq-intro-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	background: rgba(99,102,241,0.15);
	color: #a5b4fc;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border-radius: 24px;
	border: 1px solid rgba(99,102,241,0.25);
	animation: mfqFadeUp 0.4s ease-out;
}

.mfq-intro-title {
	font-size: 36px;
	font-weight: 800;
	color: #fff;
	margin: 0;
	line-height: 1.15;
	max-width: 560px;
	letter-spacing: -0.5px;
	animation: mfqFadeUp 0.5s ease-out;
}

.mfq-intro-sub {
	font-size: 16px;
	color: rgba(255,255,255,0.55);
	margin: 0;
	max-width: 400px;
	line-height: 1.5;
	font-weight: 400;
	animation: mfqFadeUp 0.6s ease-out;
}

.mfq-intro-start-btn {
	margin-top: 8px;
	min-width: 260px;
	font-size: 16px;
	padding: 16px 40px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #fff;
	box-shadow: 0 4px 24px rgba(99,102,241,0.4), 0 1px 3px rgba(0,0,0,0.1);
	transition: all 0.2s ease;
	animation: mfqFadeUp 0.7s ease-out;
	position: relative;
	z-index: 1;
	overflow: hidden;
}
.mfq-intro-start-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(99,102,241,0.5), 0 2px 6px rgba(0,0,0,0.15);
	background: linear-gradient(135deg, #7c7ff5 0%, #5b54e8 100%);
}
.mfq-intro-start-btn:active {
	transform: translateY(0);
}
.mfq-intro-start-btn::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.15) 50%, transparent 80%);
	animation: mfqShimmer 3s ease-in-out infinite 1.5s;
	pointer-events: none;
}
@keyframes mfqShimmer {
	0%   { left: -100%; }
	40%  { left: 120%; }
	100% { left: 120%; }
}

.mfq-intro-hint {
	font-size: 13px;
	color: rgba(255,255,255,0.35);
	margin: 0;
	animation: mfqFadeUp 0.75s ease-out;
}

/* ── Stats bar ── */
.mfq-stats-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: calc(100% + 48px);
	margin: 0 -24px;
	padding: 20px 32px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}
.mfq-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0 32px;
}
.mfq-stat-num {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
}
.mfq-stat-label {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.mfq-stat-sep {
	width: 1px;
	height: 32px;
	background: #e2e8f0;
	flex-shrink: 0;
}

/* ── Bottom row: features + testimonial side by side ── */
.mfq-intro-bottom-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	width: 100%;
	max-width: 820px;
	padding: 28px 16px 0;
	align-items: start;
}
.mfq-intro-features-col {
	display: flex;
	flex-direction: column;
}
.mfq-intro-testimonial-col {
	display: flex;
	flex-direction: column;
	padding-top: 30px;
}
.mfq-section-label {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 14px;
	text-align: left;
}

/* ── Feature Cards ── */
.mfq-intro-features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}
.mfq-intro-feature {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
	transition: all 0.2s ease;
	animation: mfqFadeUp 0.4s ease-out backwards;
}
.mfq-intro-feature:hover {
	border-color: #e0e7ff;
	box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.mfq-intro-feature-icon {
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	border-radius: 10px;
	flex-shrink: 0;
	color: #475569;
}
.mfq-intro-feature-body {
	flex: 1;
	text-align: left;
}
.mfq-intro-feature-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 1px;
}
.mfq-intro-feature-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}

/* ── Testimonial ── */
.mfq-intro-testimonial {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
	padding: 24px;
	text-align: left;
	animation: mfqFadeUp 0.5s ease-out backwards;
	animation-delay: 0.2s;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
.mfq-testimonial-stars {
	font-size: 15px;
	color: #f59e0b;
	letter-spacing: 2px;
	margin-bottom: 12px;
}
.mfq-testimonial-text {
	font-size: 15px;
	color: #334155;
	line-height: 1.6;
	font-style: italic;
	margin: 0 0 16px;
}
.mfq-testimonial-author {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mfq-testimonial-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #10b981;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.mfq-testimonial-info {
	text-align: left;
}
.mfq-testimonial-name {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}
.mfq-testimonial-role {
	font-size: 12px;
	color: #94a3b8;
}
.mfq-dot { color: #cbd5e1; }

/* ─── Quiz Layout ────────────────────────────────────────── */
.mfq-quiz-body {
	padding-top: 24px;
}

/* Two-column grid on desktop / iPad landscape */
@media (min-width: 1024px) {
	.mfq-quiz-body {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 1fr;
		gap: 0 24px;
		align-items: start;
	}
	.mfq-quiz-progress-row {
		grid-column: 1 / -1;
		background: #fff;
		border-radius: 16px 16px 0 0;
		margin-bottom: -8px;
		padding-bottom: 4px;
	}
	.mfq-col-left {
		background: #fff;
		border-radius: 16px;
		box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
		padding: 20px 24px;
	}
	.mfq-col-right {
		background: #fff;
		border-radius: 16px;
		box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
		padding: 20px 24px;
	}

	/* Zero out inner paddings — column wrapper provides them */
	.mfq-col-left .mfq-stem { padding: 0 0 8px; }
	.mfq-col-left .mfq-subprompt { padding: 0 0 8px; }
	.mfq-col-left .mfq-illustration { padding: 0; }
	.mfq-col-left .mfq-figure { padding: 0; }
	.mfq-col-left .mfq-passage { margin: 12px 0 0; padding: 16px 20px 8px; }
	.mfq-col-left .mfq-type-badge { margin: 0 0 12px; }
	.mfq-col-right .mfq-options { padding: 0 0 8px; }
	.mfq-col-right .mfq-action { padding: 12px 0; }
	.mfq-col-right .mfq-rationale { margin: 12px 0; }
	.mfq-col-right .mfq-nav { padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); }
	.mfq-col-right .mfq-interaction-hint { margin-left: 0; margin-right: 0; }

	/* Progress row inner padding in grid mode */
	.mfq-quiz-progress-row .mfq-progress-label { padding: 12px 24px 8px; }
}

/* Single-column below 1024px — unified card look */
@media (max-width: 1023px) {
	.mfq-quiz-body {
		max-width: 720px;
		margin: 0 auto;
		background: #fff;
		border-radius: 16px;
		box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
		overflow: hidden;
	}
}

/* Legacy .mfq-card (kept for compat) */
.mfq-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
	padding: 0;
	overflow: hidden;
}

/* Progress */
.mfq-progress {
	height: 4px;
	background: #e2e8f0;
	border-radius: 4px 4px 0 0;
	overflow: hidden;
}
.mfq-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #1e3a8a, #3bc6c2);
	transition: width 0.3s ease;
	border-radius: 0 2px 2px 0;
}

.mfq-progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px 0;
	font-size: 13px;
	color: #94a3b8;
	font-weight: 500;
}

/* Illustration / Figure / Passage */
.mfq-illustration {
	padding: 16px 24px 0;
	text-align: center;
}
.mfq-illustration img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}
.mfq-illustration-caption {
	font-size: 13px;
	color: #64748b;
	margin-top: 8px;
	font-style: italic;
}

.mfq-figure {
	padding: 16px 24px 0;
}
.mfq-figure img,
.mfq-figure figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.mfq-figure figure {
	margin: 0;
	text-align: center;
}
.mfq-figure figcaption {
	font-size: 13px;
	color: #64748b;
	margin-top: 6px;
}

.mfq-passage {
	padding: 16px 24px 8px;
	font-size: 15px;
	line-height: 1.6;
	color: #334155;
	background: #f8fafc;
	margin: 12px 24px 0;
	border-radius: 10px;
	border-left: 4px solid #1e3a8a;
}

/* Stem images (inline <img> in stem_html) */
.mfq-stem img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 8px 0;
}
.mfq-stem figure {
	margin: 12px 0;
	text-align: center;
}
.mfq-stem figcaption {
	font-size: 13px;
	color: #64748b;
	margin-top: 6px;
}

/* Rationale images */
.mfq-rationale-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 8px 0;
}

/* Option images (illustrated MCQ) */
.mfq-option-text img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 4px 0;
}

/* Difficulty badge */
.mfq-diff-badge {
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.mfq-diff-easy { background: #dcfce7; color: #15803d; }
.mfq-diff-medium { background: #fef3c7; color: #a16207; }
.mfq-diff-hard { background: #fee2e2; color: #b91c1c; }
.mfq-diff-expert { background: #f3e8ff; color: #7c3aed; }

/* Stem */
.mfq-stem {
	padding: 20px 24px 8px;
	font-size: 16px;
	line-height: 1.65;
	color: #1a1a2e;
}
.mfq-stem p { margin: 0 0 12px; }
.mfq-stem p:last-child { margin-bottom: 0; }

.mfq-subprompt {
	padding: 0 24px 8px;
	font-size: 15px;
	font-weight: 600;
	color: #162c55;
}

/* Options */
.mfq-options {
	padding: 12px 24px 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mfq-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-size: 15px;
	line-height: 1.5;
	transition: all 0.15s ease;
	color: #1a1a2e !important;
	width: 100%;
	box-sizing: border-box;
}
.mfq-option:hover:not(.mfq-option-correct):not(.mfq-option-incorrect) {
	border-color: #1e3a8a;
	background: #f0fdfa;
	color: #1a1a2e !important;
}
.mfq-option:hover .mfq-option-text,
.mfq-option:hover .mfq-option-text * {
	color: #1a1a2e !important;
}
.mfq-option-selected {
	border-color: #1e3a8a;
	background: #f0fdfa;
}
.mfq-option-correct {
	border-color: #22c55e;
	background: #f0fdf4;
	cursor: default;
}
.mfq-option-incorrect {
	border-color: #ef4444;
	background: #fef2f2;
	cursor: default;
}

/* Letter badge (A, B, C, D) */
.mfq-option-letter {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	background: #f1f5f9;
	color: #475569;
	border: 2px solid #e2e8f0;
	transition: all 0.15s ease;
	line-height: 1;
}
.mfq-option-selected .mfq-option-letter {
	background: #1e3a8a;
	color: #fff;
	border-color: #1e3a8a;
}
.mfq-option-letter-correct {
	background: #22c55e !important;
	color: #fff !important;
	border-color: #22c55e !important;
	font-size: 16px;
}
.mfq-option-letter-incorrect {
	background: #ef4444 !important;
	color: #fff !important;
	border-color: #ef4444 !important;
	font-size: 16px;
}
.mfq-option-letter-missed {
	background: #fbbf24 !important;
	color: #fff !important;
	border-color: #f59e0b !important;
}

.mfq-option-text {
	flex: 1;
}
.mfq-option-text p { margin: 0; }

/* Action area */
.mfq-action {
	padding: 12px 24px;
	display: flex;
	justify-content: center;
}

/* Rationale */
.mfq-rationale {
	margin: 12px 24px;
	padding: 16px 20px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.6;
}
.mfq-rationale-correct {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}
.mfq-rationale-incorrect {
	background: #fef2f2;
	border: 1px solid #fecaca;
}
.mfq-rationale-header {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}
.mfq-rationale-body {
	color: #475569;
}
.mfq-rationale-body p { margin: 0 0 8px; }
.mfq-rationale-body p:last-child { margin-bottom: 0; }
.mfq-rationale-body h2,
.mfq-rationale-body h3,
.mfq-rationale-body h4 {
	margin: 20px 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.4;
}
.mfq-rationale-body h2:first-child,
.mfq-rationale-body h3:first-child,
.mfq-rationale-body h4:first-child { margin-top: 0; }

/* Navigation — fixed bottom bar */
.mfq-nav {
	display: flex;
	align-items: center;
	padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
	gap: 12px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255,255,255,.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid rgba(0,0,0,.06);
	box-shadow: 0 -4px 20px rgba(0,0,0,.06);
	z-index: 100;
}

/* ─── Results Phase ───────────────────────────────────────── */
.mfq-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 0 0 32px;
	max-width: 720px;
	margin: 0 auto;
}

/* ── Hero Section ── */
.mfq-results-hero {
	width: calc(100% + 48px);
	margin: 0 -24px;
	padding: 40px 24px 36px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	position: relative;
	overflow: hidden;
}
.mfq-hero-great { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%); }
.mfq-hero-good  { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%); }
.mfq-hero-okay  { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%); }
.mfq-hero-start { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%); }
.mfq-results-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40px;
	background: linear-gradient(to bottom, transparent, #f5f7fa);
}

.mfq-results-title {
	font-size: 28px;
	font-weight: 800;
	color: #162c55;
	margin: 0;
	animation: mfqFadeUp 0.5s ease-out;
}
.mfq-results-sub {
	font-size: 15px;
	color: #475569;
	margin: 0;
	max-width: 440px;
	line-height: 1.5;
	animation: mfqFadeUp 0.6s ease-out;
}

/* ── Ring Score Chart ── */
.mfq-ring-wrap {
	position: relative;
	width: 160px;
	height: 160px;
	animation: mfqPop 0.7s ease-out;
}
.mfq-ring-svg {
	display: block;
	filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.mfq-ring-progress {
	transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mfq-ring-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}
.mfq-ring-pct {
	font-size: 36px;
	font-weight: 800;
	color: #162c55;
	line-height: 1;
}
.mfq-ring-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
	margin-top: 2px;
}

/* ── Stats Row ── */
.mfq-stats-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 28px;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(8px);
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	animation: mfqFadeUp 0.8s ease-out;
}
.mfq-stat-item { text-align: center; min-width: 56px; }
.mfq-stat-value { font-size: 20px; font-weight: 800; color: #162c55; }
.mfq-stat-label { font-size: 11px; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.mfq-stat-divider { width: 1px; height: 28px; background: #e2e8f0; }

/* ── Reveal Animation ── */
.mfq-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: var(--delay, 0s);
}
.mfq-reveal.mfq-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Topics with mini bars ── */
.mfq-topics {
	width: 100%;
	max-width: 560px;
	background: #fff;
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
}
.mfq-section-title {
	font-size: 17px;
	font-weight: 700;
	color: #162c55;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.mfq-section-title svg {
	color: #1e3a8a;
	flex-shrink: 0;
}
.mfq-topic-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}
.mfq-topic-row:last-child { border-bottom: none; }
.mfq-topic-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mfq-topic-name { font-size: 14px; font-weight: 600; color: #334155; }
.mfq-topic-score { font-size: 13px; color: #64748b; font-weight: 600; white-space: nowrap; }
.mfq-topic-bar-track {
	height: 6px;
	background: #f1f5f9;
	border-radius: 6px;
	overflow: hidden;
}
.mfq-topic-bar-fill {
	height: 100%;
	border-radius: 6px;
	transition: width 0.8s ease-out;
}

/* ── Locked Features Grid ── */
.mfq-locked-grid {
	width: 100%;
	max-width: 560px;
}
.mfq-locked-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.mfq-locked-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 18px 20px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 10px rgba(0,0,0,0.03);
	position: relative;
	overflow: hidden;
	border: 1px solid #f1f5f9;
	transition: all 0.25s ease;
}
.mfq-locked-card::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0) 50%, rgba(23,157,153,0.04) 100%);
	pointer-events: none;
}
.mfq-locked-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0fdfa 0%, #e0f7f5 100%);
	border-radius: 10px;
	color: #1e3a8a;
	flex-shrink: 0;
}
.mfq-locked-content { flex: 1; }
.mfq-locked-title {
	font-size: 14px;
	font-weight: 700;
	color: #162c55;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.mfq-locked-lock {
	display: inline-flex;
	color: #94a3b8;
}
.mfq-locked-desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}

/* CTAs */
.mfq-cta-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	width: 100%;
	max-width: 420px;
}
.mfq-cta-section .mfq-btn { width: 100%; }

.mfq-retake {
	padding-top: 8px;
}

/* Confetti Canvas */
.mfq-confetti-canvas {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 9999;
}

/* Migration notice */
.mfq-migrate-notice {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #15803d;
	text-align: center;
	width: 100%;
	max-width: 520px;
	box-sizing: border-box;
}

/* ─── Type Badge ─────────────────────────────────────────── */
.mfq-type-badge {
	margin: 8px 24px 0;
	display: inline-block;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: #e0f2fe;
	color: #0369a1;
}

/* ─── Interaction Hint ───────────────────────────────────── */
.mfq-interaction-hint {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
	padding: 4px 0 8px;
	font-style: italic;
}

/* ─── Correct Hint (shown after confirm when wrong) ──────── */
.mfq-correct-hint {
	font-size: 13px;
	color: #15803d;
	font-weight: 600;
	margin-top: 6px;
	padding: 4px 8px;
	background: #f0fdf4;
	border-radius: 6px;
	display: inline-block;
}

/* ─── Missed Option (correct but not selected) ───────────── */
.mfq-option-missed {
	border-color: #f59e0b;
	background: #fffbeb;
	cursor: default;
}
.mfq-option-missed .mfq-option-marker { color: #f59e0b; }

/* ─── Small Option (bowtie multi-zone) ───────────────────── */
.mfq-option-sm {
	padding: 10px 14px;
	font-size: 14px;
}

/* ─── Select Dropdowns ───────────────────────────────────── */
.mfq-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 36px 10px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a2e;
	background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	cursor: pointer;
	transition: border-color 0.15s ease;
	min-width: 160px;
	max-width: 100%;
}
.mfq-select:focus {
	outline: none;
	border-color: #1e3a8a;
	box-shadow: 0 0 0 3px rgba(23, 157, 153, 0.1);
}
.mfq-select:disabled {
	cursor: default;
	opacity: 0.8;
	background-color: #f8fafc;
}
.mfq-select-correct {
	border-color: #22c55e !important;
	background-color: #f0fdf4;
}
.mfq-select-incorrect {
	border-color: #ef4444 !important;
	background-color: #fef2f2;
}

/* ─── Cloze ──────────────────────────────────────────────── */
.mfq-cloze-wrap {
	width: 100%;
}
.mfq-cloze-template {
	font-size: 15px;
	line-height: 2.2;
	color: #334155;
}
.mfq-cloze-template .mfq-select {
	display: inline-block;
	vertical-align: middle;
	margin: 2px 4px;
	min-width: 140px;
}
.mfq-cloze-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
	flex-wrap: wrap;
}
.mfq-cloze-row:last-child { border-bottom: none; }
.mfq-cloze-prompt {
	flex: 1;
	min-width: 120px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

/* ─── Ordering ───────────────────────────────────────────── */
.mfq-ordering {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mfq-ordering-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	transition: all 0.15s ease;
}
.mfq-ordering-row:hover:not(.mfq-ordering-correct):not(.mfq-ordering-incorrect) {
	border-color: #cbd5e1;
}
.mfq-ordering-correct {
	border-color: #22c55e;
	background: #f0fdf4;
}
.mfq-ordering-incorrect {
	border-color: #ef4444;
	background: #fef2f2;
}
.mfq-ordering-rank {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mfq-ordering-correct .mfq-ordering-rank {
	background: #dcfce7;
	color: #15803d;
}
.mfq-ordering-incorrect .mfq-ordering-rank {
	background: #fee2e2;
	color: #b91c1c;
}
.mfq-ordering-text {
	flex: 1;
	font-size: 14px;
	line-height: 1.5;
	color: #1a1a2e;
}
.mfq-ordering-text p { margin: 0; }
.mfq-ordering-actions {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
}

/* Mini buttons (up/down arrows) */
.mfq-mini-btn {
	width: 28px;
	height: 28px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
	color: #475569;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.1s ease;
	padding: 0;
}
.mfq-mini-btn:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

/* ─── Matrix ─────────────────────────────────────────────── */
.mfq-matrix-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}
.mfq-matrix {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.mfq-matrix th,
.mfq-matrix td {
	padding: 10px 12px;
	text-align: center;
	border: 1px solid #e2e8f0;
}
.mfq-matrix-corner {
	background: #f8fafc;
}
.mfq-matrix-col {
	background: #f8fafc;
	font-weight: 600;
	color: #334155;
	font-size: 13px;
	min-width: 80px;
}
.mfq-matrix-rowheader {
	text-align: left !important;
	font-weight: 600;
	color: #334155;
	background: #fafbfc;
	min-width: 120px;
}
.mfq-matrix-cell {
	cursor: pointer;
	transition: background-color 0.1s ease;
}
.mfq-matrix-cell:hover { background: #f0fdfa; }
.mfq-matrix-selected { background: #e0f7f5; }
.mfq-matrix-correct { background: #dcfce7 !important; }
.mfq-matrix-incorrect { background: #fee2e2 !important; }
.mfq-matrix-missed { background: #fffbeb !important; }
.mfq-matrix-pick {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.mfq-matrix-check {
	width: 18px;
	height: 18px;
	accent-color: #1e3a8a;
	cursor: pointer;
}

/* ─── Numeric Entry ──────────────────────────────────────── */
.mfq-numeric-wrap {
	width: 100%;
}
.mfq-numeric-input-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mfq-input {
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	color: #1a1a2e;
	background: #fff;
	width: 200px;
	max-width: 100%;
	transition: border-color 0.15s ease;
}
.mfq-input:focus {
	outline: none;
	border-color: #1e3a8a;
	box-shadow: 0 0 0 3px rgba(23, 157, 153, 0.1);
}
.mfq-input:disabled {
	cursor: default;
	opacity: 0.8;
	background-color: #f8fafc;
}
.mfq-input-correct {
	border-color: #22c55e !important;
	background-color: #f0fdf4;
}
.mfq-input-incorrect {
	border-color: #ef4444 !important;
	background-color: #fef2f2;
}
.mfq-numeric-units {
	font-size: 15px;
	font-weight: 600;
	color: #475569;
}

/* ─── Highlight (Text Segments) ──────────────────────────── */
.mfq-highlight-wrap {
	width: 100%;
}
.mfq-highlight-segments {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mfq-highlight-seg {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	text-align: left;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
	cursor: pointer;
	transition: all 0.15s ease;
}
.mfq-highlight-seg:hover:not(.mfq-highlight-correct):not(.mfq-highlight-incorrect) {
	border-color: #fbbf24;
	background: #fffbeb;
}
.mfq-highlight-selected {
	border-color: #f59e0b;
	background: #fef3c7;
	color: #1a1a2e;
}
.mfq-highlight-correct {
	border-color: #22c55e !important;
	background: #f0fdf4 !important;
	cursor: default;
}
.mfq-highlight-incorrect {
	border-color: #ef4444 !important;
	background: #fef2f2 !important;
	cursor: default;
}
.mfq-highlight-missed {
	border-color: #f59e0b !important;
	background: #fffbeb !important;
	cursor: default;
	border-style: dashed;
}

/* ─── Highlight (Table) ──────────────────────────────────── */
.mfq-htable {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.mfq-htable th,
.mfq-htable td {
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	text-align: left;
}
.mfq-htable th {
	background: #f8fafc;
	font-weight: 600;
	color: #334155;
}
.mfq-htable-cell {
	cursor: pointer;
	transition: all 0.15s ease;
}
.mfq-htable-cell:hover:not(.mfq-htable-correct):not(.mfq-htable-incorrect):not(.mfq-htable-disabled) {
	background: #fffbeb;
}
.mfq-htable-selected {
	background: #fef3c7;
	border-color: #f59e0b;
}
.mfq-htable-correct { background: #dcfce7 !important; border-color: #22c55e !important; }
.mfq-htable-incorrect { background: #fee2e2 !important; border-color: #ef4444 !important; }
.mfq-htable-missed { background: #fffbeb !important; border-color: #f59e0b !important; border-style: dashed; }
.mfq-htable-disabled {
	cursor: default;
	color: #94a3b8;
	background: #f8fafc;
}
.mfq-htable-inner { pointer-events: none; }

/* ─── Hotspot ────────────────────────────────────────────── */
.mfq-hotspot-wrap {
	width: 100%;
}
.mfq-hotspot-stage {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 100%;
}
.mfq-hotspot-img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}
.mfq-hotspot-region {
	position: absolute;
	border: 2px solid rgba(23, 157, 153, 0.4);
	border-radius: 4px;
	background: rgba(23, 157, 153, 0.08);
	transition: all 0.15s ease;
}
.mfq-hotspot-region:hover {
	border-color: rgba(23, 157, 153, 0.8);
	background: rgba(23, 157, 153, 0.15);
}
.mfq-hotspot-region-selected {
	border-color: #1e3a8a !important;
	background: rgba(23, 157, 153, 0.25) !important;
	box-shadow: 0 0 0 2px rgba(23, 157, 153, 0.3);
}
.mfq-hotspot-region-correct {
	border-color: #22c55e !important;
	background: rgba(34, 197, 94, 0.2) !important;
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}
.mfq-hotspot-region-incorrect {
	border-color: #ef4444 !important;
	background: rgba(239, 68, 68, 0.15) !important;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* ─── Grouping ───────────────────────────────────────────── */
.mfq-grouping-wrap {
	width: 100%;
}
.mfq-grouping-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
	flex-wrap: wrap;
}
.mfq-grouping-row:last-child { border-bottom: none; }
.mfq-grouping-token {
	flex: 1;
	min-width: 120px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a2e;
	line-height: 1.5;
}
.mfq-grouping-token p { margin: 0; }

/* ─── Bowtie ─────────────────────────────────────────────── */
.mfq-bowtie-wrap {
	width: 100%;
}
.mfq-bowtie-diagram {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mfq-bowtie-slot {
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #fafbfc;
}
.mfq-bowtie-label {
	font-size: 13px;
	font-weight: 700;
	color: #162c55;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}
.mfq-bowtie-select {
	width: 100%;
}
.mfq-bowtie-zone {
	padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
}
.mfq-bowtie-zone:last-child { border-bottom: none; }
.mfq-bowtie-zone-title {
	font-size: 14px;
	font-weight: 700;
	color: #162c55;
	margin-bottom: 10px;
}

/* ─── Keyframe Animations ────────────────────────────────── */
@keyframes mfqFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes mfqSlideIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes mfqPop {
	0% { transform: scale(0.8); opacity: 0; }
	60% { transform: scale(1.05); }
	100% { transform: scale(1); opacity: 1; }
}
@keyframes mfqPulseGreen {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
	50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15); }
}
@keyframes mfqShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-4px); }
	40% { transform: translateX(4px); }
	60% { transform: translateX(-2px); }
	80% { transform: translateX(2px); }
}
@keyframes mfqGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(23, 157, 153, 0.3); }
	50% { box-shadow: 0 0 0 8px rgba(23, 157, 153, 0); }
}
@keyframes mfqToastIn {
	from { opacity: 0; transform: translateY(16px) scale(0.9); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mfqToastOut {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to { opacity: 0; transform: translateY(-12px) scale(0.9); }
}
@keyframes mfqPercentileFill {
	from { width: 0; }
}
@keyframes mfqCheckAppear {
	from { opacity: 0; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1); }
}
@keyframes mfqBadgeFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

/* Apply animations */
.mfq-intro { animation: mfqFadeUp 0.5s ease-out; }
.mfq-card-enter { animation: mfqFadeUp 0.3s ease-out; }
.mfq-rationale { animation: mfqSlideIn 0.3s ease-out; }
.mfq-results { animation: mfqFadeUp 0.4s ease-out; }
.mfq-option-correct { animation: mfqPulseGreen 0.6s ease; }
.mfq-option-incorrect { animation: mfqShake 0.4s ease; }
.mfq-btn-glow { animation: mfqGlow 2.5s infinite; }
.mfq-btn-check-appear { animation: mfqCheckAppear 0.25s ease-out; }

/* ─── Focus-Visible ──────────────────────────────────────── */
.mfq-option:focus-visible,
.mfq-highlight-seg:focus-visible,
.mfq-mini-btn:focus-visible,
.mfq-btn:focus-visible {
	outline: 2px solid #1e3a8a;
	outline-offset: 2px;
}

/* (Social proof now uses .mfq-stats-bar — see intro section) */

/* ─── Streak Badge ───────────────────────────────────────── */
.mfq-streak-badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	background: linear-gradient(135deg, #f97316, #ef4444);
	color: #fff;
	animation: mfqPop 0.3s ease-out;
}

/* ─── Toast Notifications ────────────────────────────────── */
.mfq-toast {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #162c55;
	color: #fff;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	animation: mfqToastIn 0.3s ease-out;
	pointer-events: none;
}
.mfq-toast-out {
	animation: mfqToastOut 0.4s ease-in forwards;
}
.mfq-toast-icon { font-size: 20px; }

/* ─── Results Enhancements ───────────────────────────────── */

/* Percentile Bar */
.mfq-percentile {
	width: 100%;
	max-width: 480px;
	text-align: center;
	background: #fff;
	border-radius: 14px;
	padding: 20px 28px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
}
.mfq-percentile-label {
	font-size: 14px;
	color: #475569;
	font-weight: 600;
	margin-bottom: 12px;
}
.mfq-percentile-track {
	height: 10px;
	background: #e2e8f0;
	border-radius: 10px;
	position: relative;
	overflow: visible;
}
.mfq-percentile-fill {
	height: 100%;
	background: linear-gradient(90deg, #1e3a8a, #3bc6c2);
	border-radius: 10px;
	animation: mfqPercentileFill 1s ease-out;
}
.mfq-percentile-marker {
	position: absolute;
	top: -5px;
	width: 20px;
	height: 20px;
	background: #1e3a8a;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(23,157,153,0.35);
	transform: translateX(-50%);
}

/* CTA Urgency */
.mfq-cta-urgency {
	font-size: 14px;
	font-weight: 600;
	color: #b91c1c;
	background: linear-gradient(135deg, #fef2f2, #fff1f2);
	border: 1px solid #fecaca;
	border-radius: 12px;
	padding: 12px 20px;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

/* Share Section */
.mfq-share-section {
	width: 100%;
	max-width: 420px;
	text-align: center;
	padding: 8px 0;
}
.mfq-share-label {
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
	margin-bottom: 10px;
}
.mfq-share-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
}
.mfq-share-btn {
	font-size: 13px !important;
	padding: 10px 20px !important;
	border-radius: 12px !important;
}

/* ─── Locked Card Hover ──────────────────────────────────── */
a.mfq-locked-card {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
a.mfq-locked-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(23,157,153,0.12);
	border-color: #1e3a8a;
}

/* ─── Topic Row Hover ────────────────────────────────────── */
.mfq-topic-row {
	transition: background 0.15s ease;
	border-radius: 8px;
	margin: 0 -8px;
	padding-left: 8px;
	padding-right: 8px;
}
.mfq-topic-row:hover {
	background: #f8fafc;
}

/* ─── Option Marker (fallback for hotspot/bowtie) ────────── */
.mfq-option-marker {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	display: inline-block;
	box-sizing: border-box;
}
.mfq-option-selected .mfq-option-marker {
	background: #1e3a8a;
	border-color: #1e3a8a;
}
.mfq-option-correct .mfq-option-marker {
	background: #22c55e;
	border-color: #22c55e;
}

/* ─── Contrast Fixes ─────────────────────────────────────── */
.mfq-intro-hint { color: #64748b; }
.mfq-intro-meta { color: #64748b; }
.mfq-progress-label { color: #64748b; }
.mfq-locked-desc { color: #64748b; }
.mfq-dot { color: #94a3b8; }

/* ─── Form Element Font Inheritance ──────────────────────── */
.medexp-free-quiz button,
.medexp-free-quiz select,
.medexp-free-quiz input {
	font-family: inherit;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
	#medexp-free-quiz-root {
		padding: 0 8px 48px;
	}
	/* Header mobile */
	.mfq-header {
		padding: 10px 12px;
		margin: 0 -8px;
		width: calc(100% + 16px);
	}
	.mfq-header-title {
		font-size: 13px;
	}
	.mfq-header-logo img {
		height: 26px;
	}
	.mfq-header-spacer {
		width: 60px;
	}
	/* Quiz body mobile */
	.mfq-quiz-body {
		padding-top: 16px;
	}
	.mfq-intro {
		padding: 0 0 16px;
		gap: 0;
	}
	.mfq-intro-hero {
		width: calc(100% + 16px);
		margin: 0 -8px;
		padding: 36px 16px 32px;
	}
	.mfq-intro-title {
		font-size: 26px;
	}
	.mfq-intro-sub {
		font-size: 14px;
	}
	.mfq-intro-pill {
		font-size: 10px;
		padding: 4px 12px;
	}
	.mfq-intro-start-btn {
		font-size: 15px;
		padding: 14px 32px;
		min-width: 220px;
	}
	.mfq-intro-hint {
		font-size: 11px;
	}
	.mfq-stats-bar {
		width: calc(100% + 16px);
		margin: 0 -8px;
		padding: 16px 12px;
	}
	.mfq-stat { padding: 0 16px; }
	.mfq-stat-num { font-size: 20px; }
	.mfq-stat-label { font-size: 10px; }
	.mfq-stat-sep { height: 24px; }
	.mfq-intro-bottom-row {
		grid-template-columns: 1fr;
		padding: 20px 8px 0;
		gap: 16px;
	}
	.mfq-section-label { text-align: center; }
	.mfq-intro-feature {
		padding: 12px 14px;
		gap: 10px;
	}
	.mfq-intro-feature-icon {
		width: 34px;
		height: 34px;
	}
	.mfq-intro-feature-icon svg {
		width: 18px;
		height: 18px;
	}
	.mfq-intro-feature-title { font-size: 13px; }
	.mfq-intro-feature-desc { font-size: 12px; }
	.mfq-intro-testimonial {
		padding: 20px 16px;
		text-align: center;
	}
	.mfq-testimonial-author { justify-content: center; }
	.mfq-testimonial-text { font-size: 14px; }
	.mfq-stem {
		padding: 16px 16px 8px;
		font-size: 15px;
	}
	.mfq-subprompt {
		padding: 0 16px 8px;
	}
	.mfq-options {
		padding: 8px 16px;
	}
	.mfq-option {
		padding: 12px 14px;
		font-size: 14px;
		gap: 10px;
	}
	.mfq-option-letter {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	.mfq-rationale {
		margin: 8px 16px;
		padding: 12px 16px;
	}
	.mfq-nav {
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	}
	.mfq-btn-lg {
		padding: 14px 24px;
		font-size: 16px;
		min-width: unset;
	}
	.mfq-progress-label {
		padding: 12px 16px 0;
	}
	.mfq-action {
		padding: 8px 16px;
	}
	.mfq-type-badge {
		margin: 8px 16px 0;
	}
	.mfq-select {
		min-width: 120px;
		font-size: 13px;
	}
	.mfq-cloze-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.mfq-cloze-template .mfq-select {
		min-width: 110px;
	}
	.mfq-ordering-row {
		padding: 10px 12px;
	}
	.mfq-ordering-text {
		font-size: 13px;
	}
	.mfq-matrix-wrap {
		margin: 0 -8px;
	}
	.mfq-matrix th,
	.mfq-matrix td {
		padding: 8px 6px;
		font-size: 12px;
	}
	.mfq-input {
		width: 100%;
	}
	.mfq-grouping-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.mfq-bowtie-slot {
		padding: 10px 12px;
	}
	.mfq-highlight-seg {
		padding: 8px 12px;
		font-size: 13px;
	}
	/* Mobile: passage padding fix */
	.mfq-passage {
		margin: 12px 16px 0;
		padding: 12px 16px 8px;
	}
	.mfq-illustration { padding: 12px 16px 0; }
	.mfq-figure { padding: 12px 16px 0; }
	/* (social proof now in .mfq-stats-bar) */
	/* Mobile: share */
	.mfq-share-btns { flex-direction: column; }
	.mfq-share-btn { width: 100% !important; }
	/* Mobile: percentile */
	.mfq-percentile { max-width: 100%; padding: 16px 16px; }
	/* Mobile: CTA full width */
	.mfq-cta-section .mfq-btn { width: 100%; }
	/* Mobile: results hero */
	.mfq-results-hero {
		width: calc(100% + 16px);
		margin: 0 -8px;
		padding: 28px 16px 28px;
	}
	.mfq-results-title { font-size: 22px; }
	.mfq-ring-wrap { width: 130px; height: 130px; }
	.mfq-ring-svg { width: 130px; height: 130px; }
	.mfq-ring-pct { font-size: 28px; }
	.mfq-stats-row { gap: 14px; padding: 12px 16px; }
	.mfq-stat-value { font-size: 17px; }
	.mfq-stat-label { font-size: 10px; }
	/* Mobile: locked cards stack */
	.mfq-locked-cards { grid-template-columns: 1fr; }
	/* Mobile: topics */
	.mfq-topics { padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   2026 redesign (intro, header, quiz chrome, results). Brand color comes from --fq-brand.
   ═══════════════════════════════════════════════════════════════ */
.medexp-free-quiz { --fq-brand: #1e3a8a; --fq-ink: #0b1b33; --fq-text: #33425b; --fq-muted: #64748b; --fq-line: #e3e8ef; --fq-bg: #f6f8fb; --fq-ok: #16a34a; --fq-bad: #dc2626;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--fq-bg); color: var(--fq-text); }
.medexp-free-quiz { --fq-brand-bg: color-mix(in srgb, var(--fq-brand) 9%, #fff); --fq-brand-d: color-mix(in srgb, var(--fq-brand) 78%, #000); }

/* Header */
.mfq-header { gap: 16px; padding: 12px 24px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--fq-line); }
.mfq-header-title { font-size: 14.5px; color: var(--fq-ink); font-weight: 700; }
.mfq-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mfq-header-link { font-size: 14px; font-weight: 600; color: var(--fq-brand-d) !important; text-decoration: none; white-space: nowrap; }
.mfq-header-link:hover { text-decoration: underline; }
.mfq-header-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--fq-line); background: #fff; font-size: 14px; font-weight: 600; color: var(--fq-ink) !important; text-decoration: none; white-space: nowrap; transition: border-color .15s; }
.mfq-header-btn:hover { border-color: var(--fq-brand); }
@media (max-width: 760px) { .mfq-header-link, .mfq-header-meaning { display: none; } .mfq-header { padding: 10px 16px; } .mfq-header-title { font-size: 13.5px; padding: 0 8px; } }

/* Buttons */
.mfq-btn-primary, .mfq2-start { background: linear-gradient(135deg, var(--fq-brand), color-mix(in srgb, var(--fq-brand) 82%, #fff)) !important; color: #fff !important; border: 0 !important; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--fq-brand) 80%, transparent); transition: transform .18s, box-shadow .18s; }
.mfq-btn-primary:hover, .mfq2-start:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--fq-brand-d), var(--fq-brand)) !important; }
.mfq-btn-secondary { background: #fff; border: 1px solid var(--fq-line); color: var(--fq-ink); text-decoration: none; }
.mfq-btn-secondary:hover { border-color: var(--fq-brand); }

/* ── Intro ── */
.mfq2.mfq-intro { display: block; padding: 0; }
.mfq2-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.mfq2-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--fq-line); font-size: 13px; font-weight: 600; color: var(--fq-ink); box-shadow: 0 1px 2px rgba(11,27,51,.05); }
.mfq2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fq-brand); box-shadow: 0 0 0 4px var(--fq-brand-bg); }
.mfq2-title { margin: 20px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; color: var(--fq-ink); text-wrap: balance; }
.mfq2-title em { font-style: normal; color: var(--fq-brand); }
.mfq2-lead { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--fq-muted); max-width: 34em; }
.mfq2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mfq2-chips span { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--fq-line); font-size: 13.5px; font-weight: 600; color: var(--fq-text); }
.mfq2-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.mfq2-start { display: inline-flex; align-items: center; gap: 10px; padding: 17px 28px; border-radius: 14px; font: 700 17px/1 inherit; cursor: pointer; }
.mfq2-start span { transition: transform .18s; }
.mfq2-start:hover span { transform: translateX(3px); }
.mfq2-note { font-size: 13.5px; color: var(--fq-muted); }
.mfq2-course { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 56px; padding: 0 24px; border-radius: 14px; font-family: inherit; font-size: 16px; font-weight: 650; line-height: 1; color: var(--fq-ink, #0b1b33) !important; background: #fff; border: 1px solid #cfd8e3; text-decoration: none !important; transition: border-color .15s, color .15s; }
.mfq2-course:hover { border-color: var(--fq-brand); color: var(--fq-brand) !important; }
.mfq2-preview { position: relative; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--fq-line); box-shadow: 0 30px 70px -28px rgba(11,27,51,.3); transform: rotate(1.2deg); animation: mfq2Float 6s ease-in-out infinite; }
.mfq2-preview-top { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--fq-line); font-size: 12.5px; color: var(--fq-muted); font-weight: 600; }
.mfq2-preview-top i { width: 9px; height: 9px; border-radius: 50%; background: #e2e7ee; }
.mfq2-preview-top span { margin-left: 8px; }
.mfq2-preview-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--fq-line); margin-top: 8px; font-size: 13.5px; color: var(--fq-text); }
.mfq2-preview-opt b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef2f7; font-size: 12.5px; }
.mfq2-preview-opt em { margin-left: auto; font-style: normal; font-weight: 700; }
.mfq2-preview-opt.is-ok { border-color: var(--fq-ok); background: #f0faf3; } .mfq2-preview-opt.is-ok b { background: var(--fq-ok); color: #fff; } .mfq2-preview-opt.is-ok em { color: var(--fq-ok); }
.mfq2-preview-opt.is-bad { border-color: var(--fq-bad); background: #fdf3f3; } .mfq2-preview-opt.is-bad b { background: var(--fq-bad); color: #fff; } .mfq2-preview-opt.is-bad em { color: var(--fq-bad); }
.mfq2-preview-exp { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--fq-brand-bg); display: grid; gap: 7px; }
.mfq2-preview-exp strong { font-size: 12.5px; color: var(--fq-ink); }
.mfq2-line { display: block; height: 7px; border-radius: 6px; background: color-mix(in srgb, var(--fq-brand) 22%, #fff); }
.mfq2-line.w90 { width: 90%; } .mfq2-line.w80 { width: 80%; } .mfq2-line.w70 { width: 70%; }
.mfq2-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--fq-line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px -14px rgba(11,27,51,.18); }
.mfq2-fact { padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
.mfq2-fact + .mfq2-fact { border-left: 1px solid var(--fq-line); }
.mfq2-fact b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--fq-ink); }
.mfq2-fact span { font-size: 13.5px; color: var(--fq-muted); }
.mfq2-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 32px; }
.mfq2-step { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--fq-line); }
.mfq2-step-n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fq-brand-bg); color: var(--fq-brand-d); font-weight: 800; }
.mfq2-step b { font-size: 16px; color: var(--fq-ink); }
.mfq2-step p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--fq-muted); }
@keyframes mfq2Float { 0%, 100% { transform: rotate(1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-8px); } }
@media (max-width: 900px) {
  .mfq2-hero { grid-template-columns: 1fr; padding: 36px 0 24px; gap: 28px; }
  .mfq2-preview { max-width: 420px; }
  .mfq2-steps { grid-template-columns: 1fr; }
  .mfq2-fact + .mfq2-fact { border-left: 0; border-top: 1px solid var(--fq-line); }
}
@media (max-width: 600px) {
  .mfq2-start { width: 100%; justify-content: center; }
  .mfq2-note { display: none; }
  .mfq2-course { width: 100%; justify-content: center; }
  .mfq2-preview { display: none; }
  .mfq2-lead { font-size: 16.5px; }
}

/* ── Quiz chrome ── */
@media (min-width: 1024px) {
  .mfq-quiz-progress-row { border-radius: 16px !important; margin-bottom: 16px !important; padding: 0 0 14px !important; box-shadow: 0 1px 3px rgba(0,0,0,.05); overflow: hidden; }
}
.mfq-progress { background: #edf1f5; }
.mfq-progress-bar { background: linear-gradient(90deg, var(--fq-brand), color-mix(in srgb, var(--fq-brand) 70%, #fff)) !important; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.mfq2-dots { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 24px 0; }
.mfq2-qdot { appearance: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--fq-line); background: #fff; font: 600 12.5px/1 inherit; color: var(--fq-muted); cursor: pointer; transition: transform .15s, border-color .15s; }
.mfq2-qdot:hover:not([disabled]) { transform: translateY(-1px); border-color: var(--fq-brand); }
.mfq2-qdot[disabled] { opacity: .45; cursor: default; }
/* Theme button styles (padding, block display) must not reach the question dots. */
.medexp-free-quiz button.mfq2-qdot { display: inline-grid !important; place-items: center; padding: 0 !important; min-height: 0 !important; line-height: 1 !important; }
.mfq2-qdot.is-ok { background: #e9f7ee; border-color: #b9e4c7; color: #13703a; }
.mfq2-qdot.is-bad { background: #fdeeee; border-color: #f4c3c3; color: #b42318; }
.mfq2-qdot.is-now { box-shadow: 0 0 0 2px var(--fq-brand); color: var(--fq-ink); border-color: var(--fq-brand); }
@media (max-width: 1023px) { .mfq2-dots { padding: 6px 16px 10px; gap: 5px; } .mfq2-qdot { width: 26px; height: 26px; font-size: 11.5px; border-radius: 8px; } }
.mfq-stem { font-size: 16.5px; line-height: 1.7; color: var(--fq-ink); }
.mfq-option { border-radius: 14px !important; transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
.mfq-option:hover:not(.mfq-option-correct):not(.mfq-option-incorrect) { border-color: var(--fq-brand) !important; transform: translateX(2px); }
.mfq-option-selected:not(.mfq-option-correct):not(.mfq-option-incorrect) { border-color: var(--fq-brand) !important; background: var(--fq-brand-bg) !important; }
.mfq-option-correct { border-color: var(--fq-ok) !important; background: linear-gradient(90deg, #edf8f1, #fff 85%) !important; box-shadow: inset 4px 0 0 var(--fq-ok); }
.mfq-option-incorrect { border-color: var(--fq-bad) !important; background: linear-gradient(90deg, #fdf0f0, #fff 85%) !important; box-shadow: inset 4px 0 0 var(--fq-bad); }
.mfq-option-incorrect .mfq-option-text { text-decoration: line-through; text-decoration-color: rgba(220,38,38,.45); }
.mfq-rationale { border-radius: 16px !important; border: 1px solid var(--fq-line) !important; background: #fff !important; box-shadow: 0 10px 30px -18px rgba(11,27,51,.25); overflow: hidden; padding: 0 !important; }
.mfq-rationale-header { padding: 12px 18px !important; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--fq-line); }
.mfq-rationale-correct .mfq-rationale-header { background: #edf8f1; color: #13703a; }
.mfq-rationale-incorrect .mfq-rationale-header { background: #fdf0f0; color: #b42318; }
.mfq-rationale-body { padding: 16px 18px !important; font-size: 15px !important; line-height: 1.7 !important; color: var(--fq-text); }
.mfq-rationale-body h2, .mfq-rationale-body h3, .mfq-rationale-body h4 { font-size: 12.5px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--fq-ink) !important; margin: 18px 0 6px !important; }
.mfq-rationale-body strong { color: var(--fq-ink); }
.mfq-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--fq-line); }

/* ── Results ── */
.mfq2.mfq-results { max-width: 980px; margin: 0 auto; padding-top: 32px; display: grid; gap: 20px; }
.mfq2-res-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--fq-line); box-shadow: 0 20px 50px -26px rgba(11,27,51,.3); }
.mfq2-res-hero .mfq-ring-wrap { position: relative; width: 150px; height: 150px; }
.mfq2-res-hero .mfq-ring-progress { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.mfq2-res-hero .mfq-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mfq2-res-hero .mfq-ring-pct { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--fq-ink); }
.mfq2-res-hero .mfq-ring-label { font-size: 13px; color: var(--fq-muted); font-weight: 600; }
.mfq2-res-title { margin: 14px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; font-weight: 800; color: var(--fq-ink); }
.mfq2-res-sub { margin: 8px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--fq-muted); max-width: 36em; }
.mfq2-res-stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.mfq2-res-stats b { display: block; font-size: 24px; font-weight: 800; color: var(--fq-ink); letter-spacing: -.02em; }
.mfq2-res-stats b.is-ok { color: var(--fq-ok); } .mfq2-res-stats b.is-bad { color: var(--fq-bad); }
.mfq2-res-stats span { font-size: 13px; color: var(--fq-muted); font-weight: 600; }
.mfq2-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--fq-line); }
.mfq2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mfq2-card-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; color: var(--fq-ink); }
.mfq2-focus { padding: 6px 12px; border-radius: 999px; background: #fff4e5; color: #8a5300; font-size: 13px; font-weight: 700; }
.mfq2-focus.is-ok { background: #e9f7ee; color: #13703a; }
.mfq2-muted { font-size: 13.5px; color: var(--fq-muted); }
.mfq2-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.mfq2-topic-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--fq-ink); font-weight: 600; margin-bottom: 6px; }
.mfq2-topic-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfq2-topic-top b { color: var(--fq-muted); font-variant-numeric: tabular-nums; }
.mfq2-bar { height: 9px; border-radius: 9px; background: #edf1f5; overflow: hidden; }
.mfq2-bar i { display: block; height: 100%; border-radius: 9px; animation: mfq2Grow .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes mfq2Grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mfq2-cta-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 30px; border-radius: 24px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--fq-brand) 45%, transparent), transparent 60%), #0d2147; }
.mfq2-cta-card h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; color: #fff; }
.mfq2-cta-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mfq2-cta-card li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,.85); }
.mfq2-cta-card li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; background: color-mix(in srgb, var(--fq-brand) 40%, transparent); color: #fff; }
.mfq2-cta-buy { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); text-align: center; }
.mfq2-price b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.mfq2-price span { font-size: 13.5px; color: rgba(255,255,255,.7); }
.mfq2-cta-buy .mfq-btn { width: 100%; justify-content: center; text-decoration: none; }
.mfq2-cta-buy .mfq-btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff !important; }
.mfq2-login { font-size: 13.5px; color: rgba(255,255,255,.75) !important; }
.mfq2-review { display: grid; gap: 8px; }
.mfq2-review-row { border: 1px solid var(--fq-line); border-radius: 14px; background: #fff; overflow: hidden; }
.mfq2-review-row[open] { box-shadow: 0 10px 30px -18px rgba(11,27,51,.25); }
.mfq2-review-row summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.mfq2-review-row summary::-webkit-details-marker { display: none; }
.mfq2-review-n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.is-ok .mfq2-review-n { background: #e9f7ee; color: #13703a; } .is-bad .mfq2-review-n { background: #fdeeee; color: #b42318; } .is-skip .mfq2-review-n { background: #f1f4f8; color: var(--fq-muted); }
.mfq2-review-q { flex: 1; min-width: 0; font-size: 14.5px; color: var(--fq-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfq2-review-tag { flex: none; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.is-ok .mfq2-review-tag { background: #e9f7ee; color: #13703a; } .is-bad .mfq2-review-tag { background: #fdeeee; color: #b42318; } .is-skip .mfq2-review-tag { background: #f1f4f8; color: var(--fq-muted); }
.mfq2-review-body { padding: 4px 18px 18px; border-top: 1px solid var(--fq-line); }
.mfq2-review-key { margin: 14px 0 6px; font-size: 14.5px; color: var(--fq-ink); }
.mfq2-review-body .mfq-rationale-body { padding: 0 !important; }
.mfq2-review-go { margin-top: 12px; }
.mfq2 .mfq-retake { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 40px; }
.mfq2 .mfq-retake .mfq-btn { text-decoration: none; }
@media (max-width: 760px) {
  .mfq2-res-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; }
  .mfq2-res-stats { justify-content: center; }
  .mfq2-topics { grid-template-columns: 1fr; }
  .mfq2-cta-card { grid-template-columns: 1fr; padding: 22px; }
  .mfq2-card { padding: 18px; }
  .mfq2-review-q { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (prefers-reduced-motion: reduce) { .mfq2-preview, .mfq2-bar i { animation: none; } }
/* When the theme already shows its own header (MPJE), keep ours as a slim exam bar. */
.mfq-has-site-header .mfq-header-logo { display: none; }
.mfq-has-site-header .mfq-header { position: relative; border-radius: 0 0 14px 14px; }
.mfq-has-site-header .mfq-header-title { text-align: left; align-items: flex-start; padding-left: 0; }
/* results fixes */
.mfq2-res-hero .mfq-ring-wrap { position: relative !important; width: 150px !important; height: 150px !important; margin: 0 !important; flex: none; }
.mfq2-res-hero .mfq-ring-svg { position: absolute !important; inset: 0 !important; width: 150px !important; height: 150px !important; margin: 0 !important; }
.mfq2-res-hero .mfq-ring-center { position: absolute !important; inset: 0 !important; top: 0 !important; left: 0 !important; transform: none !important; display: grid !important; place-content: center; }
.mfq2-cta-card h2 { line-height: 1.2 !important; }
.mfq2-cta-card li { display: flex; align-items: flex-start; gap: 10px; padding-left: 0 !important; line-height: 1.45; }
.mfq2-cta-card li::before { position: static !important; flex: none; margin-top: 1px; }
.mfq2-more { margin-top: 14px; appearance: none; background: none; border: 0; padding: 0; font: 600 14px inherit; color: var(--fq-brand-d); cursor: pointer; }
.mfq2-topic.is-hidden { display: none; }
.mfq2-step, .mfq2-fact, .mfq2-hero-copy { text-align: left; }

/* ── Header v2: full-width sticky bar with quiz progress ── */
html.medexp-standalone:not(:has(#wpadminbar)) { margin-top: 0 !important; }
.medexp-free-quiz .mfq-header { position: sticky; top: 0; z-index: 100; display: block !important; width: 100vw !important; margin: 0 calc(50% - 50vw) !important; padding: 0 !important; border: 0 !important; border-bottom: 1px solid var(--fq-line) !important; border-radius: 0 !important; background: rgba(255,255,255,.92) !important; backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(11,27,51,.02), 0 8px 24px -18px rgba(11,27,51,.25); }
.mfq-header-inner { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mfq-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mfq-header-logo img { height: 30px !important; width: auto; display: block; }
.mfq-header-sep { width: 1px; height: 28px; background: var(--fq-line); flex: none; }
.medexp-free-quiz .mfq-header-title { flex: none; display: flex; flex-direction: column; align-items: flex-start !important; text-align: left !important; gap: 1px; padding: 0 !important; font-size: 14.5px; font-weight: 700; color: var(--fq-ink); min-width: 0; }
.medexp-free-quiz .mfq-header-title > span:first-child { white-space: nowrap; }
.medexp-free-quiz .mfq-header-meaning { font-size: 12.5px !important; font-weight: 500; color: var(--fq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.mfq-header-score { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 12px; border-radius: 999px; background: #e9f7ee; color: #13703a; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mfq-header-score b { font-size: 15px; }
.mfq-header-progress { height: 3px; background: transparent; }
.mfq-header-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--fq-brand), color-mix(in srgb, var(--fq-brand) 60%, #fff)); transition: width .4s cubic-bezier(.2,.8,.2,1); border-radius: 0 3px 3px 0; }
.mfq-header.is-quiz .mfq-header-btn { color: var(--fq-muted) !important; }
@media (max-width: 760px) {
  .mfq-header-inner { height: 56px; padding: 0 16px; gap: 10px; }
  .mfq-header-logo img { height: 24px !important; }
  .mfq-header-sep { display: none; }
  .medexp-free-quiz .mfq-header-title { display: none; }
  .mfq-header.is-quiz .mfq-header-title { display: flex; }
  .mfq-header.is-quiz .mfq-header-logo { display: none; }
  .mfq-header-score { padding: 5px 10px; font-size: 12.5px; }
}
/* Theme header present (MPJE): no duplicate logo */
.mfq-has-site-header .mfq-header { position: relative; }
.mfq-has-site-header .mfq-header-logo, .mfq-has-site-header .mfq-header-sep { display: none !important; }
/* Site header present (MPJE): the theme header is the only top bar; the question card already shows progress */
.mfq-has-site-header .mfq-header { display: none !important; }

/* Start and Preview buttons share one height */
.mfq2-cta .mfq2-start { margin: 0 !important; box-sizing: border-box; height: 56px; padding: 0 28px; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1; }

/* ── Header v3 (landing): title + tag, quiet nav, one clear call to action ── */
.medexp-free-quiz .mfq-header-name { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; color: var(--fq-ink); }
.medexp-free-quiz .mfq-header-tag { font-style: normal; font-size: 12px; font-weight: 650; color: var(--fq-brand-d); background: var(--fq-brand-bg); border: 1px solid color-mix(in srgb, var(--fq-brand) 22%, #fff); padding: 3px 9px; border-radius: 999px; letter-spacing: 0; }
.medexp-free-quiz .mfq-header-meaning { max-width: 46vw; }
.mfq-header-nav { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.mfq-header-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--fq-text) !important; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.mfq-header-nav a:hover { background: #f1f4f8; color: var(--fq-ink) !important; }
.mfq-header-nav a:last-child { margin-left: 6px; padding-left: 18px; border-left: 1px solid var(--fq-line); border-radius: 0 8px 8px 0; }
.mfq-header-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; background: var(--fq-brand-d); color: #fff !important; font-size: 14.5px; font-weight: 700; text-decoration: none !important; white-space: nowrap; box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--fq-brand) 30%, transparent); transition: background .15s, transform .15s, box-shadow .15s; }
.mfq-header-cta:hover { background: color-mix(in srgb, var(--fq-brand) 70%, #000); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--fq-brand) 35%, transparent); }
.mfq-header-cta svg { transition: transform .15s; }
.mfq-header-cta:hover svg { transform: translateX(3px); }
.mfq-header-cta__short { display: none; }
.medexp-free-quiz .mfq-header-inner { height: 70px; }
@media (max-width: 1080px) { .mfq-header-nav a:not(:last-child) { display: none; } .mfq-header-nav a:last-child { border-left: 0; margin-left: 0; padding-left: 12px; } }
@media (max-width: 860px) { .medexp-free-quiz .mfq-header-tag { display: none; } }
@media (max-width: 760px) {
  .medexp-free-quiz .mfq-header-inner { height: 58px; }
  .mfq-header-cta { height: 38px; padding: 0 14px; font-size: 14px; }
  .mfq-header-cta__long { display: none; }
  .mfq-header-cta__short { display: inline; }
  .mfq-header-nav { margin-right: 0; }
  .mfq-header-nav a:last-child { padding: 8px 10px; }
}
/* Header CTA hover: keep white text, clean darker teal */
.medexp-free-quiz .mfq-header a.mfq-header-cta,
.medexp-free-quiz .mfq-header a.mfq-header-cta:hover,
.medexp-free-quiz .mfq-header a.mfq-header-cta:focus,
.medexp-free-quiz .mfq-header a.mfq-header-cta:visited { color: #fff !important; text-decoration: none !important; }
.medexp-free-quiz .mfq-header a.mfq-header-cta { background: #0f7c79 !important; }
.medexp-free-quiz .mfq-header a.mfq-header-cta:hover { background: #0c6966 !important; }
.medexp-free-quiz .mfq-header a.mfq-header-cta svg { stroke: currentColor; color: #fff; }
