/* Illustrated onboarding: desktop seamless hero (≥768px) + full-bleed mobile cover (<768px). */

.ob-wizard__content.ob-wizard__content--illustrated {
  inline-size: 100%;
  max-inline-size: none;
  margin-inline: 0;
  padding-block: 0 calc(var(--sticky-footer-h, 6.5rem) + env(safe-area-inset-bottom, 0px) + 12px);
  padding-inline: 0;
  background: var(--bg);
}

.ob-wizard__content.ob-wizard__content--illustrated .ob-wizard__step-pill {
  margin: 0;
  padding: 8px 16px 0;
}

.ob-wizard__content.ob-wizard__content--illustrated .ob-wizard__mascot-anchor {
  display: none;
}

.ob-illustrated-step {
  inline-size: 100%;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
}

.ob-illustrated-step__mobile-cover {
  display: none;
  position: relative;
  pointer-events: none;
  inline-size: calc(100% - 24px);
  max-inline-size: calc(100% - 24px);
  margin: 0 12px 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 390 / 260;
  max-block-size: 16.25rem;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--border));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  pointer-events: none;
}

.ob-illustrated-step__mobile-cover-art {
  grid-area: 1 / 1;
  z-index: 0;
  display: block;
  line-height: 0;
  pointer-events: none;
  min-block-size: 100%;
}

.ob-illustrated-step__mobile-cover-art img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: var(--ob-mobile-hero-pos, 72% 52%);
}

.ob-illustrated-step__mobile-cover::before {
  content: "";
  grid-area: 1 / 1;
  z-index: 1;
  pointer-events: none;
  align-self: stretch;
  justify-self: stretch;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--pearl) 96%, transparent) 0%,
    color-mix(in srgb, var(--pearl) 88%, transparent) 28%,
    color-mix(in srgb, var(--pearl) 55%, transparent) 48%,
    color-mix(in srgb, var(--pearl) 18%, transparent) 58%,
    transparent 80%
  );
}

.ob-illustrated-step__mobile-cover-copy {
  grid-area: 1 / 1;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
  justify-self: stretch;
  padding: 0.55rem 0.75rem 0.45rem;
  background: transparent;
  pointer-events: none;
}

.ob-illustrated-step__mobile-cover-copy h1 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.12;
  color: var(--brand);
  text-wrap: balance;
  max-inline-size: 48%;
}

.ob-illustrated-step__mobile-eyebrow,
.ob-illustrated-step__mobile-lead {
  max-inline-size: 48%;
}

.ob-illustrated-step__mobile-eyebrow {
  display: inline-block;
  margin-block-end: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--coral);
}

.ob-illustrated-step__mobile-lead {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  line-height: 1.33;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.ob-illustrated-step__mobile-cover-copy .ob-wizard__badge {
  margin-block: 0.12rem 0.3rem;
  font-size: var(--text-xs);
  pointer-events: auto;
}

.ob-illustrated-step__hero-band {
  position: relative;
  inline-size: 100%;
  min-block-size: 200px;
  max-block-size: 240px;
  overflow: hidden;
  background: var(--bg);
  border-block-end: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  pointer-events: none;
}

.ob-illustrated-step__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

/* pointer-events on parent does not block descendants — keep decorative art inert. */
.ob-illustrated-step__art *,
.ob-illustrated-step__mobile-cover-art,
.ob-illustrated-step__mobile-cover-art *,
.ob-illustrated-step__mobile-cover::before {
  pointer-events: none;
}

.ob-illustrated-step__art picture {
  display: flex;
  justify-content: flex-end;
  block-size: 100%;
  margin-inline-start: auto;
}

.ob-illustrated-step__art img {
  display: block;
  block-size: 100%;
  inline-size: auto;
  max-inline-size: 100%;
  min-inline-size: 1px;
  object-fit: contain;
  object-position: right center;
  opacity: 1;
  filter: none;
}

.ob-illustrated-step__head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: start;
  min-block-size: 200px;
  max-block-size: 240px;
  max-inline-size: min(520px, 46%);
  padding: 14px clamp(16px, 3vw, 28px);
  pointer-events: none;
}

.ob-illustrated-step__head h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  color: var(--brand);
}

.ob-illustrated-step__head .ob-wizard__lead {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--muted);
  max-inline-size: 36ch;
}

.ob-illustrated-step__head .ob-wizard__badge,
.ob-illustrated-step__head .ob-wizard__step-pill {
  margin-block-end: 0.35rem;
  pointer-events: auto;
}

.ob-illustrated-step__hero-band::before {
  content: none;
}

.ob-illustrated-step__body {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background: var(--bg);
  padding: 12px clamp(16px, 4vw, 32px) 8px;
  pointer-events: auto;
}

.ob-illustrated-step__form {
  position: relative;
  z-index: 1;
  inline-size: min(100%, 600px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: auto;
}

.ob-illustrated-step__form .work-status-chips .lobsy-choice-tile {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  touch-action: manipulation;
}

.ob-illustrated-step__form.ob-fields label,
.ob-illustrated-step__form .ob-wizard__card--illustrated label {
  margin-block: 10px;
}

.ob-illustrated-step__field-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
}

