/* Styled to roughly match the reference search bar + job row design.
   Colors/fonts here are placeholders — swap the CSS variables below for
   the site's real brand colors and font-family for an exact match. */

.rcrm-vacatures {
	--rcrm-gradient: linear-gradient(90deg, #4A90E2 0%, #4AC5DD 100%);
	--rcrm-border: #0f19412b;
	--rcrm-text-muted: #2e3437;
	--rcrm-radius: 10px;
	font-family: "Montserrat";
}

.rcrm-page-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Search bar */

.rcrm-searchbar {
	display: flex;
	gap: 14px;
	padding: 30px;
	background: #F6F6F6;
	border: 1px solid #0f19412b;
	border-radius: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.rcrm-searchbar h2 {
	width: 100%;
    flex: 0 0 100%;
}

.rcrm-searchbar-field {
	flex: 1 1 260px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--rcrm-border);
	border-radius: 4px;
	padding: 10px;
}

.rcrm-searchbar-field:focus-within{
	border-color: #4A90E2;
}

.rcrm-searchbar-field input,
.rcrm-searchbar-field select {
	border: none;
	outline: none;
	font-size: 14px;
	width: 100%;
	height: 100%;
	background: transparent;
	color: #2e3437;
	appearance: none;
}

.rcrm-searchbar-field .rcrm-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #4A90E2;
}

.rcrm-searchbar-select {
	color: #2e3437;
}

.rcrm-select-hidden {
	/* Job type filter still functions, just tucked in visually to match the
	   two-field reference design. Feel free to give it its own visible
	   slot in frontend.css if you'd rather show three fields. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.rcrm-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 28px;
	height: 48px;
	border: none;
	border-radius: var(--rcrm-radius);
	background: var(--rcrm-gradient);
	color: #0F1941;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.rcrm-search-btn .rcrm-icon {
	width: 16px;
	height: 16px;
}

/* Category chips */

.rcrm-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.rcrm-chip {
	padding: 6px 14px;
	border: 1px solid var(--rcrm-border);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	color: #374151;
}

.rcrm-chip.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.rcrm-count {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--rcrm-text-muted);
}

/* Job row list */

.rcrm-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rcrm-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	border: 1px solid #0f19412b;
	border-radius: 18px;
	background: #F6F6F6;
	box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: inherit;
}

.rcrm-row-badge {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rcrm-row-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rcrm-row-title {
	font-size: 18px;
	font-weight: 500;
	color: #0F1941;
}

.rcrm-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 13px;
	color: var(--rcrm-text-muted);
}

.rcrm-row-meta > span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rcrm-icon-sm {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.rcrm-row-arrow {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #4A90E2;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rcrm-row-arrow .rcrm-icon {
	width: 18px;
	height: 18px;
}

.rcrm-empty-state {
	text-align: center;
	color: #888;
	padding: 40px 0;
}

/* Single job view */

.rcrm-back {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 14px;
}

.rcrm-single-title {
	margin-bottom: 12px;
}

.rcrm-single-meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 0 0 28px;
	font-size: 14px;
	color: var(--rcrm-text-muted);
}

.rcrm-single-body {
	max-width: 760px;
	line-height: 1.7;
}

.rcrm-apply {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--rcrm-border);
}

.rcrm-apply-iframe {
	width: 100%;
	max-width: 760px;
	min-height: 720px;
	border: 1px solid var(--rcrm-border);
	border-radius: 12px;
}

.rcrm-apply-fallback {
	font-size: 13px;
	margin-top: 8px;
}

/* --- Added: opt-in status toggle + homepage search-only widget --- */

.rcrm-optin-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--rcrm-text-muted, #6b7280);
	margin-bottom: 12px;
	cursor: pointer;
}

.rcrm-searchbar--homepage {
	width: 100%;
}

/* --- Added: sidebar filter layout (Language/Location/Sector/Industry/
   Type of contract/Remote/Salary), matching the reference filter panel --- */

