/**
 * MH Careers — front-end styles.
 *
 * The roles list stays light and inherits the MH Group theme (fonts, colours,
 * spacing) with status colour hooks for recolouring. The search toolbar and the
 * General Application form carry their own polished, on-brand (navy + gold)
 * styling, with specific selectors so form fields render as a clean bordered
 * card even on themes that force underline-only inputs.
 */

.mh-searches {
	display: grid;
	gap: 24px;
	margin: 0 0 24px;
}

.mh-searches--cols-1 { grid-template-columns: 1fr; }
.mh-searches--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-searches--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Mobile: single column stack. */
@media (max-width: 782px) {
	.mh-searches--cols-2,
	.mh-searches--cols-3 {
		grid-template-columns: 1fr;
	}
}

.mh-search-item {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	padding: 20px 22px;
	background: #fff;
}

.mh-search-title {
	margin: 0 0 10px;
	font-weight: 700;
	line-height: 1.25;
}

.mh-search-client,
.mh-search-location,
.mh-search-status {
	margin: 2px 0;
	line-height: 1.5;
}

.mh-search-status {
	font-weight: 600;
}

/* Status colour hooks — override freely in the theme. */
.mh-status--open   { color: #1a7f37; }
.mh-status--closed { color: #6b6b6b; }
.mh-status--soon   { color: #9a6a00; }

.mh-search-status a { text-decoration: underline; }

.mh-searches--empty p { font-style: italic; }

/* -----------------------------------------------------------------------
 * Search toolbar (client-side filter over the roles on the page)
 * --------------------------------------------------------------------- */

.mh-searches-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
}

.mh-search-field {
	position: relative;
	flex: 1 1 auto;
	max-width: 480px;
	margin: 0;
}

.mh-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px 12px 42px !important;
	border: 1px solid #c9cdd6 !important;
	border-radius: 8px !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C2B4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center !important;
	font-size: 16px;
	line-height: 1.4;
	color: #222 !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.mh-search-input:focus {
	outline: none;
	border-color: #1C2B4A !important;
	box-shadow: 0 0 0 3px rgba(28, 43, 74, 0.12) !important;
}

.mh-search-count {
	font-size: 14px;
	color: #6b6b6b;
	white-space: nowrap;
}

.mh-searches-noresults {
	margin: 8px 0 0;
	font-style: italic;
	color: #6b6b6b;
}

@media (max-width: 600px) {
	.mh-searches-toolbar { flex-wrap: wrap; }
	.mh-search-field { max-width: none; }
}

/* -----------------------------------------------------------------------
 * General Application (native form — Option B)
 *
 * Refined, executive-grade styling. Selectors are intentionally specific and
 * use !important on the input box model so the bordered card look wins over
 * themes (e.g. Impreza/Elementor) that render form fields as bare underlines.
 * Brand palette: navy #1C2B4A, gold #B08D3C.
 * --------------------------------------------------------------------- */

.mh-general-application--form {
	max-width: 640px;
	margin: 0 auto;
	padding: 44px 46px 40px;
	background: #ffffff;
	border: 1px solid #e9ebf1;
	border-radius: 16px;
	box-shadow:
		0 1px 2px rgba(28, 43, 74, 0.04),
		0 18px 48px rgba(28, 43, 74, 0.10);
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

/* Slim gold bar across the very top of the card. */
.mh-general-application--form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #B08D3C 0%, #d8b661 100%);
}

/* Optional intro heading/subtext if you add them inside the form wrapper. */
.mh-general-application--form .mh-ga-title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
	color: #1C2B4A;
	letter-spacing: -0.01em;
}
.mh-general-application--form .mh-ga-subtitle {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.5;
	color: #6c7180;
}

.mh-general-application--form .mh-ga-row {
	margin: 0 0 22px !important;
	padding: 0;
}

.mh-general-application--form .mh-ga-row label {
	display: block;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #4a5163;
	margin-bottom: 9px;
}

.mh-general-application--form .mh-ga-row label span {
	color: #B08D3C;            /* gold required asterisk */
	margin-left: 3px;
	font-weight: 700;
}

.mh-general-application--form .mh-ga-row input[type="text"],
.mh-general-application--form .mh-ga-row input[type="email"],
.mh-general-application--form .mh-ga-row input[type="url"],
.mh-general-application--form .mh-ga-row textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 13px 16px !important;
	font-size: 15.5px !important;
	line-height: 1.5 !important;
	color: #1f2430 !important;
	background: #fbfbfd !important;
	border: 1.5px solid #dcdfe8 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
	-webkit-appearance: none;
	appearance: none;
}

.mh-general-application--form .mh-ga-row input::placeholder,
.mh-general-application--form .mh-ga-row textarea::placeholder {
	color: #a6abb8;
}

.mh-general-application--form .mh-ga-row input[type="text"]:hover,
.mh-general-application--form .mh-ga-row input[type="email"]:hover,
.mh-general-application--form .mh-ga-row input[type="url"]:hover,
.mh-general-application--form .mh-ga-row textarea:hover {
	border-color: #c2c7d4 !important;
}

.mh-general-application--form .mh-ga-row input[type="text"]:focus,
.mh-general-application--form .mh-ga-row input[type="email"]:focus,
.mh-general-application--form .mh-ga-row input[type="url"]:focus,
.mh-general-application--form .mh-ga-row textarea:focus {
	outline: none !important;
	background: #ffffff !important;
	border-color: #1C2B4A !important;
	box-shadow: 0 0 0 4px rgba(28, 43, 74, 0.10) !important;
}

.mh-general-application--form .mh-ga-row textarea {
	min-height: 130px;
	resize: vertical;
}

.mh-general-application--form .mh-ga-row:last-child {
	margin-top: 28px;
	margin-bottom: 0 !important;
}

.mh-general-application--form .mh-ga-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	min-width: 210px;
	padding: 15px 40px !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #ffffff !important;
	background: #1C2B4A !important;
	border: 0 !important;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(28, 43, 74, 0.20);
	transition: background .16s ease, transform .06s ease, box-shadow .16s ease;
}

.mh-general-application--form .mh-ga-submit:hover {
	background: #24365c !important;
	box-shadow: 0 10px 26px rgba(28, 43, 74, 0.28);
}

.mh-general-application--form .mh-ga-submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(176, 141, 60, 0.45);
}

.mh-general-application--form .mh-ga-submit:active {
	transform: translateY(1px);
	box-shadow: 0 6px 16px rgba(28, 43, 74, 0.22);
}

/* Status messages — the span itself is the coloured box (works everywhere). */
.mh-ga-notice { margin: 0 0 26px; }

.mh-ga-success,
.mh-ga-error {
	display: block;
	padding: 14px 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.45;
}

.mh-ga-success {
	color: #14622b;
	background: #eaf7ef;
	border: 1px solid #bfe3cc;
	border-left: 4px solid #1a7f37;
}

.mh-ga-error {
	color: #a5221f;
	background: #fdeceb;
	border: 1px solid #f4c6c3;
	border-left: 4px solid #d13b36;
}

@media (max-width: 600px) {
	.mh-general-application--form { padding: 30px 22px 26px; }
	.mh-general-application--form .mh-ga-submit { width: 100%; }
}
