/* Front-end do quiz — Assessment Builder. */

.asmt-quiz {
	--asmt-accent: #c8102e;
	--asmt-ink: #1f2430;
	--asmt-muted: #6b7280;
	--asmt-line: #e5e7eb;
	--asmt-bg: #f7f7f9;
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--asmt-ink);
}
.asmt-quiz *, .asmt-quiz *::before, .asmt-quiz *::after { box-sizing: border-box; }

/* ---- Cabeçalho/progresso ---- */
.asmt-q-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.asmt-progress { flex: 1; height: 6px; background: var(--asmt-line); border-radius: 99px; overflow: hidden; }
.asmt-progress span { display: block; height: 100%; background: var(--asmt-accent); border-radius: 99px; transition: width .25s ease; }
.asmt-counter { font-size: 13px; color: var(--asmt-muted); white-space: nowrap; }

/* ---- Pergunta ---- */
.asmt-pillar-label { color: var(--asmt-accent); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.asmt-q-text { font-size: 22px; line-height: 1.35; margin: 0 0 22px; font-weight: 700; }
.asmt-tip { color: var(--asmt-muted); font-size: 15px; cursor: help; }

.asmt-options { display: flex; flex-direction: column; gap: 10px; }
.asmt-option {
	display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
	background: #fff; border: 1px solid var(--asmt-line); border-radius: 12px;
	padding: 16px 18px; cursor: pointer; font-size: 15px; color: var(--asmt-ink);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.asmt-option:hover { border-color: #c7ccd4; }
.asmt-option.is-selected { border-color: var(--asmt-accent); background: #fff5f6; box-shadow: 0 0 0 1px var(--asmt-accent) inset; }
.asmt-opt-num {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--asmt-bg); color: var(--asmt-muted); font-weight: 700; font-size: 14px;
}
.asmt-option.is-selected .asmt-opt-num { background: var(--asmt-accent); color: #fff; }
.asmt-opt-label { flex: 1; }

.asmt-back { margin-top: 22px; background: none; border: 0; color: var(--asmt-muted); cursor: pointer; font-size: 14px; padding: 6px 0; }
.asmt-back:hover { color: var(--asmt-ink); }

/* ---- Resultado ---- */
.asmt-result { display: flex; flex-direction: column; gap: 28px; }
.asmt-score-card { text-align: center; padding: 28px 20px; background: var(--asmt-bg); border-radius: 16px; }
.asmt-score-num { font-size: 56px; font-weight: 800; line-height: 1; color: var(--asmt-accent); }
.asmt-score-num span { font-size: 22px; color: var(--asmt-muted); font-weight: 600; }
.asmt-band { font-size: 20px; font-weight: 700; margin-top: 10px; }
.asmt-band-desc { color: var(--asmt-muted); max-width: 560px; margin: 10px auto 0; font-size: 15px; line-height: 1.5; }

.asmt-pillars-block h3, .asmt-plan-block h3 { font-size: 16px; margin: 0 0 14px; }
.asmt-radar-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.asmt-radar { width: 320px; max-width: 100%; height: auto; }
.asmt-radar-grid { fill: none; stroke: var(--asmt-line); }
.asmt-radar-axis { stroke: var(--asmt-line); }
.asmt-radar-data { fill: rgba(200,16,46,.18); stroke: var(--asmt-accent); stroke-width: 2; }
.asmt-radar-label { font-size: 9px; fill: var(--asmt-muted); }

.asmt-pillar-list { list-style: none; margin: 0; padding: 0; }
.asmt-pillar-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.asmt-pl-name { flex: 0 0 38%; font-size: 14px; }
.asmt-pl-bar { flex: 1; height: 8px; background: var(--asmt-line); border-radius: 99px; overflow: hidden; }
.asmt-pl-bar i { display: block; height: 100%; background: var(--asmt-accent); border-radius: 99px; }
.asmt-pl-score { flex: 0 0 auto; width: 34px; text-align: right; font-weight: 700; font-size: 14px; }

.asmt-plan-intro { color: var(--asmt-muted); margin: 0 0 14px; }
.asmt-plan-item { border: 1px solid var(--asmt-line); border-left: 4px solid var(--asmt-accent); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.asmt-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.asmt-plan-score { color: var(--asmt-accent); font-weight: 700; font-size: 14px; }
.asmt-plan-diag { color: var(--asmt-muted); margin: 8px 0 10px; font-size: 14px; line-height: 1.5; }
.asmt-actions { margin: 0; padding-left: 18px; font-size: 14px; }
.asmt-actions li { margin: 6px 0; line-height: 1.45; }
.asmt-deadline { display: inline-block; background: var(--asmt-bg); color: var(--asmt-muted); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin-right: 4px; }

.asmt-restart { align-self: center; background: var(--asmt-accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-size: 15px; cursor: pointer; }
.asmt-restart:hover { filter: brightness(.95); }

/* ---- Captura de lead ---- */
.asmt-capture { max-width: 480px; margin: 0 auto; }
.asmt-cap-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.asmt-cap-sub { color: var(--asmt-muted); margin: 0 0 20px; font-size: 15px; }
.asmt-cap-fields { display: flex; flex-direction: column; gap: 14px; }
.asmt-cap-field { display: flex; flex-direction: column; gap: 5px; }
.asmt-cap-field label { font-size: 14px; font-weight: 600; }
.asmt-req { color: var(--asmt-accent); }
.asmt-cap-field input, .asmt-cap-field select, .asmt-cap-field textarea {
	width: 100%; box-sizing: border-box; padding: 12px 14px;
	border: 1px solid var(--asmt-line); border-radius: 10px; font-size: 15px; font-family: inherit;
}
.asmt-cap-field input:focus, .asmt-cap-field select:focus, .asmt-cap-field textarea:focus {
	outline: none; border-color: var(--asmt-accent); box-shadow: 0 0 0 1px var(--asmt-accent) inset;
}
.asmt-cap-err { color: #b32d2e; font-size: 12px; min-height: 14px; }
.asmt-cap-consent { color: var(--asmt-muted); font-size: 12px; margin: 14px 0 0; line-height: 1.45; }
/* Página limpa (sem cabeçalho/rodapé do tema) */
body.asmt-fullpage { margin: 0; background: #fff; }
.asmt-fullpage .asmt-fp { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; }
.asmt-fp-logo { margin: 0 0 24px; }
.asmt-fp-logo img { max-height: 64px; width: auto; height: auto; display: inline-block; }
.asmt-fp-logo-left { text-align: left; }
.asmt-fp-logo-center { text-align: center; }
.asmt-fp-logo-right { text-align: right; }

.asmt-phone-group { display: flex; gap: 8px; }
.asmt-phone-group .asmt-phone-country { flex: 0 0 auto; width: auto; min-width: 92px; }
.asmt-phone-group input { flex: 1 1 auto; }

.asmt-consent-wrap { margin: 14px 0 0; }
.asmt-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--asmt-muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.asmt-consent input { margin-top: 2px; flex: 0 0 auto; }
.asmt-consent-link { display: inline-block; margin: 4px 0 0 26px; font-size: 12px; color: var(--asmt-brand, #2563eb); text-decoration: underline; cursor: pointer; }

/* Modal do termo de consentimento */
.asmt-modal-overlay { position: fixed; inset: 0; background: rgba( 17, 24, 39, .55 ); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100000; }
.asmt-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba( 0, 0, 0, .3 ); }
.asmt-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.asmt-modal-head strong { font-size: 16px; }
.asmt-modal-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #6b7280; padding: 0 4px; }
.asmt-modal-body { padding: 18px 20px; overflow-y: auto; font-size: 13px; line-height: 1.6; color: #374151; }
.asmt-modal-foot { padding: 14px 20px; border-top: 1px solid #e5e7eb; text-align: right; }
.asmt-modal-accept { background: var(--asmt-brand, #2563eb); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.asmt-cap-general { color: #b32d2e; font-size: 14px; margin: 10px 0 0; }
.asmt-cap-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.asmt-cap-actions .asmt-restart { width: 100%; }

.asmt-quiz-error { color: #b32d2e; padding: 12px; }

@media ( max-width: 600px ) {
	.asmt-q-text { font-size: 19px; }
	.asmt-pl-name { flex-basis: 44%; }
}