.rcrm-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.rcrm-sidebar {
	flex: 0 0 260px;
	border: 1px solid var(--rcrm-border, #e5e7eb);
	border-radius: 12px;
	padding: 18px;
	background: #fff;
}

.rcrm-sidebar-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rcrm-border, #e5e7eb);
}

.rcrm-reset-link {
	background: none;
	border: none;
	color: #4A90E2;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.rcrm-sidebar-field {
	padding: 12px 0;
	border-bottom: 1px solid var(--rcrm-border, #e5e7eb);
}

.rcrm-sidebar-field:last-of-type {
	border-bottom: none;
}

.rcrm-sidebar-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 8px;
	color: #1f2937;
}

.rcrm-sidebar-field select,
.rcrm-sidebar-field input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--rcrm-border, #e5e7eb);
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
	color: #374151;
}

.rcrm-salary-inputs {
	display: flex;
	gap: 8px;
}

.rcrm-filter-salary-btn {
	width: 100%;
	margin-top: 10px;
	padding: 10px;
	border: none;
	border-radius: 999px;
	background: #e6e8fb;
	color: #372c8f;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

.rcrm-results {
	flex: 1;
	min-width: 0;
}

@media (max-width: 780px) {
	.rcrm-layout {
		flex-direction: column;
	}
	.rcrm-sidebar {
		flex-basis: auto;
		width: 100%;
	}
}

/* --- Added: hero banner + custom application form --- */

.rcrm-hero {
	position: relative;
	background-size: cover;
	background-position: 0px -70px;
	border-radius: 14px;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	padding: 32px;
	margin-bottom: 24px;
	overflow: hidden;
}

.rcrm-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.rcrm-hero-title {
	position: relative;
	z-index: 1;
	color: #fff;
	margin: 0;
	font-size: 32px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rcrm-apply-form {
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 16px;
}

.rcrm-apply-row {
	display: flex;
	gap: 14px;
}

.rcrm-apply-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rcrm-apply-field label {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
}

.rcrm-apply-field input,
.rcrm-apply-field textarea {
	padding: 10px 12px;
	border: 1px solid var(--rcrm-border, #e5e7eb);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}

.rcrm-apply-submit {
	align-self: flex-start;
	padding: 12px 28px;
	border: none;
	border-radius: 999px;
	background: var(--rcrm-gradient, linear-gradient(90deg, #3b82f6, #22d3ee));
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.rcrm-apply-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.rcrm-apply-status {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
}

.rcrm-apply-status--success {
	background: #ecfdf5;
	color: #065f46;
}

.rcrm-apply-status--error {
	background: #fef2f2;
	color: #991b1b;
}

@media (max-width: 600px) {
	.rcrm-apply-row {
		flex-direction: column;
	}

	/* Job card: stack badge / title / meta / arrow vertically on mobile
	   instead of squeezing them into one row. */
	.rcrm-row {
		flex-direction: column;
		align-items: flex-start;
		position: relative;
		padding-right: 56px; /* room for the corner arrow button */
	}

	.rcrm-row-badge {
		margin-bottom: 10px;
	}

	.rcrm-row-meta {
		flex-direction: column;
		gap: 8px;
		margin-top: 4px;
	}

	.rcrm-row-arrow {
		position: absolute;
		top: 18px;
		right: 18px;
	}
}

/* --- Added: application form section headers + terms checkbox --- */

.rcrm-apply-section {
	margin-top: 8px;
}

.rcrm-apply-section h3 {
	margin: 0 0 2px;
	font-size: 15px;
}

.rcrm-apply-section-sub {
	margin: 0;
	font-size: 12px;
	color: var(--rcrm-text-muted, #6b7280);
}

.rcrm-apply-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #374151;
}

.rcrm-apply-terms input {
	margin-top: 3px;
}

.rcrm-apply-terms a {
	color: #4A90E2;
}

/* --- Added: homepage listings-only widget --- */

.rcrm-listings-viewall {
	margin-top: 16px;
	text-align: center;
}

.rcrm-listings-viewall a {
	font-weight: 600;
	color: #4A90E2;
	text-decoration: none;
}

.rcrm-single-body h1{
	color: #0F1941 !important;
}