/**
 * Sterling Millwork — Careers Page
 *
 * Editorial hero, structured content sections, and full restyling of
 * the embedded WPForms application form so it reads as a deliberate
 * Sterling document rather than vendor default UI.
 *
 * @package Sterling_Millwork
 * @since 1.0.0
 */

/* ==========================================================================
   Careers Hero — mirrored editorial split (dark right, photo left)
   --------------------------------------------------------------------------
   The chosen photograph (shop-11-cabinet-assembly) puts a kneeling
   craftsman in the left-third of the frame with a second team member
   visible at the back-right. We want the craftsman fully readable on
   the left, so the gradient runs RIGHT-TO-LEFT (270deg) — dark anchor
   on the right where H1/subhead/CTA sit, photograph reveal on the left.
   Same opacity rhythm as About / Carpentry heroes for consistency.
   ========================================================================== */

.sterling-hero-careers {
	position: relative;
}

.sterling-hero-careers > .wp-block-cover__background {
	background: linear-gradient(
		270deg,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.85) 38%,
		rgba(0, 0, 0, 0.18) 100%
	) !important;
	opacity: 1 !important;
}

.sterling-hero-careers .wp-block-cover__inner-container {
	width: 100%;
	padding-left: clamp(24px, 4vw, 60px);
	padding-right: clamp(32px, 8vw, 120px);
}

.sterling-hero-careers-content {
	max-width: 580px;
	margin-left: auto !important;
	margin-right: 0;
	padding-top: 40px;
}

.sterling-hero-careers .sterling-hero-careers-eyebrow {
	margin: 0 0 20px 0;
}

.sterling-hero-careers .sterling-hero-careers-h1 {
	margin: 0 0 18px 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sterling-hero-careers .sterling-hero-careers-subtitle {
	margin: 0 0 28px 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 520px;
}

.sterling-hero-careers .sterling-hero-careers-rule {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 0 28px 0;
	opacity: 0.85;
}

/* Anchor CTA inside the hero ("Apply Now ↓") */
.sterling-hero-careers .sterling-hero-careers-cta {
	display: inline-block;
	padding: 12px 28px;
	background: transparent;
	border: 1px solid #c9a84c;
	color: #c9a84c;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.25s ease;
}

.sterling-hero-careers .sterling-hero-careers-cta:hover {
	background: #c9a84c;
	color: #1a1a1a;
}

@media (max-width: 768px) {
	.sterling-hero-careers {
		min-height: 80vh !important;
	}

	.sterling-hero-careers > .wp-block-cover__background {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.75) 50%,
			rgba(0, 0, 0, 0.88) 100%
		) !important;
		opacity: 1 !important;
	}

	.sterling-hero-careers .wp-block-cover__inner-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sterling-hero-careers-content {
		max-width: 100%;
		padding-top: 20px;
	}

	.sterling-hero-careers .sterling-hero-careers-h1 {
		font-size: 38px !important;
		letter-spacing: 1px !important;
		max-width: 100%;
	}

	.sterling-hero-careers .sterling-hero-careers-subtitle {
		font-size: 17px !important;
		max-width: 100%;
	}
}

/* ==========================================================================
   "Why Sterling" / "Positions" two-column content
   --------------------------------------------------------------------------
   Replace the plain bulleted list with gold-dot markers, generous line
   height, and an eyebrow above each column heading. Headings get a
   subtle gold rule beneath for the editorial rhythm.
   ========================================================================== */

.sterling-careers-callouts .sterling-callout-eyebrow {
	margin: 0 0 12px 0;
}

.sterling-careers-callouts .sterling-callout-heading {
	margin: 0 0 24px 0;
	position: relative;
	padding-bottom: 16px;
}

.sterling-careers-callouts .sterling-callout-heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 1px;
	background: #c9a84c;
}

.sterling-careers-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sterling-careers-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 14px;
	font-size: 15px;
	line-height: 1.7;
	color: #3a3a3a;
}

.sterling-careers-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c9a84c;
}

.sterling-careers-list li strong {
	color: #1a1a1a;
	font-weight: 600;
	display: block;
	margin-bottom: 2px;
	letter-spacing: 0.2px;
}

/* Thin gold divider between major sections */
.sterling-section-divider {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 auto;
	opacity: 0.7;
}

