/* =========================================================
   PSPS Job Posting Form
========================================================= */

:root{
	--job-black: #161616;
	--job-white: #ffffff;
	--job-blue: #6a92ab;

	--job-border: rgba(22, 22, 22, 0.16);
	--job-muted: rgba(22, 22, 22, 0.70);
	--job-soft: rgba(106, 146, 171, 0.10);

	--job-radius: 12px;
	--job-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* ================================
   HARD RESET (prevents overlap bugs)
================================ */
.job-form-wrap,
.job-form-wrap * {
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
}

.job-grid > * {
	min-width: 0; /* critical for grid overflow prevention */
}

/* ================================
   Card Wrapper
================================ */
.job-form-wrap{
	max-width: 820px;
	margin: 0 auto;
	background: var(--job-white);
	border: 1px solid var(--job-border);
	border-radius: var(--job-radius);
	box-shadow: var(--job-shadow);
	overflow: hidden;
}

/* ================================
   Header Section
================================ */
.job-form-header{
	padding: 36px 40px 20px 40px;
	border-bottom: 1px solid var(--job-border);
	text-align: center;
}

.job-form-header h2{
	margin: 0 0 12px 0;
	color: var(--job-black);
	font-size: 30px;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.job-form-header p{
	margin: 0 auto;
	color: var(--job-muted);
	font-size: 15px;
	line-height: 1.7;
	max-width: 70ch;
}

/* ================================
   Form Layout
================================ */
.job-form{
	padding: 28px 40px 36px 40px;
	margin: 0;
}

/* 2-column grid */
.job-grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 24px; /* REAL spacing */
}

/* Field */
.job-field{
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.job-field--full{
	grid-column: 1 / -1;
}

/* Label */
.job-field label{
	margin: 0;
	font-weight: 600;
	letter-spacing: 0.25px;
	color: var(--job-black);
}

/* ================================
   Inputs (protected)
================================ */
.job-field input,
.job-field select,
.job-field textarea{
	width: 100% !important;
	max-width: 100% !important;
	display: block;
	font-family: 'Inter', sans-serif;

	border: 1px solid var(--job-border);
	border-radius:6px;
	background: #fff;
	color: var(--job-black);

	padding: 13px 14px;
	font-size: 14px;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	outline: none;
	transition: border-color 140ms ease,
				box-shadow 140ms ease,
				background 140ms ease;
}

/* Textarea */
.job-field textarea{
	resize: vertical;
	min-height: 160px;
}

/* Placeholder */
.job-field input::placeholder,
.job-field textarea::placeholder{
	color: rgba(22, 22, 22, 0.45);
}

/* Focus state */
.job-field input:focus,
.job-field select:focus,
.job-field textarea:focus{
	border-color: rgba(106, 146, 171, 0.95);
	box-shadow: 0 0 0 4px rgba(106, 146, 171, 0.18);
}

/* ================================
   File Upload Styling
================================ */
.job-field input[type="file"]{
	border: 1px dashed rgba(106, 146, 171, 0.55);
	border-radius: 6px;
	padding: 12px 12px;
	background: var(--job-soft);
	font-size: 13px;
}

/* ================================
   Submit Button
================================ */
.job-submit{
	margin-top: 26px;
	width: 260px;
	display: block;
	margin-left: auto;
	margin-right: auto;

	background: var(--job-blue);
	color: var(--job-white);

	border: 0;
	border-radius: 6px;
	padding: 14px 18px;

	font-weight: 900;
	letter-spacing: 0.4px;
	text-transform: uppercase;

	cursor: pointer;
	transition: transform 120ms ease,
				filter 120ms ease,
				box-shadow 120ms ease;
}

.job-submit:hover{
	filter: brightness(0.98);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.job-submit:active{
	transform: translateY(0px);
}

/* ================================
   Fineprint
================================ */
.job-fineprint{
	margin: 14px auto 0 auto;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: var(--job-muted);
	max-width: 70ch;
}

/* ================================
   Responsive
================================ */
@media (max-width: 900px){
	.job-form-header,
	.job-form{
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 768px){
	.job-grid{
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.job-submit{
		width: 100%;
	}
}

/* ================================
   Captcha Error Message
================================ */

.job-captcha-block {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.job-captcha-error {
	display: none; /* hidden by default */
	width: 100%;
	max-width: 480px;

	background: rgba(180, 0, 0, 0.08);
	border: 1px solid rgba(180, 0, 0, 0.35);
	border-radius: 8px;

	padding: 10px 14px;

	color: #b00000;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-align: center;
}

/* When JS adds .is-visible */
.job-captcha-error.is-visible {
	display: block;
}