.ob-illustrated-step__form .ob-wizard__card--illustrated {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ob-illustrated-step__form .ob-wizard__job,
.ob-illustrated-step__form .ob-wizard__check,
.ob-illustrated-step__form .ob-wizard__availability-summary,
.ob-illustrated-step__form .ob-wizard__fine-tune,
.ob-illustrated-step__form fieldset.q-likert {
  background: var(--surface);
}

@media (max-width: 767px) {
  .ob-wizard__content.ob-wizard__content--illustrated {
    padding-inline: 0;
    padding-block: 0 calc(var(--sticky-footer-h, 6.5rem) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .ob-wizard__content.ob-wizard__content--illustrated .ob-wizard__step-pill--illustrated-hero {
    display: none;
  }

  .ob-illustrated-step__mobile-cover {
    display: grid;
  }

  .ob-illustrated-step__hero-band {
    display: none;
  }

  .ob-illustrated-step__body {
    padding: 0 16px 6px;
    margin-block-start: 0;
  }

  .ob-illustrated-step__form fieldset > legend.ob-wizard__section-title {
    display: block;
    float: none;
    inline-size: 100%;
    margin: 0 0 0.35rem;
    padding: 0;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--brand);
  }

  .ob-illustrated-step__form .ob-wizard__section-hint {
    margin: 0 0 0.65rem;
  }
}

@media (min-width: 768px) {
  .ob-illustrated-step__mobile-cover {
    display: none !important;
  }
}

.ob-illustrated-step--mobile-kennismaken {
  --ob-mobile-hero-pos: 74% 48%;
}

.ob-illustrated-step--mobile-beschikbaarheid {
  --ob-mobile-hero-pos: right bottom;
}

.ob-illustrated-step--mobile-vervoer {
  --ob-mobile-hero-pos: 80% 54%;
}

.ob-illustrated-step--mobile-werkervaring {
  --ob-mobile-hero-pos: right bottom;
}

.ob-illustrated-step--mobile-opleiding {
  --ob-mobile-hero-pos: right bottom;
}

.ob-illustrated-step--mobile-droombaan {
  --ob-mobile-hero-pos: 76% 50%;
}

@media (min-width: 1024px) {
  .ob-wizard__content.ob-wizard__content--illustrated {
    padding-inline: 0;
  }

  .ob-wizard__layout:has(.ob-wizard__content--illustrated) .ob-wizard__sidebar {
    align-self: stretch;
    min-block-size: calc(100dvh - 2rem);
  }

  .ob-wizard__sidebar-note {
    margin-block: 8px 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--accent-soft) 75%, var(--surface));
    font-size: var(--text-xs);
    line-height: 1.45;
    color: var(--muted);
  }

  .ob-wizard__sidebar-note strong {
    display: block;
    margin-block-end: 4px;
    color: var(--brand);
    font-size: var(--text-sm);
  }

  .ob-wizard__sidebar-substeps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .ob-wizard__sidebar-substep {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 70%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  }

  .ob-wizard__sidebar-substep.is-current {
    color: var(--brand);
    font-weight: 600;
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
  }

  .ob-illustrated-step__hero-band,
  .ob-illustrated-step__head {
    min-block-size: 220px;
    max-block-size: 240px;
  }

  .ob-illustrated-step__art {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .ob-illustrated-step__art::after {
    content: none;
  }

  .ob-illustrated-step__art-img-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--bg) 35%, transparent) 8%,
      #000 22%,
      #000 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--bg) 35%, transparent) 8%,
      #000 22%,
      #000 100%
    );
  }

  .ob-illustrated-step__art-img-wrap picture,
  .ob-illustrated-step__art-img-wrap img {
    pointer-events: none;
  }

  .ob-illustrated-step__art-img-wrap picture {
    display: block;
    block-size: 100%;
    inline-size: auto;
    max-inline-size: 100%;
  }

  .ob-illustrated-step__art-img-wrap img {
    display: block;
    block-size: 100%;
    inline-size: auto;
    max-inline-size: 100%;
    min-inline-size: 1px;
    object-fit: contain;
    object-position: right bottom;
  }
}

.ob-wizard__dream-suggest {
  margin-block-start: 12px;
}

.ob-wizard__dream-suggest-title {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
}

.ob-wizard__dream-suggest-grid {
  display: grid;
  gap: 8px;
}

.ob-wizard__dream-suggest-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.ob-wizard__dream-suggest-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: var(--surface);
  text-align: start;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.ob-wizard__dream-suggest-card.is-selected {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
}

.ob-wizard__dream-suggest-icon {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
  color: var(--brand);
}

.ob-wizard__dream-suggest-text {
  display: grid;
  gap: 2px;
  min-inline-size: 0;
}

.ob-wizard__dream-suggest-label {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.ob-wizard__dream-suggest-reason {
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--muted);
}

.ob-wizard__dream-suggest--regional {
  margin-block-start: 14px;
}

@media (min-width: 640px) {
  .ob-wizard__dream-suggest-grid:not(.ob-wizard__dream-suggest-grid--compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
