/*
 * Additions for the static rebuild. Everything here fills a gap left by a
 * WordPress plugin whose stylesheet we intentionally do not ship, or fixes a
 * defect carried over from the original site. Loaded last.
 */

/* ---------------------------------------------------------------------------
 * Sticky header backdrop
 *
 * The theme only paints .nav white when the header sticks, leaving the 13px
 * strip above it and the gap beside the Join button transparent — page content
 * scrolled through those gaps. Paint the whole bar instead.
 * ------------------------------------------------------------------------ */
.header.is-sticky {
	background-color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	top: 0;
	transition: background-color 0.5s ease-in-out;
}

.header.is-sticky .header_row {
	padding: 8px 0;
}

/* ---------------------------------------------------------------------------
 * Form layout
 *
 * Gravity Forms supplied the field grid; the theme only tweaked it. Since the
 * plugin is gone, lay the fields out here. Class names match the theme's
 * selectors so its own rules still apply on top.
 * ------------------------------------------------------------------------ */

/* Honeypot — hidden from people, filled in by bots. */
.era-botcheck {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.era-form-status {
	margin-top: 16px;
	font-size: 16px;
	min-height: 1.4em;
}

.era-form-status.is-error {
	color: #c0392b;
}

.era-form-status.is-success {
	color: #1e7e34;
}

/* --- Join page form: labels above full-width inputs --- */
.join_form_page .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.join_form_page .gfield {
	display: flex;
	flex-direction: column;
}

.join_form_page .gfield_label {
	display: block;
	margin-bottom: 7px;
	color: #303e4d;
	font-family: 'Barlow', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.join_form_page .gfield_required {
	margin-left: 3px;
	color: #f48120;
}

.join_form_page .gfield input,
.join_form_page .gfield select {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	background: #fff;
	color: #303e4d;
	font-family: 'Barlow', sans-serif;
	font-size: 16px;
	outline: 0;
	transition: border-color 0.2s ease-in-out;
}

.join_form_page .gfield select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23303E4D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
}

.join_form_page .gfield input:focus,
.join_form_page .gfield select:focus {
	border-color: #f48120;
}

.join_form_page .gfield input::placeholder {
	color: #9aa3ad;
}

.join_form_page .gform_footer {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

/* --- Contact form: phone and email share a row, as the theme intends --- */
.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half {
	width: calc(50% - 10px);
}

.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half + .gfield.half {
	margin-left: auto !important;
}

@media screen and (max-width: 576px) {
	.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half {
		width: 100%;
	}

	.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half + .gfield.half {
		margin-left: 0 !important;
	}
}
