.nsf-contact {
	padding: 55px 0 0;
	background-image: url("../images/homepage-section1-bg.jpg");
	color: #24282d;
}

.nsf-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 30px;
	width: min(1120px, calc(100% - 64px));
	margin: 0 auto 55px;
	align-items: stretch;
}

.nsf-media-request-layout {
	grid-template-columns: minmax(0, 860px);
	justify-content: center;
}

.nsf-media-request {
	padding-bottom: 55px;
}

.nsf-media-request .nsf-media-request-layout {
	margin-bottom: 0;
}

.nsf-contact-form-card,
.nsf-contact-info-card {
	border: 1px solid #ddd8cc;
	background: #ffffff;
}

.nsf-contact-form-card {
	padding: 34px 38px 38px;
}

.nsf-contact-card-heading {
	margin: 0 0 24px;
	padding: 0;
}

.nsf-contact-card-heading h2 {
	display: inline-block;
	margin: 0;
	padding-bottom: 8px;
	border-bottom: 5px solid #f0ab00;
	color: #0b2d49;
	font-family: "Oswald", "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 222%;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.nsf-contact-form-intro {
	max-width: 680px;
	margin: 18px 0 0;
	color: #24282d;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.nsf-contact-form-intro a {
	color: #0075b0;
	font-weight: 700;
	text-decoration-line: underline;
	text-decoration-color: #f0ab00;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}

.nsf-contact-form-intro a:hover {
	color: #0b2d49;
	text-decoration-color: #0075b0;
}

.nsf-contact-form-card .gform_wrapper .gform_footer input[type="submit"],
.nsf-contact-form-card .gform_wrapper .gform_button {
	width: auto;
	min-width: 160px;
	padding: 9px 18px;
	border: 2px solid #f0ab00;
	border-radius: 0;
	background: #0a2c48;
	font-size: 18px !important;
	font-weight: 400;
	letter-spacing: 0;
}

.nsf-contact-sidebar {
	display: grid;
	gap: 16px;
	grid-template-rows: minmax(0, 1fr) auto auto;
	height: 100%;
}

.nsf-contact-info-card {
	padding: 20px;
}

.nsf-contact-sidebar .nsf-contact-info-card:first-child {
	display: flex;
	flex-direction: column;
}

.nsf-contact-sidebar .nsf-contact-info-card:first-child .nsf-contact-office-grid {
	flex: 1;
}

.nsf-contact-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 15px;
}

.nsf-contact-card-title h2 {
	margin: 0;
	color: #0b2d49;
	font-family: "Oswald", "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-transform: uppercase;
}

.nsf-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(240, 171, 0, 0.45);
	border-radius: 50%;
	color: #0b2d49;
}

.nsf-contact-icon svg,
.nsf-contact-icon img {
	width: 16px;
	height: 16px;
	display: block;
}

.nsf-contact-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.nsf-contact-icon--brand img {
	width: 20px;
	height: 20px;
}

.nsf-contact-office-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.nsf-contact-office {
	position: relative;
	overflow: hidden;
	padding: 15px;
	background: #0b2d49;
	color: #ffffff;
}

.nsf-contact-office::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: #f0ab00;
}

.nsf-contact-office__label {
	margin: 0 0 5px;
	color: #f0ab00;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.nsf-contact-office h3 {
	margin: 0 0 8px;
	color: #ffffff;
	font-family: "Oswald", "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.nsf-contact-office p:not(.nsf-contact-office__label),
.nsf-contact-office a {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.55;
}

.nsf-contact-office a {
	display: inline-flex;
	margin-top: 7px;
	color: #a6bed5;
	text-decoration: none;
}

.nsf-contact-office a:hover {
	color: #ffffff;
}

.nsf-contact-email {
	color: #0075b0;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration-line: underline;
	text-decoration-color: #f0ab00;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}

.nsf-contact-info-card .nsf-contact-email:hover,
.nsf-contact-info-card .nsf-contact-email:focus-visible {
	color: #0b2d49;
	text-decoration-line: underline;
	text-decoration-color: #0075b0;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}

.nsf-contact-card-copy {
	margin: 0 0 18px;
	color: #24282d;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.65;
}

.nsf-contact-card-copy a {
	color: #0075b0;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nsf-contact-card-copy a:hover {
	color: #0b2d49;
}

.nsf-contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 9px 18px;
	border: 2px solid #f0ab00;
	background: #0a2c48;
	color: #ffffff;
	font-family: "Oswald", "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 150ms ease, color 150ms ease;
}

.nsf-contact-button:hover {
	background: #040a2a;
	color: #f0ab00;
}

.nsf-contact-map {
	position: relative;
	isolation: isolate;
	width: 100%;
	background: #08263d;
	border-top: 6px solid #0b2d49;
	border-bottom: 4px solid #f0ab00;
	overflow: hidden;
}

.nsf-contact-map::before,
.nsf-contact-map::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.nsf-contact-map::before {
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(11, 45, 73, 0.12) 0%, rgba(11, 45, 73, 0) 30%, rgba(11, 45, 73, 0.08) 100%),
		linear-gradient(90deg, rgba(11, 45, 73, 0.08), rgba(240, 171, 0, 0.03), rgba(11, 45, 73, 0.08));
}

.nsf-contact-map::after {
	z-index: 1;
	background: rgba(11, 45, 73, 0.05);
	mix-blend-mode: multiply;
}

.nsf-contact-map iframe {
	display: block;
	width: 100%;
	height: 450px;
	border: 0;
	filter: grayscale(24%) saturate(78%) contrast(1.05) brightness(0.98);
}

.nsf-contact-admin-note {
	padding: 16px;
	border: 1px solid rgba(179, 38, 30, 0.24);
	background: rgba(179, 38, 30, 0.06);
	color: #1a1a2e;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

@media screen and (max-width: 980px) {
	.nsf-contact-layout {
		grid-template-columns: 1fr;
		width: min(760px, calc(100% - 48px));
		align-items: start;
	}

	.nsf-contact-sidebar {
		grid-template-rows: none;
		height: auto;
	}

	.nsf-contact-office-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.nsf-contact-page .new-newsletter-section .sub-default-content h2 {
		max-width: 375px;
	}
}

@media screen and (max-width: 640px) {
	body.nsf-contact-page .about-top {
		background-position: 72% center;
	}

	body.nsf-contact-page .new-newsletter-section .sub-default-content h2 {
		max-width: 340px;
		margin-right: auto;
		margin-left: auto;
	}

	.nsf-contact {
		padding: 40px 0 0;
	}

	.nsf-media-request {
		padding-bottom: 40px;
	}

	.nsf-contact-layout {
		width: calc(100% - 32px);
		margin-bottom: 40px;
	}

	.nsf-contact-form-card {
		padding: 24px 18px 26px;
	}

	.nsf-contact-form-card .gform_wrapper .gform_footer input[type="submit"],
	.nsf-contact-form-card .gform_wrapper .gform_button,
	.nsf-contact-button {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.nsf-contact-sidebar .nsf-contact-info-card:last-child {
		text-align: left;
	}

	.nsf-contact-sidebar .nsf-contact-info-card:last-child .nsf-contact-card-title {
		justify-content: flex-start;
	}

	.nsf-contact-office-grid {
		grid-template-columns: 1fr;
	}

	.nsf-contact-map iframe {
		height: 430px;
	}
}
