.datajoint-close-cta {
	background: var(--wp--preset--color--bg-light-grey, #f4f7fa);
	color: var(--wp--preset--color--text-on-light, #011627);
	padding-block: 64px;
}

@media (min-width: 1024px) {
	.datajoint-close-cta { padding-block: 120px; }
}

.datajoint-close-cta__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--dj-gutter, 48px);
	display: flex;
	flex-direction: column;
	gap: 48px;
}

@media (min-width: 1024px) {
	.datajoint-close-cta__inner {
		flex-direction: row;
		align-items: center;
		gap: 64px;
	}
}

.datajoint-close-cta__main { width: 100%; }

@media (min-width: 1024px) {
	.datajoint-close-cta__main { width: 60%; }
}

.datajoint-close-cta__eyebrow {
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-close-cta__heading {
	margin: 0 0 1.5rem;
	max-width: 48rem;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--text-on-light, #011627);
}

@media (min-width: 1024px) {
	.datajoint-close-cta__heading { font-size: 40px; }
}

.datajoint-close-cta__lede {
	margin: 0 0 2.5rem;
	max-width: 42rem;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-size: 20px;
	line-height: 1.6;
	color: rgba(1, 22, 39, 0.8);
}

.datajoint-close-cta__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 9999px;
	background: var(--wp--preset--color--brand-blue, #00a0df);
	padding: 16px 28px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 15px;
	color: #fff;
	transition: transform 150ms ease;
}

.datajoint-close-cta__button:hover { transform: scale(1.02); }

.datajoint-close-cta__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-top: 2.5rem;
}

.datajoint-close-cta__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 14px;
	color: var(--wp--preset--color--text-on-light, #011627);
}

.datajoint-close-cta__link .datajoint-close-cta__arrow { transition: transform 150ms ease; }
.datajoint-close-cta__link:hover .datajoint-close-cta__arrow { transform: translateX(4px); }

/* Newsletter */
.datajoint-close-cta__newsletter {
	margin-top: 4rem;
	/* Widen so the email input has room to breathe like the Lovable example
	   (the input was being squeezed to ~190px next to the submit button). */
	max-width: 46rem;
	border-top: 1px solid var(--wp--preset--color--border-light, #e2e2e2);
	padding-top: 2.5rem;
}

.datajoint-close-cta__nl-title {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-close-cta__nl-text {
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(1, 22, 39, 0.75);
}

.datajoint-close-cta__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 640px) {
	.datajoint-close-cta__form { flex-direction: row; }
}

.datajoint-close-cta__input {
	flex: 1;
	border-radius: 9999px;
	border: 1px solid var(--wp--preset--color--border-light, #e2e2e2);
	background: #fff;
	padding: 12px 20px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-size: 14px;
	color: var(--wp--preset--color--text-on-light, #011627);
}

.datajoint-close-cta__input::placeholder { color: var(--wp--preset--color--text-secondary, #808285); }
.datajoint-close-cta__input:focus { outline: none; border-color: var(--wp--preset--color--brand-blue, #00a0df); }

.datajoint-close-cta__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: var(--wp--preset--color--text-on-light, #011627);
	padding: 12px 24px;
	border: 0;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	transition: transform 150ms ease;
}

.datajoint-close-cta__submit:hover { transform: scale(1.02); }

/*
 * Restyle the embedded WPForms newsletter form to match the pill input + dark
 * submit button of the native form. WPForms ships its own base CSS; we override
 * the relevant pieces scoped to our wrapper.
 */
.datajoint-close-cta__wpforms .wpforms-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 640px) {
	.datajoint-close-cta__wpforms .wpforms-form {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}
}

/* WPForms wraps the field in a container with 15px block padding that shoves the
   input below the button — zero it and let the input define its own height. */
.datajoint-close-cta__wpforms .wpforms-field {
	flex: 1 1 320px;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 260px;
}

.datajoint-close-cta__wpforms .wpforms-field-row,
.datajoint-close-cta__wpforms div.wpforms-container,
.datajoint-close-cta__wpforms .wpforms-field-container {
	margin: 0 !important;
	padding: 0 !important;
}

.datajoint-close-cta__wpforms input[type="email"] {
	box-sizing: border-box !important;
	width: 100% !important;
	height: 50px !important;
	border-radius: 9999px !important;
	border: 1px solid var(--wp--preset--color--border-light, #e2e2e2) !important;
	background: #fff !important;
	padding: 0 20px !important;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif) !important;
	font-size: 14px !important;
	line-height: normal !important;
	color: var(--wp--preset--color--text-on-light, #011627) !important;
}

.datajoint-close-cta__wpforms input[type="email"]:focus {
	outline: none !important;
	border-color: var(--wp--preset--color--brand-blue, #00a0df) !important;
	box-shadow: none !important;
}

/* Hide the WPForms field label (the design uses a placeholder only). */
.datajoint-close-cta__wpforms .wpforms-field-label {
	display: none !important;
}

.datajoint-close-cta__wpforms .wpforms-submit-container {
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
}

.datajoint-close-cta__wpforms button.wpforms-submit,
.datajoint-close-cta__wpforms .wpforms-submit {
	box-sizing: border-box !important;
	height: 50px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 9999px !important;
	background: var(--wp--preset--color--text-on-light, #011627) !important;
	padding: 0 28px !important;
	margin: 0 !important;
	border: 0 !important;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif) !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	color: #fff !important;
	transition: transform 150ms ease;
}

.datajoint-close-cta__wpforms button.wpforms-submit:hover,
.datajoint-close-cta__wpforms .wpforms-submit:hover {
	transform: scale(1.02);
	background: var(--wp--preset--color--text-on-light, #011627) !important;
}

/* Hide WPForms' default field label/sublabel clutter for the single-field form. */
.datajoint-close-cta__wpforms .wpforms-field-label,
.datajoint-close-cta__wpforms .wpforms-field-sublabel {
	display: none !important;
}

/* Media column */
.datajoint-close-cta__media {
	display: none;
}

/* The scientist image only reads well alongside the form in the two-column
   desktop layout. On tablet it dangled below the stacked form, so only show it
   at >=1024px (client feedback). Mobile already hid it. */
@media (min-width: 1024px) {
	.datajoint-close-cta__media {
		display: flex;
		justify-content: flex-end;
		width: 40%;
		padding-left: 32px;
	}
}

.datajoint-close-cta__media-inner { position: relative; }

.datajoint-close-cta__glow {
	position: absolute;
	inset: -24px;
	z-index: -1;
	border-radius: 24px;
	background: radial-gradient(closest-side, rgba(0, 160, 223, 0.35), transparent 70%);
	filter: blur(40px);
}

.datajoint-close-cta__accent {
	position: absolute;
	bottom: -16px;
	left: -16px;
	width: 96px;
	height: 96px;
	border-radius: 16px;
	background: var(--wp--preset--color--brand-blue, #00a0df);
}

@media (min-width: 1024px) {
	.datajoint-close-cta__accent { width: 128px; height: 128px; }
}

.datajoint-close-cta__frame {
	position: relative;
	width: 300px;
	height: 380px;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 20px 60px -15px rgba(1, 22, 39, 0.35);
}

@media (min-width: 1024px) {
	.datajoint-close-cta__frame { width: 380px; height: 480px; }
}

.datajoint-close-cta__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.datajoint-close-cta__duotone {
	position: absolute;
	inset: 0;
	mix-blend-mode: color;
	background: linear-gradient(135deg, rgba(0, 160, 223, 0.55) 0%, rgba(10, 22, 40, 0.55) 100%);
}

.datajoint-close-cta__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(1, 22, 39, 0.35) 100%);
}
