/*
 * Form panel (inc/form-panel.php): bh/form-with-photo and bh/contact-hero.
 * The agent and the heading on the left (sticky), a form card on the right.
 * Handle: bh-form-panel.
 */
.bh-fwp { padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: 40px; }
.bh-fwp--h1 { padding-block: clamp(20px, 3vw, 32px) clamp(56px, 7vw, 96px); }
.bh-fwp__grid {
	display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 80px); align-items: start;
}
.bh-fwp--h1 .bh-fwp__grid { margin-top: clamp(20px, 3vw, 32px); }
.bh-fwp--h2 .bh-fwp__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }

/* Left: who you are writing to */
.bh-fwp__side { position: sticky; top: 136px; }
.bh-fwp__title {
	margin-top: 14px;
	font: 300 clamp(2.375rem, 4.8vw, 3.875rem)/1.03 var(--wp--preset--font-family--display);
	letter-spacing: -.026em; color: var(--wp--preset--color--primary);
	text-wrap: balance;
}
.bh-fwp--h2 .bh-fwp__title { margin-top: 0; font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.06; letter-spacing: -.02em; }
.bh-fwp__title em { font-style: italic; color: var(--wp--preset--color--accent); }
.bh-fwp__lede { max-width: 46ch; margin-top: 16px; font-size: 1.0625rem; line-height: 1.65; color: var(--wp--preset--color--body); }

.bh-fwp__photo { position: relative; margin: clamp(24px, 3vw, 36px) 0 0; }
.bh-fwp__photo .bh-portrait { max-height: 620px; }
.bh-fwp--h2 .bh-fwp__photo { margin-top: 28px; }
.bh-fwp--square .bh-fwp__photo .bh-portrait { aspect-ratio: 1; max-height: 420px; }
.bh-fwp--h2 .bh-fwp__lede { max-width: 42ch; margin-top: 14px; font-size: 1rem; }
.bh-fwp__photo .bh-portrait__img { object-position: 50% 18%; }
.bh-fwp__photo .bh-portrait__mono span { font-size: clamp(4rem, 8vw, 6rem); }
.bh-fwp__sign {
	position: absolute; left: 20px; right: 20px; bottom: 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 18px;
	background: color-mix(in srgb, var(--wp--preset--color--light) 94%, transparent);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border-radius: var(--wp--custom--radius-lg, 6px);
	box-shadow: var(--wp--preset--shadow--card, 0 10px 30px color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent));
}
.bh-fwp__sign b { display: block; font: 400 1.3125rem/1.15 var(--wp--preset--font-family--display); color: var(--wp--preset--color--primary); }
.bh-fwp__sign span { display: block; margin-top: 3px; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.bh-fwp__langs { display: flex; gap: 6px; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.bh-fwp__langs abbr {
	display: block; padding: 5px 9px;
	border: 1px solid var(--wp--preset--color--stone); border-radius: 13px;
	background: var(--wp--preset--color--white);
	font-size: 0.75rem; font-weight: 600; color: var(--wp--preset--color--primary);
	text-decoration: none; cursor: default;
}

.bh-fwp__direct { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 10px; margin-top: 16px; }
.bh-fwp__direct a {
	display: flex; align-items: center; gap: 12px; min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius-lg, 6px);
	background: var(--wp--preset--color--white);
	text-decoration: none; color: var(--wp--preset--color--primary);
	transition: border-color var(--wp--custom--duration), box-shadow var(--wp--custom--duration);
}
.bh-fwp__direct a:hover { border-color: var(--wp--preset--color--primary); box-shadow: 0 1px 2px color-mix(in srgb, var(--wp--preset--color--primary) 6%, transparent); }
.bh-fwp__direct svg { flex-shrink: 0; color: var(--wp--preset--color--accent); }
.bh-fwp__direct span { min-width: 0; }
.bh-fwp__direct small {
	display: block;
	font: 600 var(--wp--preset--font-size--x-small)/1.3 var(--wp--preset--font-family--body);
	letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--placeholder);
}
.bh-fwp__direct strong { display: block; margin-top: 2px; font-size: 0.9375rem; font-weight: 600; overflow-wrap: anywhere; }

/* Compact card with a round avatar, shown instead of the portrait on small screens */
.bh-fwp__mini { display: none; }

/* Right: the form card */
.bh-fwp__card {
	min-width: 0;
	padding: clamp(24px, 3.4vw, 44px);
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius-lg, 6px);
	box-shadow: 0 0 0 1px var(--wp--preset--color--line), 0 1px 2px color-mix(in srgb, var(--wp--preset--color--primary) 6%, transparent);
	scroll-margin-top: 136px;
}
.bh-fwp__card-title { font: 300 clamp(1.625rem, 2.6vw, 2.125rem)/1.1 var(--wp--preset--font-family--display); letter-spacing: -.015em; }
.bh-fwp__note { margin-top: 8px; font-size: 0.90625rem; color: var(--wp--preset--color--muted); }
.bh-fwp__note a { color: var(--wp--preset--color--primary); font-weight: 600; }
.bh-fwp__card-title { margin-bottom: 26px; }
.bh-fwp__card-title:has(+ .bh-fwp__note) { margin-bottom: 0; }
.bh-fwp__card .bh-fwp__note { margin-bottom: 26px; }
.bh-fwp__card .gform_wrapper { margin-top: 0; }
/* The note above says which fields are required. */
.bh-fwp__card .gform_required_legend { display: none; }

@media (max-width: 959px) {
	.bh-fwp .bh-fwp__grid { grid-template-columns: minmax(0, 1fr); }
	.bh-fwp__side { position: static; }
	.bh-fwp__photo { display: none; }
	.bh-fwp__mini {
		display: flex; align-items: center; gap: 14px;
		margin-top: 20px; padding: 12px;
		background: var(--wp--preset--color--white);
		border-radius: var(--wp--custom--radius-lg, 6px);
		box-shadow: 0 0 0 1px var(--wp--preset--color--line);
	}
	.bh-fwp__mini .bh-portrait { width: 64px; flex-shrink: 0; }
	.bh-fwp__mini b { display: block; font: 400 1.1875rem/1.2 var(--wp--preset--font-family--display); }
	.bh-fwp__mini span { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
	.bh-fwp__card { scroll-margin-top: 88px; }
}
@media (max-width: 419px) {
	.bh-fwp__direct { grid-template-columns: minmax(0, 1fr); }
	.bh-fwp__sign { flex-wrap: wrap; }
}
