/* BioNurture lead pop-up. Form fields inherit the theme's .membership-form styles. */
html.slp-open { overflow: hidden; }
/* Keep the BioGuide chat bubble from sitting on top of the dialog. */
html.slp-open #q2-widget-container { display: none !important; }

.slp {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px 16px;
}
.slp[hidden] { display: none !important; }

.slp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 29, 29, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.slp__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	background: #F9F9F7;
	color: #1D1D1D;
	border-radius: 8px;
	padding: 40px 40px 28px;
	box-shadow: 0 24px 60px rgba(29, 29, 29, 0.25);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	outline: none;
	font-family: 'Lab Grotesque', sans-serif;
}

.slp.is-visible .slp__backdrop { opacity: 1; }
.slp.is-visible .slp__dialog { opacity: 1; transform: none; }

.slp__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #1D1D1D;
	cursor: pointer;
}
.slp__close:hover { background: rgba(29, 29, 29, 0.06); }
.slp__close:focus-visible { outline: 2px solid #86a09b; outline-offset: 2px; }

.slp__intro { display: grid; gap: 10px; margin-bottom: 24px; padding-right: 24px; }
.slp__eyebrow {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5E7A74;
	font-weight: 500;
}
.slp__title {
	margin: 0;
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: #1D1D1D;
}
.slp__title em { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 400; }
.slp__lede { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(29, 29, 29, 0.75); }

.slp__form .membership-form_wrapper,
.slp__form .membership-form { max-width: none; }
.slp__form .gform_fields { row-gap: 24px !important; column-gap: 24px !important; }
.slp__form .gf_page_steps { margin-bottom: 20px !important; gap: 8px 14px !important; }
.slp__form .gf_step:not(.gf_step_active) .gf_step_label { display: none !important; }
.slp__form .partial_entry_warning { font-size: 12px !important; margin-bottom: 16px !important; }
.slp__form .choice-list-field { margin-top: 8px !important; }
.slp__form .gform_confirmation_message { font-size: 16px; line-height: 1.5; }

.slp__foot {
	margin: 20px 0 0;
	font-size: 12px;
	color: rgba(29, 29, 29, 0.6);
}

@media (max-width: 600px) {
	.slp { padding: 0; place-items: end stretch; }
	.slp__dialog {
		width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 12px 12px 0 0;
		padding: 32px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	}
	.slp__form .gfield--width-half,
	.slp__form .gf_left_half,
	.slp__form .gf_right_half { grid-column: span 12 !important; }
}

@media (max-height: 760px) {
	.slp__dialog { padding: 28px 32px 20px; }
	.slp__intro { gap: 6px; margin-bottom: 16px; }
	.slp__title { font-size: 26px; }
	.slp__lede { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.slp__backdrop, .slp__dialog { transition: none; }
}
