/*
 * Block: LP Guide Offer
 *
 * Source: Figma "Campaign / Buyer's Guide" (Desktop 1440 / Mobile 390).
 * Cover panel beside the copy from 1024px, above it below. The HubSpot form
 * (legacy v2 embed, email only) is laid out as Figma's email + button row
 * from 768px and stacked below; its label is visually hidden (the design has
 * none) but kept for screen readers.
 */

.wp-block-aafcpas-lp-guide {
	background-color: var(--wp--preset--color--teal-1200);
	background-image: linear-gradient(148.34deg, 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) → 48/64 (desktop). */
	padding: clamp(32px, 26.057px + 1.5238vw, 48px) clamp(20px, 3.657px + 4.1905vw, 64px);
}

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

/* ---------- Cover ---------- */

.aaf-lp-guide__cover {
	display: flex;
	align-items: center;
	justify-content: center;
	/* Figma mobile: 220px tall at 390px. */
	height: clamp(220px, 40vw, 360px);
	padding: 18px;
	border-radius: var(--wp--custom--border-radius--textarea);
	background-color: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.aaf-lp-guide__cover-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

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

.aaf-lp-guide__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.aaf-lp-guide__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aaf-lp-guide__kicker {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-md);
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--teal-400);
}

.aaf-lp-guide__headline {
	font-size: clamp(32px, 29.029px + 0.7619vw, 40px);
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--white-50);
}

.aaf-lp-guide__points {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.aaf-lp-guide__point img {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	/* Shared lp-icons are drawn in black; white here as in Figma. */
	filter: brightness(0) invert(1);
}

.aaf-lp-guide__access {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aaf-lp-guide__lead {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-md);
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--white-50);
}

.aaf-lp-guide__note {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--white-700);
}

.aaf-lp-guide__placeholder {
	margin: 0;
	padding: 16px;
	border: 1px dashed var(--wp--preset--color--white-700);
	border-radius: var(--wp--custom--border-radius--card);
	color: var(--wp--preset--color--white-700);
}

/* ==========================================================================
   HubSpot form (legacy v2): email field + submit
   ========================================================================== */

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

.wp-block-aafcpas-lp-guide .hs-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: inherit;
}

.wp-block-aafcpas-lp-guide .hs-form fieldset {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0;
	padding: 0;
	border: 0;
}

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

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

/* Visually hidden label (Figma shows the placeholder only). */
.wp-block-aafcpas-lp-guide .hs-form .hs-form-field > label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wp-block-aafcpas-lp-guide .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]) {
	box-sizing: border-box;
	width: 100% !important;
	height: 60px !important;
	margin: 0 !important;
	padding: 16px !important;
	border: 1px solid var(--wp--preset--color--white-50) !important;
	border-radius: var(--wp--custom--border-radius--pill) !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--white-50) !important;
}

.wp-block-aafcpas-lp-guide .hs-form input.hs-input::placeholder {
	color: var(--wp--preset--color--white-700) !important;
	opacity: 1;
}

.wp-block-aafcpas-lp-guide .hs-form input.hs-input:focus,
.wp-block-aafcpas-lp-guide .hs-form input.hs-input:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal-400);
	outline-offset: 2px;
}

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

.wp-block-aafcpas-lp-guide .hs-form .hs-error-msgs label,
.wp-block-aafcpas-lp-guide .hs-form .hs-error-msg {
	font-size: 14px !important;
	color: var(--wp--preset--color--orange-300) !important;
}

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

.wp-block-aafcpas-lp-guide .hs-form .legal-consent-container,
.wp-block-aafcpas-lp-guide .hs-form .hs-richtext {
	font-size: 14px;
	color: var(--wp--preset--color--white-700);
}

.wp-block-aafcpas-lp-guide .hs-form .hs_submit,
.wp-block-aafcpas-lp-guide .hs-form .hs-submit,
.wp-block-aafcpas-lp-guide .hs-form .actions {
	margin: 0 !important;
	padding: 0 !important;
}

.wp-block-aafcpas-lp-guide .hs-form input[type="submit"].hs-button {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	height: 60px !important;
	margin: 0 !important;
	padding: 8px 24px !important;
	border: 0 !important;
	border-radius: var(--wp--custom--border-radius--pill) !important;
	background: var(--wp--preset--color--teal-700) !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	text-align: center;
	text-shadow: none !important;
	color: var(--wp--preset--color--white-50) !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

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

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

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

.wp-block-aafcpas-lp-guide .submitted-message {
	font-size: var(--wp--preset--font-size--body-md);
	color: var(--wp--preset--color--white-50);
}

/* Email + button on one row from 768px (Figma desktop: 16px gap, 184px button). */
@media (min-width: 768px) {
	.wp-block-aafcpas-lp-guide .hs-form {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 12px 16px;
	}

	.wp-block-aafcpas-lp-guide .hs-form > fieldset,
	.wp-block-aafcpas-lp-guide .hs-form > .hs-form-field {
		flex: 1 1 0;
		min-width: 0;
	}

	.wp-block-aafcpas-lp-guide .hs-form > .hs_submit,
	.wp-block-aafcpas-lp-guide .hs-form > .hs-submit {
		flex: 0 0 184px;
	}

	.wp-block-aafcpas-lp-guide .hs-form > .hs_recaptcha,
	.wp-block-aafcpas-lp-guide .hs-form > .legal-consent-container,
	.wp-block-aafcpas-lp-guide .hs-form > .hs_error_rollup {
		flex: 0 0 100%;
	}
}

/* ---------- Side by side from 1024px ---------- */

@media (min-width: 1024px) {
	.wp-block-aafcpas-lp-guide .aaf-lp-guide__inner {
		flex-direction: row;
		align-items: center;
		gap: 48px;
	}

	.aaf-lp-guide__cover {
		flex: 0 0 min(500px, 42%);
		height: auto;
		aspect-ratio: 500 / 480;
		padding: 24px;
	}
}

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