/* FundPeak Disclosure Gate */

:root {
	--fpg-pad: 30px;
	--fpg-text: 15px;
	--fpg-title: 26px;
	--fpg-accent: #0F6A4E;
	--fpg-cta: #B3740D;
	--fpg-border: #eeeeee;
}

html.fpg-html,
.fpg-body {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	height: 100%;
	overflow: hidden !important;
}

#fpg-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: var(--fpg-pad);
	background: #fff;
	overscroll-behavior: none;
}

#fpg-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 900px;
	height: 90vh;
	max-height: 90vh;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

@supports (height: 1dvh) {
	#fpg-box { height: 90dvh; max-height: 90dvh; }
}

#fpg-header {
	flex-shrink: 0;
	padding: 25px var(--fpg-pad) 15px;
	border-bottom: 1px solid var(--fpg-border);
}

#fpg-title {
	margin: 0;
	padding: 0;
	font-size: var(--fpg-title);
	line-height: 1.3;
	color: #222;
}

/* The only scrolling region */
#fpg-text {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	padding: 25px var(--fpg-pad);
	font-size: var(--fpg-text);
	line-height: 1.7;
	color: #333;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
}

#fpg-text p { margin: 0 0 18px; }
#fpg-text strong { font-weight: 700; }

#fpg-footer {
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 20px var(--fpg-pad);
	border-top: 1px solid var(--fpg-border);
	background: #fff;
}

#fpg-error {
	margin: 0 0 15px;
	padding: 10px 12px;
	background: #fff1f1;
	color: #b00020;
	border: 1px solid #f0caca;
	font-size: 14px;
	line-height: 1.5;
}
#fpg-error[hidden],
#fpg-loading[hidden] { display: none; }

#fpg-form input[type="text"],
#fpg-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #222;
	font-size: 15px;
	line-height: 1.4;
}

#fpg-form input[type="text"]:focus,
#fpg-form input[type="email"]:focus {
	outline: none;
	border-color: var(--fpg-accent);
	box-shadow: 0 0 0 2px rgba(15, 106, 78, .10);
}

.fpg-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	cursor: pointer;
}
.fpg-check input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; }

#fpg-submit {
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 3px;
	background: var(--fpg-cta);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: opacity .2s ease;
}
#fpg-submit:hover { opacity: .9; }
#fpg-submit:disabled { opacity: .6; cursor: not-allowed; }

#fpg-loading {
	margin-top: 8px;
	text-align: center;
	font-size: 13px;
	color: #666;
}

/* Screen-reader-only labels and honeypot */
.fpg-sr {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.fpg-hp {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

@media (max-width: 767px) {
	:root { --fpg-pad: 20px; --fpg-text: 14px; --fpg-title: 22px; }
	#fpg-gate { padding: 15px; }
	#fpg-box { height: 95vh; max-height: 95vh; }
	#fpg-header { padding-top: 20px; padding-bottom: 12px; }
	#fpg-text { line-height: 1.65; }
	#fpg-footer { padding-top: 15px; padding-bottom: 15px; }
}

@supports (height: 1dvh) {
	@media (max-width: 767px) {
		#fpg-box { height: 95dvh; max-height: 95dvh; }
	}
}

@media (max-height: 650px) {
	:root { --fpg-pad: 15px; --fpg-text: 13px; --fpg-title: 20px; }
	#fpg-gate { padding: 10px; }
	#fpg-box { height: 96vh; max-height: 96vh; }
	#fpg-header { padding-top: 12px; padding-bottom: 8px; }
	#fpg-text { line-height: 1.55; }
	#fpg-footer { padding-top: 10px; padding-bottom: 10px; }
	#fpg-form input[type="text"],
	#fpg-form input[type="email"] { padding: 9px 11px; margin-bottom: 8px; }
	.fpg-check { margin-bottom: 10px; font-size: 12px; }
	#fpg-submit { padding: 11px 15px; font-size: 14px; }
}
