/* AKA Tuyển dụng list + apply modal */

.aka-td-list__rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aka-td-list__row {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 24px;
	padding: 22px 0px;
	border-bottom: 1px solid #e5e5e5;
}

.aka-td-list__row:last-child {
	border-bottom: 0;
}

.aka-td-list__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.aka-td-list__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.aka-td-list__tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: #C02038;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
}

.aka-td-list__desc {
	color: #00a8b5;
	font-size: 14px;
	text-decoration: none;
}

.aka-td-list__cat {
	text-align: center;
	color: #666;
	font-size: 15px;
}

.aka-td-list__action {
	text-align: right;
}

.aka-td-list__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid #C02038;
	border-radius: 4px;
	background: #fff;
	color: #C02038;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.aka-td-list__apply:hover {
	background: #a3202e;
	color: #fff;
}

.aka-td-list__empty {
	margin: 0;
	padding: 16px;
	color: #777;
	font-size: 14px;
}

/* Modal */
.aka-td-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.aka-td-modal.is-open {
	display: flex;
}

.aka-td-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.aka-td-modal__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, 440px);
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 28px 24px 24px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.aka-td-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.aka-td-modal__title {
	margin: 0 0 20px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: #222;
}

.aka-td-modal__body .wpcf7 {
	margin: 0;
}

.aka-td-modal__body .wpcf7-form>p {
	margin: 0 0 14px;
}

.aka-td-modal__body input[type="text"],
.aka-td-modal__body input[type="email"],
.aka-td-modal__body input[type="tel"],
.aka-td-modal__body input[type="url"],
.aka-td-modal__body select,
.aka-td-modal__body textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
}

.aka-td-modal__body select {
	background: #f3f3f3;
}

.aka-td-modal__body input[type="submit"],
.aka-td-modal__body .wpcf7-submit {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 4px;
	background: #a3202e;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.aka-td-modal__body .wpcf7-form-control-wrap[data-name="cv"],
.aka-td-modal__body .wpcf7-form-control-wrap:has(input[type="file"]) {
	display: block;
}

.aka-td-modal__body input[type="file"] {
	display: block;
	width: 100%;
	font-size: 13px;
	color: #444;
}

.aka-td-modal__body input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 14px;
	border: 0;
	border-radius: 4px;
	background: #a3202e;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 767px) {
	.aka-td-list__row {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 18px 4px;
	}

	.aka-td-list__cat {
		text-align: left;
	}

	.aka-td-list__action {
		text-align: left;
	}

	.aka-td-list__apply {
		width: 100%;
	}
}