/* ==========================================================================
   CTA modules: guide, tool, lawyer / match, calc (template-parts/cta-*.php)
   Each module is a folder: its label is the index tab on the top edge.
   ========================================================================== */

.cta-guide,
.cta-tool,
.cta-lawyer {
	position: relative;
	margin-top: calc(var(--tab-h) + 6px);
}

.cta-guide__eyebrow,
.cta-tool__eyebrow,
.cta-lawyer__eyebrow {
	position: absolute;
	top: -1px;
	left: clamp(20px, 3vw, 32px);
	max-width: calc(100% - 2 * clamp(20px, 3vw, 32px));
	margin: 0;
	transform: translateY(-100%);
}

.cta-guide {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--c-manila-edge);
	border-top-width: 2px;
	border-radius: 0 var(--radius-lg) var(--radius-lg);
	background: var(--c-manila-2);
	color: var(--c-ink);
}

/* Document picture */
.cta-guide__doc {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 7px;
	width: 124px;
	height: 160px;
	margin: 0 8px;
	padding: 14px 12px;
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow-pop);
	transform: rotate(-2deg);
}

.cta-guide__doc-label {
	color: var(--c-accent);
	font-family: var(--f-sans);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .05em;
}

.cta-guide__doc-line {
	width: 85%;
	height: 6px;
	border-radius: 1px;
	background: var(--c-ink);
}

.cta-guide__doc-line--short {
	width: 55%;
	margin-bottom: 5px;
}

.cta-guide__doc-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cta-guide__doc-item span:first-child {
	width: 7px;
	height: 7px;
	border: 1.2px solid var(--c-green);
	border-radius: 1px;
}

.cta-guide__doc-item span:last-child {
	flex: 1;
	height: 3px;
	background: var(--c-skeleton);
}

.cta-guide__doc-item:nth-child(5) span:last-child {
	flex: 0 0 60%;
}

.cta-guide__doc-site {
	margin-top: auto;
	color: var(--c-muted);
	font-family: var(--f-mono);
	font-size: 7px;
}

/* Text + form */
.cta-guide__body {
	flex: 1 1 300px;
	min-width: 0;
}



.cta-guide__title {
	margin-bottom: 8px;
	font-size: clamp(22px, 2.4vw, 27px);
}

.cta-guide__text {
	margin-bottom: 12px;
	color: var(--c-text);
	font-size: 15.5px;
	line-height: 1.55;
}

.cta-guide__points {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.cta-guide__points li {
	display: flex;
	gap: 9px;
	color: var(--c-text);
	font-size: 14.5px;
	line-height: 1.45;
}

.cta-guide__points .icon,
.cta-guide__done .icon {
	margin-top: 1px;
	color: var(--c-green);
	stroke-width: 2.2;
}

.cta-guide__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cta-guide__field {
	flex: 1 1 220px;
	min-width: 0;
}

.cta-guide__field input {
	min-height: 50px;
	border-color: var(--c-sand-line-strong);
}

.cta-guide__form .btn {
	flex: 0 1 auto;
	min-height: 50px;
	padding: 0 20px;
	font-size: 15px;
	white-space: normal;
}

.cta-guide__error {
	margin-top: 8px;
	color: var(--c-accent-dark);
	font-size: 14px;
}

.cta-guide__done {
	display: flex;
	gap: 8px;
	padding: 14px 16px;
	border: 1px solid var(--c-sand-line);
	border-radius: var(--radius);
	background: var(--c-surface);
	font-size: 14.5px;
	font-weight: 600;
}

.cta-guide__note {
	margin-top: 10px;
	color: var(--c-muted);
	font-size: 12.5px;
}

.cta-guide__note a {
	color: var(--c-text-2);
}

@media (max-width: 520px) {
	.cta-guide__doc {
		display: none;
	}
}

.cta-guide--compact {
	gap: 20px;
}

/* ==========================================================================
   Tool (template-parts/cta-tool.php)
   ========================================================================== */

.cta-tool {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--c-line);
	border-top: 2px solid var(--c-manila-edge);
	border-radius: 0 var(--radius-lg) var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-paper);
}

.cta-tool__body {
	flex: 1 1 320px;
	min-width: 0;
}



.cta-tool__title {
	margin-bottom: 8px;
	font-size: clamp(22px, 2.4vw, 27px);
}

.cta-tool__text {
	color: var(--c-text);
	font-size: 15.5px;
	line-height: 1.55;
}

.cta-tool__action {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.cta-tool__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
}

.cta-tool__field select {
	min-height: 50px;
	border-color: var(--c-line-green-strong);
}

.cta-tool__button {
	min-height: 50px;
	font-size: 15.5px;
}

.cta-tool__note {
	color: var(--c-text-2);
	font-size: 12.5px;
	text-align: center;
}

/* ==========================================================================
   Lawyer / match (template-parts/cta-lawyer.php)
   ========================================================================== */

.cta-lawyer {
	container-type: inline-size; /* layout depends on the block's own width (article column vs wide sections) */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px 36px;
	padding: clamp(22px, 3vw, 34px);
	border-top: 2px solid var(--c-manila-edge);
	border-radius: 0 var(--radius-lg) var(--radius-lg);
	background: var(--c-dark);
	color: var(--c-on-dark-2);
}

.cta-lawyer__body {
	flex: 1 1 100%;
	min-width: 0;
}



.cta-lawyer__title {
	margin-bottom: 10px;
	color: var(--c-on-dark);
	font-size: clamp(23px, 2.6vw, 30px);
}

