/* Quiz for Marketo - Sovos Mosaic tokens. Override any --mqm-* variable from your theme. */
.mqm-quiz {
	--mqm-blue: #015fff;
	--mqm-blue-dark: #004ed1;
	--mqm-navy: #072448;
	--mqm-text: #212121;
	--mqm-muted: #5c5c5c;
	--mqm-border: #dedede;
	--mqm-error: #e01616;
	--mqm-success: #1b7a3a;
	--mqm-bg: #fff;
	--mqm-soft: #f5f7fa;
	--mqm-radius: 4px;
	--mqm-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mqm-heading-font: Montserrat, var(--mqm-font);

	box-sizing: border-box;
	max-width: 720px;
	margin: 24px auto;
	font-family: var(--mqm-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--mqm-text);
}
.mqm-quiz *, .mqm-quiz *::before, .mqm-quiz *::after { box-sizing: inherit; }

.mqm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mqm-card {
	background: var(--mqm-bg);
	border: 1px solid var(--mqm-border);
	border-radius: 8px;
	padding: 24px;
}
@media (min-width: 600px) { .mqm-card { padding: 32px; } }

.mqm-anim { animation: mqm-in .25s ease-out both; }
@keyframes mqm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.mqm-anim { animation: none; }
	.mqm-progress__fill, .mqm-btn, .mqm-option__label { transition: none !important; }
}

.mqm-title, .mqm-subtitle, .mqm-question {
	font-family: var(--mqm-heading-font);
	color: var(--mqm-navy);
	font-weight: 600;
	margin: 0 0 16px;
	line-height: 1.3;
}
.mqm-title { font-size: 24px; }
.mqm-subtitle { font-size: 18px; }
.mqm-question { font-size: 20px; padding: 0; float: left; width: 100%; }
.mqm-question + * { clear: both; }
.mqm-title:focus, .mqm-question:focus { outline: none; }

.mqm-intro, .mqm-description { margin: 0 0 24px; font-size: 16px; }
.mqm-hint { margin: 0 0 16px; color: var(--mqm-muted); }

