/* GetAStart Tools: quiz and Get Matched form. Uses the GetAStart theme colors when present. */
.gas-tools {
	--gas-ink: var(--wp--preset--color--ink, #16233A);
	--gas-ink-soft: var(--wp--preset--color--ink-soft, #46536A);
	--gas-muted: var(--wp--preset--color--muted, #5F6B7E);
	--gas-accent: var(--wp--preset--color--accent, #1F6B52);
	--gas-accent-dark: var(--wp--preset--color--accent-dark, #14503D);
	--gas-tint: var(--wp--preset--color--tint, #E3F0EA);
	--gas-border: var(--wp--preset--color--border, #E3E7E2);
	--gas-surface: var(--wp--preset--color--surface, #FFFFFF);
	--gas-canvas: var(--wp--preset--color--canvas, #F7F8F6);
	background: var(--gas-surface);
	border: 1px solid var(--gas-border);
	border-radius: 16px;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	color: var(--gas-ink);
	box-sizing: border-box;
	max-width: 100%;
}

/* ---------- Shared buttons ---------- */
.gas-tools .gas-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 10px;
	background: var(--gas-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.gas-tools .gas-button:hover,
.gas-tools .gas-button:focus-visible {
	background: var(--gas-accent-dark);
	color: #fff;
}
.gas-tools .gas-button--ghost {
	background: transparent;
	color: var(--gas-ink);
	border: 1.5px solid var(--gas-border);
}
.gas-tools .gas-button--ghost:hover,
.gas-tools .gas-button--ghost:focus-visible {
	background: var(--gas-canvas);
	color: var(--gas-ink);
}
.gas-tools :focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-mid, #8DBBA5);
	outline-offset: 2px;
}
.gas-fineprint {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--gas-muted);
}

/* ---------- Form ---------- */
.gas-form {
	display: grid;
	gap: 1.25rem;
}
.gas-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1.25rem;
}
.gas-field {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	min-width: 0;
}
.gas-field > label,
.gas-field > legend {
	font-weight: 700;
	font-size: 0.9375rem;
}
.gas-req,
.gas-opt {
	font-weight: 500;
	color: var(--gas-muted);
	font-size: 0.8125rem;
}
.gas-field input[type="text"],
.gas-field input[type="email"],
.gas-field input[type="tel"],
.gas-field select,
.gas-field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid #C7CED6;
	border-radius: 10px;
	background: var(--gas-surface);
	color: var(--gas-ink);
	font: inherit;
}
.gas-field textarea {
	min-height: 110px;
	resize: vertical;
}
.gas-field input:focus,
.gas-field select:focus,
.gas-field textarea:focus {
	border-color: var(--gas-accent);
	outline: 3px solid var(--gas-tint);
	outline-offset: 0;
}
fieldset.gas-checks {
	border: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
fieldset.gas-checks legend {
	margin-bottom: 0.5rem;
	padding: 0;
}
.gas-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
}
.gas-checks .gas-check {
	align-items: center;
	padding: 0.55rem 0.9rem;
	border: 1.5px solid var(--gas-border);
	border-radius: 999px;
	background: var(--gas-canvas);
	font-size: 0.9375rem;
}
.gas-checks .gas-check:has(input:checked) {
	border-color: var(--gas-accent);
	background: var(--gas-tint);
}
.gas-check input {
	width: 18px;
	height: 18px;
	margin: 0.15rem 0 0;
	accent-color: var(--gas-accent);
	flex: 0 0 auto;
}
.gas-checks .gas-check input {
	margin: 0;
}
.gas-consent > label {
	font-weight: 400;
}
.gas-consent {
	padding: 1rem;
	border-radius: 12px;
	background: var(--gas-canvas);
	font-size: 0.9375rem;
	line-height: 1.5;
}
.gas-form__submit {
	margin: 0;
}

/* Honeypot: off screen, not display:none, so simple bots still fill it */
.gas-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Notices ---------- */
.gas-notice {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
}
.gas-notice p,
.gas-notice ul {
	margin: 0.25rem 0;
}
.gas-notice--error {
	background: #FDF1EF;
	border: 1px solid #F0C4BC;
	color: #7A2617;
}
.gas-tools.gas-notice--success {
	background: var(--gas-tint);
	border-color: var(--wp--preset--color--tint-strong, #C9DED3);
}
.gas-tools.gas-notice--success h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

/* ---------- Quiz ---------- */
.gas-quiz__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--gas-tint);
	overflow: hidden;
}
.gas-quiz__bar span {
	display: block;
	height: 100%;
	background: var(--gas-accent);
	transition: width 0.25s ease;
}
.gas-quiz__progress {
	margin: 0.75rem 0 0.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gas-muted);
}
.gas-quiz__fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.6rem;
}
.gas-quiz__question {
	padding: 0;
	margin: 0 0 0.9rem;
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.gas-quiz__question:focus {
	outline: none;
}
.gas-quiz__option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--gas-border);
	border-radius: 12px;
	background: var(--gas-canvas);
	cursor: pointer;
	font-weight: 500;
}
.gas-quiz__option:hover {
	border-color: var(--wp--preset--color--accent-mid, #8DBBA5);
}
.gas-quiz__option:has(input:checked) {
	border-color: var(--gas-accent);
	background: var(--gas-tint);
}
.gas-quiz__option input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--gas-accent);
	flex: 0 0 auto;
}
.gas-quiz__error {
	min-height: 1.25rem;
	margin: 0.5rem 0 0;
	color: #9A2B1A;
	font-weight: 600;
	font-size: 0.9375rem;
}
.gas-quiz__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}
.gas-quiz__live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.gas-quiz__eyebrow {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gas-accent);
}
.gas-quiz__result-title {
	margin: 0.4rem 0 0.75rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
}
.gas-quiz__result-title:focus {
	outline: none;
}
.gas-quiz__result-body {
	margin: 0 0 0.75rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--gas-ink-soft);
}
.gas-quiz__guide {
	margin: 0;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.gas-quiz__bar span { transition: none; }
}
