/*
 * Job Board Submission & Payment Manager — front-end form styles.
 * Deliberately simple, responsive, and dependency-free (no framework).
 *
 * ---------------------------------------------------------------------
 * BRAND MATCHING: every colour, radius and font used below is defined
 * ONCE as a CSS custom property in the :root block immediately below.
 * To adjust the form's look, you only need to edit the values in that
 * block — nothing else in this file needs to change.
 *
 * The colours below were sampled directly from a screenshot of your own
 * site (the "POST A JOB" button and the "Privacy Policy" link colour),
 * so --jbs-primary and --jbs-accent should already be a close match.
 * Screenshot colour-picking from a compressed JPEG is not pixel-perfect
 * though — if you have the exact brand hex codes (Customizer, or your
 * theme's "Additional CSS"/style guide), send them over and I'll drop
 * them in precisely. The font is left as a generic modern system-font
 * stack, since font names can't be read from a screenshot — tell me the
 * font name if you know it and I'll add it here + as a Google Fonts
 * import if needed.
 * ---------------------------------------------------------------------
 */

.jbs-form-wrap {
	--jbs-primary: #1f4d78;        /* Matches the "POST A JOB" navy button */
	--jbs-primary-dark: #163a5c;   /* Hover state for the primary colour */
	--jbs-accent: #d9822e;         /* Matches the site's orange link colour (e.g. "Privacy Policy") */
	--jbs-accent-dark: #b3691f;    /* Hover state for accent/links */
	--jbs-text: #1c1c1c;           /* Body text */
	--jbs-text-muted: #5b6472;     /* Secondary/help text */
	--jbs-border: #e2e5ea;         /* Default field/card borders */
	--jbs-border-focus: #1f4d78;   /* Field border on focus (matches primary) */
	--jbs-bg-card: #ffffff;
	--jbs-bg-subtle: #f7f9fc;      /* Page/section background tint */
	--jbs-danger: #c0392b;
	--jbs-danger-bg: #fdeaea;
	--jbs-radius: 10px;
	--jbs-radius-sm: 6px;
	--jbs-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
	--jbs-shadow-hover: 0 4px 10px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
	/* "Roboto" confirmed as the site's actual font (from computed styles) — it's
	   already loaded globally by the theme, so no extra @font-face/enqueue is
	   needed here; these are just the fallbacks if it's ever unavailable. */
	--jbs-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	max-width: 920px;
	margin: 0 auto;
	font-family: var(--jbs-font);
	font-size: 17px; /* Close to the site's 18px base, slightly restrained since form controls read large at full size */
	line-height: 1.55;
	color: var(--jbs-text);
}

.jbs-notice {
	padding: 14px 18px;
	border-radius: var(--jbs-radius-sm);
	margin-bottom: 24px;
}

.jbs-notice-error {
	background: var(--jbs-danger-bg);
	border: 1px solid var(--jbs-danger);
	color: #7a1f1f;
}

.jbs-notice-error ul {
	margin: 8px 0 0 20px;
}

.jbs-section {
	background: var(--jbs-bg-card);
	border: 1px solid var(--jbs-border);
	border-radius: var(--jbs-radius);
	box-shadow: var(--jbs-shadow);
	padding: 28px;
	margin-bottom: 24px;
}

.jbs-section legend {
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--jbs-primary);
	padding: 0 4px;
}

.jbs-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
}

.jbs-field:last-child {
	margin-bottom: 0;
}

.jbs-field-wide {
	width: 100%;
}

.jbs-field label {
	font-weight: 600;
	font-size: 14.5px;
	margin-bottom: 7px;
	color: var(--jbs-text);
}

.jbs-required {
	color: var(--jbs-danger);
}

.jbs-optional {
	font-weight: 400;
	color: var(--jbs-text-muted);
	font-size: 0.88em;
}

