/**
 * Contract Bond Facility intake — shell + captcha.
 */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("fonts/roboto-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.req { color: var(--required-mark, #c0392b); font-weight: 600; }
.opt { font-weight: 400; color: #6f7479; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

[data-mobile-only] { display: none; }
@media (max-width: 640px) {
  [data-desktop-only] { display: none !important; }
  [data-mobile-only] { display: flex !important; }
}

.bond-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px clamp(14px, 4vw, 28px) 0;
}
.bond-main .bond-legal-notice {
  max-width: none;
  padding: 18px 0 52px;
}

.screen { display: none; }
.screen.active { display: block; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-grid > .field-error { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .choice-grid { grid-template-columns: 1fr; }
}

.choice-btn {
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.choice-btn--check {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 52px 16px 20px;
}
.choice-btn--check .choice-title {
  font-weight: 600;
  font-size: 16.5px;
  color: #2b2b2b;
  line-height: 1.35;
}
.choice-btn--check .choice-sub {
  font-size: 13.5px;
  font-weight: 400;
  color: #8b9199;
}
.choice-btn--check .choice-btn__check {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.choice-btn__check[hidden] { display: none !important; }

.form-group { margin: 0; }
.details-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.email-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.email-pair .form-group {
  flex: 1 1 290px;
  max-width: 340px;
}
.input-narrow { max-width: 340px; }
input.input-narrow,
select.input-narrow {
  max-width: 340px;
  width: 100%;
}
input.input-wide { max-width: 700px; width: 100%; }
@media (max-width: 640px) {
  .email-pair { flex-direction: column; gap: 16px; }
  .email-pair .form-group {
    flex: none;
    max-width: none;
    width: 100%;
  }
  .details-stack .input-narrow,
  .details-stack input.input-wide { max-width: none; width: 100%; }
}

.elig-q {
  font-size: 16px;
  font-weight: 600;
  color: #4d4d4d;
  margin-bottom: 11px;
  line-height: 1.5;
}

.stepper-mobile {
  display: none;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}
.stepper-mobile__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.stepper-mobile__kicker {
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7479;
}
.stepper-mobile__label {
  font-size: 14.5px;
  font-weight: 600;
  color: #315c82;
}
.stepper-mobile__track {
  height: 4px;
  border-radius: 2px;
  background: #dfe3e7;
  overflow: hidden;
}
.stepper-mobile__fill {
  height: 100%;
  border-radius: 2px;
  background: #2974a3;
  transition: width 0.25s;
}

.bond-hero__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.bond-hero__heading .bond-hero__title { flex: 1 1 auto; min-width: 0; }
.bond-hero__meta { flex: 0 0 auto; text-align: right; padding-top: 2px; }
.bond-hero__meta-code {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0b5ba;
  line-height: 1.2;
  max-width: 28ch;
}
.bond-hero__meta-agency {
  margin-top: 5px;
  font: 600 11px/1.3 Montserrat, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4c8cc;
}
@media (max-width: 640px) {
  .bond-hero__heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bond-hero__meta { text-align: left; }
}

.bond-hero .stepper-item.upcoming { cursor: default; }
.bond-hero .stepper-item.upcoming .stepper-label { color: #6b7178; }

.btn-back[hidden] { display: none !important; }
.btn-next:disabled { opacity: 0.6; cursor: wait; }

.callout__body {
  font-size: 15px;
  line-height: 1.6;
  color: #6b6b6b;
}
.callout--notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fbf6e4;
  color: #5c4e2a;
}
.callout--notice .callout__label { color: #a67c09; }
.callout--notice .callout__body { color: #5c4e2a; }
.callout-notice__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e4b423;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.callout-notice__body { min-width: 0; flex: 1 1 auto; }
.details-stack .callout--notice { margin-top: 0; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-block { margin: 0; }
.captcha-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.captcha-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.captcha-row img {
  display: block;
  width: 180px;
  height: 56px;
  background: #f4f5f6;
  border: 1px solid #e5e7e9;
  border-radius: 4px;
}
.captcha-row input {
  max-width: 200px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.captcha-refresh {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}
.captcha-refresh:hover { color: var(--brand-hover); }

.submit-error {
  margin: 0;
  padding: 14px 16px;
  background: #fdecea;
  color: #8a1f11;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.submit-error[hidden] { display: none !important; }
#provinceOtherWrap[hidden],
#workTypeOtherWrap[hidden] { display: none !important; }

.confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(8px, 2vw, 20px) 0 clamp(30px, 5vw, 56px);
}
.confirm__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eefaef;
  border: 2px solid #00a806;
  color: #00a806;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.confirm--error .confirm__icon {
  background: #fdecea;
  border-color: #c0392b;
  color: #c0392b;
}
.confirm__kicker {
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7479;
  margin-bottom: 12px;
}
.confirm h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 29px);
  letter-spacing: -0.03em;
  color: #3a3a3a;
  line-height: 1.25;
}
.confirm__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #6c7177;
  max-width: 56ch;
}
.confirm__email-notice {
  width: 100%;
  max-width: 56ch;
  margin-top: 20px;
  padding: 16px 18px;
  background: #fdf4f2;
  border-radius: 8px;
  text-align: left;
  font-size: 14.5px;
  line-height: 1.55;
  color: #6e4a44;
}
.confirm__email-notice-title {
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b35448;
  margin-bottom: 8px;
}
.confirm__email-notice p { margin: 0; }
.confirm__next {
  width: 100%;
  max-width: 640px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #e8eef3;
  text-align: left;
}
.confirm__next-title {
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 16px;
}
.confirm__steps { display: flex; flex-direction: column; gap: 14px; }
.confirm__step { display: flex; gap: 14px; align-items: flex-start; }
.confirm__step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff5f9;
  color: #2974a3;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.confirm__step-text { font-size: 15.5px; line-height: 1.6; color: #4d4d4d; }
.confirm__close {
  width: 100%;
  max-width: 640px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #e8eef3;
  font-size: 13.5px;
  color: #6f7479;
}
