/* Dataflex Careers. Fonts come from the theme; colours from the Dataflex palette. */
.dfc {
  --dfc-ink: #16124A;
  --dfc-ink-2: #0D0A30;
  --dfc-blue: #0E6FD6;
  --dfc-blue-700: #0B5AB0;
  --dfc-bright: #1AA2F5;
  --dfc-tint: #ECF0FE;
  --dfc-paper-2: #F5F8FD;
  --dfc-text: #16124A;
  --dfc-muted: #56688A;
  --dfc-line: #E0E7F1;
  --dfc-on-dark: #F4F8FF;
  --dfc-on-dark-muted: #9FB2CE;
  --dfc-danger: #B42318;
  --dfc-ok: #067647;
  --dfc-radius: 16px;
  color: var(--dfc-text);
  box-sizing: border-box;
}
.dfc *, .dfc *::before, .dfc *::after { box-sizing: inherit; }
.dfc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.dfc-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.dfc-h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 0 0 14px; color: var(--dfc-ink); letter-spacing: -0.01em; }
.dfc-h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; color: var(--dfc-ink); }
.dfc-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dfc-blue); }
.dfc-eyebrow--light { color: var(--dfc-bright); }

/* Buttons (reset theme button styles inside the plugin) */
.dfc .dfc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--dfc-blue); color: #fff !important; text-decoration: none !important;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.dfc .dfc-btn:hover, .dfc .dfc-btn:focus-visible { background: var(--dfc-blue-700); color: #fff; }
.dfc .dfc-btn:focus-visible, .dfc a:focus-visible, .dfc button:focus-visible, .dfc input:focus-visible, .dfc textarea:focus-visible { outline: 3px solid var(--dfc-bright); outline-offset: 2px; }
.dfc .dfc-btn--sm { padding: 9px 16px; font-size: 14px; }
.dfc .dfc-btn--block { width: 100%; }
.dfc .dfc-btn--light { background: #fff; color: var(--dfc-ink) !important; }
.dfc .dfc-btn--light:hover { background: var(--dfc-tint); color: var(--dfc-ink) !important; }
.dfc .dfc-btn[disabled] { opacity: .6; cursor: progress; }
.dfc .dfc-linkbtn { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 14px; color: var(--dfc-muted); cursor: pointer; text-decoration: underline; box-shadow: none; }
.dfc .dfc-linkbtn:hover { color: var(--dfc-ink); background: none; }

/* Chips */
.dfc-chips { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dfc-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--dfc-tint); color: var(--dfc-ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.dfc-chip svg { width: 14px; height: 14px; color: var(--dfc-blue); }

/* ---------- Listing ---------- */
.dfc-listing { margin: 40px 0; }
.dfc-listing__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.dfc-listing__head .dfc-h2 { margin: 0; font-size: 30px; }
.dfc-count { font-size: 14px; font-weight: 600; color: var(--dfc-muted); }
.dfc-empty { padding: 28px; border-radius: var(--dfc-radius); background: var(--dfc-paper-2); color: var(--dfc-muted); margin: 0; }
.dfc-group + .dfc-group { margin-top: 40px; }
.dfc-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 18px 22px; margin-bottom: 16px; border-radius: var(--dfc-radius); background: var(--dfc-ink); color: var(--dfc-on-dark); }
.dfc-group__title { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.dfc-group__meta { margin: 0; font-size: 14px; font-weight: 600; color: var(--dfc-on-dark-muted); }
.dfc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.dfc-grid > li { margin: 0; padding: 0; display: flex; }
.dfc-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 22px; border: 1px solid var(--dfc-line); border-radius: var(--dfc-radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.dfc-card:hover { border-color: #C7D6EE; box-shadow: 0 10px 30px rgba(22, 18, 74, .08); transform: translateY(-2px); }
.dfc-card .dfc-eyebrow { font-size: 11px; }
.dfc-card__title { margin: 0 0 14px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.dfc-card__title a { color: var(--dfc-ink); text-decoration: none; }
.dfc-card__title a:hover { color: var(--dfc-blue); }
.dfc-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dfc-deadline { font-size: 13px; font-weight: 600; color: var(--dfc-muted); }
.dfc-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dfc-badge--closed { background: #FEE4E2; color: var(--dfc-danger); }
.dfc-card.is-closed { opacity: .75; }

/* ---------- Vacancy page ---------- */
.dfc-main { display: block; }
.dfc-hero { position: relative; overflow: hidden; padding: 56px 0 48px; background: var(--dfc-ink); color: var(--dfc-on-dark); }
.dfc-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(26, 162, 245, .28), transparent); pointer-events: none; }
.dfc-hero .dfc-wrap { position: relative; }
.dfc .dfc-back { display: inline-block; margin-bottom: 22px; color: var(--dfc-on-dark-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.dfc .dfc-back:hover { color: #fff; }
.dfc-hero__title { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: #fff; max-width: 820px; }
.dfc-hero .dfc-chip { background: rgba(255, 255, 255, .1); color: var(--dfc-on-dark); }
.dfc-hero .dfc-chip svg { color: var(--dfc-bright); }
.dfc-hero__cta { margin-top: 22px; }
.dfc-single__body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 64px; }
.dfc-section { margin-bottom: 36px; font-size: 16px; line-height: 1.7; }
.dfc-section p { margin: 0 0 12px; }
.dfc-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dfc-ticks li { position: relative; margin: 0; padding: 12px 16px 12px 46px; border-radius: 12px; background: var(--dfc-paper-2); line-height: 1.5; }
.dfc-ticks li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--dfc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dfc-prose ul { padding-left: 1.2em; }
.dfc-note { padding: 20px 22px; border-radius: var(--dfc-radius); border: 1px dashed #C7D6EE; }
.dfc-note p { margin: 0; color: var(--dfc-muted); }
.dfc-note a { color: var(--dfc-blue); font-weight: 600; }
.dfc-single__side { position: sticky; top: 24px; scroll-margin-top: 24px; }

/* ---------- Form ---------- */
.dfc-form { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--dfc-line); box-shadow: 0 20px 50px rgba(22, 18, 74, .08); }
.dfc-form__role { margin: -2px 0 18px; font-size: 14px; font-weight: 600; color: var(--dfc-muted); }
.dfc-field { margin: 0 0 14px; }
.dfc .dfc-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--dfc-ink); }
.dfc-req { color: var(--dfc-danger); }
.dfc .dfc-field input[type=text], .dfc .dfc-field input[type=email], .dfc .dfc-field input[type=tel], .dfc .dfc-field input[type=url], .dfc .dfc-field textarea {
  display: block; width: 100%; margin: 0; padding: 11px 14px; border: 1px solid #CBD5E4; border-radius: 10px; background: #fff; color: var(--dfc-ink); font: inherit; font-size: 15px; line-height: 1.4; box-shadow: none;
}
.dfc .dfc-field input:focus, .dfc .dfc-field textarea:focus { border-color: var(--dfc-blue); outline: none; box-shadow: 0 0 0 3px rgba(14, 111, 214, .18); }
.dfc .dfc-field input[type=file] { display: block; width: 100%; padding: 10px; border: 1px dashed #B9C7DD; border-radius: 10px; background: var(--dfc-paper-2); font-size: 14px; color: var(--dfc-muted); }
.dfc .dfc-field input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--dfc-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dfc-help { margin: 6px 0 0; font-size: 12.5px; color: var(--dfc-muted); }
.dfc-field--check { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: flex-start; }
.dfc-field--check label { flex: 1; }
.dfc-field--check .dfc-error { flex-basis: 100%; padding-left: 28px; }
.dfc-field--check input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--dfc-blue); }
.dfc .dfc-field--check label { font-weight: 500; font-size: 13.5px; line-height: 1.5; color: var(--dfc-muted); margin: 0; }
.dfc-field.has-error input, .dfc-field.has-error textarea { border-color: var(--dfc-danger) !important; }
.dfc-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--dfc-danger); }
.dfc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.dfc-form .cf-turnstile { margin: 4px 0 14px; }
.dfc-form__status { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.dfc-form__status:empty { display: none; }
.dfc-form__status.is-error { color: var(--dfc-danger); }
.dfc-form--done { text-align: center; }
.dfc-form--done .dfc-done-icon { width: 56px; height: 56px; margin: 6px auto 14px; border-radius: 50%; background: #DCFAE6; color: var(--dfc-ok); display: flex; align-items: center; justify-content: center; }
.dfc-form--done .dfc-done-icon svg { width: 28px; height: 28px; stroke-width: 2.6; }
.dfc-form--done p { color: var(--dfc-muted); margin: 0; line-height: 1.6; }
.dfc-form--closed p { color: var(--dfc-muted); }

/* ---------- Pop-up ---------- */
.dfc-popup { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dfc-popup[hidden] { display: none; }
.dfc-popup__backdrop { position: absolute; inset: 0; background: rgba(13, 10, 48, .55); animation: dfc-fade .25s ease; }
.dfc-popup__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(13, 10, 48, .35); animation: dfc-rise .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.dfc-popup__head { position: relative; overflow: hidden; padding: 30px 28px 24px; background: var(--dfc-ink); color: var(--dfc-on-dark); }
.dfc-popup__head::before { content: ""; position: absolute; right: -90px; top: -110px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(26, 162, 245, .35), transparent); pointer-events: none; }
.dfc-popup__title { position: relative; margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.dfc-popup__text { position: relative; margin: 0; font-size: 14.5px; font-weight: 600; color: var(--dfc-on-dark-muted); }
.dfc-popup__body { padding: 20px 28px 24px; }
.dfc-popup__list { list-style: none; margin: 0; padding: 0; }
.dfc-popup__list li { margin: 0; border-bottom: 1px solid var(--dfc-line); }
.dfc-popup__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; color: var(--dfc-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.dfc-popup__list a:hover { color: var(--dfc-blue); }
.dfc-popup__list svg { color: var(--dfc-blue); }
.dfc-popup__more { margin: 10px 0 0; font-size: 14px; color: var(--dfc-muted); }
.dfc-popup__actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.dfc .dfc-popup__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.dfc .dfc-popup__close:hover { background: rgba(255, 255, 255, .24); }
.dfc-popup__close svg { width: 18px; height: 18px; }
html.dfc-popup-open { overflow: hidden; }
@keyframes dfc-fade { from { opacity: 0; } }
@keyframes dfc-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

@media (max-width: 960px) {
  .dfc-single__body { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .dfc-single__side { position: static; }
}
@media (max-width: 600px) {
  .dfc-listing__head .dfc-h2 { font-size: 24px; }
  .dfc-grid { grid-template-columns: 1fr; }
  .dfc-hero { padding: 36px 0 32px; }
  .dfc-form { padding: 20px; }
  .dfc-popup { align-items: flex-end; padding: 0; }
  .dfc-popup__dialog { max-width: none; border-radius: 22px 22px 0 0; max-height: 90vh; }
}
@media (prefers-reduced-motion: reduce) {
  .dfc-card, .dfc .dfc-btn { transition: none; }
  .dfc-card:hover { transform: none; }
  .dfc-popup__backdrop, .dfc-popup__dialog { animation: none; }
}
