/**
 * Signup / Get Involved form enhancements.
 */

#giform .giform-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.primarycontent--get-involved .inner {
	width: 65%;
	max-width: 900px;
}

.primarycontent--get-involved > .inner > p {
	text-align: center;
	color: #0c55a4;
	margin-bottom: 30px;
}

.primarycontent--get-involved .giform-error {
	color: #cc3333;
	font-weight: 600;
	margin-bottom: 1rem;
}

#giform {
	max-width: 720px;
	margin: 0 auto;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(12, 85, 164, 0.18);
}

#giform .giform-fields {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 2%;
	margin-bottom: 8px;
}

#giform .giform-fields .formelm {
	flex: 1 1 calc(50% - 2%);
	width: auto;
	margin-right: 0;
	margin-bottom: 0;
	min-width: 200px;
}

#giform input.formelm {
	padding: 14px 18px;
	font-size: 16px;
	border: solid 1px #e8f4fb;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#giform input.formelm::placeholder {
	color: #6b8eb0;
	opacity: 1;
}

#giform input.formelm:focus {
	outline: none;
	border-color: #0c55a4;
	box-shadow: 0 0 0 3px rgba(12, 85, 164, 0.2);
}

#giform .checkboxes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 0;
	margin: 24px 0 28px;
	padding: 20px 16px 8px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 8px;
}

#giform .checkboxes fieldset {
	width: 32%;
	min-width: 140px;
	margin: 0;
	padding: 6px 4px;
}

#giform .checkboxes fieldset label.css-label {
	color: #ffffff !important;
	font-size: 13px;
	line-height: 18px;
	height: auto;
	min-height: 15px;
	padding-left: 24px;
}

input[type="checkbox"].css-checkbox:focus-visible + label.css-label {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	border-radius: 2px;
}

#giform input.submit {
	display: block;
	margin: 0 auto;
	max-width: 320px;
	width: 100%;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

#giform input.submit:hover {
	background-color: #003977;
	transform: translateY(-1px);
}

#giform input.submit:active {
	transform: translateY(0);
}

@media screen and (max-width: 819px) {
	.primarycontent--get-involved .inner {
		width: 90%;
	}

	#giform {
		padding: 36px 24px;
	}

	#giform .giform-fields .formelm {
		flex: 1 1 100%;
	}

	#giform .checkboxes fieldset {
		width: 48%;
	}
}

@media screen and (max-width: 500px) {
	#giform {
		padding: 28px 18px;
		border-radius: 8px;
	}

	#giform .checkboxes fieldset {
		width: 100%;
		text-align: left;
	}
}
