/*
 * Block: LP Hero + Form
 *
 * Source: Figma "Campaign / Hero with SOC Form" (Desktop 1440 / Mobile 390).
 * Sizes scale fluidly between those frames (clamp() from 390px to 1440px).
 * Two columns from 1200px up; stacked below. (Figma only defines 1440 and
 * 390; at 1024 the copy column next to the 508px card was ~360px wide.)
 */

.wp-block-aafcpas-lp-hero-form {
	background-color: var(--wp--preset--color--teal-1200);
	background-image: linear-gradient(138.13deg, var(--wp--preset--color--teal-1200) 49.544%, var(--wp--preset--color--teal-900) 149.73%);
	color: var(--wp--preset--color--white-50);
	font-family: var(--wp--preset--font-family--plus-jakarta-sans);
	/* Figma: 32/20 (mobile) → 40/64 (desktop). */
	padding: clamp(32px, 29.029px + 0.7619vw, 40px) clamp(20px, 3.657px + 4.1905vw, 64px);
}

.aaf-lp-hero-form__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1312px;
	margin: 0 auto;
}

/* ---------- Content column ---------- */

.aaf-lp-hero-form__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(20px, 18.514px + 0.381vw, 24px);
	min-width: 0;
}

.aaf-lp-hero-form__eyebrow {
	align-items: center;
}

.aaf-lp-hero-form__eyebrow .aaf-eyebrow__icon {
	margin-top: 0;
}

.aaf-lp-hero-form__eyebrow .aaf-eyebrow__text {
	font-size: var(--wp--preset--font-size--body-md);
	font-weight: 500;
	line-height: 1.5;
	text-transform: none;
	color: var(--wp--preset--color--white-50);
}

.aaf-lp-hero-form__headline {
	margin: 0;
	font-size: clamp(32px, 23.086px + 2.2857vw, 56px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--white-50);
}

.aaf-lp-hero-form__description,
.aaf-lp-hero-form__description p {
	margin: 0;
	font-size: clamp(16px, 15.257px + 0.1905vw, 18px);
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--white-600);
}

.aaf-lp-hero-form__description p + p {
	margin-top: 1em;
}

.aaf-lp-hero-form__description a {
	color: inherit;
}

.aaf-lp-hero-form__points {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 10.514px + 0.381vw, 16px);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aaf-lp-hero-form__point {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: var(--wp--preset--font-size--body-md);
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--white-50);
}

.aaf-lp-hero-form__check {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: var(--wp--custom--border-radius--pill);
	background-color: var(--wp--preset--color--white-50);
}

.aaf-lp-hero-form__check img {
	display: block;
	width: 18px;
	height: 18px;
}

/* ---------- Form card ---------- */

.aaf-lp-hero-form__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: clamp(20px, 15.543px + 1.1429vw, 32px);
	border-radius: var(--wp--custom--border-radius--section);
	background-color: var(--wp--preset--color--white-50);
	color: var(--wp--preset--color--black-500);
}

.aaf-lp-hero-form__card-intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aaf-lp-hero-form__form-title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(20px, 17.029px + 0.7619vw, 28px);
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--black-500);
}

.aaf-lp-hero-form__form-intro,
.aaf-lp-hero-form__note {
	margin: 0;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--black-300);
}

.aaf-lp-hero-form__form-intro {
	font-size: var(--wp--preset--font-size--body-md);
}

.aaf-lp-hero-form__note {
	font-size: var(--wp--preset--font-size--body-sm);
	text-align: center;
}

/* After a successful submission (landing.js adds .is-submitted) only
   HubSpot's thank-you message stays in the card. */
.aaf-lp-hero-form__card.is-submitted .aaf-lp-hero-form__card-intro,
.aaf-lp-hero-form__card.is-submitted .aaf-lp-hero-form__note {
	display: none;
}

.aaf-lp-hero-form__placeholder {
	margin: 0;
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--grey-300);
	border-radius: var(--wp--custom--border-radius--card);
	color: var(--wp--preset--color--black-300);
	text-align: center;
}

/* ---------- Two columns from 1200px ---------- */

@media (min-width: 1200px) {
	.aaf-lp-hero-form__inner {
		flex-direction: row;
		align-items: center;
		gap: clamp(48px, -112px + 13.3333vw, 80px);
	}

	.aaf-lp-hero-form__content {
		flex: 1 1 0;
	}

	.aaf-lp-hero-form__card {
		flex: 0 0 508px;
	}
}

@media (max-width: 767px) {
	.wp-block-aafcpas-lp-hero-form {
		background-image: linear-gradient(100.24deg, var(--wp--preset--color--teal-1200) 49.544%, var(--wp--preset--color--teal-900) 149.73%);
	}

	.aaf-lp-hero-form__headline {
		line-height: 1.3;
	}
}

/* ==========================================================================
   HubSpot form (legacy v2 embed: renders .hs-form in the page DOM).
   HubSpot injects its own default stylesheet, hence the !important flags,
   same approach as the Centered Form / Contact Form blocks.
   ========================================================================== */

.wp-block-aafcpas-lp-hero-form .hbspt-form {
	width: 100%;
}

