/* HYWAY Careers Manager Frontend Styles */

:root {
	--hcm-navy: #061A3A;
	--hcm-navy-dark: #08224A;
	--hcm-orange: #FF6B00;
	--hcm-white: #FFFFFF;
	--hcm-gray-light: #F4F6F9;
	--hcm-gray-border: #E2E8F0;
	--hcm-gray-text: #4A5568;
	--hcm-transition: all 0.3s ease;
	--hcm-radius: 8px;
}

.hcm-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hcm-navy);
	line-height: 1.6;
	box-sizing: border-box;
}

.hcm-wrapper * {
	box-sizing: inherit;
}

/* Header */
.hcm-header {
	margin-bottom: 30px;
	text-align: center;
}

.hcm-label {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	color: var(--hcm-orange);
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.hcm-heading {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 15px;
	color: var(--hcm-navy);
}

.hcm-desc {
	font-size: 16px;
	color: var(--hcm-gray-text);
	max-width: 700px;
	margin: 0 auto;
}

/* Filters */
.hcm-filters-section {
	background: var(--hcm-gray-light);
	padding: 20px;
	border-radius: var(--hcm-radius);
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.hcm-filters-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.hcm-filter-select,
.hcm-search-bar input {
	padding: 10px 15px;
	border: 1px solid var(--hcm-gray-border);
	border-radius: 4px;
	font-size: 15px;
	background-color: var(--hcm-white);
	color: var(--hcm-navy);
	outline: none;
	transition: var(--hcm-transition);
}

.hcm-filter-select {
	flex: 1 1 200px;
	cursor: pointer;
}

.hcm-filter-select:focus,
.hcm-search-bar input:focus {
	border-color: var(--hcm-orange);
}

.hcm-search-bar {
	width: 100%;
}

.hcm-search-bar input {
	width: 100%;
}

.hcm-clear-btn {
	background: none;
	border: none;
	color: var(--hcm-gray-text);
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
	padding: 10px;
}

.hcm-clear-btn:hover {
	color: var(--hcm-orange);
}

/* Layout */
.hcm-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

@media (min-width: 1200px) {
	.hcm-container {
		flex-direction: row;
		align-items: flex-start;
	}

	.hcm-jobs-list {
		flex: 0 0 60%;
		max-width: 60%;
	}

	.hcm-job-detail-panel {
		flex: 0 0 calc(40% - 30px);
		max-width: calc(40% - 30px);
		position: sticky;
		top: 20px;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.hcm-container {
		flex-direction: row;
		align-items: flex-start;
	}

	.hcm-jobs-list {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.hcm-job-detail-panel {
		flex: 0 0 calc(50% - 30px);
		max-width: calc(50% - 30px);
	}
}

/* Job Cards */
.hcm-jobs-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hcm-job-card {
	background: var(--hcm-navy);
	color: var(--hcm-white);
	border-radius: var(--hcm-radius);
	padding: 24px;
	cursor: pointer;
	transition: var(--hcm-transition);
	border: 2px solid transparent;
}

.hcm-job-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(6, 26, 58, 0.15);
}

.hcm-job-card.active {
	border-color: var(--hcm-orange);
}

.hcm-card-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 15px;
}

.hcm-card-icon {
	color: var(--hcm-orange);
	flex-shrink: 0;
	margin-top: 3px;
}

.hcm-card-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--hcm-white);
}

.hcm-card-meta {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.hcm-card-excerpt {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 20px;
}

.hcm-card-action {
	display: flex;
	justify-content: flex-end;
}

.hcm-circle-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--hcm-orange);
	color: var(--hcm-white);
	transition: var(--hcm-transition);
}

.hcm-job-card:hover .hcm-circle-arrow {
	transform: translateX(5px);
}

/* Detail Panel */
.hcm-job-detail-panel {
	background: var(--hcm-white);
	border: 1px solid var(--hcm-gray-border);
	border-radius: var(--hcm-radius);
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hcm-intro-state h3 {
	font-size: 24px;
	margin-top: 0;
	color: var(--hcm-navy);
}

.hcm-detail-header {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--hcm-gray-border);
}

.hcm-detail-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 15px;
	color: var(--hcm-navy);
}

.hcm-detail-meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hcm-meta-tag {
	background: var(--hcm-gray-light);
	color: var(--hcm-navy);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.hcm-detail-content {
	font-size: 16px;
	color: var(--hcm-gray-text);
	margin-bottom: 30px;
}

.hcm-detail-content h2,
.hcm-detail-content h3,
.hcm-detail-content h4 {
	color: var(--hcm-navy);
	margin-top: 25px;
	margin-bottom: 15px;
}

.hcm-detail-content ul,
.hcm-detail-content ol {
	padding-left: 20px;
	margin-bottom: 20px;
}

.hcm-detail-content li {
	margin-bottom: 8px;
}

.hcm-btn {
	display: inline-block;
	background: var(--hcm-orange);
	color: var(--hcm-white);
	padding: 14px 28px;
	border: none;
	border-radius: var(--hcm-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: var(--hcm-transition);
	width: 100%;
}

.hcm-btn:hover {
	background: #e66000;
}

.hcm-no-results {
	text-align: center;
	padding: 40px 20px;
	background: var(--hcm-gray-light);
	border-radius: var(--hcm-radius);
}

.hcm-no-results h3 {
	margin-top: 0;
	color: var(--hcm-navy);
}

.hcm-empty-apply-btn {
	margin-top: 20px;
	width: auto;
}

/* Modal */
.hcm-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(6, 26, 58, 0.8);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--hcm-transition);
}

.hcm-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.hcm-modal-dialog {
	background: var(--hcm-white);
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: var(--hcm-radius);
	position: relative;
	transform: translateY(20px);
	transition: var(--hcm-transition);
	padding: 30px;
}

.hcm-modal-overlay.active .hcm-modal-dialog {
	transform: translateY(0);
}

.hcm-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: var(--hcm-gray-text);
	cursor: pointer;
	padding: 5px;
	transition: var(--hcm-transition);
}

.hcm-modal-close:hover {
	color: var(--hcm-orange);
}

.hcm-modal-header {
	margin-bottom: 25px;
	padding-right: 30px;
}

.hcm-modal-header h3 {
	margin: 0;
	font-size: 22px;
	color: var(--hcm-navy);
}

.hcm-modal-body .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 15px;
}

.hcm-modal-body label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: var(--hcm-navy);
}

.hcm-modal-body input[type="text"],
.hcm-modal-body input[type="email"],
.hcm-modal-body input[type="tel"],
.hcm-modal-body textarea,
.hcm-modal-body select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid var(--hcm-gray-border);
	border-radius: 4px;
	outline: none;
}

.hcm-modal-body input[type="submit"] {
	background: var(--hcm-orange);
	color: var(--hcm-white);
	border: none;
	padding: 14px 28px;
	border-radius: var(--hcm-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: var(--hcm-transition);
}

.hcm-modal-body input[type="submit"]:hover {
	background: #e66000;
}