/* ==========================================================
   BFMS - Careers page
   (hero from services.css, carousel from industries.css,
    form and stay-in-touch band from style.css)
   ========================================================== */

/* ---------- Life at BFMS cards ---------- */
.careers-life-section {
	padding: 96px 0 40px;
	overflow: hidden;
}

.careers-life-section .solutions-track {
	gap: 10px;
	align-items: center;
}

.life-card {
	position: relative;
	flex: 0 0 407px;
	height: 470px;
	overflow: hidden;
	scroll-snap-align: start;
	background: var(--dark);
}

.life-card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.life-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .75) 72%, rgba(0, 0, 0, .95) 100%);
}

.life-card-body {
	position: absolute;
	left: 21px;
	right: 30px;
	bottom: 24px;
	z-index: 2;
}

.life-card h3 {
	color: var(--white);
	font-size: 24px;
	font-weight: 400;
	margin-bottom: 22px;
	transition: font-size .3s ease;
}

.life-card p {
	color: #e5e5e5;
	font-size: 13px;
	line-height: 17.5px;
	max-width: 230px;
	transition: font-size .3s ease, max-width .3s ease;
}

.life-card:hover > img {
	transform: scale(1.06);
}

.life-card:hover h3 {
	font-size: 29px;
}

.life-card:hover p {
	font-size: 17px;
	line-height: 22px;
	max-width: 300px;
}

.careers-life-section .carousel-progress {
	margin: 28px 0 0;
}

/* ---------- Openings ---------- */
.openings-section {
	padding: 60px 0 40px;
}

.openings-section .section-title {
	margin-bottom: 34px;
}

.openings-list {
	border-top: 1px solid var(--line);
}

.opening-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 24px 16px 10px;
	margin: 0 -16px;
	border-bottom: 1px solid #f1f1f1;
	border-radius: 6px;
	transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.opening-row:hover {
	background: linear-gradient(135deg, #fffaf5 0%, #fff8f0 100%);
	border-bottom-color: var(--orange);
	box-shadow: 0 4px 12px rgba(253, 132, 49, 0.08);
	transform: translateX(2px);
}

.opening-info h3 {
	color: #111;
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 10px;
	transition: color .25s ease;
}

.opening-row:hover .opening-info h3 {
	color: var(--orange);
}

.opening-meta {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.opening-meta li {
	color: #666;
	font-size: 13.5px;
}

.opening-meta li + li::before {
	content: '\00B7';
	margin: 0 10px;
}

.opening-info p {
	color: #666;
	font-size: 17px;
}

.btn-apply {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 22px;
	background: var(--orange);
	color: var(--white);
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 4px;
	transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
	/* box-shadow: 0 2px 6px rgba(253, 132, 49, 0.2); */
}

.btn-apply:hover {
	background: #d95a00;
	/* box-shadow: 0 6px 16px rgba(253, 132, 49, 0.35); */
	transform: translateY(-1px);
}

.openings-empty {
	padding: 30px 0;
	color: #666;
	font-size: 17px;
}

/* ---------- Apply form ---------- */
.apply-section {
	padding: 50px 0 90px;
	scroll-margin-top: 60px;
}

.apply-section .container {
	max-width: 1360px;
}

.apply-section .section-title {
	margin-bottom: 34px;
}

.apply-form {
	border-top: 1px solid var(--line);
	padding: 54px 132px 0;
}

.file-input {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	height: 49px;
	padding: 0 14px;
	margin: 0 !important;
	border: 1px solid #ececec;
	cursor: pointer;
	font-weight: 400 !important;
}

.file-input input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.file-name {
	color: #9a9a9a;
	font-size: 12px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.file-input.has-file .file-name {
	color: #222;
}

.file-browse {
	color: #222;
	font-size: 11px;
	font-weight: 600;
}

.form-footer {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding-top: 4px;
}

.form-footer p {
	color: #666;
	font-size: 10px;
	line-height: 16px;
	margin-top: 10px;
}


/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.apply-form {
		padding: 44px 40px 0;
	}
}

@media (max-width: 767px) {
	.careers-life-section {
		padding: 60px 0 20px;
	}

	.life-card {
		flex-basis: 82%;
		height: 400px;
	}

	.opening-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 26px 0;
	}

	.opening-row:hover {
		padding-left: 14px;
		padding-right: 14px;
	}

	.opening-info h3 {
		font-size: 19px;
	}

	.opening-info p {
		font-size: 15px;
	}

	.apply-section {
		padding: 60px 0;
	}

	.apply-form {
		padding: 30px 0 0;
	}

	.captcha-box small {
		display: none !important;
	}

	.form-footer {
		flex-direction: column-reverse;
		gap: 16px;
	}

	.form-footer .btn-solid {
		width: 100%;
		height: 44px;
	}

	.form-footer p {
		font-size: 12px;
	}

}

/* Figma uses the full-size section heading here */
.careers-life-section .solutions-carousel .section-title {
	/* font-size: 53px;
	padding-bottom: 31px;
	margin-bottom: 56px; */
}

@media (max-width: 991px) {
	.careers-life-section .solutions-carousel .section-title {
		font-size: 40px;
		margin-bottom: 44px;
	}
}

@media (max-width: 767px) {
	.careers-life-section .solutions-carousel .section-title {
		font-size: 30px;
		padding-bottom: 24px;
		margin-bottom: 36px;
	}
}

/* ==========================================================
   Job detail popup (opens from an opening row / Apply Now)
   ========================================================== */
.opening-row {
	cursor: pointer;
}

.opening-row:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}

