/* XC Recruitment — trang danh sách tuyển dụng */
:root {
	--xcr-green: #1f7a3d;
	--xcr-green-dark: #155f2e;
	--xcr-border: #e5e7eb;
	--xcr-text: #1f2937;
	--xcr-muted: #6b7280;
}

.xcr-jobs {
	max-width: 1160px;
	margin: 24px auto 48px;
	background: rgb(255 255 255 / 95%);
	border-radius: 10px;
	margin-bottom: 30px;
	padding: 60px 24px 24px 24px;
	margin-top: 150px;
	box-shadow: 0 30px 50px rgb(107 124 147 / 15%);
}
.xcr-head {
	text-align: center;
	margin-bottom: 28px;
}
.xcr-head h2 {
	color: var(--xcr-text);
	font-weight: 800;
	letter-spacing: 0.5px;
	font-size: 28px;
	margin: 0 0 6px;
}
.xcr-head p {
	color: var(--xcr-muted);
	margin: 0;
}

/* Filter bar */
.xcr-filter {
	background: #fff;
	border: 1px solid var(--xcr-border);
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 22px;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
.xcr-filter-row {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 16px;
	align-items: end;
}
.xcr-filter-row + .xcr-filter-row {
	margin-top: 16px;
}
.xcr-filter label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--xcr-muted);
	text-transform: uppercase;
}
.xcr-filter input,
.xcr-filter select {
	padding: 11px 13px;
	border: 1px solid var(--xcr-border);
	border-radius: 9px;
	font-size: 14px;
	font-weight: 400;
	color: var(--xcr-text);
	background-color: #fff !important; /* ép nền trắng, ghi đè theme */
}
.xcr-filter select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%236b7280' d='M4 5L0 0h8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 8px 5px;
	padding-right: 28px;
}
.xcr-filter option {
	background: #fff;
	color: var(--xcr-text);
}
.xcr-filter input:focus,
.xcr-filter select:focus {
	outline: none;
	border-color: var(--xcr-green);
	box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.12);
}
.xcr-filter-salary {
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0 !important;
}
.xcr-btn-search {
	background-color: var(--xcr-green) !important;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 8px 18px;
	font-weight: 600;
	font-size: 16px !important;
	cursor: pointer;
	white-space: nowrap;
	height: fit-content;
	width: 100%;
	margin: 0 !important;
	margin-right: 0 !important;
}
.xcr-btn-search:hover {
	background-color: var(--xcr-green-dark);
}

/* Slider lương — noUiSlider tuỳ biến màu xanh brand */
.xcr-slider-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 4px;
}
.xcr-slider-lbl {
	font-size: 13px;
	color: var(--xcr-muted);
	font-weight: 600;
}
.xcr-slider-lbl strong {
	color: var(--xcr-green);
}

#xcr-slider {
	height: 6px;
	margin: 8px 6px 0;
}
#xcr-slider.noUi-target {
	background: #e5e7eb;
	border: 0;
	box-shadow: none;
	border-radius: 3px;
}
#xcr-slider .noUi-connect {
	background: var(--xcr-green);
}
#xcr-slider .noUi-handle {
	width: 18px;
	height: 18px;
	right: -9px;
	top: -7px;
	border-radius: 50%;
	background: var(--xcr-green);
	border: 2px solid #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}
#xcr-slider .noUi-handle::before,
#xcr-slider .noUi-handle::after {
	display: none;
}
#xcr-slider .noUi-handle:focus {
	outline: none;
}

/* Count line */
.xcr-count {
	text-align: center;
	color: var(--xcr-muted);
	margin: 16px 0;
	font-weight: 600;
}

