html.wbf-apply-lock,
html.wbf-apply-lock body { overflow: hidden !important; }

/* De oude Elementor-formulierlaag mag in sollicitatiemodus niet ook onder de
   nieuwe flow staan. Zonder JavaScript blijft die oude fallback juist bestaan. */
html.js body.wbf-application-flow-open #vacature-sollicitatie-formulier,
html.js body.wbf-application-flow-open .wbf-single-apply-form { display: none !important; }
html.no-js .wbf-apply { display: none !important; }

.wbf-apply[hidden] { display: none !important; }
.wbf-apply [hidden] { display: none !important; }
.wbf-apply {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #f7f9fc;
    color: #1f2a44;
    font-family: Inter, Arial, sans-serif;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .22s ease, transform .22s ease;
}
.wbf-apply.is-open { opacity: 1; transform: none; }
.wbf-apply *, .wbf-apply *::before, .wbf-apply *::after { box-sizing: border-box; }
.wbf-apply button, .wbf-apply input, .wbf-apply textarea { font: inherit; }

.wbf-apply__dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8fafc;
}
.wbf-apply__header { flex: 0 0 auto; min-height: 84px; padding: 16px clamp(20px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid #e4e8ef; backdrop-filter: blur(14px); }
.wbf-apply__brand { display: flex; align-items: center; min-width: 0; gap: 13px; }
.wbf-apply__brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.wbf-apply__brand div { display: grid; gap: 1px; min-width: 0; }
.wbf-apply__brand small { color: #7a8498; font-size: 12px; font-weight: 650; }
.wbf-apply__brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.wbf-apply__close { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid #dfe4ec; border-radius: 50%; background: #fff; color: #1f2a44; font-size: 28px; line-height: 1; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.wbf-apply__close:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31,42,68,.10); }

.wbf-apply__main {
    width: min(100%, 760px);
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(28px, 5vh, 56px) 24px max(42px, calc(24px + env(safe-area-inset-bottom)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}
.wbf-apply__progress { margin: 0 0 30px; }
.wbf-apply__progress > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; color: #6f7a8f; font-size: 13px; font-weight: 750; }
.wbf-apply__progress strong { color: #1f2a44; }
.wbf-apply__track { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: #e4e9f1; }
.wbf-apply__track i { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--wbf-apply-accent); transition: width .35s cubic-bezier(.2,.8,.2,1); }

.wbf-apply__step, .wbf-apply__success, .wbf-apply__sending { animation: wbfApplyIn .3s ease both; }
.wbf-apply__step[hidden], .wbf-apply__success[hidden], .wbf-apply__sending[hidden], .wbf-apply__progress[hidden], .wbf-apply__form[hidden] { display: none !important; }
@keyframes wbfApplyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wbf-apply__eyebrow { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--wbf-apply-accent) 12%, #fff); color: var(--wbf-apply-accent); font-size: 12px; font-weight: 800; }
.wbf-apply h2 { margin: 16px 0 8px; color: #1f2a44 !important; font-family: "Archivo Black", Archivo, Inter, sans-serif !important; font-size: clamp(28px, 4.5vw, 44px); font-weight: 900 !important; letter-spacing: -.035em !important; line-height: 1.08; }
.wbf-apply h3 { margin: 0 0 12px; color: #1f2a44 !important; font-family: "Archivo Black", Archivo, Inter, sans-serif !important; font-size: 19px; font-weight: 900 !important; letter-spacing: -.025em !important; line-height: 1.25; }
.wbf-apply__step > p, .wbf-apply__success > p { margin: 0 0 26px; color: #697386; font-size: 16px; line-height: 1.6; }

.wbf-apply__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.wbf-apply__fields label { display: grid; gap: 8px; min-width: 0; color: #27334d; font-size: 14px; font-weight: 750; }
.wbf-apply__fields label:first-child, .wbf-apply__fields label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wbf-apply__fields label > span > small { color: #8a94a6; font-weight: 600; }
.wbf-apply input:not([type="file"]), .wbf-apply textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid #d6dce6; border-radius: 12px; outline: 0; background: #fff; color: #1f2a44; font-size: 16px; font-weight: 500; box-shadow: 0 1px 2px rgba(31,42,68,.02); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.wbf-apply textarea { min-height: 112px; resize: vertical; }
.wbf-apply input:focus, .wbf-apply textarea:focus { border-color: var(--wbf-apply-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wbf-apply-accent) 14%, transparent); }
.wbf-apply input.has-error { border-color: #c73535; box-shadow: 0 0 0 3px rgba(199,53,53,.10); }
.wbf-apply__upload { position: relative; min-height: 96px; padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; overflow: hidden; border: 1px dashed #bdc6d5; border-radius: 13px; background: #fff; cursor: pointer; }
.wbf-apply__upload:hover { border-color: var(--wbf-apply-accent); transform: translateY(-1px); }
.wbf-apply__upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wbf-apply__upload b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2a44; font-size: 15px; }
.wbf-apply__upload em { color: #7d8799; font-size: 12px; font-style: normal; font-weight: 550; }
.wbf-apply__saved-cv-choice { min-height: 70px; padding: 13px 15px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: 11px; border: 1px solid color-mix(in srgb, var(--wbf-apply-accent) 35%, #d6dce6); border-radius: 13px; background: color-mix(in srgb, var(--wbf-apply-accent) 6%, #fff); cursor: pointer; }
.wbf-apply__saved-cv-choice input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--wbf-apply-accent); }
.wbf-apply__saved-cv-choice b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2a44; }
.wbf-apply__saved-cv-choice em { grid-column: 2; color: #798396; font-size: 12px; font-style: normal; font-weight: 600; }
.wbf-apply__privacy { margin: 20px 0 0; color: #788396; font-size: 12px; line-height: 1.55; }
.wbf-apply__privacy a { color: var(--wbf-apply-accent) !important; font-weight: 800; text-decoration: underline !important; text-underline-offset: 2px; }
.wbf-apply__status { min-height: 22px; margin-top: 12px; color: #456f2d; font-size: 13px; font-weight: 700; }
.wbf-apply__status.is-error { color: #b42318; }

.wbf-apply__actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 26px; }
.wbf-apply__actions.is-split { justify-content: space-between; }
.wbf-apply__primary, .wbf-apply__back { min-height: 52px; border-radius: 12px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.wbf-apply .wbf-apply__primary,
body .wbf-apply button.wbf-apply__primary,
body .wbf-apply a.wbf-apply__primary,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__primary {
    padding: 13px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    border: 1px solid var(--wbf-apply-accent) !important;
    border-color: var(--wbf-apply-accent) !important;
    background: var(--wbf-apply-accent) !important;
    background-color: var(--wbf-apply-accent) !important;
    background-image: none !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 9px 22px color-mix(in srgb, var(--wbf-apply-accent) 20%, transparent) !important;
}
.wbf-apply .wbf-apply__primary:hover,
.wbf-apply .wbf-apply__primary:focus,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__primary:hover,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__primary:focus {
    border-color: var(--wbf-apply-accent) !important;
    background: var(--wbf-apply-accent) !important;
    background-color: var(--wbf-apply-accent) !important;
    background-image: none !important;
    color: #fff !important;
}
.wbf-apply__primary:hover, .wbf-apply__back:hover { transform: translateY(-2px); }
.wbf-apply__primary:disabled { cursor: wait; opacity: .65; transform: none; }
.wbf-apply__primary.is-loading span { animation: wbfArrow 1s ease infinite; }
@keyframes wbfArrow { 50% { transform: translateX(4px); } }
.wbf-apply .wbf-apply__back,
body .wbf-apply button.wbf-apply__back,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__back,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__back:hover,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__back:focus,
body[class*="elementor-kit-"] .wbf-apply button.wbf-apply__back:active {
    padding: 12px 4px !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #667085 !important;
    font: 750 14px/1.2 Inter, Arial, sans-serif !important;
    text-decoration: none !important;
    box-shadow: none !important;
    appearance: none !important;
}
.wbf-apply__honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.wbf-apply__step[data-wbf-apply-step="2"] .wbf-apply__fields { grid-template-columns: 1fr; }
.wbf-apply__step[data-wbf-apply-step="2"] .wbf-apply__fields label { grid-column: 1 / -1; }
.wbf-apply__step[data-wbf-apply-step="2"] textarea { min-height: 150px; }

.wbf-apply__sending { max-width: 620px; margin: 0 auto; padding: 42px 0; text-align: center; }
.wbf-apply__sending > p { max-width: 520px; margin: 10px auto 25px; color: #697386; font-size: 16px; line-height: 1.6; }
.wbf-apply__sending-mark { display: flex; justify-content: center; gap: 7px; margin: 0 auto 24px; }
.wbf-apply__sending-mark i { width: 24px; height: 7px; border-radius: 2px; background: var(--wbf-apply-accent); animation: wbfSendingBlocks 1.05s ease-in-out infinite; }
.wbf-apply__sending-mark i:nth-child(2) { animation-delay: .14s; }
.wbf-apply__sending-mark i:nth-child(3) { animation-delay: .28s; }
@keyframes wbfSendingBlocks { 0%, 100% { opacity: .22; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.wbf-apply__sending-line { display: block; width: min(100%, 460px); height: 5px; margin: 0 auto; overflow: hidden; border-radius: 2px; background: #e4e9f1; }
.wbf-apply__sending-line i { display: block; width: 38%; height: 100%; background: var(--wbf-apply-accent); animation: wbfSendingLine 1.25s ease-in-out infinite; }
@keyframes wbfSendingLine { from { transform: translateX(-110%); } to { transform: translateX(365%); } }

.wbf-apply__success { text-align: center; }
.wbf-apply__check { width: 70px; height: 70px; display: block; margin: 0 auto 20px; color: var(--wbf-apply-accent); }
.wbf-apply__check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; }
.wbf-apply__check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: wbfCheck .45s .15s ease forwards; }
@keyframes wbfCheck { to { stroke-dashoffset: 0; } }
.wbf-apply__followup { max-width: 580px; margin: 26px auto; padding: 22px; border: 1px solid #e0e5ed; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 12px 34px rgba(31,42,68,.06); }
.wbf-apply__followup ol { margin: 0; padding: 0; list-style: none; counter-reset: wbfFollow; }
.wbf-apply__followup li { position: relative; min-height: 30px; padding: 4px 0 9px 36px; color: #536077; line-height: 1.5; counter-increment: wbfFollow; }
.wbf-apply__followup li::before { content: counter(wbfFollow); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #1f2a44; color: #fff; font-size: 11px; font-weight: 800; }
.wbf-apply__followup small { display: inline-block; margin-top: 7px; padding: 5px 9px; border-radius: 999px; background: #eef2f6; color: #566176; font-weight: 700; }
.wbf-apply__primary.is-link { width: max-content; max-width: 100%; margin: 0 auto; }
.wbf-apply__account-offer { max-width: 620px; margin: 28px auto 0; padding: 24px; border: 1px solid #dce3ed; border-radius: 18px; background: #fff; text-align: left; box-shadow: 0 16px 42px rgba(31,42,68,.08); }
.wbf-apply__account-kicker { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--wbf-apply-accent) 11%, #fff); color: var(--wbf-apply-accent); font-size: 11px; font-weight: 850; }
.wbf-apply__account-offer h3 { margin: 12px 0 7px; font-size: 22px; }
.wbf-apply__account-offer > p { margin: 0; color: #657086; font-size: 14px; line-height: 1.55; }
.wbf-apply__account-offer ul { margin: 17px 0 20px; padding: 0; display: grid; gap: 8px; list-style: none; }
.wbf-apply__account-offer li { position: relative; padding-left: 27px; color: #3f4c65; font-size: 13px; font-weight: 750; }
.wbf-apply__account-offer li::before { content: "✓"; position: absolute; left: 0; top: -2px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; background: #1f2a44; color: #fff; font-size: 10px; }
.wbf-apply__account-offer .wbf-apply__primary.is-link { width: 100%; }
.wbf-apply__account-skip { width: 100%; min-height: 38px; margin-top: 9px; padding: 7px; border: 0 !important; background: transparent !important; color: #7b8597 !important; font-weight: 750; cursor: pointer; }
.wbf-apply__account-skip:hover { transform: translateY(-1px); color: #1f2a44 !important; }
.wbf-apply__account-mail { max-width: 540px; margin: 25px auto; padding: 18px; border: 1px solid #e0e5ed; border-radius: 14px; background: #fff; }
.wbf-apply__account-mail h3 { margin-bottom: 6px; }
.wbf-apply__account-mail p { margin: 0; color: #697386; }
.wbf-apply__after-skip { animation: wbfApplyIn .3s ease both; }
.wbf-apply__success-links { display: grid; justify-items: center; gap: 14px; }
.wbf-apply__quiet-link { color: #7b8597 !important; font-size: 13px; font-weight: 750; text-decoration: none !important; }
.wbf-apply__quiet-link:hover { transform: translateY(-1px); color: #1f2a44 !important; }

@media (max-width: 640px) {
    .wbf-apply__dialog { background: #f8fafc; }
    .wbf-apply__header { min-height: 72px; padding: 12px 16px; }
    .wbf-apply__brand img { width: 42px; height: 42px; }
    .wbf-apply__close { width: 38px; height: 38px; }
    .wbf-apply__main {
        width: 100%;
        margin: 0;
        padding: 24px 18px max(64px, calc(42px + env(safe-area-inset-bottom)));
        scroll-padding-top: 20px;
        scroll-padding-bottom: max(64px, calc(42px + env(safe-area-inset-bottom)));
    }
    .wbf-apply__progress { margin-bottom: 24px; }
    .wbf-apply h2 { font-size: clamp(27px, 8vw, 36px); }
    .wbf-apply__fields { grid-template-columns: 1fr; gap: 15px; }
    .wbf-apply__fields label, .wbf-apply__fields label:first-child, .wbf-apply__fields label:last-child:nth-child(odd) { grid-column: auto; }
    .wbf-apply__actions.is-split { align-items: stretch; flex-direction: column-reverse; }
    .wbf-apply__actions .wbf-apply__primary { width: 100%; }
    .wbf-apply__back { align-self: center; min-height: 42px; }
    .wbf-apply__followup { padding: 18px; }
    .wbf-apply__account-offer { margin-top: 22px; padding: 19px; }
    .wbf-apply__account-offer h3 { font-size: 20px; }
    .wbf-apply__step[data-wbf-apply-step="2"] textarea { min-height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
    .wbf-apply, .wbf-apply *, .wbf-apply *::before, .wbf-apply *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
