/* Volunteer campaign modal
 * Scoped to the custom volunteer modal only.
 * Does not alter Gravity Forms globally.
 */

.pl_volunteer_modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 110px 24px 24px;
}

.pl_volunteer_modal.is-open {
	display: flex;
}

.pl_volunteer_modal_backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.pl_volunteer_modal_panel {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: calc(100vh - 134px);
	overflow-y: auto;
	background: #ffffff;
	padding: 48px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.pl_volunteer_modal_close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #111111;
}

.pl_volunteer_modal_header {
	margin-bottom: 32px;
	padding-right: 48px;
}

.pl_volunteer_modal_header h2 {
	margin: 0 0 12px;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 700;
}

.pl_volunteer_modal_header p {
	margin: 0;
	font-size: 18px;
	line-height: 1.45;
}

.pl_volunteer_modal_form .gform_wrapper {
	margin: 0;
}

.pl_volunteer_modal_form .gform_fields {
	row-gap: 24px;
}

.pl_volunteer_modal_form .gfield_label,
.pl_volunteer_modal_form .gform-field-label {
	font-weight: 700;
	color: #111111;
}

.pl_volunteer_modal_form input[type='text'],
.pl_volunteer_modal_form input[type='email'],
.pl_volunteer_modal_form input[type='tel'],
.pl_volunteer_modal_form input[type='number'],
.pl_volunteer_modal_form input[type='date'],
.pl_volunteer_modal_form select,
.pl_volunteer_modal_form textarea {
	width: 100%;
	border: 1px solid #b7b7b7;
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	padding: 12px 14px;
	font-size: 16px;
	line-height: 1.4;
}

.pl_volunteer_modal_form input[type='text']:focus,
.pl_volunteer_modal_form input[type='email']:focus,
.pl_volunteer_modal_form input[type='tel']:focus,
.pl_volunteer_modal_form input[type='number']:focus,
.pl_volunteer_modal_form input[type='date']:focus,
.pl_volunteer_modal_form select:focus,
.pl_volunteer_modal_form textarea:focus {
	outline: 2px solid #ef3f17;
	outline-offset: 1px;
	border-color: #ef3f17;
}

.pl_volunteer_modal_form textarea {
	min-height: 130px;
	resize: vertical;
}

.pl_volunteer_modal_form .gsection {
	margin-top: 16px;
	padding-top: 8px;
	border-bottom: 2px solid #ef3f17;
}

.pl_volunteer_modal_form .gsection_title {
	font-size: 24px;
	line-height: 1.2;
	margin-bottom: 8px;
}

.pl_volunteer_modal_form .gsection_description {
	font-size: 15px;
	line-height: 1.45;
	margin-bottom: 14px;
}

.pl_volunteer_modal_form .gchoice {
	margin-bottom: 8px;
}

.pl_volunteer_modal_form .gchoice input[type='checkbox'],
.pl_volunteer_modal_form .gchoice input[type='radio'] {
	margin-right: 8px;
}

.pl_volunteer_modal_form .gform_button,
.pl_volunteer_modal_form input[type='submit'] {
	border: 2px solid #ef3f17;
	background: #ef3f17;
	color: #ffffff;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pl_volunteer_modal_form .gform_button:hover,
.pl_volunteer_modal_form input[type='submit']:hover {
	background: #ffffff;
	color: #ef3f17;
}

.pl_volunteer_modal_form .gfield_description,
.pl_volunteer_modal_form .instruction {
	font-size: 14px;
	line-height: 1.4;
	color: #5a5a5a;
}

.pl_volunteer_modal_form .validation_message {
	color: #b42318;
	font-weight: 700;
}

.pl_volunteer_modal_form .gform_validation_errors {
	border: 1px solid #b42318;
	background: #fff6f5;
}

body.pl_volunteer_modal_open {
	overflow: hidden;
}

@media screen and (max-width: 767.98px) {
	.pl_volunteer_modal {
		padding: 0;
		align-items: stretch;
	}

	.pl_volunteer_modal_panel {
		width: 100%;
		max-height: 100vh;
		min-height: 100vh;
		padding: 72px 24px 32px;
		box-shadow: none;
	}

	.pl_volunteer_modal_close {
		top: 18px;
		right: 18px;
	}

	.pl_volunteer_modal_header {
		padding-right: 0;
		margin-bottom: 28px;
	}

	.pl_volunteer_modal_header h2 {
		font-size: 30px;
	}

	.pl_volunteer_modal_header p {
		font-size: 16px;
	}

	.pl_volunteer_modal_form .gsection_title {
		font-size: 22px;
	}
}

/* Gravity Forms datepicker must render above the volunteer modal. */
#ui-datepicker-div.gform-theme-datepicker {
	z-index: 100000 !important;
}