/* =============================================
   Sygma Jobs Plugin - Frontend Styles
   ============================================= */

/* ── Hide theme's default page header on single job pages ── */
.single-sygma_job .page-header,
.single-sygma_job .entry-title {
	display: none !important;
}

/* ── Job listings wrap ── */
.sygma-jobs-wrap {
	font-family: 'Inter', sans-serif;
	width: 100%;
}

/* ── Filters ── */
.sygma-jobs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.sygma-jobs-filters select {
	border: 1px solid rgba(6, 188, 238, 0.35);
	border-radius: 6px;
	padding: 9px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #00192F;
	background: #fff;
	min-width: 160px;
	cursor: pointer;
	transition: border-color 0.2s ease;
	appearance: auto;
}

.sygma-jobs-filters select:hover,
.sygma-jobs-filters select:focus {
	border-color: #06bcee;
	outline: none;
}

/* ── Job card ── */
.sygma-job-card {
	background: #ffffff;
	border: 1px solid rgba(6, 188, 238, 0.2);
	border-left: 4px solid #06bcee;
	border-radius: 8px;
	padding: 24px 28px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
	position: relative;
}

.sygma-job-card:hover {
	box-shadow: 0 4px 18px rgba(6, 188, 238, 0.12);
	border-left-color: #00192F;
}

.sygma-job-card.sygma-job-featured {
	border-left-color: #f0a500;
}