/* ==========================================================================
   "Apply Now" section header — anchor target for the in-hero CTA
   ========================================================================== */

#apply {
	scroll-margin-top: 100px;
}

.sterling-apply-eyebrow {
	margin: 0 0 12px 0;
}

.sterling-apply-heading {
	margin: 0 0 16px 0;
}

.sterling-apply-rule {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 auto 28px;
	opacity: 0.85;
}

.sterling-apply-intro {
	max-width: 680px;
	margin: 0 auto 0;
}

/* ==========================================================================
   WPForms — full restyle so the application form reads as a Sterling document
   --------------------------------------------------------------------------
   WPForms ships its own front-end CSS (wpforms-full.css). We override
   inside the .wpforms-container scope so this only affects the careers
   form and any future form embeds, without touching plugin internals.
   ========================================================================== */

.wpforms-container {
	max-width: 880px;
	margin: 0 auto !important;
	font-family: 'Inter', sans-serif;
}

.wpforms-container .wpforms-form {
	background: #ffffff;
	padding: 56px clamp(24px, 5vw, 56px);
	border: 1px solid #ece8de;
	box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}

/* Field labels */
.wpforms-container .wpforms-field-label,
.wpforms-container label.wpforms-field-label {
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0.5px !important;
	color: #1a1a1a !important;
	text-transform: none !important;
	margin-bottom: 8px !important;
	display: block;
}

/* Required asterisk */
.wpforms-container .wpforms-required-label {
	color: #c9a84c !important;
	margin-left: 4px;
}

/* Sub-labels (e.g. "First", "Last" under a Name field) */
.wpforms-container .wpforms-field-sublabel {
	font-family: 'Inter', sans-serif !important;
	font-size: 11px !important;
	color: #888 !important;
	letter-spacing: 0.4px !important;
	text-transform: uppercase !important;
	margin-top: 6px !important;
}

/* Description / help text under labels */
.wpforms-container .wpforms-field-description {
	font-size: 13px !important;
	color: #666 !important;
	line-height: 1.6 !important;
	margin-top: 6px !important;
}

/* Inputs / textarea / select */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container input[type="number"],
.wpforms-container input[type="date"],
.wpforms-container input[type="password"],
.wpforms-container textarea,
.wpforms-container select {
	background-color: #f5f2ed !important;
	border: 1px solid #e0dccf !important;
	border-radius: 0 !important;
	padding: 12px 14px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	color: #1a1a1a !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
	box-shadow: none !important;
	width: 100% !important;
}

.wpforms-container textarea {
	min-height: 120px;
	line-height: 1.6 !important;
}

.wpforms-container input[type="text"]:focus,
.wpforms-container input[type="email"]:focus,
.wpforms-container input[type="tel"]:focus,
.wpforms-container input[type="url"]:focus,
.wpforms-container input[type="number"]:focus,
.wpforms-container input[type="date"]:focus,
.wpforms-container input[type="password"]:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
	background-color: #ffffff !important;
	border-color: #c9a84c !important;
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18) !important;
	outline: none !important;
}

/* Placeholder color */
.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder {
	color: #aaa !important;
	font-style: italic;
}

/* HTML field used as a section header inside the form */
.wpforms-container .wpforms-field-html {
	margin-top: 36px !important;
	margin-bottom: 12px !important;
	padding-bottom: 14px !important;
	border-bottom: 1px solid #ece8de;
}

.wpforms-container .wpforms-field-html h2,
.wpforms-container .wpforms-field-html h3,
.wpforms-container .wpforms-field-html h4 {
	font-family: 'Cormorant Garamond', serif !important;
	font-weight: 400 !important;
	font-size: 26px !important;
	letter-spacing: 0.5px !important;
	color: #1a1a1a !important;
	margin: 0 0 6px 0 !important;
	position: relative;
	display: inline-block;
}

.wpforms-container .wpforms-field-html h2::after,
.wpforms-container .wpforms-field-html h3::after,
.wpforms-container .wpforms-field-html h4::after {
	content: '';
	display: block;
	width: 40px;
	height: 1px;
	background: #c9a84c;
	margin-top: 10px;
}

.wpforms-container .wpforms-field-html p {
	font-size: 13px !important;
	color: #666 !important;
	margin: 6px 0 0 0 !important;
	line-height: 1.6 !important;
}