.jbs-field input[type="text"],
.jbs-field input[type="email"],
.jbs-field input[type="tel"],
.jbs-field input[type="url"],
.jbs-field input[type="number"],
.jbs-field input[type="date"],
.jbs-field select,
.jbs-field textarea {
	font-family: inherit;
	padding: 11px 14px;
	border: 1px solid var(--jbs-border);
	border-radius: var(--jbs-radius-sm);
	background: #fff;
	font-size: 15.5px;
	color: var(--jbs-text);
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jbs-field input:hover,
.jbs-field select:hover,
.jbs-field textarea:hover {
	border-color: #c7cdd6;
}

.jbs-field input:focus,
.jbs-field select:focus,
.jbs-field textarea:focus {
	outline: none;
	border-color: var(--jbs-border-focus);
	box-shadow: 0 0 0 3px rgba(31, 77, 120, 0.15);
}

.jbs-field textarea {
	resize: vertical;
}

.jbs-radio-inline,
.jbs-checkbox-inline {
	font-weight: 400;
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
	margin-right: 20px;
}

.jbs-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

.jbs-package-summary {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.jbs-package-summary-item {
	position: relative;
	background: var(--jbs-bg-subtle);
	border: 1px solid var(--jbs-border);
	border-radius: var(--jbs-radius-sm);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.jbs-package-summary-item:hover {
	box-shadow: var(--jbs-shadow-hover);
	transform: translateY(-1px);
}

.jbs-package-summary-name {
	font-weight: 700;
	font-size: 16px;
	color: var(--jbs-primary);
}

.jbs-package-summary-price {
	font-size: 16px;
	color: var(--jbs-accent);
	font-weight: 700;
}

.jbs-package-summary-description {
	font-size: 14px;
	color: var(--jbs-text-muted);
	line-height: 1.5;
}

/* Featured ("Most Popular") package: dark card, light text, standout badge,
   and a slightly larger footprint so it visually leads the other two. */
.jbs-package-summary-item--featured {
	background: var(--jbs-primary);
	border-color: var(--jbs-primary);
	box-shadow: var(--jbs-shadow-hover);
	transform: scale(1.03);
	z-index: 1;
	padding-top: 26px;
}

.jbs-package-summary-item--featured:hover {
	transform: scale(1.03) translateY(-1px);
}

.jbs-package-summary-item--featured .jbs-package-summary-name {
	color: #ffffff;
}

.jbs-package-summary-item--featured .jbs-package-summary-price {
	color: var(--jbs-accent);
}

.jbs-package-summary-item--featured .jbs-package-summary-description {
	color: rgba(255, 255, 255, 0.82);
}

.jbs-package-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--jbs-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.jbs-submit-row {
	text-align: right;
}

.jbs-submit-button {
	/* !important on colour/border/background: the site's theme applies its
	   own global styling to <button> elements (Uncode/WPBakery), which was
	   overriding these and making the button render white/unstyled. These
	   overrides guarantee the button always looks right regardless of
	   whatever the surrounding theme does to generic buttons. */
	background: var(--jbs-primary) !important;
	color: #fff !important;
	border: none !important;
	padding: 15px 32px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--jbs-radius-sm);
	cursor: pointer;
	box-shadow: var(--jbs-shadow);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.jbs-submit-button:hover {
	background: var(--jbs-primary-dark) !important;
	box-shadow: var(--jbs-shadow-hover);
	transform: translateY(-1px);
}

.jbs-submit-button:active {
	transform: translateY(0);
}

.jbs-submit-button:disabled,
.jbs-submit-button:disabled:hover {
	background: #b7c0cc !important;
	color: #eef1f5 !important;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* Conditional fields are hidden by default via JS; kept visible without JS. */
.jbs-conditional[data-jbs-hidden="true"] {
	display: none;
}

/* Responsive: single column on mobile/tablet. */
@media (max-width: 900px) {
	.jbs-package-summary {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 640px) and (max-width: 900px) {
	.jbs-section {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 24px;
	}
	.jbs-section legend {
		grid-column: 1 / -1;
	}
	.jbs-field-wide {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.jbs-form-wrap {
		font-size: 15px;
	}
	.jbs-section {
		padding: 18px;
	}
	.jbs-submit-row {
		text-align: stretch;
	}
	.jbs-submit-button {
		width: 100%;
	}
}