/*
 * Spar – Vacatures: site styling.
 *
 * Uses the same class names and look as the existing pages, so the output fits in:
 *  - [spar_vacatures]   → sb-jobs__* (the Vacatures page's HTML widget has the same rules inline)
 *  - [spar_sollicitatie] → sb-job__*  (was in Customizer → Additional CSS for the Contact Form 7 form)
 * Both work without that page/Customizer CSS.
 */

/* ---------------------------------------------------------------- */
/* [spar_vacatures]                                                 */
/* ---------------------------------------------------------------- */

.sb-jobs-list { display: flex; flex-direction: column; gap: 24px; font-family: Roboto, Arial, sans-serif; color: #3b2a1e; }
.sb-jobs-list * { box-sizing: border-box; }

.sb-jobs-list .sb-jobs__card { background: #fff; border: 1px solid #ece2d6; border-radius: 12px; padding: 28px; }
.sb-jobs-list .sb-jobs__card h2 { margin: 0 0 8px; font-family: 'Roboto Slab', Georgia, serif; font-size: 24px; line-height: 1.25; color: #3b2a1e; }
.sb-jobs-list .sb-jobs__card p { margin: 0 0 12px; line-height: 1.65; color: #4f3d2f; }
.sb-jobs-list .sb-jobs__card p:last-child { margin-bottom: 0; }
.sb-jobs-list .sb-jobs__card > .sb-jobs__btn { margin-top: 8px; }
.sb-jobs-list .sb-jobs__status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: #f6efe6; font-size: 14px; font-weight: 600; color: #6b4a33; }
.sb-jobs-list .sb-jobs__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d9a066; }

.sb-jobs-list .sb-jobs__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.sb-jobs-list .sb-jobs__type { padding: 16px; border: 1px solid #ece2d6; border-radius: 10px; background: #fcf9f5; }
.sb-jobs-list .sb-jobs__type strong { display: block; font-family: 'Roboto Slab', Georgia, serif; font-size: 18px; color: #3b2a1e; margin-bottom: 2px; }
.sb-jobs-list .sb-jobs__type span { font-size: 14px; color: #6f5a49; line-height: 1.5; }

.sb-jobs-list a.sb-jobs__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 6px; border: 1px solid #6b4a33; background: #6b4a33; color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; }
.sb-jobs-list a.sb-jobs__btn:hover,
.sb-jobs-list a.sb-jobs__btn:focus { background: #3b2a1e; border-color: #3b2a1e; color: #fff !important; }

.sb-jobs-list .sb-jobs__vac { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sb-jobs-list .sb-jobs__vac-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border: 1px solid #ece2d6; border-radius: 10px; background: #fcf9f5; }
.sb-jobs-list .sb-jobs__vac-item h3 { margin: 0 0 4px; font-family: 'Roboto Slab', Georgia, serif; font-size: 19px; color: #3b2a1e; }
.sb-jobs-list .sb-jobs__vac-item p { margin: 0; font-size: 15px; color: #6f5a49; }
/* Description under the title/button row */
.sb-jobs-list .sb-jobs__vac-text { flex: 1 1 100%; padding-top: 12px; border-top: 1px solid #ece2d6; }
.sb-jobs-list .sb-jobs__vac-text p { margin: 0 0 8px; line-height: 1.6; color: #4f3d2f; }
.sb-jobs-list .sb-jobs__vac-text ul { margin: 0 0 8px 1.2em; padding: 0; color: #4f3d2f; }
.sb-jobs-list .sb-jobs__vac-text > :last-child { margin-bottom: 0; }
.sb-jobs-list .sb-jobs__vac-item p.sb-jobs__vac-until { font-size: 14px; font-weight: 600; color: #6b4a33; }

@media (max-width: 640px) {
	.sb-jobs-list .sb-jobs__card { padding: 22px 18px; }
	.sb-jobs-list .sb-jobs__types { grid-template-columns: minmax(0, 1fr); }
	.sb-jobs-list a.sb-jobs__btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- */
/* Form page shell: [spar_sollicitatie] on the form page            */
/* Same hero and background as the Vacatures page (sb-jobs__intro). */
/* ---------------------------------------------------------------- */

/* Full width out of Elementor's boxed container, without the container's padding. */
body.spv-form-page { overflow-x: clip; }
body.spv-form-page .page-content > .elementor > .e-con { --padding-top: 0px; --padding-bottom: 0px; padding-top: 0; padding-bottom: 0; }
.sb-jobs.spv-page { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); font-family: Roboto, Arial, sans-serif; color: #3b2a1e; background: #fcf9f5; }
.sb-jobs.spv-page * { box-sizing: border-box; }
.spv-page .sb-jobs__intro { background: #1f1813; color: #f6efe6; }
.spv-page .sb-jobs__intro-in { max-width: 1200px; margin: 0 auto; padding: 64px 24px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.spv-page .sb-jobs__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9c9b6; }
.spv-page .sb-jobs__intro h1 { margin: 0; font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: #fff; }
.spv-page .sb-jobs__intro p.sb-jobs__lead { margin: 0; max-width: 40em; font-size: 18px; line-height: 1.6; color: #e8dccd; }
.spv-page .sb-jobs__intro p.sb-jobs__lead strong { color: #fff; }
.spv-page a.spv-page__back { margin-top: 4px; font-size: 15px; font-weight: 600; color: #d9c9b6; text-decoration: none; }
.spv-page a.spv-page__back:hover,
.spv-page a.spv-page__back:focus { color: #fff; text-decoration: underline; }
.spv-page .sb-jobs__body { max-width: 860px; margin: 0 auto; padding: 48px 24px 72px; }
.spv-page .sb-job { max-width: none; }

@media (max-width: 640px) {
	.spv-page .sb-jobs__intro-in { padding: 44px 16px 40px; }
	.spv-page .sb-jobs__intro p.sb-jobs__lead { font-size: 16px; }
	.spv-page .sb-jobs__body { padding: 32px 16px 48px; }
}

/* ---------------------------------------------------------------- */
/* [spar_sollicitatie]                                              */
/* ---------------------------------------------------------------- */

.sb-job { max-width: 820px; margin: 0 auto; font-family: Roboto, Arial, sans-serif; color: #3b2a1e; font-size: 16px; line-height: 1.5; scroll-margin-top: 120px; }
.sb-job * { box-sizing: border-box; }

/* Sections */
.sb-job .sb-job__section { margin: 0 0 24px; padding: 28px 28px 8px; border: 1px solid #ece2d6; border-radius: 12px; background: #fff; min-width: 0; }
.sb-job .sb-job__section legend { float: left; width: 100%; margin: 0 0 20px; padding: 0; display: flex; align-items: center; gap: 12px; font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.3; color: #3b2a1e; }
.sb-job .sb-job__section legend + * { clear: both; }
.sb-job .sb-job__nr { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #6b4a33; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }

/* Fields */
.sb-job .sb-job__field { margin: 0 0 20px; min-width: 0; }
.sb-job .sb-job__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sb-job .sb-job__label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; color: #3b2a1e; }
.sb-job .sb-job__label em { font-style: normal; font-weight: 400; color: #6f5a49; font-size: 13px; }
.sb-job .sb-job__hint { display: block; margin-top: 6px; font-size: 13px; color: #6f5a49; }

.sb-job input[type="text"],
.sb-job input[type="email"],
.sb-job input[type="tel"],
.sb-job input[type="date"],
.sb-job select,
.sb-job textarea { width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid #d9c9b6; border-radius: 8px; background: #fcf9f5; color: #3b2a1e; font: inherit; font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.sb-job textarea { min-height: 110px; resize: vertical; }
.sb-job select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b4a33' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.sb-job input::placeholder,
.sb-job textarea::placeholder { color: #9c8774; }
.sb-job input:focus,
.sb-job select:focus,
.sb-job textarea:focus { outline: none; border-color: #6b4a33; background-color: #fff; box-shadow: 0 0 0 3px rgba(107, 74, 51, .18); }

/* Radio buttons and checkboxes as chips */
.sb-job .sb-job__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-job .sb-job__choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid #d9c9b6; border-radius: 999px; background: #fcf9f5; cursor: pointer; font-weight: 500; color: #3b2a1e; transition: background .15s, border-color .15s; }
.sb-job .sb-job__choice:hover { border-color: #6b4a33; }
.sb-job .sb-job__choice input { margin: 0; width: 16px; height: 16px; accent-color: #6b4a33; }
.sb-job .sb-job__choice:has(input:checked) { background: #f6efe6; border-color: #6b4a33; }
.sb-job .sb-job__choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(107, 74, 51, .25); }

/* "Zo ja, wie?" only when "Ja" is chosen (the class from form.js covers browsers without :has) */
.sb-job .sb-job__who { display: none; }
.sb-job:has(input[name="knows"][value="ja"]:checked) .sb-job__who,
.sb-job .sb-job__who.is-shown { display: block; }

/* CV upload */
.sb-job input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #d9c9b6; border-radius: 8px; background: #fcf9f5; font: inherit; font-size: 15px; color: #4f3d2f; cursor: pointer; }
.sb-job input[type="file"]::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 6px; background: #6b4a33; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.sb-job input[type="file"]::file-selector-button:hover { background: #3b2a1e; }

/* Privacy consent */
.sb-job .sb-job__consent { margin: 0 0 16px; padding: 16px 18px; border-radius: 10px; background: #f6efe6; border: 1px solid #e8dccd; font-size: 15px; }
.sb-job .sb-job__check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sb-job .sb-job__check input { flex: none; margin: 3px 0 0; width: 18px; height: 18px; accent-color: #6b4a33; }
.sb-job .sb-job__consent a { color: #6b4a33; font-weight: 600; text-decoration: underline; }

.sb-job .sb-job__turnstile { margin: 0 0 16px; }

/* Submit */
.sb-job .sb-job__submit { display: block; width: 100%; min-height: 52px; margin: 8px 0 0; padding: 0 24px; border: 0; border-radius: 8px; background: #6b4a33; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .15s; }
.sb-job .sb-job__submit:hover,
.sb-job .sb-job__submit:focus { background: #3b2a1e; color: #fff; }
.sb-job .sb-job__submit:disabled { opacity: .6; cursor: not-allowed; }

/* Errors and messages (same colours as the old form's messages) */
.sb-job [aria-invalid="true"],
.sb-job .sb-job__choices[aria-invalid="true"] .sb-job__choice { border-color: #a1462a !important; }
.sb-job .sb-job__error { display: block; margin-top: 6px; font-size: 14px; color: #a1462a; }
.sb-job .sb-job__alert { margin: 0 0 24px; padding: 14px 18px; border-radius: 10px; border: 1px solid #a1462a; background: #fbefe9; color: #3b2a1e; }
.sb-job .sb-job__alert:focus { outline: none; }
.sb-job .sb-job__done { padding: 28px 24px; border-radius: 12px; border: 1px solid #7a9a5c; background: #eef3e6; text-align: center; }
.sb-job .sb-job__done p { margin: 0; color: #4f3d2f; }
.sb-job .sb-job__done p.sb-job__done-title { margin: 0 0 6px; font-family: 'Roboto Slab', Georgia, serif; font-size: 22px; font-weight: 700; color: #3b2a1e; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.sb-job .sb-job__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
	.sb-job .sb-job__section { padding: 20px 16px 4px; }
	.sb-job .sb-job__section legend { font-size: 19px; }
	.sb-job .sb-job__row { grid-template-columns: minmax(0, 1fr); }
}
