/**
 * Job Positions Manager - Frontend styles
 * Design: corporate italiano, card minimalista
 */

.jpm-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	padding: 30px 20px;
}

.jpm-no-jobs {
	color: #333;
	font-size: 16px;
	margin: 24px 0;
}

/* Card */
.jpm-card {
	width: 100%;
	max-width: 470px;
	background-color: #ffffff;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	padding: 40px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.jpm-card__title {
	margin: 0 0 24px;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.2;
	color: #2c2f6c;
}

.jpm-card__meta {
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.5;
	color: #222222;
}

.jpm-card__meta-item {
	margin-bottom: 8px;
}

.jpm-card__meta-item:last-child {
	margin-bottom: 0;
}

.jpm-card__meta-item strong {
	font-weight: 700;
	color: #000000;
}

.jpm-card__intro {
	color: #333333;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 36px;
}

.jpm-card__intro p {
	margin: 0;
}

.jpm-card__actions {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: nowrap;
}

/* Buttons */
.jpm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 40px;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	line-height: 1;
	padding: 0;
}

.jpm-button:hover {
	opacity: 0.92;
}

.jpm-button:focus {
	outline: 2px solid #2c2f6c;
	outline-offset: 2px;
}

.jpm-button--apply {
	background-color: #f2d200;
	color: #2c2f6c;
}

.jpm-button--apply:hover {
	background-color: #e5c700;
}

.jpm-button--details,
.jpm-button--details:focus {
	background-color: #2c2f6c !important;
	color: #ffffff !important;
}

.jpm-button--details:hover {
	background-color: #23265a !important;
}

/* Modal */
.jpm-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.5);
}

.jpm-modal.is-open {
	display: flex;
}

.jpm-modal__container {
	position: relative;
	background-color: #ffffff;
	border-radius: 4px;
	width: 100%;
	max-width: 780px;
	max-height: 85vh;
	border: 1px solid #d9d9d9;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: jpm-modal-in 0.2s ease-out;
}

@keyframes jpm-modal-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.jpm-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent !important;
	border: none;
	cursor: pointer;
	color: #2c2f6c;
	padding: 6px;
	border-radius: 50%;
	z-index: 2;
}

.jpm-modal__close:hover,
.jpm-modal__close:focus {
	background: transparent !important;
	color: #2c2f6c;
	outline: none;
}

.jpm-modal__content {
	padding: 40px 40px 20px;
	overflow-y: auto;
}

.jpm-modal__title {
	margin: 0 0 24px;
	font-size: 26px;
	font-weight: 700;
	color: #2c2f6c;
	line-height: 1.25;
}

.jpm-modal__field {
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.5;
	color: #222222;
}

.jpm-modal__field strong {
	display: inline;
	font-weight: 700;
	color: #000000;
}

.jpm-modal__field p {
	margin: 0;
	display: inline;
}

.jpm-modal__field--description {
	margin-bottom: 0;
}

.jpm-modal__field--description strong {
	display: block;
	margin-bottom: 6px;
}

.jpm-modal__field--description p {
	display: block;
	margin-bottom: 12px;
}

.jpm-modal__description {
	max-height: 320px;
	overflow-y: auto;
	padding-right: 12px;
	font-size: 15px;
	line-height: 1.7;
	color: #333333;
}

.jpm-modal__description p {
	margin: 0 0 14px;
}

.jpm-modal__description ul,
.jpm-modal__description ol {
	margin: 0 0 14px;
	padding-left: 22px;
}

.jpm-modal__description li {
	margin-bottom: 6px;
}

.jpm-modal__description::-webkit-scrollbar {
	width: 8px;
}

.jpm-modal__description::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.jpm-modal__description::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.jpm-modal__description::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.jpm-modal__footer {
	padding: 18px 40px 28px;
	text-align: center;
	border-top: 1px solid #eeeeee;
	background-color: #ffffff;
}

.jpm-modal__apply {
	width: 180px;
	height: 40px;
}

/* Lock body scroll */
body.jpm-modal-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 560px) {
	.jpm-card {
		padding: 28px;
	}

	.jpm-card__title {
		font-size: 23px;
	}

	.jpm-card__actions {
		gap: 14px;
	}

	.jpm-button {
		width: calc(50% - 7px);
		min-width: 130px;
		max-width: 180px;
	}

	.jpm-modal {
		padding: 12px;
	}

	.jpm-modal__container {
		max-height: 90vh;
		border-radius: 4px;
	}

	.jpm-modal__content {
		padding: 28px 24px 16px;
	}

	.jpm-modal__title {
		font-size: 22px;
	}

	.jpm-modal__description {
		max-height: 240px;
	}

	.jpm-modal__footer {
		padding: 16px 24px 22px;
	}
}
