/* Lead tools: assessment form, health quiz, cost comparison, sticky mobile CTA. */

.xt-form, .xt-quiz, .xt-cost {
	--xt-l-border: #dbe2ee;
	font-family: var(--xt-font-body);
	color: var(--xt-text);
	text-align: left;
}
.xt-form *, .xt-quiz *, .xt-cost * { box-sizing: border-box; }
.xt-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ---------- shared controls */
.xt-form button, .xt-quiz button, .xt-quiz-cta {
	font: 700 16px/1 var(--xt-font-head);
	border-radius: var(--xt-btn-radius, 10px);
	padding: 15px 22px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.xt-next, .xt-submit, .xt-quiz-cta {
	background: var(--xt-brand); color: #fff !important; text-decoration: none; display: inline-block;
}
.xt-next:hover, .xt-submit:hover, .xt-quiz-cta:hover { transform: translateY(-2px); background: #c4241a; }
.xt-back, .xt-quiz-restart { background: transparent; color: var(--xt-muted); border-color: var(--xt-l-border) !important; }
.xt-back:hover, .xt-quiz-restart:hover { color: var(--xt-ink); border-color: var(--xt-ink) !important; }
.xt-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.xt-form button:focus-visible, .xt-quiz button:focus-visible, .xt-form input:focus-visible, .xt-cost input:focus-visible {
	outline: 3px solid rgba(224, 43, 32, .35); outline-offset: 2px;
}

.xt-field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; color: var(--xt-ink); }
.xt-field em { font-weight: 400; color: var(--xt-muted); font-style: normal; }
.xt-field input, .xt-field textarea, .xt-inline input {
	font: 400 16px/1.4 var(--xt-font-body);
	width: 100%; padding: 14px 16px; border: 1.5px solid var(--xt-l-border); border-radius: 10px; background: #fff; color: var(--xt-text);
}
.xt-field input:focus, .xt-field textarea:focus, .xt-inline input:focus { border-color: var(--xt-brand); outline: none; }
.xt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.xt-field-full { grid-column: 1 / -1; }
.xt-fine { font-size: 13px; color: var(--xt-muted); margin: 18px 0 0; line-height: 1.5; }
.xt-error { color: #b42318; background: #fef3f2; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 14px 0 0; }

/* ---------- assessment form */
.xt-steps { background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px -30px rgba(11, 21, 48, .35); }
.xt-steps-bar { display: flex; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: s; }
.xt-steps-bar li {
	flex: 1; font: 700 12px/1.2 var(--xt-font-head); letter-spacing: .06em; text-transform: uppercase; color: #94a3b8;
	padding-top: 12px; border-top: 4px solid #e8edf5; counter-increment: s; transition: color .2s, border-color .2s;
}
.xt-steps-bar li::before { content: counter(s) ". "; }
.xt-steps-bar li.is-on { color: var(--xt-ink); border-color: var(--xt-brand); }
.xt-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: xt-in .35s ease; }
.xt-step legend { font: 800 24px/1.25 var(--xt-font-head); color: var(--xt-ink); margin-bottom: 20px; padding: 0; }
.xt-step legend span { display: block; font: 400 15px/1.5 var(--xt-font-body); color: var(--xt-muted); margin-top: 6px; }
.xt-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.xt-choice, .xt-pill { position: relative; cursor: pointer; }
.xt-choice input, .xt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.xt-choice span {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; font: 500 15px/1.35 var(--xt-font-body);
	border: 1.5px solid var(--xt-l-border); border-radius: 12px; transition: border-color .15s, background .15s;
}
.xt-choice span::before {
	content: ""; flex: 0 0 20px; height: 20px; border-radius: 6px; border: 1.5px solid #b6c2d6; background: #fff center/12px no-repeat;
}
.xt-choice input:checked + span { border-color: var(--xt-brand); background: #fff5f4; }
.xt-choice input:checked + span::before {
	background-color: var(--xt-brand); border-color: var(--xt-brand);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.xt-choice input:focus-visible + span, .xt-pill input:focus-visible + span { outline: 3px solid rgba(224, 43, 32, .35); outline-offset: 2px; }
.xt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.xt-pill span {
	display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--xt-l-border);
	font: 600 15px/1 var(--xt-font-body); color: var(--xt-text); transition: all .15s;
}
.xt-pill input:checked + span { background: var(--xt-ink); border-color: var(--xt-ink); color: #fff; }
.xt-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.xt-nav .xt-next:only-child, .xt-nav .xt-submit:only-child { margin-left: auto; }
@keyframes xt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- health quiz */
.xt-quiz { background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px -30px rgba(11, 21, 48, .35); }
.xt-quiz-progress { height: 6px; background: #eef2f8; border-radius: 99px; overflow: hidden; }
.xt-quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--xt-brand), var(--xt-brand-2)); transition: width .35s ease; }
.xt-quiz-count { font: 600 13px/1 var(--xt-font-body); color: var(--xt-muted); margin: 14px 0 22px; letter-spacing: .02em; }
.xt-q { animation: xt-in .35s ease; }
.xt-q-text { font: 800 24px/1.3 var(--xt-font-head); color: var(--xt-ink); margin: 0 0 24px; min-height: 2.6em; }
.xt-q-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xt-q-answers button { background: #f5f7fb; color: var(--xt-ink); border-color: #e3e9f2; padding: 18px 12px; }
.xt-q-answers button:hover { border-color: var(--xt-brand); background: #fff5f4; transform: translateY(-2px); }
.xt-quiz-result { animation: xt-in .4s ease; }
.xt-score { display: inline-flex; align-items: baseline; gap: 2px; font: 800 64px/1 var(--xt-font-head); padding: 18px 26px; border-radius: 18px; margin-bottom: 16px; }
.xt-score-of { font-size: 26px; opacity: .6; }
.is-good .xt-score { background: #ecfdf3; color: #067647; }
.is-mid .xt-score { background: #fffaeb; color: #b54708; }
.is-risk .xt-score { background: #fef3f2; color: #b42318; }
.xt-score-title { font: 800 26px/1.2 var(--xt-font-head) !important; color: var(--xt-ink) !important; margin: 0 0 8px !important; padding: 0 !important; }
.xt-score-copy { color: var(--xt-muted); margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.xt-gaps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.xt-gaps li { position: relative; padding: 12px 14px 12px 42px; background: #f8fafc; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.xt-gaps li::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--xt-brand); color: #fff; font: 800 12px/18px var(--xt-font-head); text-align: center; }
.xt-quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.xt-quiz-email { margin-top: 26px; padding-top: 22px; border-top: 1px solid #eef2f8; }
.xt-quiz-email p { margin: 0 0 12px; font-size: 15px; }
.xt-inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }

/* ---------- cost comparison */
.xt-cost { background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px -30px rgba(11, 21, 48, .35); }
.xt-cost-label { display: flex; justify-content: space-between; align-items: baseline; font: 700 17px/1.3 var(--xt-font-head); color: var(--xt-ink); margin-bottom: 14px; }
.xt-cost-label output { font: 800 34px/1 var(--xt-font-head); color: var(--xt-brand); }
.xt-cost input[type=range] {
	-webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; cursor: pointer; margin: 0 0 30px;
	background: linear-gradient(90deg, var(--xt-brand) var(--xt-fill, 50%), #e8edf5 var(--xt-fill, 50%));
}
.xt-cost input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--xt-brand); box-shadow: 0 4px 12px rgba(224, 43, 32, .35); }
.xt-cost input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--xt-brand); }
.xt-cost-bars { display: grid; gap: 18px; }
.xt-cost-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.xt-cost-name { font: 600 15px/1.3 var(--xt-font-body); color: var(--xt-text); }
.xt-cost-val { font: 800 20px/1 var(--xt-font-head); color: var(--xt-ink); grid-row: 1; grid-column: 2; }
.xt-cost-track { grid-column: 1 / -1; height: 16px; background: #f1f4f9; border-radius: 99px; overflow: hidden; }
.xt-cost-track i { display: block; height: 100%; border-radius: 99px; transition: width .35s ease; }
.is-inhouse .xt-cost-track i { background: #94a3b8; }
.is-managed .xt-cost-track i { background: linear-gradient(90deg, var(--xt-brand), var(--xt-brand-2)); }
.xt-cost-save { margin: 24px 0 0; padding: 16px 18px; background: #f5f7fb; border-radius: 12px; font-size: 16px; line-height: 1.5; color: var(--xt-ink); }
.xt-cost-save b { color: var(--xt-brand); }

/* ---------- on dark sections the cards keep their white surface */
.xt-dark-section .xt-quiz, .xt-dark-section .xt-cost, .xt-hero .xt-steps { color: var(--xt-text); }

/* ---------- sticky mobile call-to-action */
.xt-sticky-cta { display: none; }
@media (max-width: 767px) {
	.xt-sticky-cta {
		display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
		box-shadow: 0 -8px 24px rgba(11, 21, 48, .12);
	}
	.xt-sticky-cta a { text-align: center; font: 700 15px/1 var(--xt-font-head); padding: 14px 10px; border-radius: 10px; text-decoration: none; }
	.xt-sticky-call { color: var(--xt-ink); border: 2px solid var(--xt-ink); }
	.xt-sticky-book { color: #fff; background: var(--xt-brand); }
	body { padding-bottom: 76px; }
	.xt-top { bottom: 92px !important; }

	.xt-steps, .xt-quiz, .xt-cost { padding: 24px 20px; border-radius: 16px; }
	.xt-grid, .xt-choices, .xt-inline { grid-template-columns: 1fr; }
	.xt-q-text { font-size: 21px; min-height: 0; }
	.xt-q-answers { grid-template-columns: 1fr; }
	.xt-step legend { font-size: 21px; }
	.xt-steps-bar li { font-size: 10px; }
	.xt-nav { flex-direction: column-reverse; }
	.xt-nav button { width: 100%; }
}
/* Divi's text-module list styles add their own numbers; the step bar uses a CSS counter instead */
.xt-steps .xt-steps-bar, .xt-steps .xt-steps-bar li { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.xt-steps .xt-steps-bar li::marker { content: ""; }