.sygma-featured-badge {
	position: absolute;
	top: 12px;
	right: 16px;
	background: #f0a500;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sygma-job-left { flex: 1; }

.sygma-job-title {
	font-size: 18px;
	font-weight: 600;
	color: #00192F;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.sygma-job-title a {
	color: #00192F;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sygma-job-title a:hover { color: #06bcee; }

/* ── Tags ── */
.sygma-job-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sygma-tag {
	font-size: 13px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
}

.sygma-tag-category {
	background: rgba(6, 188, 238, 0.08);
	border: 1px solid rgba(6, 188, 238, 0.25);
	color: #2a3b4f;
}

.sygma-tag-type {
	background: rgba(0, 25, 47, 0.06);
	border: 1px solid rgba(0, 25, 47, 0.15);
	color: #2a3b4f;
}

.sygma-tag-location {
	background: rgba(6, 188, 238, 0.06);
	border: 1px solid rgba(6, 188, 238, 0.2);
	color: #2a3b4f;
}

.sygma-tag-salary {
	background: rgba(40, 167, 69, 0.07);
	border: 1px solid rgba(40, 167, 69, 0.2);
	color: #1a5c2a;
}

.sygma-tag-closing {
	background: rgba(240, 165, 0, 0.08);
	border: 1px solid rgba(240, 165, 0, 0.25);
	color: #7a5000;
}

/* ── Apply button ── */
.sygma-job-right { flex-shrink: 0; }

.sygma-apply-btn {
	display: inline-block;
	background: #06bcee;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background 0.2s ease;
	white-space: nowrap;
	font-family: 'Inter', sans-serif;
}

.sygma-apply-btn:hover {
	background: #00192F;
	color: #ffffff !important;
}

/* ── No jobs ── */
.sygma-no-jobs {
	background: rgba(6, 188, 238, 0.04);
	border: 1px solid rgba(6, 188, 238, 0.2);
	border-left: 4px solid #06bcee;
	border-radius: 8px;
	padding: 40px 36px;
	text-align: center;
}

.sygma-no-jobs h3 {
	font-size: 20px;
	font-weight: 600;
	color: #00192F;
	margin: 0 0 14px 0;
}

.sygma-no-jobs p {
	font-size: 16px;
	color: #2a3b4f;
	margin: 0;
	line-height: 1.8;
}

.sygma-no-jobs a {
	color: #06bcee;
	text-decoration: none;
	font-weight: 600;
}

/* ── Single job page ── */
.sygma-single-job-page {
	font-family: 'Inter', sans-serif;
	width: 100%;
	padding: 48px 40px !important;
	box-sizing: border-box !important;
}

@media ( max-width: 900px ) {
	.sygma-single-job-page {
		padding: 32px 24px !important;
	}
}

@media ( max-width: 600px ) {
	.sygma-single-job-page {
		padding: 24px 16px !important;
	}
}

/* Override Hello Elementor theme's max-width:800px and padding-top:60px on job pages.
   body.sygma_job-template-default:not([...]) .site-main has higher specificity than
   the theme's body:not([...]) .site-main rule, so this wins without needing !important. */
body.sygma_job-template-default:not([class*=elementor-page-]) .site-main {
	max-width: 100%;
	padding-top: 0;
}

.sygma-single-job-inner {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.sygma-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #06bcee;
	text-decoration: none;
	margin-bottom: 28px;
	transition: color 0.2s ease;
}

.sygma-back-link:hover { color: #00192F; }

.sygma-single-job-header {
	border-left: 4px solid #06bcee;
	padding-left: 20px;
	margin-bottom: 32px;
}

.sygma-single-job-header h1,
.sygma-single-job-header .sygma-job-title-heading {
	font-size: 30px;
	font-weight: 600;
	color: #00192F;
	margin: 0 0 16px 0;
	line-height: 1.2;
}

@media ( max-width: 900px ) {
	.sygma-single-job-header h1,
	.sygma-single-job-header .sygma-job-title-heading {
		font-size: 26px;
	}
}

@media ( max-width: 600px ) {
	.sygma-single-job-header h1,
	.sygma-single-job-header .sygma-job-title-heading {
		font-size: 22px !important;
	}
}

.sygma-single-job-body {
	font-size: 16px;
	color: #2a3b4f;
	line-height: 1.8;
}

.sygma-single-job-body h2 {
	font-size: 22px;
	font-weight: 600;
	color: #00192F;
	margin: 32px 0 12px;
}

.sygma-single-job-body h3 {
	font-size: 18px;
	font-weight: 600;
	color: #00192F;
	margin: 24px 0 10px;
}

.sygma-single-job-body ul {
	margin: 12px 0 20px 20px;
}

.sygma-single-job-body ul li {
	margin-bottom: 8px;
}

.sygma-single-job-body p { margin-bottom: 18px; }

/* ── Sticky form sidebar ── */
.sygma-single-job-sidebar {
	align-self: start;
}

.sygma-form-sticky {
	position: sticky;
	top: 120px; /* adjust to match your header height */
}

.sygma-application-form-wrap {
	background: #ffffff;
	border: 1px solid rgba(6, 188, 238, 0.25);
	border-top: 4px solid #06bcee;
	border-radius: 10px;
	padding: 28px 26px;
	box-shadow: 0 4px 24px rgba(0, 25, 47, 0.07);
}

.sygma-application-form-wrap h3 {
	font-size: 19px;
	font-weight: 600;
	color: #00192F;
	margin: 0 0 22px 0;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(6, 188, 238, 0.15);
}

/* ── Form fields ── */
.sygma-field {
	margin-bottom: 16px;
}

.sygma-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #00192F;
	margin-bottom: 6px;
}

.sygma-required { color: #06bcee; }

.sygma-field input[type="text"],
.sygma-field input[type="email"],
.sygma-field input[type="tel"],
.sygma-field textarea {
	width: 100%;
	border: 1px solid rgba(6, 188, 238, 0.3);
	border-radius: 6px;
	padding: 10px 13px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #00192F;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.sygma-field input:focus,
.sygma-field textarea:focus {
	border-color: #06bcee;
	box-shadow: 0 0 0 3px rgba(6, 188, 238, 0.1);
}

.sygma-field textarea {
	min-height: 100px;
	resize: vertical;
}

.sygma-field input[type="file"] {
	width: 100%;
	border: 1px dashed rgba(6, 188, 238, 0.4);
	border-radius: 6px;
	padding: 10px 13px;
	background: rgba(6, 188, 238, 0.03);
	font-size: 13px;
	color: #2a3b4f;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.sygma-field input[type="file"]:hover {
	border-color: #06bcee;
	background: rgba(6, 188, 238, 0.06);
}

.sygma-field-hint {
	display: block;
	font-size: 11px;
	color: #888;
	margin-top: 4px;
}

.sygma-field-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #4a6070;
	line-height: 1.5;
	font-weight: 400;
}

.sygma-field-checkbox input[type="checkbox"] {
	margin-top: 2px;
	accent-color: #06bcee;
	flex-shrink: 0;
}

/* ── Submit button ── */
.sygma-submit-btn {
	display: block;
	width: 100%;
	background: #06bcee;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	padding: 13px 20px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	transition: background 0.2s ease;
	text-align: center;
	margin-top: 8px;
}

.sygma-submit-btn:hover { background: #00192F; }
.sygma-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── Form messages ── */
.sygma-form-message {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	line-height: 1.5;
}

.sygma-form-message.success {
	background: rgba(6, 188, 238, 0.08);
	border: 1px solid rgba(6, 188, 238, 0.3);
	color: #00192F;
}

.sygma-form-message.error {
	background: rgba(220, 50, 50, 0.06);
	border: 1px solid rgba(220, 50, 50, 0.25);
	color: #7a1a1a;
}

/* ── Responsive ── */
@media ( max-width: 900px ) {
	.sygma-single-job-inner {
		grid-template-columns: 1fr;
	}

	.sygma-form-sticky {
		position: static;
	}
}

@media ( max-width: 600px ) {
	.sygma-job-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.sygma-job-right {
		width: 100%;
	}

	.sygma-apply-btn {
		display: block;
		width: 100%;
		text-align: center;
	}

	.sygma-submit-btn {
		width: 100%;
	}
}

/* ── Fixes ── */

/* Stop content stretching too wide */
.sygma-single-job-content {
	max-width: 100%;
	min-width: 0;
}

.sygma-single-job-body {
	max-width: 720px;
}

/* Fix sticky form going under navbar - adjust top value to match your header height */
/* top already set to 120px in the sticky rule above */

/* Submit button - force override theme styles */
button.sygma-submit-btn,
.sygma-application-form button.sygma-submit-btn,
#sygma-application-form button.sygma-submit-btn {
	display: block !important;
	width: 100% !important;
	background: #06bcee !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 13px 20px !important;
	border-radius: 6px !important;
	border: none !important;
	cursor: pointer !important;
	font-family: 'Inter', sans-serif !important;
	transition: background 0.2s ease !important;
	text-align: center !important;
	margin-top: 8px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	line-height: normal !important;
}

button.sygma-submit-btn:hover,
.sygma-application-form button.sygma-submit-btn:hover {
	background: #00192F !important;
	color: #ffffff !important;
}

/* ── Theme override fixes ── */

/* Beat the theme's [type=submit] attribute selector */
button[type="submit"].sygma-submit-btn,
.sygma-application-form button[type="submit"] {
	background-color: #06bcee !important;
	background: #06bcee !important;
	border: none !important;
	border-color: #06bcee !important;
	color: #ffffff !important;
	display: block !important;
	width: 100% !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 13px 20px !important;
	border-radius: 6px !important;
	font-family: 'Inter', sans-serif !important;
	transition: background 0.2s ease !important;
	text-align: center !important;
	margin-top: 8px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	line-height: normal !important;
	box-shadow: none !important;
}

button[type="submit"].sygma-submit-btn:hover,
.sygma-application-form button[type="submit"]:hover {
	background-color: #00192F !important;
	background: #00192F !important;
	border-color: #00192F !important;
	color: #ffffff !important;
}



/* ── Submit button override (beats Hello Elementor reset.css) ── */
button.sygma-submit-btn {
	background-color: #06bcee;
	border: none;
	border-radius: 6px;
	color: #fff;
	font-weight: 600;
	padding: 12px 28px;
	transition: all 0.2s;
}
button.sygma-submit-btn:hover {
	background-color: #05a8d4;
	color: #fff;
}
