/**
 * Job Listing Contact Form Styles
 *
 * @package MG2025
 */

.job-listing-single {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

.job-header {
	text-align: center;
	margin-bottom: 30px;
}

.job-title {
	font-size: 2.5rem;
	font-weight: 400;
	margin: 0 0 30px 0;
	color: #000;
}

.job-meta-row {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.job-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #333;
}

.job-meta-item svg {
	width: 20px;
	height: 20px;
	color: #666;
}

.job-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	border-top: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 40px;
}

.job-tab {
	background: none;
	border: none;
	padding: 15px 30px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	position: relative;
	transition: color 0.3s ease;
}

.job-tab:hover {
	color: #000;
}

.job-tab.active {
	color: #2C5A85;
}

.job-tab.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #2C5A85;
}

.job-tab-content {
	display: none;
}

.job-tab-content.active {
	display: block;
}

.entry-content h2,
.entry-content h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 30px 0 15px 0;
	color: #000;
}

.entry-content p {
	line-height: 1.8;
	margin-bottom: 20px;
	color: #333;
}

.entry-content ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}

.entry-content li {
	line-height: 1.8;
	margin-bottom: 10px;
	color: #333;
}

.job-listing-apply {
	text-align: center;
	padding: 40px 20px;
}

.job-listing-apply p {
	margin-bottom: 20px;
	font-size: 1.1rem;
	color: #333;
}

.job-apply-button {
	display: inline-block;
	padding: 16px 60px;
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
	background-color: #2C5A85;
	border: 2px solid #2C5A85;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.job-apply-button:hover {
	background-color: #1a3a55;
	border-color: #1a3a55;
}

/* Form Success & Error Messages */
.form-success-message {
	padding: 20px;
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	border-radius: 4px;
	margin-bottom: 30px;
	text-align: center;
}

.form-error-message {
	padding: 15px;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	border-radius: 4px;
	margin-bottom: 30px;
}

.form-error-message ul {
	margin: 10px 0 0 20px;
	padding: 0;
}

/* Contact Form */
.mg-staffing-contact-form {
	padding: 60px 40px;
	background-color: #d9d9d9;
	border-radius: 8px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 30px;
}

.form-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 400;
	color: #1a1a1a;
}

.form-field input,
.form-field textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #1a1a1a;
	border-radius: 4px;
	font-size: 16px;
	background-color: #e8e8e8;
}

.form-field input.error {
	border: 2px solid #dc3545;
}

.form-field-with-icon {
	position: relative;
}

.form-field-with-icon input {
	padding-right: 40px;
}

.field-error-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #dc3545;
	color: white;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
}

.form-field textarea {
	font-family: inherit;
	resize: vertical;
}

.form-textarea-wrapper {
	margin-bottom: 40px;
}

.form-submit-wrapper {
	text-align: center;
}

.form-submit-button {
	padding: 16px 60px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	background-color: #ffffff;
	border: 2px solid #1a1a1a;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.form-submit-button:hover {
	background-color: #1a1a1a;
	color: #ffffff;
}

@media (max-width: 768px) {
	.job-title {
		font-size: 2rem;
	}

	.job-meta-row {
		gap: 20px;
		font-size: 0.85rem;
	}

	.job-tab {
		padding: 12px 20px;
		font-size: 0.85rem;
	}

	.form-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.mg-staffing-contact-form {
		padding: 30px 20px;
	}
}
