/* Tuyển dụng – list + popup */

.td-recruitment {
	--td-red: #c41e2a;
	--td-border: #d0d0d0;
	--td-text: #222;
	--td-muted: #555;
	width: 100%;
}

.td-recruitment__heading {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.td-job-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.td-job-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border: 1px solid var(--td-border);
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.td-job-card:hover {
	border-color: #bdbdbd;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.td-job-card__main {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.td-job-card__thumb {
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	border-radius: 4px;
	overflow: hidden;
	background: #f3f3f3;
}

.td-job-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.td-job-card__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 700;
	color: #999;
	background: #eee;
}

.td-job-card__body {
	flex: 1;
	min-width: 0;
}

.td-job-card__title {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--td-text);
}

.td-job-card__title.is-highlight {
	color: var(--td-red);
}

.td-job-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px 28px;
	font-size: 0.875rem;
	color: var(--td-muted);
	line-height: 1.45;
}

.td-job-card__location,
.td-job-card__date {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
}

.td-job-card__location svg,
.td-job-card__date svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #333;
}

.td-job-card__apply {
	flex-shrink: 0;
	padding: 10px 22px;
	border: 1px solid var(--td-red);
	border-radius: 4px;
	background: #fff;
	color: var(--td-red);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.td-job-card__apply:hover {
	background: var(--td-red);
	color: #fff;
}

/* Modal */
.td-modal[hidden] {
	display: none !important;
}

.td-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.td-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.td-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.td-modal__dialog--detail {
	max-width: 720px;
}

.td-modal__dialog--apply {
	max-width: 560px;
}

.td-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
}

.td-modal__close:hover {
	color: #111;
}

.td-modal__title {
	margin: 0;
	padding: 28px 40px 8px 28px;
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.td-modal__body {
	padding: 12px 28px 28px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Detail content */
.td-detail-content {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #333;
}

.td-detail-content ul,
.td-detail-content ol {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.td-detail-content p {
	margin: 0 0 0.85rem;
}

.td-detail-content strong,
.td-detail-content b {
	font-weight: 700;
}

.td-detail-footer {
	display: flex;
	justify-content: center;
	padding-top: 12px;
}

.td-btn-apply-now {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--td-red);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.td-btn-apply-now:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Apply form */
.td-apply-form .td-field {
	margin-bottom: 14px;
}

.td-apply-form label,
.td-apply-form .td-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #333;
}

.td-apply-form .req {
	color: var(--td-red);
	margin-left: 2px;
}

.td-apply-form input[type="text"],
.td-apply-form input[type="email"],
.td-apply-form input[type="tel"],
.td-apply-form input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.95rem;
	line-height: 1.3;
	background: #fff;
	box-sizing: border-box;
}

.td-apply-form input:focus {
	outline: none;
	border-color: #999;
}

.td-field--radio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.td-field--radio .td-field__label {
	width: 100%;
	margin-bottom: 2px;
}

.td-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	font-weight: 400 !important;
	cursor: pointer;
}

.td-apply-form__msg {
	margin: 8px 0 12px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 0.9rem;
}

.td-apply-form__msg.is-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.td-apply-form__msg.is-error {
	background: #ffebee;
	color: #b71c1c;
}

.td-apply-form__actions {
	display: flex;
	justify-content: center;
	padding-top: 8px;
}

.td-btn-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--td-red);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.td-btn-submit:hover {
	opacity: 0.92;
}

.td-btn-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

body.td-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.td-job-card {
		flex-wrap: wrap;
		padding: 14px;
		gap: 12px;
	}

	.td-job-card__main {
		width: 100%;
	}

	.td-job-card__thumb {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}

	.td-job-card__title {
		font-size: 0.9rem;
	}

	.td-job-card__apply {
		width: 100%;
		text-align: center;
	}

	.td-modal {
		padding: 12px;
		align-items: flex-start;
	}

	.td-modal__dialog {
		max-height: calc(100vh - 24px);
	}

	.td-modal__body {
		padding: 8px 18px 22px;
	}

	.td-modal__title {
		padding: 22px 36px 8px 18px;
		font-size: 1rem;
	}
}