.wp-block-aafcpas-lp-hero-form .hs-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-family: var(--wp--preset--font-family--plus-jakarta-sans);
}

.wp-block-aafcpas-lp-hero-form .hs-form fieldset,
.wp-block-aafcpas-lp-hero-form .hs-form .form-columns-1,
.wp-block-aafcpas-lp-hero-form .hs-form .form-columns-2 {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0;
	padding: 0;
	border: 0;
}

.wp-block-aafcpas-lp-hero-form .hs-form .form-columns-2 {
	display: flex;
	gap: 16px;
}

.wp-block-aafcpas-lp-hero-form .hs-form .form-columns-2 > .hs-form-field {
	flex: 1;
	width: auto !important;
}

@media (max-width: 479px) {
	.wp-block-aafcpas-lp-hero-form .hs-form .form-columns-2 {
		flex-direction: column;
	}
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-form-field {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-form-field .input {
	margin: 0 !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form label:not(.hs-error-msg) {
	display: block;
	margin: 0 0 10px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--black-500) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-form-required {
	color: var(--wp--preset--color--orange-700) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-field-desc {
	margin: -4px 0 10px;
	font-size: 14px;
	color: var(--wp--preset--color--black-300);
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-recaptcha label {
	display: none !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.wp-block-aafcpas-lp-hero-form .hs-form select.hs-input,
.wp-block-aafcpas-lp-hero-form .hs-form textarea.hs-input {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 16px !important;
	border: 1px solid var(--wp--preset--color--grey-300) !important;
	border-radius: var(--wp--custom--border-radius--pill) !important;
	background: var(--wp--preset--color--white-50) !important;
	box-shadow: none !important;
	outline: none;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--black-500) !important;
	transition: border-color 0.2s ease;
}

.wp-block-aafcpas-lp-hero-form .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.wp-block-aafcpas-lp-hero-form .hs-form select.hs-input {
	height: 60px !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form textarea.hs-input {
	min-height: 120px;
	border-radius: var(--wp--custom--border-radius--textarea) !important;
	resize: vertical;
}

.wp-block-aafcpas-lp-hero-form .hs-form select.hs-input {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 48px !important;
	background: var(--wp--preset--color--white-50) url("../../assets/icon-caret-down.svg") no-repeat right 16px center / 24px 24px !important;
	cursor: pointer;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-input::placeholder {
	color: var(--wp--preset--color--black-300) !important;
	opacity: 1;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-input:hover {
	border-color: var(--wp--preset--color--black-300) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-input:focus,
.wp-block-aafcpas-lp-hero-form .hs-form .hs-input:focus-visible {
	border-color: var(--wp--preset--color--orange-700) !important;
	box-shadow: 0 0 0 1px var(--wp--preset--color--orange-700) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-input.error,
.wp-block-aafcpas-lp-hero-form .hs-form .hs-input.invalid {
	border-color: var(--wp--preset--color--danger-600) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-error-msgs {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs-error-msgs label,
.wp-block-aafcpas-lp-hero-form .hs-form .hs-error-msg {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--wp--preset--color--danger-600) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .hs_error_rollup {
	display: none;
}

.wp-block-aafcpas-lp-hero-form .hs-form .legal-consent-container,
.wp-block-aafcpas-lp-hero-form .hs-form .hs-richtext {
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--black-300);
}

/* Submit: Figma "Campaign action" pill, 60px, 16/8 padding, label left,
   white 44px icon circle on the right. HubSpot renders an <input>, which
   can't hold the icon, so the circle sits on the .actions wrapper. */
.wp-block-aafcpas-lp-hero-form .hs-form .hs_submit,
.wp-block-aafcpas-lp-hero-form .hs-form .hs-submit {
	margin: 0 !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .actions {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form .actions::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--border-radius--pill);
	background: var(--wp--preset--color--white-50) url("../../assets/icon-arrow-right.svg") no-repeat center / 24px 24px;
	pointer-events: none;
}

.wp-block-aafcpas-lp-hero-form .hs-form input[type="submit"].hs-button {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	height: 60px !important;
	margin: 0 !important;
	padding: 8px 64px 8px 16px !important;
	border: 0 !important;
	border-radius: var(--wp--custom--border-radius--pill) !important;
	background: var(--wp--preset--color--orange-700) !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: clamp(14px, 13.257px + 0.1905vw, 16px) !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	text-align: left;
	text-shadow: none !important;
	color: var(--wp--preset--color--white-50) !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wp-block-aafcpas-lp-hero-form .hs-form input[type="submit"].hs-button:hover {
	background: var(--wp--preset--color--orange-800) !important;
}

.wp-block-aafcpas-lp-hero-form .hs-form input[type="submit"].hs-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--orange-700);
	outline-offset: 2px;
}

.wp-block-aafcpas-lp-hero-form .hs-form input[type="submit"].hs-button:active {
	background: var(--wp--preset--color--orange-900) !important;
}

/* Post-submit thank-you message HubSpot swaps in for the form. */
.wp-block-aafcpas-lp-hero-form .submitted-message {
	font-size: var(--wp--preset--font-size--body-md);
	line-height: 1.5;
	color: var(--wp--preset--color--black-500);
}
