/* CXpert CX Maturity Check. Uses the CXpert 2026 theme colours when present. */
.cxmc {
	--cxmc-navy: var(--wp--preset--color--navy, #2B2470);
	--cxmc-teal: var(--wp--preset--color--teal, #00B4D8);
	--cxmc-teal-dark: var(--wp--preset--color--teal-dark, #00708A);
	--cxmc-ink: var(--wp--preset--color--ink, #1B1A2E);
	--cxmc-slate: var(--wp--preset--color--slate, #3D3B52);
	--cxmc-muted: var(--wp--preset--color--muted, #5A5870);
	--cxmc-cream: var(--wp--preset--color--cream, #F7F6F2);
	--cxmc-line: var(--wp--preset--color--line, #E4E2DA);
	--cxmc-serif: var(--wp--preset--font-family--newsreader, Georgia, serif);
	max-width: 820px;
	margin: 0 auto;
	color: var(--cxmc-ink);
}
.cxmc *, .cxmc *::before, .cxmc *::after { box-sizing: border-box; }
.cxmc-card { background: #fff; border: 1px solid var(--cxmc-line); border-radius: 8px; padding: clamp(1.25rem, 4vw, 2.5rem); margin: 0 0 1.5rem; }
.cxmc-eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cxmc-teal-dark); margin: 0 0 0.5rem; }
.cxmc-h { font-family: var(--cxmc-serif); font-weight: 500; color: var(--cxmc-navy); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.12; margin: 0 0 0.75rem; outline: none; }
.cxmc-h2, .cxmc-h3 { font-family: var(--cxmc-serif); font-weight: 500; color: var(--cxmc-navy); line-height: 1.2; margin: 0 0 0.5rem; }
.cxmc-h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.cxmc-h3 { font-size: 1.375rem; margin-top: 1.75rem; }
.cxmc-lede { font-size: 1.125rem; color: var(--cxmc-slate); margin: 0 0 1.5rem; }
.cxmc-small { font-size: 0.9rem; color: var(--cxmc-muted); }
.cxmc-ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.cxmc-ticks li { position: relative; padding-left: 30px; margin-bottom: 0.6rem; }
.cxmc-ticks li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 13px; height: 7px; border-left: 2.5px solid var(--cxmc-teal-dark); border-bottom: 2.5px solid var(--cxmc-teal-dark); transform: rotate(-45deg); }

/* Progress */
.cxmc-progress { height: 6px; background: var(--cxmc-line); border-radius: 3px; overflow: hidden; margin: 0 0 1rem; }
.cxmc-progress span { display: block; height: 100%; background: var(--cxmc-teal); transition: width 0.3s; }

/* Questions */
.cxmc-q { border: 0; padding: 0; margin: 0 0 2rem; }
.cxmc-q legend { font-weight: 600; font-size: 1.0625rem; line-height: 1.5; margin: 0 0 0.75rem; padding: 0; }
.cxmc-qnum { color: var(--cxmc-teal-dark); }
.cxmc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.5rem; }
.cxmc-opt { position: relative; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem 0.75rem 2.6rem; border: 1.5px solid var(--cxmc-line); border-radius: 6px; cursor: pointer; min-height: 44px; background: #fff; transition: border-color 0.15s, background 0.15s; }
.cxmc-opt:hover { border-color: var(--cxmc-navy); }
.cxmc-opt input { position: absolute; left: 0.9rem; top: 0.95rem; width: 18px; height: 18px; margin: 0; accent-color: var(--cxmc-navy); }
.cxmc-opt input:focus-visible { outline: 2px solid var(--cxmc-teal-dark); outline-offset: 2px; }
.cxmc-opt.is-checked { border-color: var(--cxmc-navy); background: #F1F0F8; }
.cxmc-opt.is-unsure { border-style: dashed; }
.cxmc-opt-label { font-weight: 600; font-size: 0.95rem; }
.cxmc-opt-help { font-size: 0.85rem; color: var(--cxmc-muted); line-height: 1.4; }

/* Buttons */
.cxmc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; margin-top: 1rem; }
.cxmc-intro .cxmc-actions, .cxmc-cta .cxmc-actions { justify-content: flex-start; }
.cxmc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.6rem; border-radius: 6px; border: 1.5px solid var(--cxmc-navy); background: var(--cxmc-navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.cxmc-btn:hover { background: #1E1A52; color: #fff; }
.cxmc-btn.is-outline { background: transparent; color: var(--cxmc-navy); }
.cxmc-btn.is-outline:hover { background: #F1F0F8; }
.cxmc-btn:disabled { opacity: 0.6; cursor: default; }
.cxmc-btn:focus-visible { outline: 2px solid var(--cxmc-teal-dark); outline-offset: 3px; }
.cxmc-error { color: #A4262C; font-weight: 600; min-height: 1.5em; margin: 0; }
.cxmc-error:empty { min-height: 0; }

/* Results */
.cxmc-score { background: var(--cxmc-navy); color: #D6D4EA; border-radius: 8px; padding: clamp(1.25rem, 4vw, 2rem); margin-bottom: 1.5rem; }
.cxmc-score .cxmc-eyebrow { color: var(--cxmc-teal); }
.cxmc-score .cxmc-h { color: #fff; }
.cxmc-score p:last-child { margin: 0; }
.cxmc-big { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; }
.cxmc-of { font-size: 1.25rem; color: #D6D4EA; margin-right: 0.5rem; }
.cxmc-bars { list-style: none; padding: 0; margin: 0 0 1rem; }
.cxmc-bars li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 7.5rem; gap: 0.75rem; align-items: center; padding: 0.4rem 0; font-size: 0.95rem; }
.cxmc-bar { height: 10px; background: #ECEAF3; border-radius: 5px; overflow: hidden; }
.cxmc-bar span { display: block; height: 100%; background: var(--cxmc-navy); border-radius: 5px; }
.cxmc-bar-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.cxmc-bar-val em { font-style: normal; font-weight: 400; color: var(--cxmc-muted); }
@media (max-width: 560px) {
	.cxmc-bars li { grid-template-columns: 1fr auto; }
	.cxmc-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Form */
.cxmc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.cxmc-field { margin: 0 0 1rem; }
.cxmc-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.cxmc-opt-note { font-weight: 400; color: var(--cxmc-muted); }
.cxmc-field input, .cxmc-field select { width: 100%; min-height: 46px; padding: 0.6rem 0.75rem; border: 1.5px solid #C9C6D6; border-radius: 6px; font: inherit; background: #fff; color: var(--cxmc-ink); }
.cxmc-field input:focus, .cxmc-field select:focus { outline: 2px solid var(--cxmc-teal-dark); outline-offset: 1px; border-color: var(--cxmc-navy); }
.cxmc-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.cxmc-check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--cxmc-navy); flex-shrink: 0; }
.cxmc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Done */
.cxmc-prios { padding-left: 0; list-style: none; counter-reset: p; }
.cxmc-prios li { background: var(--cxmc-cream); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.cxmc-prios li p { margin: 0 0 0.35rem; }
.cxmc-prio-q { font-size: 0.9rem; color: var(--cxmc-muted); }
.cxmc-cta { border-top: 1px solid var(--cxmc-line); margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .cxmc-progress span { transition: none; } }
.cxmc-req { color: #B42318; font-weight: 700; }
.cxmc-req-note { margin: 0 0 0.75rem; }
.cxmc-field textarea { display: block; width: 100%; min-height: 140px; padding: 0.6rem 0.75rem; border: 1.5px solid #C9C6D6; border-radius: 6px; font: inherit; background: #fff; color: var(--cxmc-ink); resize: vertical; }
.cxmc-field textarea:focus { outline: 2px solid var(--cxmc-teal-dark); outline-offset: 1px; border-color: var(--cxmc-navy); }
.cxmc-contact { max-width: 760px; }

/* Sign-up box */
.cxmc-signup { margin: 2.5rem 0 0; }
.cxmc-signup .cxmc-card { background: var(--cxmc-cream); border-color: var(--cxmc-line); }
.cxmc-signup-h { font-family: var(--cxmc-serif); font-size: 1.4rem; font-weight: 600; color: var(--cxmc-navy); margin: 0 0 0.25rem; }
.cxmc-signup-text { margin: 0 0 1rem; }
.cxmc-signup-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0 0.75rem; align-items: end; }
.cxmc-signup-row .cxmc-field, .cxmc-signup-go { margin: 0 0 0.75rem; }
.cxmc-signup-legal { margin: 0.25rem 0 0; font-size: 0.8rem; }
@media (max-width: 640px) { .cxmc-signup-row { grid-template-columns: 1fr; } .cxmc-signup-go .cxmc-btn { width: 100%; } }
