/* PayRecs forms (contact, newsletter): additions on top of the Gravity Forms and theme CSS. Loaded only on pages with a form. */

/* Conditional fields (contact) are toggled with the hidden attribute; GF CSS would otherwise win over [hidden]. */
.gform_wrapper .gfield[hidden],
.gform_wrapper [hidden] {
	display: none !important;
}

/* Two-challenge limit: boxes beyond the second are disabled. */
.gform_wrapper .gchoice.pr-choice-disabled label {
	opacity: .45;
	cursor: not-allowed;
}

/* Sending state. */
.gform_wrapper.pr-is-sending .gform_button {
	opacity: .65;
	cursor: progress;
}

/* Turnstile renders only when a challenge is needed (appearance: interaction-only). */
.pr-turnstile:not(:empty) {
	margin-top: 12px;
}

/* Notice at collection. */
.pr-form-notice {
	font-size: 14px;
	line-height: 1.5;
	/* #818181 is 3.9:1 on white; #6c757d (the theme's Bootstrap secondary gray) is 4.69:1, which meets WCAG AA. */
	color: #6c757d;
	margin: 16px 0 0;
	max-width: 46em;
}
.pr-form-notice a {
	color: #174778;
	color: var(--color-theme-mdblue, #174778);
	text-decoration: underline;
}
.gf_simple_horizontal_wrapper ~ .pr-form-notice,
.gf_simple_horizontal_wrapper .pr-form-notice {
	margin-top: 12px;
}

/* Newsletter: privacy-policy link inside the consent label. */
.gform_wrapper .gfield_consent_label a {
	color: #174778;
	color: var(--color-theme-mdblue, #174778);
}

/* Newsletter thank-you state. Same type scale as the "Stay in the know" heading it replaces. */
.pr-confirmation {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 4px 0 4px 20px;
	border-left: 3px solid #6dab43;
	border-left: 3px solid var(--color-theme-green, #6dab43);
	max-width: 46em;
	outline: none;
	animation: pr-confirm-in .35s cubic-bezier(.16, .08, .355, 1) both;
}
.pr-confirmation:focus-visible {
	outline: 2px solid #174778;
	outline-offset: 6px;
}
.pr-confirmation__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	color: #6dab43;
	color: var(--color-theme-green, #6dab43);
	margin-top: 2px;
}
.pr-confirmation__body {
	min-width: 0;
}
.gform_wrapper .pr-confirmation .pr-confirmation__title,
.pr-confirmation .pr-confirmation__title {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.15;
	color: #174778;
	color: var(--color-theme-mdblue, #174778);
}
.pr-confirmation__text {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
	color: #818181;
	color: var(--color-theme-textgray, #818181);
}
@keyframes pr-confirm-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pr-confirmation { animation: none; }
}
@media (max-width: 575px) {
	.pr-confirmation { gap: 14px; padding-left: 14px; }
	.pr-confirmation__icon { width: 36px; height: 36px; }
	.gform_wrapper .pr-confirmation .pr-confirmation__title,
	.pr-confirmation .pr-confirmation__title { font-size: 24px; }
	.pr-confirmation__text { font-size: 18px; }
}