body.modal-open {
	overflow: hidden;
}

.job-modal {
	position: fixed;
	inset: 0;
	z-index: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	background: rgba(0, 0, 0, .64);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}

.job-modal.open {
	opacity: 1;
	visibility: visible;
}

.job-dialog {
	display: flex;
	flex-direction: column;
	width: 818px;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	background: var(--white);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	transform: translateY(24px);
	transition: transform .35s ease;
}

.job-modal.open .job-dialog {
	transform: translateY(0);
}

/* header */
.job-head {
	position: relative;
	flex-shrink: 0;
	padding: 14px 19px 12px;
	background: #f8f9fa;
	border-bottom: 2px solid #fd8431;
}

.job-head h3 {
	color: #101820;
	font-size: 20px;
	font-weight: 600;
	line-height: 26px;
	padding-right: 40px;
	margin-bottom: 10px;
}

.job-close {
	position: absolute;
	top: 18px;
	right: 19px;
	width: 17px;
	height: 17px;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform .25s ease;
}

.job-close img {
	width: 100%;
	height: 100%;
}

.job-close:hover {
	transform: rotate(90deg);
}

.job-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.job-tags li {
	padding: 3px 8px;
	background: #eff6fb;
	color: #1c2b36;
	font-size: 11.5px;
	line-height: 14px;
}

.job-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.job-head-row .btn-solid {
	height: 30px;
	padding: 0 17px;
	font-size: 11.5px;
}

.job-head-row span {
	color: #666;
	font-size: 11.5px;
}

/* scrolling body */
.job-body {
	position: relative;
	flex: 1;
	overflow-y: auto;
	padding: 8px 19px 10px;
	overscroll-behavior: contain;
}

.job-scroll-hint {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	color: #999;
	font-size: 7.5px;
	margin-bottom: 14px;
	transition: opacity .3s ease;
}

.job-scroll-hint img {
	width: 8px;
	height: 8px;
}

.job-modal.scrolled .job-scroll-hint {
	opacity: 0;
}

.job-block {
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #f1f1f1;
}

.job-block:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

.job-block h4 {
	color: #101820;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 16px;
	padding-left: 10px;
	border-left: 2px solid var(--orange);
	margin-bottom: 9px;
}

.job-block p {
	color: #444;
	font-size: 11px;
	line-height: 15px;
}

.job-list li {
	position: relative;
	color: #333;
	font-size: 11px;
	line-height: 14px;
	padding-left: 11px;
}

.job-list li + li {
	margin-top: 7px;
}

.job-list li::before {
	content: '';
	position: absolute;
	left: 1px;
	top: 5px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #fe6700;
}

.job-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.job-skills li {
	padding: 4px 8px;
	background: #f5f5f5;
	border: 1px solid #ececec;
	color: #333;
	font-size: 9.5px;
	line-height: 12px;
}

.job-location {
	display: flex;
	align-items: center;
	gap: 8px;
}

.job-location span {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	background: #eaf2fb;
	color: #21384b;
	font-size: 8.5px;
	font-weight: 600;
}

.job-location span img {
	width: 9px;
	height: 9px;
}

/* footer */
.job-foot {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 19px 18px;
	background: #f8f9fa;
}

.job-foot h5 {
	color: #101820;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
}

.job-foot p {
	color: #666;
	font-size: 9px;
	line-height: 12px;
}

.job-foot .btn-solid {
	flex-shrink: 0;
	height: 30px;
	padding: 0 17px;
	font-size: 11.5px;
}

@media (max-width: 767px) {
	.job-modal {
		align-items: flex-end;
		padding: 0;
	}

	.job-dialog {
		max-height: 92vh;
	}

	.job-head h3 {
		font-size: 19px;
	}

	.job-tags li,
	.job-head-row span {
		font-size: 12px;
	}

	.job-block h4 {
		font-size: 15px;
	}

	.job-block p,
	.job-list li {
		font-size: 14px;
		line-height: 20px;
	}

	.job-list li::before {
		top: 8px;
	}

	.job-skills li {
		font-size: 12px;
		line-height: 15px;
	}

	.job-location span,
	.job-scroll-hint {
		font-size: 11px;
	}

	.job-foot {
		flex-direction: column;
		align-items: stretch;
	}

	.job-foot p {
		font-size: 12px;
		line-height: 16px;
	}

	.job-foot .btn-solid,
	.job-head-row .btn-solid {
		height: 38px;
		font-size: 13px;
	}
}
