/* The "Apply Online" form (Gravity Form 1) on hand-made job listings.
   Greg 11/9: "this form sucks ass on the job posting pages". Form 1 renders
   Gravity's LEGACY markup (gf_left_half / gf_right_half floats, grey inputs),
   so the theme's --gf-* variables in style.css never reach it, and the half
   columns are far too narrow for the sidebar card. One clean column, real
   labels, white fields, a gold button: the same look as the Engine listing
   card. Loaded only on hand-made single job pages (lib/search-listings.php). */

.single-job-posting .job_application .gform_legacy_markup_wrapper { margin: 6px 0 0; max-width: none; }
.single-job-posting .job_application .gform_legacy_markup_wrapper ul.gform_fields { padding: 0; margin: 0; }

.single-job-posting .job_application .gform_legacy_markup_wrapper ul.gform_fields li.gfield,
.single-job-posting .job_application .gform_legacy_markup_wrapper ul.gform_fields li.gfield.gf_left_half,
.single-job-posting .job_application .gform_legacy_markup_wrapper ul.gform_fields li.gfield.gf_right_half {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: both !important;
	display: block !important;
	padding: 0 !important;
	margin: 0 0 16px !important;
}
.single-job-posting .job_application .gform_legacy_markup_wrapper li.gform_hidden { margin: 0 !important; }

.single-job-posting .job_application .gform_legacy_markup_wrapper .gfield_label {
	display: block;
	margin: 0 0 6px !important;
	font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: #13202E;
}
.single-job-posting .job_application .gform_legacy_markup_wrapper .gfield_required { color: #9A7424; margin-left: 3px; }

.single-job-posting .job_application .gform_legacy_markup_wrapper .ginput_container { margin-top: 0 !important; }
.single-job-posting .job_application .gform_legacy_markup_wrapper input[type="text"],
.single-job-posting .job_application .gform_legacy_markup_wrapper input[type="email"],
.single-job-posting .job_application .gform_legacy_markup_wrapper input[type="tel"],
.single-job-posting .job_application .gform_legacy_markup_wrapper textarea {
	width: 100% !important;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 14px !important;
	background: #FFFFFF !important;
	border: 1px solid #D9CFB6 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	color: #13202E !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.single-job-posting .job_application .gform_legacy_markup_wrapper textarea { height: 128px !important; resize: vertical; }
.single-job-posting .job_application .gform_legacy_markup_wrapper input::placeholder,
.single-job-posting .job_application .gform_legacy_markup_wrapper textarea::placeholder { color: #9AA3B0; opacity: 1; }
.single-job-posting .job_application .gform_legacy_markup_wrapper input:focus,
.single-job-posting .job_application .gform_legacy_markup_wrapper textarea:focus {
	outline: none;
	border-color: #C79A3E !important;
	box-shadow: 0 0 0 3px rgba(199, 154, 62, 0.22) !important;
}

/* Resume upload: a calm drop line, not the browser's default button soup. */
.single-job-posting .job_application .gform_legacy_markup_wrapper input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px;
	border: 1px dashed #D9CFB6;
	border-radius: 8px;
	background: #FBF9F4;
	font-size: 14px;
	color: #4B5766;
}
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_fileupload_rules,
.single-job-posting .job_application .gform_legacy_markup_wrapper .gfield_description { font-size: 12px; color: #717787; padding-top: 6px; }

/* Submit: full-width gold, the site's main call to action. */
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer { padding: 4px 0 0 !important; margin: 0 !important; }
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer input[type="submit"],
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer button {
	width: 100% !important;
	min-height: 52px;
	margin: 0 !important;
	border: 0;
	border-radius: 8px;
	background: #C79A3E;
	color: #0E1B2A;
	font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer input[type="submit"]:hover,
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer button:hover { background: #D5AA55; }
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer input[type="submit"]:focus-visible { outline: 3px solid #0E1B2A; outline-offset: 2px; }

/* Errors read as help, not alarms. */
.single-job-posting .job_application .gform_legacy_markup_wrapper li.gfield_error { background: none !important; border: 0 !important; }
.single-job-posting .job_application .gform_legacy_markup_wrapper .validation_message { padding-top: 6px !important; font-size: 13px; color: #a3341a; }
.single-job-posting .job_application .gform_legacy_markup_wrapper div.validation_error,
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_validation_errors { border: 0 !important; background: #FBE9E4; color: #8a2c14; border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* A reassurance line under the button. */
.single-job-posting .job_application .gform_legacy_markup_wrapper .gform_footer::after {
	content: "Confidential. Nothing about you goes to a firm without your OK.";
	display: block;
	margin-top: 10px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #717787;
	text-transform: none;
	letter-spacing: 0;
}

/* Labels already say what each box is; the repeated placeholder is noise. */
.single-job-posting .job_application .gform_legacy_markup_wrapper input::placeholder,
.single-job-posting .job_application .gform_legacy_markup_wrapper textarea::placeholder { color: transparent; }
/* Hidden fields (referer, job title, recruiter email) take no room. */
.single-job-posting .job_application .gform_legacy_markup_wrapper li.gfield--type-hidden,
.single-job-posting .job_application .gform_legacy_markup_wrapper li.gform_hidden { display: none !important; }

/* Greg 11/9: "when you scroll the bottom section goes behind the form". The
   card was position: sticky (style.css); with the form open it is taller than
   the screen, so the sticky offset pushed it down over the next section. On
   these pages it stays in the grid and the row grows to fit it. */
.single-job-posting .job_application {
	position: relative !important;
	top: auto !important;
	align-self: start;
	z-index: 2;
	background: #FFFFFF;
}