/* Table */
.xcr-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--xcr-border);
	border-radius: 12px;
	background: #fff;
}
.xcr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.xcr-table thead {
	background: var(--xcr-green);
}
.xcr-table th {
	text-align: left;
	padding: 14px 16px;
	color: #fff;
	font-size: 15px;
	text-transform: uppercase;
	font-weight: 700;
	white-space: nowrap;
}
.xcr-table td {
	padding: 12px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	font-size: 15px;
}
/* padding rộng hơn cho cột đầu */
.xcr-table th:first-child,
.xcr-table td:first-child {
	padding-left: 16px;
}
.xcr-table th:last-child,
.xcr-table td:last-child {
	padding-right: 16px;
}
.xcr-table tr:last-child td {
	border-bottom: 0;
}
.xcr-job-title {
	color: var(--xcr-text);
	font-weight: 700;
	text-decoration: none;
}
.xcr-job-title:hover {
	color: var(--xcr-green);
}
.xcr-salary {
	color: var(--xcr-green);
	font-weight: 700;
	white-space: nowrap;
}
.xcr-btn-apply {
	display: inline-block;
	border: 1px solid var(--xcr-green);
	color: var(--xcr-green);
	border-radius: 8px;
	padding: 8px 16px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}
.xcr-btn-apply:hover {
	background: var(--xcr-green);
	color: #fff;
}
.xcr-empty {
	text-align: center;
	color: var(--xcr-muted);
	padding: 36px;
}

/* Pager */
.xcr-pager {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
}
.xcr-pager a {
	display: inline-flex;
	min-width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--xcr-border);
	border-radius: 8px;
	color: var(--xcr-text);
	text-decoration: none;
}
.xcr-pager a.on {
	background: var(--xcr-green);
	color: #fff;
	border-color: var(--xcr-green);
}

@media (max-width: 860px) {
	.xcr-filter-row {
		grid-template-columns: 1fr;
	}
	.xcr-filter-salary {
		grid-template-columns: 1fr;
	}
}

/* ===========================================================================
 *  Trang chi tiết vị trí + form ứng tuyển (nhẹ, giống Flatsome)
 * ========================================================================= */
.xcr-detail {
	max-width: 820px;
	margin: 0 auto;
}
.xcr-back {
	display: inline-block;
	color: var(--xcr-green);
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 16px;
	font-size: 14px;
}
.xcr-back:hover {
	text-decoration: underline;
}

/* Header nhẹ: nền trắng, viền trái xanh, không còn khối xanh đậm */
.xcr-detail-head {
	border-left: 4px solid var(--xcr-green);
	padding: 4px 0 4px 18px;
	margin-bottom: 24px;
}
.xcr-detail-title {
	color: #222222;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
}
.xcr-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.xcr-tag {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	color: var(--xcr-text);
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}
.xcr-tag-salary {
	background: #e7f6ec;
	color: var(--xcr-green);
}

/* JD dùng typography theme, chỉ thêm spacing */
.xcr-jd {
	margin-bottom: 32px;
	line-height: 1.8;
}
.xcr-jd h1,
.xcr-jd h2,
.xcr-jd h3 {
	color: var(--xcr-text);
	margin-top: 20px;
}
.xcr-jd ul,
.xcr-jd ol {
	padding-left: 22px;
}
.xcr-jd p {
	margin: 0 0 14px;
}

.xcr-closed {
	background: #fdecea;
	color: #a8261a;
	text-align: center;
	padding: 16px;
	border-radius: 10px;
	font-weight: 600;
}

