/* EZ Careers application form. Everything is scoped under .ezc. */
.ezc {
  --ezc-blue: #1d4fa0;
  --ezc-blue-d: #163d7c;
  --ezc-red: #d1202d;
  --ezc-yellow: #f5b400;
  --ezc-bg: #eef2f7;
  --ezc-card: #ffffff;
  --ezc-ink: #17202b;
  --ezc-muted: #5b6b7c;
  --ezc-line: #d5dde7;
  --ezc-field: #ffffff;
  --ezc-chip: #f3f6fa;
  --ezc-chip-on: #1d4fa0;
  --ezc-chip-on-ink: #ffffff;
  --ezc-err-bg: #fdecee;
  --ezc-focus: rgba(29, 79, 160, .28);
  --ezc-sticky-top: 0px;
  background: var(--ezc-bg);
  color: var(--ezc-ink);
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 32px;
}
@media (prefers-color-scheme: dark) {
  .ezc {
    --ezc-bg: #0f1722;
    --ezc-card: #182433;
    --ezc-ink: #e8eef6;
    --ezc-muted: #9fb0c3;
    --ezc-line: #2c3b4f;
    --ezc-field: #101a26;
    --ezc-chip: #213044;
    --ezc-chip-on: #4b82d8;
    --ezc-err-bg: #3a1b20;
    --ezc-focus: rgba(110, 160, 235, .35);
  }
}
.ezc *, .ezc *::before, .ezc *::after { box-sizing: border-box; }
.ezc [hidden] { display: none !important; }

/* Sticky header + progress */
.ezc-top {
  position: sticky;
  top: var(--ezc-sticky-top);
  z-index: 50;
  background: var(--ezc-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 30, 70, .25);
}
.ezc-top-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ezc-brand { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.ezc-logo { background: #fff; border-radius: 8px; padding: 4px 8px; display: inline-flex; flex: 0 0 auto; }
.ezc-logo img { display: block; height: 34px; width: auto; }
.ezc-tag {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ezc-yellow);
  white-space: nowrap;
}
.ezc-prog { flex: 0 1 260px; min-width: 200px; }
.ezc-prog-txt { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; letter-spacing: .3px; margin-bottom: 4px; }
.ezc-prog-txt b { color: var(--ezc-yellow); }
.ezc-bar { height: 8px; background: rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.ezc-bar i { display: block; height: 100%; width: 0; background: var(--ezc-yellow); border-radius: 999px; transition: width .25s ease; }

/* Layout */
.ezc-form, .ezc-thanks, .ezc-eeo { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.ezc-intro { padding: 26px 4px 6px; }
.ezc-h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--ezc-ink);
  margin: 0 0 8px;
}
.ezc-intro p { margin: 0; color: var(--ezc-muted); }
.ezc-card {
  background: var(--ezc-card);
  border: 1px solid var(--ezc-line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  margin: 16px 0 0;
  box-shadow: 0 8px 24px rgba(15, 40, 80, .06);
}
.ezc-h2 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ezc-ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ezc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ezc-blue);
  color: #fff;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.ezc-sub { color: var(--ezc-muted); margin: 0 0 4px; font-size: .92rem; }
.ezc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-top: 14px; }
.ezc-wide { grid-column: 1 / -1; }

/* Fields */
.ezc-field { min-width: 0; }
.ezc-field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ezc-label { display: block; font-weight: 600; font-size: .92rem; color: var(--ezc-ink); margin: 0 0 5px; padding: 0; }
.ezc-req { color: var(--ezc-red); font-weight: 700; }
.ezc input[type=text], .ezc input[type=email], .ezc input[type=tel], .ezc input[type=date], .ezc input[type=month],
.ezc input[type=number], .ezc select, .ezc textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ezc-ink);
  background: var(--ezc-field);
  border: 1.5px solid var(--ezc-line);
  border-radius: 9px;
  appearance: auto;
}
.ezc textarea { min-height: 88px; resize: vertical; }
.ezc input:focus, .ezc select:focus, .ezc textarea:focus { outline: none; border-color: var(--ezc-blue); box-shadow: 0 0 0 3px var(--ezc-focus); }
.ezc input[readonly] { background: var(--ezc-chip); color: var(--ezc-muted); }
.ezc input[type=file] { font: inherit; font-size: .95rem; color: var(--ezc-ink); max-width: 100%; }
.ezc-files { margin: 4px 0 0; font-size: .85rem; color: var(--ezc-muted); }

