.text-form {
	background-color: var(--color-gray-100);
}

.text-form>.container {
	display: flex;
	gap: 40px;
	justify-content: space-between;
}

.text-form h2 {
	font-size: var(--wp--preset--spacing--xx-large);
	margin-bottom: 24px;
}

.text-form h3 {
	margin-bottom: 34px;
}

.text-form .text {
	max-width: 520px;
}

.text-form .text-content {
	color: var(--color-gray-600);
}

.text-form .hubspot-form-container {
	width: 632px;
	max-width: 100%;
	position: relative;
	z-index: 1;

}

.text-form .hubspot-form-container::before {
	content: "";
	width: calc(100% - 112px);
	height: calc(100% + 46px);
	position: absolute;
	bottom: 0px;
	left: 0px;
	transform: translate(112px, -10px);
	background-color: var(--color-navy-50);
	z-index: -1;
	border-radius: 12px;
}

.text-form .form {
	--padding: 56px;
	--gray-bg-height: 72px;
	max-width: 560px;
	background-color: var(--color-white);
	padding: var(--padding);
	padding-bottom: calc(var(--gray-bg-height) + 10px) !important;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--color-gray-400);
	margin-right: 74px;
}

.text-form .form::after {
	content: "";
	width: 100%;
	height: var(--gray-bg-height);
	background: var(--color-gray-100);
	position: absolute;
	bottom: 0px;
	left: 0px;
}

.text-form .form .hs_submit {
	position: absolute;
	bottom: 16px;
	left: var(--padding);
	z-index: 1;
}

/* Color schemes */
.text-form .hubspot-form-container.cool-gradient:before {
	background-color: var(--color-navy-50);
}

.text-form .hubspot-form-container.mid-gradient:before {
	background-color: var(--color-blue-300);
}

.text-form .hubspot-form-container.warm-gradient:before {
	background-color: #FFC64E;
}

.text-form .hubspot-form-container.bright-gradient::before {
	display: none;
}

.text-form .hubspot-form-container.bright-gradient .form {
	max-width: none;
	margin: 0;
}

@media screen and (max-width: 64rem) {
	.text-form>.container {
		flex-direction: column;
		gap: 64px;
	}

	.text-form .text {
		max-width: 100%;
	}


	.text-form .hubspot-form-container {
		width: 100%;
	}

	.text-form .hubspot-form-container::before {
		width: calc(100% - 64px);
		height: calc(100% + 32px);
		transform: translate(64px, -10px);
	}

	.text-form .form {
		--padding: 32px;
		margin-right: 48px;
		max-width: unset;
	}
}

@media screen and (max-width: 32rem) {
	.text-form .form {
		margin-right: 10px;
	}

	.text-form .hubspot-form-container::before {
		height: 100%;
		transform: translate(64px, -10px);
	}
}