/* Form — card nổi bật (dark green) */
.xcr-apply {
	background: var(--xcr-green-dark);
	border-radius: 12px;
	padding: 24px 26px;
	box-shadow:
		0 8px 24px rgba(21, 95, 46, 0.22),
		0 2px 6px rgba(0, 0, 0, 0.06);
}
.xcr-apply-title {
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 18px;
}
.xcr-apply-title span {
	color: #eaf5ee;
}
.xcr-ok {
	background: #fff;
	color: var(--xcr-green-dark);
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-weight: 600;
}
.xcr-err {
	background: #fdecea;
	color: #a8261a;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.xcr-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.xcr-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}
.xcr-lbl {
	display: inline;
}
.xcr-form label .xcr-lbl span {
	color: #fca5a5;
	margin-left: 2px;
}
.xcr-form label small {
	color: rgba(255, 255, 255, 0.78);
	font-weight: 400;
	font-size: 12px;
}
.xcr-form input[type='text'],
.xcr-form input[type='email'] {
	padding: 11px 13px;
	border: 1px solid var(--xcr-border);
	border-radius: 8px;
	font-size: 14px;
	background: #fff !important;
}
.xcr-form input[type='file'] {
	padding: 9px;
	border: 1px solid var(--xcr-border);
	border-radius: 8px;
	background: #fff !important;
	font-size: 13px;
}
.xcr-form input:focus {
	outline: none;
	border-color: var(--xcr-green);
	box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.12);
}
.xcr-form .cf-turnstile {
	margin: 16px 0;
}
.xcr-form-submit {
	display: block;
	margin: 22px auto 0;
	width: 70%;
	max-width: 320px;
	background: #fff !important;
	color: var(--xcr-green-dark);
	border: 0;
	border-radius: 9px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.xcr-form-submit:hover {
	background: #eaf5ee;
}

/* Related jobs */
.xcr-related {
	margin-top: 40px;
}
.xcr-related-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--xcr-green);
	padding-bottom: 10px;
}
.xcr-related-title {
	color: var(--xcr-text);
	font-size: 18px;
	font-weight: 800;
	margin: 0;
}
.xcr-related-all {
	color: var(--xcr-green);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
	white-space: nowrap;
}
.xcr-related-all:hover {
	text-decoration: underline;
}
.xcr-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.xcr-related-card {
	display: block;
	background: #fff;
	border: 1px solid var(--xcr-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	transition:
		transform 0.15s,
		box-shadow 0.15s;
}
.xcr-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	border-color: var(--xcr-green);
}
.xcr-related-banner {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}
.xcr-related-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.xcr-related-name {
	color: var(--xcr-text);
	font-weight: 700;
	font-size: 15px;
	margin: 16px 20px 8px;
}
.xcr-related-pb {
	color: var(--xcr-muted);
	font-size: 13px;
	margin: 0 20px 8px;
}
.xcr-related-sal {
	color: var(--xcr-green);
	font-weight: 700;
	font-size: 14px;
	margin: 0 20px 18px;
}

@media (max-width: 720px) {
	.xcr-related-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	.xcr-form-grid {
		grid-template-columns: 1fr;
	}
}

/* Custom file input (nút tiếng Việt) */
.xcr-file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid var(--xcr-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.xcr-file input[type='file'] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.xcr-file-btn {
	background: #f1f5f9;
	color: var(--xcr-text);
	font-weight: 600;
	font-size: 13px;
	padding: 11px 16px;
	white-space: nowrap;
	border-right: 1px solid var(--xcr-border);
}
.xcr-file-name {
	padding: 11px 14px;
	font-size: 13px;
	color: var(--xcr-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.xcr-file-name.has-file {
	color: var(--xcr-green);
	font-weight: 600;
}
.xcr-file:hover .xcr-file-btn {
	background: #e7f6ec;
	color: var(--xcr-green);
}

/* Modal cảm ơn — icon check nổi, căn giữa, nút OK */
.xcr-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 23, 42, 0.55);
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.xcr-modal-overlay.open {
	display: flex;
}
.xcr-modal {
	position: relative;
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 380px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 48px 30px 30px;
	margin-top: 34px;
	text-align: center;
	animation: xcr-pop 0.2s ease-out;
}
@keyframes xcr-pop {
	from {
		transform: scale(0.94);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
/* icon tròn xanh nổi lên đỉnh modal */
.xcr-modal-icon {
	position: absolute;
	top: -34px;
	left: 50%;
	transform: translateX(-50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--xcr-green);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(31, 122, 61, 0.4);
}
.xcr-modal-x {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #cbd5e1;
	cursor: pointer;
	padding: 0 4px;
}
.xcr-modal-x:hover {
	color: var(--xcr-muted);
}
.xcr-modal-title {
	margin: 6px 0 12px;
	color: var(--xcr-text);
	font-size: 24px;
	font-weight: 800;
}
.xcr-modal-text {
	margin: 0 0 24px;
	color: var(--xcr-muted);
	line-height: 1.7;
	font-size: 14px;
}
.xcr-modal-ok {
	height: 32px;
	width: 100px !important;
	min-width: 100px;
	display: block;
	padding: 0;
	font-size: 14px;
	margin: auto;
	background: var(--xcr-green);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
}
.xcr-modal-ok:hover {
	background: var(--xcr-green-dark);
}