.cta-lawyer__text {
	margin-bottom: 14px;
	font-size: 15.5px;
	line-height: 1.55;
}

.cta-lawyer__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	font-size: 14.5px;
	list-style: none;
}

.cta-lawyer__points li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.cta-lawyer__points .icon {
	color: var(--c-on-dark-icon);
	stroke-width: 2.4;
}

/* Narrow block (e.g. the guide column): button on one line, the note next to it. */
.cta-lawyer__action {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.cta-lawyer__action .btn {
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
}

.cta-lawyer__action .cta-lawyer__note {
	flex: 1 1 220px;
	max-width: 420px;
}

/* Wide block: text left, button + note right (as in the design). */
@container (min-width: 900px) {
	.cta-lawyer__body {
		flex: 1 1 340px;
	}

	.cta-lawyer__text {
		max-width: 560px;
	}

	.cta-lawyer__action {
		flex: 0 1 360px; /* the long help label fits on one line */
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.cta-lawyer__action .btn {
		white-space: normal;
	}

	.cta-lawyer__action .cta-lawyer__note {
		flex: 0 0 auto;
	}
}

/* Phone: full-width button, note under it. */
@container (max-width: 440px) {
	.cta-lawyer__action .btn {
		flex: 1 1 100%;
		white-space: normal;
	}
}

.cta-lawyer .btn--accent:hover {
	background: var(--c-accent-on-dark-hover);
}

.cta-lawyer .btn--lg {
	line-height: 1.25;
	white-space: normal;
}

.cta-lawyer__note {
	color: var(--c-on-dark-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

/* match: state select + button, then the points under a line */
.cta-lawyer--match .cta-lawyer__text {
	margin-bottom: 18px;
}

.cta-lawyer__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.cta-lawyer__field {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 6px;
	color: var(--c-on-dark);
	font-size: 14px;
	font-weight: 600;
}

.cta-lawyer__field select {
	min-height: 52px;
	border-color: var(--c-on-dark-line);
}

.cta-lawyer__form .btn {
	flex: 0 1 auto;
}

.cta-lawyer--match .cta-lawyer__points {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--c-dark-line);
}

.cta-lawyer--match .cta-lawyer__note {
	margin-top: 12px;
}

/* ==========================================================================
   Mini calculator (template-parts/cta-calc.php)
   ========================================================================== */

.cta-calc {
	overflow: hidden;
	border: 1.5px solid var(--c-green);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
}

.cta-calc__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 22px;
	background: var(--c-green);
	color: var(--c-on-dark);
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cta-calc__bar span + span {
	opacity: .75;
}

.cta-calc__body {
	padding: 22px;
}

.cta-calc__title {
	margin-bottom: 6px;
	font-size: 24px;
	line-height: 1.2;
}

.cta-calc__text {
	margin-bottom: 16px;
	color: var(--c-text);
	font-size: 15.5px;
	line-height: 1.55;
}

.cta-calc__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px;
	margin-bottom: 18px;
}

.cta-calc__option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 56px;
	padding: 12px 14px;
	border: 1.5px solid var(--c-line-strong);
	border-radius: var(--radius);
	background: var(--c-surface);
	color: var(--c-ink);
	text-align: left;
	cursor: pointer;
}

.cta-calc__option:hover {
	background: var(--c-hover-bg);
}

.cta-calc__option[aria-checked="true"] {
	border-color: var(--c-green);
	background: var(--c-green-tint);
}

.cta-calc__dot {
	display: flex;
	flex: 0 0 18px;
	align-items: center;
	justify-content: center;
	height: 18px;
	margin-top: 2px;
	border: 1.5px solid var(--c-line-strong);
	border-radius: 50%;
}

.cta-calc__option[aria-checked="true"] .cta-calc__dot {
	border-color: var(--c-green);
}

.cta-calc__option[aria-checked="true"] .cta-calc__dot::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-green);
}

.cta-calc__label {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.cta-calc__sub {
	display: block;
	margin-top: 2px;
	color: var(--c-text-2);
	font-size: 13px;
	line-height: 1.4;
}

.cta-calc__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.cta-calc__note {
	color: var(--c-muted);
	font-size: 13px;
}

/* Guide form = CF7 "Guide email" (inc/guide-pdf.php): same layout as the plain form */
.cta-guide__cf7 .wpcf7-form-control-wrap {
	display: block;
}

.cta-guide__cf7 .wpcf7-spinner,
.cta-guide__cf7 .wpcf7-not-valid-tip {
	display: none; /* The tip would push the button down under the pointer; the message shows below. */
}

.cta-guide__cf7 .cta-guide__form.submitting .wpcf7-spinner {
	display: inline-block;
	align-self: center;
	margin: 0;
}

.cta-guide__cf7 .wpcf7-turnstile {
	flex: 1 0 100%;
}

.cta-guide__cf7 .wpcf7-not-valid {
	border-color: var(--c-accent);
}

.cta-guide__cf7 .wpcf7-response-output {
	flex: 1 0 100%;
	margin: 0 !important;
	padding: 8px 0 0 !important;
	border: 0 !important;
	color: var(--c-accent-dark);
	font-size: 14px;
}

.cta-guide__cf7 .cta-guide__form.sent .wpcf7-response-output {
	display: none;
}

/* Inside a guide's white sheet the tool module is an insert, not a second sheet. */
.guide .cta-tool {
	box-shadow: none;
}