/* First HTML/section header at the top of the form: no big top margin */
.wpforms-container .wpforms-form .wpforms-field:first-child.wpforms-field-html {
	margin-top: 0 !important;
}

/* Checkbox / radio rows */
.wpforms-container .wpforms-field-radio ul,
.wpforms-container .wpforms-field-checkbox ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.wpforms-container .wpforms-field-radio li,
.wpforms-container .wpforms-field-checkbox li {
	margin-bottom: 8px !important;
	font-size: 15px !important;
	color: #3a3a3a !important;
}

.wpforms-container .wpforms-field-radio input[type="radio"],
.wpforms-container .wpforms-field-checkbox input[type="checkbox"] {
	accent-color: #c9a84c;
	margin-right: 10px;
	transform: translateY(1px);
}

/* File upload field (Resume) — dashed gold border, prominent interactive zone */
.wpforms-container .wpforms-field-file-upload input[type="file"],
.wpforms-container .wpforms-field-file-upload .wpforms-uploader,
.wpforms-container .wpforms-field-file-upload .dz-default,
.wpforms-container .wpforms-field-file-upload .dropzone {
	background: #faf8f3 !important;
	border: 2px dashed #c9a84c !important;
	padding: 32px 24px !important;
	text-align: center;
	color: #1a1a1a !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.wpforms-container .wpforms-field-file-upload .wpforms-uploader:hover,
.wpforms-container .wpforms-field-file-upload .dropzone:hover {
	background: #f5efe0 !important;
	border-color: #b8973a !important;
}

/* Submit button */
.wpforms-container .wpforms-submit-container {
	margin-top: 40px !important;
	text-align: center;
}

.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
	background-color: #c9a84c !important;
	color: #1a1a1a !important;
	border: 1px solid #c9a84c !important;
	border-radius: 0 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 3px !important;
	text-transform: uppercase !important;
	padding: 16px 48px !important;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
	box-shadow: none !important;
}

.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover,
.wpforms-container button[type="submit"]:focus,
.wpforms-container .wpforms-submit:focus {
	background-color: #1a1a1a !important;
	color: #c9a84c !important;
	border-color: #1a1a1a !important;
	outline: none;
}

/* Field rows (one-half, one-third, etc.) — WPForms native grid */
.wpforms-container .wpforms-one-half,
.wpforms-container .wpforms-two-fifths,
.wpforms-container .wpforms-three-fifths,
.wpforms-container .wpforms-one-third,
.wpforms-container .wpforms-two-thirds,
.wpforms-container .wpforms-one-fourth,
.wpforms-container .wpforms-three-fourths,
.wpforms-container .wpforms-one-fifth,
.wpforms-container .wpforms-one-sixth {
	margin-bottom: 20px !important;
}

/* Field spacing — every individual field gets generous breathing room */
.wpforms-container .wpforms-field {
	padding: 14px 0 !important;
}

/* Error state */
.wpforms-container .wpforms-error,
.wpforms-container label.wpforms-error {
	color: #b73333 !important;
	font-size: 12px !important;
	margin-top: 6px !important;
	display: block;
}

.wpforms-container input.wpforms-error,
.wpforms-container textarea.wpforms-error,
.wpforms-container select.wpforms-error {
	border-color: #b73333 !important;
	background-color: #fbf2f2 !important;
}

/* Confirmation message (after successful submit) */
.wpforms-confirmation-container,
.wpforms-confirmation-container-full {
	background: #f5f2ed !important;
	border: 1px solid #c9a84c !important;
	border-left-width: 4px !important;
	padding: 24px 28px !important;
	color: #1a1a1a !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	line-height: 1.7 !important;
}

/* Mobile responsiveness for the form */
@media (max-width: 768px) {
	.wpforms-container .wpforms-form {
		padding: 32px 20px;
	}

	.wpforms-container .wpforms-field-html h2,
	.wpforms-container .wpforms-field-html h3,
	.wpforms-container .wpforms-field-html h4 {
		font-size: 22px !important;
	}

	.wpforms-container button[type="submit"],
	.wpforms-container .wpforms-submit {
		width: 100%;
		padding: 14px 24px !important;
	}
}
