/**
 * 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;
}

/* ─── 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: #179d99;
	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: #179d99; color: #179d99; }

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

.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;
	gap: 0;
	max-width: 100%;
	margin: 0;
}

/* ── Hero — compact, CTA included ── */
.mfq-intro-hero {
	width: calc(100% + 48px);
	margin: 0 -24px;
	padding: 28px 24px 24px;
	background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 40%, #e0f2fe 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	position: relative;
	overflow: hidden;
}
.mfq-intro-hero::before {
	content: '';
	position: absolute;
	top: -60%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(23,157,153,0.08) 0%, transparent 70%);
	pointer-events: none;
}
.mfq-intro-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 24px;
	background: linear-gradient(to bottom, transparent, #f5f7fa);
}

.mfq-intro-hero-top {
	display: flex;
	align-items: center;
	gap: 12px;
	animation: mfqFadeUp 0.4s ease-out;
}

.mfq-intro-badge {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, #179d99 0%, #162c55 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(23,157,153,0.3);
	animation: mfqBadgeFloat 3s ease-in-out infinite 1s;
	flex-shrink: 0;
}
.mfq-intro-badge-letter {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
}

.mfq-intro-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	background: rgba(23,157,153,0.1);
	color: #117673;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 20px;
	border: 1px solid rgba(23,157,153,0.2);
}

.mfq-intro-title {
	font-size: 28px;
	font-weight: 800;
	color: #162c55;
	margin: 0;
	line-height: 1.2;
	max-width: 500px;
	animation: mfqFadeUp 0.5s ease-out;
}

.mfq-intro-sub {
	font-size: 14px;
	color: #475569;
	margin: 0;
	max-width: 460px;
	line-height: 1.5;
	animation: mfqFadeUp 0.6s ease-out;
}

.mfq-intro-start-btn {
	margin-top: 4px;
	min-width: 280px;
	font-size: 17px !important;
	padding: 16px 36px !important;
	border-radius: 14px !important;
	animation: mfqFadeUp 0.7s ease-out;
	position: relative;
	z-index: 1;
	overflow: hidden;
}
.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.25) 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: 12px;
	color: #64748b;
	margin: 0;
	animation: mfqFadeUp 0.75s ease-out;
}

/* ── Feature Cards — 3-column grid ── */
.mfq-intro-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	width: 100%;
	max-width: 680px;
	padding: 24px 16px 0;
}
.mfq-intro-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 18px 14px;
	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);
	border: 1px solid #f1f5f9;
	transition: all 0.25s ease;
	animation: mfqFadeUp 0.5s ease-out backwards;
}
.mfq-intro-feature:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(23,157,153,0.1);
	border-color: #ccfbf1;
}
.mfq-intro-feature-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0fdfa 0%, #e0f7f5 100%);
	border-radius: 12px;
	flex-shrink: 0;
	color: #179d99;
}
.mfq-intro-feature-title {
	font-size: 14px;
	font-weight: 700;
	color: #162c55;
}
.mfq-intro-feature-desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

/* ── Bottom bar: social proof + testimonial side by side ── */
.mfq-intro-bottom {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	max-width: 680px;
	padding: 20px 16px 16px;
}

.mfq-intro-trust {
	flex: 1;
	padding: 14px 18px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	border-left: 3px solid #179d99;
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.mfq-intro-trust-quote {
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
	font-style: italic;
}
.mfq-intro-trust-author {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
	margin-top: 4px;
}
.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, #179d99, #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 #179d99;
}

/* 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;
	width: 100%;
	box-sizing: border-box;
}
.mfq-option:hover:not(.mfq-option-correct):not(.mfq-option-incorrect) {
	border-color: #179d99;
	background: #f0fdfa;
}
.mfq-option-selected {
	border-color: #179d99;
	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: #179d99;
	color: #fff;
	border-color: #179d99;
}
.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: #179d99;
	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: #179d99;
	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: #179d99;
	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: #179d99;
	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: #179d99;
	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: #179d99 !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 #179d99;
	outline-offset: 2px;
}

/* ─── Social Proof (Intro) ───────────────────────────────── */
.mfq-intro-social-proof {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 32px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
	max-width: 420px;
	width: 100%;
	justify-content: center;
}
.mfq-proof-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex: 1;
}
.mfq-proof-number {
	font-size: 22px;
	font-weight: 800;
	color: #179d99;
	line-height: 1.1;
}
.mfq-proof-label {
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.mfq-proof-divider {
	width: 1px;
	height: 32px;
	background: #e2e8f0;
	flex-shrink: 0;
}

/* ─── 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, #179d99, #3bc6c2);
	border-radius: 10px;
	animation: mfqPercentileFill 1s ease-out;
}
.mfq-percentile-marker {
	position: absolute;
	top: -5px;
	width: 20px;
	height: 20px;
	background: #179d99;
	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: #179d99;
}

/* ─── 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: #179d99;
	border-color: #179d99;
}
.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: 10px;
	}
	.mfq-intro-hero {
		width: calc(100% + 16px);
		margin: 0 -8px;
		padding: 20px 16px 18px;
		gap: 8px;
	}
	.mfq-intro-title {
		font-size: 22px;
	}
	.mfq-intro-sub {
		font-size: 13px;
	}
	.mfq-intro-badge {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}
	.mfq-intro-badge-letter {
		font-size: 20px;
	}
	.mfq-intro-pill {
		font-size: 10px;
		padding: 3px 10px;
	}
	.mfq-intro-start-btn {
		font-size: 15px !important;
		padding: 14px 28px !important;
		min-width: 240px;
	}
	.mfq-intro-hint {
		font-size: 11px;
	}
	/* Features: stack to single column on mobile */
	.mfq-intro-features {
		grid-template-columns: 1fr;
		max-width: 100%;
		padding: 12px 8px 0;
		gap: 10px;
	}
	.mfq-intro-feature {
		flex-direction: row;
		text-align: left;
		padding: 12px 14px;
		gap: 10px;
	}
	.mfq-intro-feature-icon {
		width: 36px;
		height: 36px;
	}
	.mfq-intro-feature-icon svg {
		width: 20px;
		height: 20px;
	}
	.mfq-intro-feature-title { font-size: 13px; }
	.mfq-intro-feature-desc { font-size: 11px; }
	/* Bottom bar: stack vertically on mobile */
	.mfq-intro-bottom {
		flex-direction: column;
		padding: 10px 8px 8px;
		gap: 10px;
	}
	.mfq-intro-trust {
		padding: 12px 14px;
	}
	.mfq-intro-trust-quote { font-size: 11px; }
	.mfq-intro-trust-author { font-size: 10px; }
	.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; }
	/* Mobile: social proof */
	.mfq-intro-social-proof {
		gap: 12px;
		padding: 14px 16px;
	}
	.mfq-proof-number { font-size: 18px; }
	.mfq-proof-label { font-size: 10px; }
	.mfq-proof-divider { height: 24px; }
	/* 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; }
}