/* Progress */
.mqm-progress { margin-bottom: 24px; }
.mqm-progress__label { font-size: 12px; font-weight: 600; color: var(--mqm-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.mqm-progress__bar { height: 8px; background: var(--mqm-border); border-radius: 4px; overflow: hidden; }
.mqm-progress__fill { height: 100%; background: var(--mqm-blue); border-radius: 4px; transition: width .3s ease; }

/* Options */
.mqm-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mqm-options { display: grid; gap: 8px; margin-bottom: 24px; }
.mqm-option { position: relative; }
.mqm-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mqm-option__label {
	display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px;
	border: 1px solid var(--mqm-border); border-radius: var(--mqm-radius); background: var(--mqm-bg);
	cursor: pointer; transition: border-color .15s, background-color .15s;
}
.mqm-option__label::before {
	content: ""; flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid #8a8a8a; background: #fff; border-radius: 50%;
}
input[type="checkbox"].mqm-input + .mqm-option__label::before { border-radius: 4px; }
.mqm-option__label:hover { border-color: var(--mqm-navy); }
.mqm-input:checked + .mqm-option__label { border-color: var(--mqm-navy); background: var(--mqm-soft); box-shadow: inset 0 0 0 1px var(--mqm-navy); }
.mqm-input:checked + .mqm-option__label::before { border-color: var(--mqm-blue); background: radial-gradient(circle, var(--mqm-blue) 0 45%, #fff 50%); }
input[type="checkbox"].mqm-input:checked + .mqm-option__label::before { background: var(--mqm-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.mqm-input:focus-visible + .mqm-option__label { outline: 3px solid var(--mqm-blue); outline-offset: 2px; }

/* Buttons - one primary action per screen */
.mqm-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 8px; }
.mqm-actions--end { justify-content: flex-end; margin-top: 24px; }
.mqm-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px;
	font: 600 14px/1 var(--mqm-font); border-radius: var(--mqm-radius); border: 1px solid transparent;
	cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.mqm-btn:focus-visible { outline: 3px solid var(--mqm-blue); outline-offset: 2px; }
.mqm-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mqm-btn--primary { background: var(--mqm-blue); color: #fff; }
.mqm-btn--primary:hover:not([disabled]) { background: var(--mqm-blue-dark); color: #fff; }
.mqm-btn--secondary { background: #fff; color: var(--mqm-navy); border-color: var(--mqm-navy); }
.mqm-btn--secondary:hover:not([disabled]) { background: var(--mqm-soft); }
.mqm-btn--tertiary { background: transparent; color: var(--mqm-navy); padding: 0 12px; }
.mqm-btn--tertiary:hover:not([disabled]) { background: var(--mqm-soft); }

/* Forms */
.mqm-form { display: grid; gap: 16px; }
@media (min-width: 600px) { .mqm-form { grid-template-columns: 1fr 1fr; } .mqm-field--consent, .mqm-form .mqm-error, .mqm-form .mqm-actions, .mqm-field:has(input[name="email"]) { grid-column: 1 / -1; } }
.mqm-label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--mqm-navy); }
.mqm-text {
	width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--mqm-text);
	border: 1px solid var(--mqm-border); border-radius: var(--mqm-radius); background: #fff;
}
.mqm-text:focus { outline: 3px solid var(--mqm-blue); outline-offset: 0; border-color: var(--mqm-blue); }
.mqm-field-error, .mqm-error { color: var(--mqm-error); font-size: 13px; }
.mqm-field-error:not(:empty) { margin-top: 4px; }
.mqm-field--consent .mqm-option__label { font-size: 13px; min-height: 0; border: 0; padding: 0; background: none; box-shadow: none; align-items: flex-start; }
.mqm-field--consent .mqm-option__label::before { margin-top: 1px; }
.mqm-field--consent .mqm-input:checked + .mqm-option__label { background: none; box-shadow: none; }
.mqm-success { color: var(--mqm-success); font-weight: 600; margin: 0; }

/* Results */
.mqm-score { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 16px; background: var(--mqm-soft); color: var(--mqm-navy); font-weight: 600; }
.mqm-lead { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mqm-border); }
.mqm-notice { padding: 12px 16px; border: 1px dashed var(--mqm-border); border-radius: var(--mqm-radius); }

/* ======================================================================
   Template building blocks
   ====================================================================== */
.mqm-logo { display: block; height: 28px; width: auto; margin: 0 0 20px; }
.mqm-emoji { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.mqm-eyebrow { font: 600 12px/1 var(--mqm-font); letter-spacing: .08em; text-transform: uppercase; color: var(--mqm-blue); margin-bottom: 12px; }
.mqm-title--hero { font-size: 28px; }
@media (min-width: 768px) { .mqm-title--hero { font-size: 34px; } }
.mqm-note { padding: 12px 16px; margin: 0 0 24px; background: var(--mqm-soft); border-left: 3px solid var(--mqm-navy); border-radius: 0 var(--mqm-radius) var(--mqm-radius) 0; font-size: 13px; }

.mqm-checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.mqm-checks li { position: relative; padding-left: 28px; }
.mqm-checks li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--mqm-blue)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M4 8.4l2.6 2.4L12 5.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.mqm-stat { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; padding: 16px 20px; background: var(--mqm-navy); color: #fff; border-radius: var(--mqm-radius); }
.mqm-stat__value { font: 700 32px/1 var(--mqm-heading-font); }
.mqm-stat__label { font-size: 14px; opacity: .9; }
.mqm-quote { margin: 0 0 24px; padding: 0 0 0 16px; border-left: 3px solid var(--mqm-blue); font-size: 16px; font-style: italic; }
.mqm-quote p { margin: 0 0 8px; }
.mqm-quote footer { font-size: 13px; font-style: normal; font-weight: 600; color: var(--mqm-muted); }

/* Intro layouts */
.mqm-introcard { overflow: hidden; }
.mqm-introcard--split { display: grid; gap: 24px; padding: 0; }
.mqm-introcard--split .mqm-intro__body { padding: 24px; }
.mqm-media { display: block; width: 100%; height: auto; }
.mqm-media--inline { max-width: 100%; margin-top: 16px; border-radius: var(--mqm-radius); }
.mqm-media--deco { min-height: 200px; background: linear-gradient(135deg, var(--mqm-navy), var(--mqm-blue)); }
.mqm-introcard--split img.mqm-media { object-fit: cover; height: 100%; min-height: 200px; }
@media (min-width: 768px) {
	.mqm-introcard--split { grid-template-columns: 1.2fr 1fr; }
	.mqm-introcard--split .mqm-intro__body { padding: 40px; }
}
.mqm-actions--start { justify-content: flex-start; }
.mqm-introcard--headline { background: var(--mqm-navy); border-color: var(--mqm-navy); color: #fff; padding: 40px 24px; }
.mqm-introcard--headline .mqm-title, .mqm-introcard--headline .mqm-subtitle { color: #fff; }
.mqm-introcard--headline .mqm-title--hero { font-size: 32px; }
@media (min-width: 768px) { .mqm-introcard--headline .mqm-title--hero { font-size: 40px; } }
.mqm-introcard--headline .mqm-note { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.mqm-introcard--explainer .mqm-intro__body { max-width: 640px; }

/* Language picker */
.mqm-lang { text-align: center; }
.mqm-lang .mqm-logo { margin-left: auto; margin-right: auto; }
.mqm-lang__options { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 600px) { .mqm-lang__options { grid-template-columns: 1fr 1fr; } }
.mqm-lang__btn { display: grid; gap: 4px; padding: 20px 16px; font: inherit; text-align: center; cursor: pointer; background: #fff; border: 1px solid var(--mqm-border); border-radius: var(--mqm-radius); color: var(--mqm-navy); transition: border-color .15s, background-color .15s; }
.mqm-lang__btn:hover { border-color: var(--mqm-navy); background: var(--mqm-soft); }
.mqm-lang__btn:focus-visible { outline: 3px solid var(--mqm-blue); outline-offset: 2px; }
.mqm-lang__btn strong { font: 600 18px/1.2 var(--mqm-heading-font); }
.mqm-lang__btn span { font-size: 13px; color: var(--mqm-muted); }

/* Progress variants */
.mqm-progress__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.mqm-progress__label { font-size: 12px; font-weight: 600; color: var(--mqm-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.mqm-progress__pct { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--mqm-navy); }
.mqm-scoreboard { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--mqm-navy); background: var(--mqm-soft); padding: 2px 10px; border-radius: 12px; }
.mqm-progress__bar--thin { height: 4px; }
.mqm-progress--minimal .mqm-progress__label { font-size: 14px; color: var(--mqm-navy); }
.mqm-dots, .mqm-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.mqm-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--mqm-border); }
.mqm-dots li.is-done { background: var(--mqm-navy); }
.mqm-dots li.is-current { background: var(--mqm-blue); box-shadow: 0 0 0 4px rgba(1, 95, 255, .2); }
.mqm-steps { flex-wrap: wrap; }
.mqm-steps li { flex: 1 1 0; min-width: 22px; height: 28px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--mqm-muted); background: var(--mqm-soft); border-radius: var(--mqm-radius); }
.mqm-steps li.is-done { background: var(--mqm-navy); color: #fff; }
.mqm-steps li.is-current { background: var(--mqm-blue); color: #fff; }

/* Gate */
.mqm-gate__head { text-align: left; }
.mqm-gate__text { margin: 0 0 16px; color: var(--mqm-muted); font-size: 15px; }
.mqm-gate__grid { display: grid; gap: 24px; }
.mqm-gate__side { padding: 20px; background: var(--mqm-soft); border-radius: var(--mqm-radius); align-self: start; }
.mqm-gate__side .mqm-checks { margin: 0; }
@media (min-width: 768px) { .mqm-gate--split .mqm-gate__grid { grid-template-columns: 1.4fr 1fr; } .mqm-gate--split .mqm-gate__side { order: 2; } }

/* Result visuals */
.mqm-result__visual:not(:empty) { margin-bottom: 16px; }
.mqm-ring { position: relative; width: 160px; height: 160px; }
.mqm-ring__svg { width: 100%; height: 100%; }
.mqm-ring__track, .mqm-ring__fill { fill: none; stroke-width: 10; }
.mqm-ring__track { stroke: var(--mqm-border); }
.mqm-ring__fill { stroke: var(--mqm-blue); stroke-linecap: round; animation: mqm-ring 1s ease-out both; }
@keyframes mqm-ring { from { stroke-dashoffset: 327; } }
@media (prefers-reduced-motion: reduce) { .mqm-ring__fill { animation: none; } }
.mqm-ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.mqm-ring__center strong { font: 700 36px/1 var(--mqm-heading-font); color: var(--mqm-navy); }
.mqm-ring__center span { font-size: 13px; color: var(--mqm-muted); }

.mqm-levels__caption { font: 600 12px/1 var(--mqm-font); text-transform: uppercase; letter-spacing: .06em; color: var(--mqm-muted); margin-bottom: 12px; }
.mqm-levels { position: relative; }
.mqm-levels__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mqm-levels__item { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; color: var(--mqm-muted); }
.mqm-levels__name { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.mqm-levels__item.is-active .mqm-levels__name { color: var(--mqm-navy); font-weight: 700; }

/* level style: numbered steps */
.mqm-levels--level .mqm-levels__dot { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; background: var(--mqm-soft); border: 2px solid var(--mqm-border); font-weight: 700; color: var(--mqm-muted); }
.mqm-levels--level .is-past .mqm-levels__dot { background: var(--mqm-navy); border-color: var(--mqm-navy); color: #fff; }
.mqm-levels--level .is-active .mqm-levels__dot { background: var(--mqm-blue); border-color: var(--mqm-blue); color: #fff; box-shadow: 0 0 0 4px rgba(1, 95, 255, .2); }

/* gauge style: segmented risk bar with marker (muted status tones) */
.mqm-levels--gauge { padding-top: 14px; }
.mqm-levels--gauge .mqm-levels__track { gap: 3px; }
.mqm-levels--gauge .mqm-levels__dot { display: block; height: 12px; border-radius: 6px; background: var(--mqm-border); }
.mqm-levels--gauge .mqm-levels__item--0 .mqm-levels__dot { background: #e9a0a1; }
.mqm-levels--gauge .mqm-levels__item--1 .mqm-levels__dot { background: #f3c48b; }
.mqm-levels--gauge .mqm-levels__item--2 .mqm-levels__dot { background: #efd98b; }
.mqm-levels--gauge .mqm-levels__item--3 .mqm-levels__dot { background: #b6d6a3; }
.mqm-levels--gauge .mqm-levels__item--4 .mqm-levels__dot { background: #7fb96a; }
.mqm-levels--gauge .mqm-levels__item:not(.is-active) .mqm-levels__dot { opacity: .55; }
.mqm-levels__marker { position: absolute; top: 0; left: var(--mqm-pos, 50%); width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--mqm-navy); border-bottom: 0; }

/* Action panel */
.mqm-panel { margin-top: 24px; padding: 24px; background: var(--mqm-navy); color: #fff; border-radius: 8px; }
.mqm-panel__title { font: 600 20px/1.3 var(--mqm-heading-font); margin: 0 0 8px; color: #fff; }
.mqm-panel__text { margin: 0 0 16px; opacity: .9; }
.mqm-btn--light { background: transparent; color: #fff; border-color: #fff; }
.mqm-btn--light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ======================================================================
   Per-template flavour
   ====================================================================== */
.mqm-tpl--audit-readiness .mqm-card { border-top: 4px solid var(--mqm-navy); }
.mqm-tpl--audit-readiness .mqm-introcard { text-align: center; }
.mqm-tpl--audit-readiness .mqm-checks { max-width: 420px; margin-left: auto; margin-right: auto; text-align: left; }
.mqm-tpl--audit-readiness .mqm-actions--start { justify-content: center; }

.mqm-tpl--split-hero .mqm-card, .mqm-tpl--risk-gauge .mqm-card { border-radius: 12px; }

.mqm-tpl--bilingual-scorecard .mqm-card { border-color: #cfd8e6; box-shadow: 0 1px 2px rgba(7, 36, 72, .06); }
.mqm-tpl--bilingual-scorecard .mqm-introcard { text-align: center; }
.mqm-tpl--bilingual-scorecard .mqm-logo { margin-left: auto; margin-right: auto; }
.mqm-tpl--bilingual-scorecard .mqm-actions--start { justify-content: center; }

.mqm-tpl--data-scrutiny .mqm-card { border-radius: 0; }
.mqm-tpl--data-scrutiny .mqm-qcard { border-top: 4px solid var(--mqm-blue); }
.mqm-tpl--data-scrutiny .mqm-question { font-size: 24px; }

.mqm-tpl--tax-reform-diagnostic .mqm-card { border-left: 4px solid var(--mqm-blue); }
.mqm-tpl--tax-reform-diagnostic .mqm-introcard .mqm-intro { font-size: 15px; }

.mqm-tpl--maturity-levels .mqm-card { background: var(--mqm-soft); border-color: transparent; }
.mqm-tpl--maturity-levels .mqm-option__label, .mqm-tpl--maturity-levels .mqm-text { background: #fff; }

.mqm-tpl--compact-steps { max-width: 560px; }
.mqm-tpl--compact-steps .mqm-card { padding: 20px; border-radius: 6px; }
.mqm-tpl--compact-steps .mqm-question { font-size: 18px; }

.mqm-tpl--guided-single .mqm-options { grid-template-columns: 1fr; }
@media (min-width: 600px) { .mqm-tpl--guided-single .mqm-options { grid-template-columns: 1fr 1fr; } }
.mqm-tpl--guided-single .mqm-option__label { min-height: 72px; font-size: 15px; font-weight: 500; }
.mqm-tpl--guided-single .mqm-introcard { text-align: center; }
.mqm-tpl--guided-single .mqm-actions--start { justify-content: center; }

.mqm-tpl--regulatory-explainer .mqm-card { border-radius: 4px; border-color: #cfd8e6; }

.mqm-tpl--risk-gauge .mqm-introcard--split .mqm-media--deco { background: linear-gradient(135deg, #7a3738, #e26668 40%, #f0d354 70%, #689f50); }
