/* Construction Job Openings — front end styles
   Typography is left to `inherit` wherever possible so the plugin picks up
   the active theme's fonts/sizes. Only the brand color, spacing, and layout
   are opinionated.

   Note: variables are declared at :root AND on .cjo-wrap, and every var()
   call carries a literal fallback. The modal is appended in the footer as
   its own .cjo-wrap, so this keeps colors correct wherever the markup ends
   up in the page. */

:root {
	--cjo-primary: #024099;
	--cjo-primary-dark: #012c6b;
	--cjo-primary-light: #e8eefb;
	--cjo-muted: #6b7688;
	--cjo-border: #e6e9ef;
	--cjo-radius: 14px;
}

.cjo-wrap {
	--cjo-primary: #024099;
	--cjo-primary-dark: #012c6b;
	--cjo-primary-light: #e8eefb;
	--cjo-muted: #6b7688;
	--cjo-border: #e6e9ef;
	--cjo-radius: 14px;
	font-family: inherit;
	color: inherit;
	box-sizing: border-box;
	line-height: 1.6;
}
.cjo-wrap *,
.cjo-wrap *::before,
.cjo-wrap *::after {
	box-sizing: inherit;
}

/* ---------- Pill Filters ---------- */
.cjo-pill-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}
.cjo-pill-filter {
	font-family: inherit;
	font-size: 0.92em;
	font-weight: 700;
	padding: 11px 22px;
	border-radius: 999px;
	border: 1px solid #e3e6ec !important;
	background-color: #ffffff !important;
	background-image: none !important;
	color: #333d4b !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.cjo-pill-filter:hover {
	border-color: var(--cjo-primary, #024099) !important;
}
.cjo-pill-filter.cjo-pill-active {
	background-color: #d9e6fb !important;
	border-color: #d9e6fb !important;
	color: var(--cjo-primary, #024099) !important;
}

/* ---------- Grid ---------- */
.cjo-job-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
}
.cjo-listings[data-columns="1"] .cjo-job-grid {
	grid-template-columns: 1fr;
	max-width: 800px;
	margin: 0 auto;
}
.cjo-listings[data-columns="2"] .cjo-job-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cjo-listings[data-columns="3"] .cjo-job-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cjo-listings[data-columns="4"] .cjo-job-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
	.cjo-listings[data-columns="3"] .cjo-job-grid,
	.cjo-listings[data-columns="4"] .cjo-job-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.cjo-listings[data-columns] .cjo-job-grid {
		grid-template-columns: 1fr;
	}
}
.cjo-job-grid-featured {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cjo-empty {
	padding: 40px 24px;
	text-align: center;
	color: var(--cjo-muted, #6b7688);
	background: #fafbfd;
	border: 1px dashed var(--cjo-border, #e6e9ef);
	border-radius: var(--cjo-radius, 14px);
}

/* ---------- Job Card ---------- */
.cjo-job-card {
	background-color: #f6f7f9;
	border: none;
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	cursor: pointer;
	transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .22s ease;
}
.cjo-job-card:hover,
.cjo-job-card:focus-visible {
	transform: translateY(-4px);
	background-color: #ffffff;
	box-shadow: 0 20px 36px -20px rgba(16, 24, 40, 0.22);
}
.cjo-job-card:focus-visible {
	outline: 2px solid var(--cjo-primary, #024099);
	outline-offset: 3px;
}

.cjo-job-card-compact {
	padding: 22px;
}

.cjo-featured-flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--cjo-primary, #024099);
	margin-bottom: -4px;
}
.cjo-featured-flag::before {
	content: "★";
	font-size: 11px;
}

.cjo-job-card-title {
	font-size: 1.2em;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	color: #1d2327;
}

.cjo-job-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.9em;
	color: var(--cjo-muted, #6b7688);
}
.cjo-job-card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.cjo-job-card-meta-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #333d4b;
}
.cjo-job-card-meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #c7ccd4;
	margin: 0 2px;
}

.cjo-job-card-excerpt {
	color: var(--cjo-muted, #6b7688);
	font-size: 0.94em;
	line-height: 1.65;
	margin: 4px 0 0;
	flex-grow: 1;
}

.cjo-job-card-apply-link {
	align-self: flex-start;
	font-family: inherit !important;
	font-size: 0.9em;
	font-weight: 700;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--cjo-primary, #024099) !important;
	cursor: pointer;
	margin-top: 2px;
}
.cjo-job-card-apply-link span {
	display: inline-block;
	transition: transform .18s ease;
}
.cjo-job-card:hover .cjo-job-card-apply-link span,
.cjo-job-card-apply-link:hover span {
	transform: translateX(3px);
}

.cjo-job-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}
.cjo-job-card-footer-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 0.85em;
	color: var(--cjo-muted, #6b7688);
	min-width: 0;
}
.cjo-job-card-footer-meta .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}
.cjo-job-card-footer-meta strong {
	color: #1d2327;
	font-weight: 700;
}
.cjo-job-card-logo {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 8px;
}
.cjo-job-card-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.cjo-job-card-compact .cjo-job-card-footer {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* ---------- Buttons (explicit colors so theme button resets can't win) ---------- */
.cjo-btn {
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	cursor: pointer;
	transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
	text-decoration: none;
	display: inline-block;
	line-height: 1.3;
}
.cjo-btn-primary,
.cjo-wrap .cjo-btn-primary,
.cjo-modal .cjo-btn-primary {
	background-color: var(--cjo-primary, #024099);
	background-image: none;
	color: #ffffff !important;
	box-shadow: none;
	text-shadow: none;
}
.cjo-btn-primary:hover,
.cjo-btn-primary:focus {
	background-color: var(--cjo-primary-dark, #012c6b);
	color: #ffffff !important;
	box-shadow: 0 10px 20px -10px rgba(2, 64, 153, 0.6);
}
.cjo-btn-primary:active {
	transform: scale(.98);
}
.cjo-btn-primary:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.cjo-btn-block {
	width: 100%;
	text-align: center;
}

.cjo-featured-title {
	margin: 0 0 24px;
	color: inherit;
}

/* ---------- Scroll reveal ---------- */
.cjo-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .55s ease, transform .55s ease;
}
.cjo-reveal.cjo-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Modal ---------- */
.cjo-modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(10, 16, 28, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vh 16px;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.cjo-modal-overlay.cjo-modal-open {
	opacity: 1;
	visibility: visible;
}
.cjo-modal {
	background-color: #fff;
	border-radius: 16px;
	max-width: 620px;
	width: 100%;
	position: relative;
	padding: 0;
	transform: translateY(-24px) scale(.98);
	transition: transform .3s cubic-bezier(.2,.8,.2,1);
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 30px 60px -20px rgba(2, 12, 30, 0.4);
	/* A single, nicely-styled native scrollbar rather than the browser default. */
	scrollbar-width: thin;
	scrollbar-color: var(--cjo-primary, #024099) #eef0f4;
}
.cjo-modal::-webkit-scrollbar {
	width: 8px;
}
.cjo-modal::-webkit-scrollbar-track {
	background: #f1f3f7;
	border-radius: 8px;
}
.cjo-modal::-webkit-scrollbar-thumb {
	background-color: var(--cjo-primary, #024099);
	border-radius: 8px;
	border: 2px solid #f1f3f7;
}
.cjo-modal-overlay.cjo-modal-open .cjo-modal {
	transform: translateY(0) scale(1);
}
.cjo-modal-job {
	padding: 32px 36px 36px;
}
.cjo-modal-close {
	position: absolute;
	top: 16px;
	right: 18px;
	background-color: #f2f4f8;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--cjo-muted, #6b7688);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	z-index: 2;
}
.cjo-modal-close:hover {
	background-color: var(--cjo-primary-light, #e8eefb);
	color: var(--cjo-primary, #024099);
}
.cjo-modal-loading {
	display: flex;
	justify-content: center;
	padding: 70px 0;
}
.cjo-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #e6e9ef;
	border-top-color: var(--cjo-primary, #024099);
	border-radius: 50%;
	animation: cjo-spin .8s linear infinite;
	display: inline-block;
}
@keyframes cjo-spin {
	to { transform: rotate(360deg); }
}

.cjo-modal-company {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.cjo-modal-company-logo {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background-color: #f6f7f9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 6px;
}
.cjo-modal-company-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.cjo-modal-company > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.cjo-modal-department {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--cjo-primary, #024099);
}
.cjo-modal-company-name {
	font-size: 0.9em;
	font-weight: 600;
	color: #1d2327;
}
.cjo-modal-title {
	margin: 0 0 16px;
	padding-right: 20px;
	color: inherit;
	font-size: 1.5em;
	line-height: 1.3;
}
.cjo-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.cjo-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background-color: #f1f3f7;
	color: #45505f;
	font-size: 0.82em;
	font-weight: 600;
	padding: 6px 13px;
	border-radius: 999px;
}
.cjo-pill .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}
.cjo-pill-accent {
	background-color: var(--cjo-primary, #024099);
	color: #fff !important;
}
.cjo-modal-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 0.86em;
	color: var(--cjo-muted, #6b7688);
	margin-bottom: 22px;
}
.cjo-modal-facts span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.cjo-modal-facts .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: var(--cjo-primary, #024099);
}
.cjo-modal-ref {
	margin-left: auto;
	font-family: monospace;
	opacity: .8;
}

.cjo-modal-description {
	line-height: 1.7;
	color: inherit;
}
.cjo-modal-description p:first-child {
	margin-top: 0;
}
.cjo-modal-job h3 {
	font-size: 1em;
	margin: 22px 0 10px;
	color: inherit;
}
.cjo-requirements-list {
	padding-left: 20px;
	margin: 0;
	line-height: 1.85;
}
.cjo-benefits-list li::marker {
	color: var(--cjo-primary, #024099);
}
.cjo-divider {
	border: none;
	border-top: 1px solid #eef0f4;
	margin: 28px 0 22px;
}
.cjo-closed-notice {
	background-color: #fdf2f2;
	color: #a33;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 0.92em;
}

/* ---------- Shared form styling (application modal + enquiry forms) ---------- */
.cjo-application-form h3:first-child,
.cjo-enquiry-form h3:first-child {
	margin-top: 0;
}
.cjo-form-row {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.cjo-form-row-split {
	flex-direction: row;
	gap: 16px;
}
.cjo-form-row-split > div {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}
.cjo-application-form label,
.cjo-enquiry-form label {
	font-size: 0.86em;
	font-weight: 600;
	color: inherit;
}
.cjo-required {
	color: var(--cjo-primary, #024099);
	font-weight: 700;
}
/* !important throughout this block: many themes ship global resets for
   inputs/selects/buttons that otherwise win the cascade over a plugin's
   stylesheet, stripping the rounded corners, colors, and focus states below. */
.cjo-application-form input[type="text"],
.cjo-application-form input[type="email"],
.cjo-application-form input[type="tel"],
.cjo-application-form input[type="file"],
.cjo-application-form textarea,
.cjo-application-form select,
.cjo-enquiry-form input[type="text"],
.cjo-enquiry-form input[type="email"],
.cjo-enquiry-form input[type="tel"],
.cjo-enquiry-form input[type="file"],
.cjo-enquiry-form textarea,
.cjo-enquiry-form select {
	font-family: inherit !important;
	font-size: 0.95em !important;
	padding: 11px 14px !important;
	border: 1px solid #dde2ea !important;
	border-radius: 8px !important;
	width: 100% !important;
	background-color: #fbfcfe !important;
	background-image: none;
	color: #1d2327 !important;
	box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
	box-sizing: border-box;
	line-height: 1.4;
}
.cjo-application-form select,
.cjo-enquiry-form select {
	appearance: none;
	padding-right: 36px !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%236b7688'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	cursor: pointer;
}
.cjo-application-form textarea,
.cjo-enquiry-form textarea {
	resize: vertical;
	min-height: 90px;
}
.cjo-application-form input:focus,
.cjo-application-form textarea:focus,
.cjo-application-form select:focus,
.cjo-enquiry-form input:focus,
.cjo-enquiry-form textarea:focus,
.cjo-enquiry-form select:focus {
	outline: none !important;
	border-color: var(--cjo-primary, #024099) !important;
	box-shadow: 0 0 0 3px rgba(2, 64, 153, 0.12) !important;
	background-color: #fff !important;
}
.cjo-form-message {
	display: none;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 0.9em;
}
.cjo-form-message.cjo-message-success {
	display: block;
	background-color: #eaf6ee;
	color: #1f7a3d;
}
.cjo-form-message.cjo-message-error {
	display: block;
	background-color: #fdf2f2;
	color: #a33;
}

@media (max-width: 480px) {
	.cjo-form-row-split {
		flex-direction: column;
	}
	.cjo-modal-job {
		padding: 26px 22px 30px;
	}
	.cjo-modal-ref {
		margin-left: 0;
	}
}

/* ---------- Checkbox / consent ---------- */
.cjo-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400 !important;
	cursor: pointer;
	font-size: 0.88em;
	line-height: 1.5;
	color: var(--cjo-muted, #6b7688);
}
.cjo-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--cjo-primary, #024099);
	flex-shrink: 0;
}
.cjo-form-row-consent {
	margin-bottom: 18px;
}

/* ================= Contact / Enquiry Form ================= */
.cjo-contact-wrap {
	max-width: 1140px;
	margin: 0 auto;
	width: 100%;
}
.cjo-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
	gap: 28px;
	align-items: start;
}
.cjo-contact-grid-solo {
	grid-template-columns: 1fr;
	max-width: 640px;
	margin: 0 auto;
}
@media (max-width: 820px) {
	.cjo-contact-grid {
		grid-template-columns: 1fr;
	}
}

.cjo-contact-form-panel {
	background: #fff;
	border: 1px solid #eef0f4;
	border-top: 4px solid var(--cjo-primary, #024099);
	border-radius: var(--cjo-radius, 14px);
	padding: 36px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 12px 28px -20px rgba(16, 24, 40, 0.12);
}
.cjo-contact-title {
	margin: 0 0 22px;
	color: inherit;
	font-size: 1.6em;
}

.cjo-tabs {
	display: flex;
	gap: 4px;
	background-color: #f1f3f7 !important;
	border: none !important;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 24px;
}
/* !important here defeats theme-level global `button` styling (borders,
   accent-color backgrounds, box-shadows) that would otherwise turn these
   into the site's default call-to-action button look. */
.cjo-tab {
	flex: 1;
	font-family: inherit !important;
	font-size: 0.92em;
	font-weight: 600;
	padding: 10px 14px;
	border: none !important;
	border-radius: 8px;
	background-color: transparent !important;
	background-image: none !important;
	color: var(--cjo-muted, #6b7688) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.cjo-tab-active,
.cjo-tab.cjo-tab-active {
	background-color: #ffffff !important;
	color: var(--cjo-primary, #024099) !important;
	box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08) !important;
}

.cjo-tab-panel {
	animation: cjo-fade-in .25s ease;
}
@keyframes cjo-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.cjo-contact-info-panel {
	background-color: var(--cjo-primary, #024099);
	background-image: linear-gradient(155deg, var(--cjo-primary, #024099) 0%, var(--cjo-primary-dark, #012c6b) 100%);
	border-radius: var(--cjo-radius, 14px);
	padding: 34px 30px;
	color: #fff;
	box-shadow: 0 12px 28px -18px rgba(2, 44, 107, 0.55);
	position: sticky;
	top: 24px;
}
@media (max-width: 820px) {
	.cjo-contact-info-panel {
		position: static;
	}
}
.cjo-contact-info-panel h3 {
	margin: 0 0 22px;
	color: #fff;
	font-size: 1.15em;
}
.cjo-contact-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.cjo-contact-info-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.cjo-contact-info-list .dashicons {
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	padding: 7px;
	width: 32px;
	height: 32px;
	font-size: 18px;
	box-sizing: border-box;
	flex-shrink: 0;
}
.cjo-contact-info-list strong {
	display: block;
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .75;
	margin-bottom: 2px;
	font-weight: 600;
}
.cjo-contact-info-list a {
	color: #fff;
	text-decoration: none;
}
.cjo-contact-info-list a:hover {
	text-decoration: underline;
}
.cjo-contact-info-list div {
	color: #fff;
	font-size: 0.93em;
	line-height: 1.4;
}