/* Chips (radio + checkbox pills) */
.ezc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ezc-chip { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.ezc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ezc-chip > span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ezc-line);
  background: var(--ezc-chip);
  color: var(--ezc-ink);
  font-weight: 600;
  font-size: .93rem;
  line-height: 1.25;
  transition: background .12s, border-color .12s, color .12s;
}
.ezc-chip:hover > span { border-color: var(--ezc-blue); }
.ezc-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--ezc-focus); }
.ezc-chip input:checked + span { background: var(--ezc-chip-on); border-color: var(--ezc-chip-on); color: var(--ezc-chip-on-ink); }
.ezc-chip input[type=checkbox]:checked + span::before { content: "\2713"; margin-right: 6px; font-weight: 700; }
.ezc-agree > span { border-radius: 12px; display: block; padding: 12px 16px; }

/* Validation */
.ezc-err { display: none; margin: 5px 0 0; color: var(--ezc-red); font-size: .86rem; font-weight: 600; }
.ezc-invalid .ezc-err { display: block; }
.ezc-invalid input[type=text], .ezc-invalid input[type=email], .ezc-invalid input[type=tel], .ezc-invalid input[type=date],
.ezc-invalid input[type=month], .ezc-invalid input[type=number], .ezc-invalid select, .ezc-invalid textarea {
  border-color: var(--ezc-red);
  background: var(--ezc-err-bg);
}
.ezc-invalid .ezc-chip > span { border-color: var(--ezc-red); }
.ezc-invalid .ezc-label, .ezc-invalid legend.ezc-label { color: var(--ezc-red); }
.ezc-alert { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ezc-err-bg); color: var(--ezc-red); font-weight: 600; border: 1px solid var(--ezc-red); }

/* Repeatable rows */
.ezc-rows { display: grid; gap: 14px; margin-top: 14px; }
.ezc-row { border: 1px solid var(--ezc-line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
.ezc-row-h { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; font-weight: 700; color: var(--ezc-blue); font-size: .95rem; }
.ezc-row .ezc-grid { margin-top: 6px; }
.ezc-remove { background: none; border: 0; color: var(--ezc-red); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 4px 6px; }
.ezc-add {
  margin-top: 14px;
  background: none;
  border: 1.5px dashed var(--ezc-blue);
  color: var(--ezc-blue);
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}
.ezc-add[disabled] { opacity: .45; cursor: not-allowed; }

/* Certification + signature */
.ezc-cert {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--ezc-yellow);
  background: var(--ezc-chip);
  border-radius: 0 10px 10px 0;
  font-size: .95rem;
  color: var(--ezc-ink);
  quotes: none;
}
.ezc-sig {
  min-height: 52px;
  margin-top: 8px;
  padding: 4px 6px 2px;
  border-bottom: 2px solid var(--ezc-ink);
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.4;
  color: var(--ezc-blue);
  overflow-wrap: anywhere;
}
.ezc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ezc-submit {
  display: block;
  width: 100%;
  margin-top: 18px;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--ezc-red);
  color: #fff;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(209, 32, 45, .28);
}
.ezc-submit:hover { background: #b51a26; }
.ezc-submit[disabled] { opacity: .7; cursor: progress; }

/* Thank-you + footer */
.ezc-thanks { text-align: center; padding: 34px 22px; margin-top: 24px; }
.ezc-thanks .ezc-h2 { justify-content: center; }
.ezc-thanks p { font-size: 1.1rem; max-width: 560px; margin: 8px auto 0; }
.ezc-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #1f8a43;
  color: #fff;
  font-size: 2rem;
  line-height: 64px;
  font-weight: 700;
}
.ezc-eeo { margin-top: 22px; font-size: .82rem; color: var(--ezc-muted); text-align: center; }

/* Mobile first collapse: one column under 640px */
@media (max-width: 860px) {
  .ezc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .ezc-grid { grid-template-columns: minmax(0, 1fr); }
  .ezc-card { padding: 18px 16px 20px; border-radius: 12px; }
  .ezc-h1 { font-size: 1.75rem; }
  .ezc-top-in { gap: 8px; padding: 8px 12px; }
  .ezc-tag { font-size: .95rem; }
  .ezc-logo img { height: 28px; }
  .ezc-prog { flex: 1 1 100%; min-width: 0; }
}

