/**
 * Action Center - Guided comment builder (two-part flow) styles.
 * Layout and interaction only; colors default to neutral tokens a theme can override.
 * Inherits the shared Action Center tokens defined in cta-display.css.
 */
.cta-guided {
	--cta-builder-accent: var(--cta-accent, #2c6e49);
	--cta-builder-line: var(--cta-border, color-mix(in srgb, currentColor 20%, transparent));
	--cta-builder-surface: var(--cta-surface, color-mix(in srgb, currentColor 4%, transparent));
}

/* ---- Optional public counter ---- */
.cta-builder__progress {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cta-builder-line);
	border-radius: 10px;
	margin-bottom: 1.5rem;
}
.cta-builder__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 0.9rem;
}
.cta-builder__stat b {
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
	margin-right: 0.25rem;
}
.cta-builder__track {
	flex: 1;
	min-width: 120px;
	height: 8px;
	border-radius: 6px;
	background: var(--cta-builder-line);
	overflow: hidden;
}
.cta-builder__fill {
	display: block;
	height: 100%;
	background: var(--cta-builder-accent);
	border-radius: 6px;
	transition: width 0.4s ease;
}
.cta-builder__goalnum {
	margin: 0;
	font-size: 0.85rem;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---- Collapsed "learn more" ---- */
.cta-guided__moreinfo {
	margin: 1.25rem 0 0;
	border: 1px solid var(--cta-builder-line);
	border-radius: 10px;
	overflow: hidden;
}
.cta-guided__moreinfo-summary {
	cursor: pointer;
	list-style: none;
	padding: 0.85rem 1.1rem;
	font-weight: 600;
	font-size: 0.98rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.cta-guided__moreinfo-summary::-webkit-details-marker {
	display: none;
}
.cta-guided__moreinfo-summary::after {
	content: "+";
	font-size: 1.25rem;
	line-height: 1;
	color: var(--cta-builder-accent);
}
.cta-guided__moreinfo[open] > .cta-guided__moreinfo-summary::after {
	content: "\2013";
}
.cta-guided__moreinfo[open] > .cta-guided__moreinfo-summary {
	border-bottom: 1px solid var(--cta-builder-line);
}
.cta-guided__moreinfo-body {
	padding: 1.1rem;
}
.cta-guided__moreinfo-body > *:first-child {
	margin-top: 0;
}
.cta-guided__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cta-guided__links li {
	padding: 0.5rem 0;
	border-top: 1px solid var(--cta-builder-line);
	font-size: 0.92rem;
}
.cta-guided__links li:first-child {
	border-top: 0;
}

/* ---- The builder ---- */
.cta-builder {
	margin-top: 1.5rem;
}
.cta-builder__card {
	border: 1px solid var(--cta-builder-line);
	border-radius: 12px;
	padding: 1.25rem 1.4rem;
}

.cta-builder__points {
	border: 0;
	margin: 0 0 1.25rem;
	padding: 0;
}
.cta-builder__legend {
	font-weight: 700;
	margin-bottom: 0.6rem;
	padding: 0;
}
.cta-builder__point {
	display: flex;
	gap: 0.7rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--cta-builder-line);
	border-radius: 10px;
	margin-bottom: 0.6rem;
	cursor: pointer;
	background: var(--cta-builder-surface);
}
.cta-builder__point:focus-within {
	outline: 2px solid var(--cta-builder-accent);
	outline-offset: 2px;
}
.cta-builder__check {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	accent-color: var(--cta-builder-accent);
}
.cta-builder__point-text {
	font-size: 0.95rem;
	line-height: 1.5;
}

.cta-builder__field {
	margin: 0 0 1rem;
}
.cta-builder__field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}
.cta-builder__prompt,
.cta-builder__name,
.cta-builder__city,
.cta-builder__state,
.cta-builder__draft {
	width: 100%;
	font: inherit;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--cta-builder-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
}
.cta-builder__note {
	margin: 0 0 1rem;
	font-size: 0.82rem;
	opacity: 0.75;
	line-height: 1.5;
}
.cta-builder__prompt {
	min-height: 4.5rem;
	resize: vertical;
}
.cta-builder__id {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}
@media (max-width: 480px) {
	.cta-builder__id {
		grid-template-columns: 1fr;
	}
}

.cta-builder__draftwrap {
	margin-top: 0.3rem;
}
.cta-builder__lead {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}
.cta-builder__draft {
	min-height: 260px;
	line-height: 1.6;
	resize: vertical;
}
.cta-builder__draft:focus,
.cta-builder__prompt:focus,
.cta-builder__name:focus,
.cta-builder__city:focus,
.cta-builder__state:focus {
	outline: 2px solid var(--cta-builder-accent);
	outline-offset: 1px;
}
.cta-builder__tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.5rem 0 0;
}
.cta-builder__reset {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 0.85rem;
	color: var(--cta-builder-accent);
	text-decoration: underline;
	cursor: pointer;
}
.cta-builder__reset:hover {
	text-decoration: none;
}
.cta-builder__wc {
	font-size: 0.8rem;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

/* Full-width action button (extends the shared .cta-btn). */
.cta-btn--full {
	display: block;
	width: 100%;
	margin-top: 1.3rem;
	font-size: 1.02rem;
}

/* ---- Part 2: submit hand-off ---- */
.cta-guided__ready {
	border: 1px solid var(--cta-builder-line);
	border-radius: 12px;
	padding: 1.25rem 1.4rem;
}
.cta-guided__ready-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.cta-guided__badge {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--cta-builder-accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 1.1rem;
	line-height: 1;
}
.cta-guided__ready-lead {
	margin: 0.6rem 0 0;
}
.cta-guided__final {
	background: var(--cta-builder-surface);
	border: 1px solid var(--cta-builder-line);
	border-radius: 10px;
	padding: 1rem;
	white-space: pre-wrap;
	font-size: 0.92rem;
	line-height: 1.6;
	max-height: 240px;
	overflow: auto;
	margin: 1rem 0;
}
.cta-guided__nourl {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ---- Part 2: More Ways to Help ---- */
.cta-guided__more {
	margin-top: 2rem;
}
.cta-guided__steps {
	border: 1px solid var(--cta-builder-line);
	border-radius: 12px;
	padding: 0.25rem 1.4rem;
}
.cta-guided__step {
	display: flex;
	gap: 0.85rem;
	padding: 1rem 0;
	border-top: 1px solid var(--cta-builder-line);
}
.cta-guided__step:first-child {
	border-top: 0;
}
.cta-guided__step-n {
	flex: 0 0 auto;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: var(--cta-builder-surface);
	border: 1px solid var(--cta-builder-line);
	display: grid;
	place-items: center;
	font-size: 0.85rem;
	font-weight: 700;
}
.cta-guided__step-body > *:first-child {
	margin-top: 0;
}
.cta-guided__step-body > *:last-child {
	margin-bottom: 0;
}
.cta-guided__backline {
	margin-top: 1.5rem;
	font-size: 0.9rem;
}
.cta-guided__backline button {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--cta-builder-accent);
	text-decoration: underline;
	cursor: pointer;
}
.cta-guided__backline button:hover {
	text-decoration: none;
}
