/* =========================================================================
   Job Portal — front-end styles
   Matches the supplied listing + modal designs.
   ========================================================================= */


.jp-wrap {
	--jp-navy: #1a1a5e;
	--jp-navy-deep: #201c4e;
	--jp-bg: #eef1fb;
	--jp-card: #ffffff;
	--jp-muted: #6b7280;
	--jp-border: #e6e9f4;
	--jp-grad: linear-gradient(115deg, #3d7bf4 0%, #22b6c9 45%, #2fd06a 100%);
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	border-radius: 18px;
	color: var(--jp-navy);
	box-sizing: border-box;
}
.jp-wrap *,
.jp-modal * { box-sizing: border-box; }

/* ---------- Tabs -------------------------------------------------------- */
.jp-tabs {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.jp-tab {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 150px;
	padding: 12px 18px;
	background: var(--jp-card);
	border: 1px solid var(--jp-border);
	border-radius: 12px;
	cursor: pointer;
	text-align: left;
	transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.jp-tab:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,26,94,.08); }
.jp-tab.is-active {
	background: var(--jp-navy-deep);
	border-color: var(--jp-navy-deep);
	box-shadow: 0 12px 26px rgba(32,28,78,.28);
}
.jp-tab-icon {
	width: 45px;
	height: 60px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	color: var(--jp-navy);
}
.jp-tab-icon img { max-width: 60px; max-height: 60px; object-fit: contain; }
.jp-tab.is-active .jp-tab-icon { color: #fff; filter: brightness(0) invert(1); }
.jp-tab-body { display: flex; flex-direction: column; line-height: 1.25; }
.jp-tab-code { font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--jp-muted); }
.jp-tab.is-active .jp-tab-code { color: #b9b7dd; }
.jp-tab-city { font-size: 15px; font-weight: 700; color: var(--jp-navy); }
.jp-tab.is-active .jp-tab-city { color: #fff; }
.jp-tab-count { font-size: 11px; font-weight: 600; color: #201D58; }
.jp-tab.is-active .jp-tab-count { color: #3fd07f; }

/* ---------- Panels ------------------------------------------------------ */
.jp-panel { display: none; }
.jp-panel.is-active { display: block; }
.jp-panel-title { font-size: 30px; font-weight: 400; margin: 0 0 8px; color: var(--jp-navy); }
.jp-panel-desc { font-size: 14px; color: var(--jp-muted); margin: 0 0 22px; max-width: 520px; line-height: 1.5; }

/* ---------- Job cards --------------------------------------------------- */
.jp-jobs { display: flex; flex-direction: column; gap: 16px; }
.jp-job-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: var(--jp-card);
	border-radius: 14px;
	padding: 22px 26px;
	box-shadow: 0 6px 18px rgba(26,26,94,.05);
}
.jp-job-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: var(--jp-navy); }
.jp-job-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.jp-job-meta li {
	position: relative;
	font-size: 13px;
	color: var(--jp-muted);
	padding-left: 16px;
}
.jp-job-meta li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #c3c8de;
	transform: translateY(-50%);
}
.jp-job-action { flex: 0 0 auto; }
.jp-empty { color: var(--jp-muted); font-size: 14px; padding: 16px 0; }

/* ---------- CTA button (supplied design) -------------------------------- */
.jp-wrap .cta,
.jp-modal .cta {
	position: relative;
	font-family: "Plus Jakarta Sans", sans-serif;
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 48px;
	padding: 6px 52px 6px 22px;
	border-radius: 40px;
	background: var(--jp-grad, linear-gradient(115deg, #3d7bf4 0%, #22b6c9 45%, #2fd06a 100%));
	cursor: pointer;
	overflow: hidden;
	text-decoration: none;
	border: none;
}
.jp-modal .cta { background: linear-gradient(115deg, #3d7bf4 0%, #22b6c9 45%, #2fd06a 100%); }
.jp-wrap .cta .label,
.jp-modal .cta .label {
	position: relative;
	z-index: 2;
	font-size: 15px;
	font-weight: 500;
	color: #000;
	white-space: nowrap;
	transition: opacity .25s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.jp-wrap .cta:hover .label,
.jp-modal .cta:hover .label { opacity: 0; transform: translateX(-14px); }
.jp-wrap .cta .circle,
.jp-modal .cta .circle {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 36px;
	height: 36px;
	border-radius: 40px;
	background: #fff;
	display: grid;
	place-items: center;
	z-index: 3;
	transition: width .5s cubic-bezier(.22,1,.36,1);
}
.jp-wrap .cta:hover .circle,
.jp-modal .cta:hover .circle { width: calc(100% - 12px); }
.jp-wrap .cta .circle svg,
.jp-modal .cta .circle svg { width: 18px; height: 18px; stroke: #1a1a5e; }
.jp-wrap .cta:active,
.jp-modal .cta:active { box-shadow: 0 0 9px 1px rgba(45,160,170,.5); }

/* ---------- Modal ------------------------------------------------------- */
.jp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
}
.jp-modal.is-open { display: flex; }
.jp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20,20,40,.35);
	backdrop-filter: blur(1px);
}
.jp-modal-box {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 30px 30px 34px;
	box-shadow: 0 30px 60px rgba(20,20,40,.25);
	animation: jpPop .22s ease;
}
@keyframes jpPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.jp-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: #1a1a5e;
	cursor: pointer;
	padding: 2px;
	line-height: 0;
}
.jp-modal-title { font-size: 24px; font-weight: 700; color: #12123a; margin: 0 0 20px; }

.jp-field { margin-bottom: 16px; }
.jp-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1f2340;
	margin-bottom: 7px;
}
.jp-field input[type="text"],
.jp-field input[type="email"],
.jp-field input[type="tel"],
.jp-field textarea {
	width: 100%;
	border: 1px solid #d9dcec;
	border-radius: 12px;
	padding: 13px 15px;
	font-size: 14px;
	color: #1f2340;
	font-family: inherit;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.jp-field input::placeholder,
.jp-field textarea::placeholder { color: #a7abc2; }
.jp-field input:focus,
.jp-field textarea:focus {
	outline: none;
	border-color: #3d7bf4;
	box-shadow: 0 0 0 3px rgba(61,123,244,.12);
}
.jp-field textarea { resize: vertical; min-height: 96px; }

/* Dropzone */
.jp-dropzone {
	border: 1px dashed #c7cbe0;
	border-radius: 12px;
	padding: 22px 16px;
	text-align: center;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	transition: border-color .2s ease, background .2s ease;
}
.jp-dropzone:hover,
.jp-dropzone.is-drag { border-color: #3d7bf4; background: #f5f8ff; }
.jp-dropzone:focus-visible { outline: 2px solid #3d7bf4; outline-offset: 2px; }
.jp-drop-icon { color: #1a1a5e; }
.jp-drop-text { font-size: 13px; }
.jp-drop-link { color: #3d7bf4; text-decoration: underline; }
.jp-drop-hint { font-size: 11px; color: #a7abc2; }
.jp-file-name { font-size: 12px; font-weight: 600; color: #1a7f37; }

.jp-form-feedback { font-size: 13px; margin: 4px 0 14px; min-height: 1px; }
.jp-form-feedback.is-error { color: #d63638; }
.jp-form-feedback.is-success { color: #1a7f37; }

.jp-submit { margin-top: 4px; }
.jp-submit[disabled] { opacity: .7; pointer-events: none; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 640px) {
	.jp-wrap { padding: 18px; }
	.jp-tab { min-width: calc(50% - 7px); flex: 1 1 calc(50% - 7px); }
	.jp-job-card { flex-direction: column; align-items: flex-start; }
	.jp-panel-title { font-size: 24px; }
	.jp-job-title { font-size: 18px; }
}