/* ── CTA Block ────────────────────────────────────────────────────────────── */

/* Outer wrapper: padding-top gives the image room to overflow above the rect */
.cf-cta-wrap {
	padding-top: 80px;
	padding-bottom: var(--wp--preset--spacing--10);
	padding-inline: 1.5rem;
}

/* The rounded rectangle */
.cf-cta-block {
	position: relative;
	overflow: visible; /* image can extend above the top edge */
	max-width: 1200px;
	margin-inline: auto;
	border-radius: 20px;
	background: linear-gradient(120deg, #2235C8 0%, #5B2D8E 55%, #C026A0 100%);
	display: flex;
	flex-direction: row;
	min-height: 200px;
}

/* ── Content (text side) ──────────────────────────────────────────────────── */

.cf-cta-block__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.0rem;
	padding: 3rem;
}

.cf-cta-block__eyebrow {
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 0.25rem;
}

.cf-cta-block__heading {
	color: #ffffff;
	font-size: 2.2em;
	font-weight: 900;
	line-height: 1.2;
	margin: 0;
}

.cf-cta-block__subtext {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.2;
	margin: 0.75rem 0 0;
}

.cf-cta-block__trust-signals {
	color: rgba(255, 255, 255, 0.65);
	font-size: 13px;
	line-height: 1.5;
	margin: 0.75rem 0 0;
}

.cf-cta-block__checkmark {
	color: #19E0AB;
	font-weight: 900;
}

.cf-cta-block__btn {
	display: inline-block;
	background: #40ffd3;
	color: #181075;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: none;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	border: 2px solid #40ffd3;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}

.cf-cta-block__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cf-cta-block__btn-subtext {
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	line-height: 1.4;
	margin: 0.25rem 0 0;
	text-align: center;
}

.cf-cta-block_demo-button {
	padding-bottom: 0;
	text-align: center;
	margin-block-end: 0em;
}

/* ── Image side ───────────────────────────────────────────────────────────── */

/* Flex item sized to 50% — height fills the block via stretch */
.cf-cta-block__image {
	flex: 0 0 50%;
	position: relative; /* anchor for the absolutely-placed img */
	padding: 3rem;
}

/* Img pinned to bottom of its container; natural height exceeds container
   so it overflows above the rounded rectangle (overflow: visible on block) */
.cf-cta-block__img {
	position: absolute;
	bottom: 3rem;
	right: 3rem;
	left: auto;
	width: calc(100% - 6rem);
	height: auto;
	display: block;
}

/* ── Image-left variant ───────────────────────────────────────────────────── */

/* Reverse the flex order — image container moves to left, text to right.
   Both sides use identical structural widths so the gaps are perfectly mirrored. */
.cf-cta-block--image-left {
	flex-direction: row-reverse;
}

.cf-cta-block--image-left .cf-cta-block__content {
	align-items: flex-end;
	text-align: right;
}

.cf-cta-block--image-left .cf-cta-block__img {
	left: 3rem;
	right: auto;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.cf-cta-wrap {
		padding-top: var(--wp--preset--spacing--10);
	}

	.cf-cta-block__image {
		display: none;
	}
}

@media (max-width: 600px) {
	.cf-cta-block__heading {
		font-size: 1.6em;
	}

	.cf-cta-block__content {
		padding: 2rem;
	}
}