/* Page-level width guard (body class added by the plugin on [ez_application_form]
   pages). Scoped to the content area only - the theme header, footer and mobile
   callbar are never touched. */
body.ez-careers-page #content,
body.ez-careers-page .site-main,
body.ez-careers-page .entry-content,
body.ez-careers-page #content > .container {
  max-width: none;
  width: auto;
  padding-left: 0;
  padding-right: 0;
}
/* Keep the end of the form clear of the theme's fixed mobile callbar (77px + 12px gap). */
@media (max-width: 767px) {
  body.ez-careers-page .ezc { padding-bottom: 104px; }
}

/* Position question blocks */
.ezc-posblock {
  margin-top: 4px;
  padding: 16px 18px 18px;
  border: 1.5px solid var(--ezc-line);
  border-left: 4px solid var(--ezc-blue);
  border-radius: 12px;
  background: var(--ezc-chip);
  overflow: hidden;
}
.ezc-pos-h {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ezc-blue);
  margin: 0;
}
.ezc-posblock .ezc-grid { margin-top: 10px; }
.ezc-slide { animation: ezcSlideDown .32s ease-out; }
@keyframes ezcSlideDown {
  from { opacity: 0; max-height: 0; transform: translateY(-8px); padding-top: 0; padding-bottom: 0; }
  to   { opacity: 1; max-height: 1600px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ezc-slide { animation: none; }
}

/* Job postings: /careers/ archive and /careers/{slug}/ (same tokens as the form) */
.ezc-top--static { position: static; }
.ezc-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ezc-jobs .ezc-intro p { max-width: 760px; font-size: 1.05rem; }
.ezc-jobgrid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.ezc-jobcard { display: flex; flex-direction: column; margin: 0; }
.ezc-jobcard--general { border-style: dashed; }
.ezc-jobcard--general p { color: var(--ezc-muted); margin: 6px 0 0; }
.ezc-jobtitle { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 1.5rem; line-height: 1.15; margin: 0; color: var(--ezc-ink); }
.ezc-jobtitle a { color: inherit; text-decoration: none; }
.ezc-jobtitle a:hover { color: var(--ezc-blue); }
.ezc-jobtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ezc-jobtag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ezc-chip); border: 1px solid var(--ezc-line); font-size: .85rem; font-weight: 600; color: var(--ezc-ink); }
.ezc-jobposted { margin: 8px 0 0; font-size: .88rem; color: var(--ezc-muted); }
.ezc-jobactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.ezc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; background: var(--ezc-red); color: #fff !important; text-decoration: none !important; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .5px; text-transform: uppercase; box-shadow: 0 8px 18px rgba(209, 32, 45, .22); }
.ezc-btn:hover, .ezc-btn:focus-visible { background: #b51a26; }
.ezc-btn--ghost { background: transparent; color: var(--ezc-blue) !important; border: 2px solid var(--ezc-blue); box-shadow: none; }
.ezc-btn--ghost:hover, .ezc-btn--ghost:focus-visible { background: var(--ezc-chip); }
.ezc-btn--lg { min-height: 54px; font-size: 1.3rem; padding: 0 30px; }
.ezc-btn--block { display: flex; width: 100%; margin-top: 22px; }
.ezc-crumb { margin: 18px 0 0; font-size: .92rem; }
.ezc-crumb a { color: var(--ezc-blue); font-weight: 600; text-decoration: none; }
.ezc-jobhead { display: flex; flex-direction: column; gap: 14px; padding: 14px 4px 4px; }
.ezc-jobhead .ezc-h1 { margin: 0; }
.ezc-jobbody { margin-top: 16px; }
.ezc-jobdesc > :first-child { margin-top: 0; }
.ezc-jobh2 { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-size: 1.3rem; color: var(--ezc-blue); margin: 22px 0 6px; }
.ezc-joblist { margin: 0; padding-left: 20px; }
.ezc-joblist li { margin: 4px 0; }
.ezc-center { text-align: center; margin-top: 8px; }
.ezc-alert--info { background: var(--ezc-chip); color: var(--ezc-ink); border-color: var(--ezc-line); }
.ezc-jobnote { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--ezc-chip); border-left: 4px solid var(--ezc-blue); font-weight: 600; }
@media (min-width: 640px) {
  .ezc-jobgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ezc-jobhead { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width: 1000px) {
  .ezc-jobgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
