.cm-quiz {
	--cm-primary: #2b5c4b;
	--cm-accent: #d8a657;
	--cm-bg: #faf7f2;
	--cm-card: #ffffff;
	--cm-text: #1f2421;
	--cm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--cm-font);
	color: var(--cm-text);
	background: var(--cm-bg);
	border-radius: 16px;
	padding: clamp(20px, 4vw, 48px);
	max-width: 760px;
	margin: 0 auto;
	box-sizing: border-box;
}
.cm-quiz * { box-sizing: border-box; }
.cm-card-wrap { background: var(--cm-card); border-radius: 14px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }

.cm-intro, .cm-result, .cm-lead { text-align: center; }
.cm-logo { max-height: 56px; width: auto; margin: 0 auto 18px; display: block; }
.cm-title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; line-height: 1.2; }
.cm-subtitle { font-size: 16px; opacity: .8; margin: 0 0 24px; line-height: 1.5; }

.cm-progress { height: 8px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
.cm-progress-bar { height: 100%; background: var(--cm-primary); transition: width .3s ease; }
.cm-progress-label { font-size: 13px; opacity: .6; margin: 8px 0 20px; text-align: right; }

.cm-question-text { font-size: clamp(19px, 2.4vw, 24px); margin: 0 0 22px; line-height: 1.3; }
.cm-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cm-answer {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	border: 2px solid rgba(0,0,0,.1); background: #fff; border-radius: 12px; padding: 18px 16px;
	font-size: 16px; cursor: pointer; transition: all .15s ease; color: var(--cm-text); text-align: center;
}
.cm-answer:hover { border-color: var(--cm-primary); transform: translateY(-2px); }
.cm-answer.is-selected { border-color: var(--cm-primary); background: color-mix(in srgb, var(--cm-primary) 8%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cm-primary) 20%, transparent); }
.cm-answer-img { max-width: 100%; height: 90px; object-fit: contain; }
.cm-answer-label { font-weight: 600; }

.cm-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
/* High specificity + !important so the theme (Elementor/global button styles) cannot override the colors chosen in the admin. */
.cm-quiz .cm-btn,
.cm-quiz a.cm-btn,
.cm-quiz button.cm-btn {
	border: none; border-radius: 99px; padding: 13px 28px; font-size: 16px; font-weight: 600;
	cursor: pointer; text-decoration: none; display: inline-block; transition: all .15s ease;
	font-family: inherit; line-height: 1.2; box-shadow: none;
}
.cm-quiz .cm-btn.cm-btn-primary,
.cm-quiz a.cm-btn.cm-btn-primary,
.cm-quiz button.cm-btn.cm-btn-primary {
	background: var(--cm-primary) !important;
	background-color: var(--cm-primary) !important;
	color: #fff !important;
	border: none !important;
}
.cm-quiz .cm-btn.cm-btn-primary:hover { filter: brightness(1.08); }
.cm-quiz .cm-btn.cm-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.cm-quiz .cm-btn.cm-btn-ghost,
.cm-quiz a.cm-btn.cm-btn-ghost,
.cm-quiz button.cm-btn.cm-btn-ghost {
	background: transparent !important;
	color: var(--cm-text) !important;
	border: 2px solid rgba(0,0,0,.15) !important;
}
.cm-quiz .cm-btn.cm-btn-ghost:hover { border-color: var(--cm-primary) !important; }
.cm-quiz .cm-btn.cm-btn-ghost:disabled { opacity: .35; cursor: not-allowed; }

.cm-input { width: 100%; padding: 13px 16px; border: 2px solid rgba(0,0,0,.12); border-radius: 10px; font-size: 16px; margin-bottom: 12px; font-family: inherit; }
.cm-input:focus { outline: none; border-color: var(--cm-primary); }
.cm-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; text-align: left; opacity: .8; margin-bottom: 8px; }
.cm-error { color: #b32d2e; font-size: 14px; margin: 6px 0; }
.cm-loading { text-align: center; font-size: 32px; padding: 40px; letter-spacing: 4px; opacity: .5; }

.cm-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 24px 0; }
.cm-product { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 18px; text-align: center; background: #fff; }
.cm-product-img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 12px; }
.cm-product-name { font-size: 18px; margin: 0 0 6px; }
.cm-product-price { font-size: 17px; font-weight: 700; color: var(--cm-primary); margin-bottom: 8px; }
.cm-product-desc { font-size: 14px; opacity: .75; margin: 0 0 16px; line-height: 1.4; }

@media (max-width: 520px) {
	.cm-nav { flex-direction: column-reverse; }
	.cm-btn { width: 100%; text-align: center; }
}
