/**
 * RPP Bond (Release Prior to Payment) — inquiry + GST-style amount slider.
 */
@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-grid--provinces {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.choice-btn--province {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 16px 52px 16px 20px;
}
.choice-btn--province .choice-title {
  font-weight: 600;
  font-size: 17px;
  color: #2b2b2b;
  line-height: 1.35;
}
.choice-btn--province .choice-code {
  flex: 0 0 auto;
  font: 700 12px/1 Montserrat, sans-serif;
  letter-spacing: 0.1em;
  color: #8b9199;
}
.choice-btn--province.selected .choice-code { color: #2974a3; }
.choice-btn--province .choice-btn__check {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.choice-btn__check[hidden] { display: none !important; }
@media (max-width: 640px) {
  .choice-grid--provinces { grid-template-columns: 1fr; }
}
.choice-grid--years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid--years .choice-btn--check,
.choice-grid--three .choice-btn--check { min-height: 64px; }
@media (max-width: 640px) {
  .choice-grid--years,
  .choice-grid--three { grid-template-columns: 1fr; }
}
.amount-type-field { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.situation-prompts {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  max-width: 58ch;
}
.situation-prompts li {
  position: relative;
  padding-left: 1.1em;
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #5c6166;
}
.situation-prompts li:last-child { margin-bottom: 0; }
.situation-prompts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8bec4;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.5;
  color: #4d4d4d;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #2974a3;
  cursor: pointer;
}
.check-row.has-error { color: #8a1f11; }

.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,
  .details-stack .date-field.input-narrow { 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: 0;
  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],
#licenceWrap[hidden] { display: none !important; }
.field-hint {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.45;
  color: #8b9199;
}
.form-group .check-row { margin-top: 12px; }
#licenceNumber:disabled,
#licenceAppDate:disabled,
#licenceExpiryDate:disabled {
  background: #f4f5f6;
  color: #8b9199;
  cursor: default;
}
.date-field {
  position: relative;
  display: block;
  width: 100%;
}
.date-field.input-narrow { max-width: 340px; }
.date-field input[type="date"] {
  position: relative;
  width: 100%;
  min-height: var(--input-min-height);
  padding: 14px 44px 14px 16px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.2;
  color: var(--text);
  background: #fff;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  accent-color: var(--brand);
  color-scheme: light;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(41, 116, 163, 0.14);
}
.date-field input[type="date"]::-webkit-datetime-edit,
.date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.date-field input[type="date"]::-webkit-datetime-edit-text,
.date-field input[type="date"]::-webkit-datetime-edit-month-field,
.date-field input[type="date"]::-webkit-datetime-edit-day-field,
.date-field input[type="date"]::-webkit-datetime-edit-year-field {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  padding: 0;
}
.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}
.date-field::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232974a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='16' height='15' rx='2'/%3E%3Cpath d='M3 9h16M8 2v4M14 2v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-elig].has-error .elig-q { color: #8a1f11; }
.yesno-grid { max-width: 220px; }
input[type="date"].input-narrow { max-width: 340px; width: 100%; }

.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;
}

.amount-hero {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 52px);
  letter-spacing: -0.04em;
  color: #2974a3;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.12s ease-out;
}
.amount-hero.is-ticking { transform: translateY(-2px); }
.amount-hero-sub {
  margin: 6px 0 22px;
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7479;
}

.amount-slider-block {
  position: relative;
  max-width: 700px;
}
.amount-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 700px;
  height: 6px;
  margin: 0;
  background: #dfe3e7;
  border-radius: 3px;
  outline: none;
}
.amount-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2974a3;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #2974a3;
  cursor: pointer;
}
.amount-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2974a3;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #2974a3;
  cursor: pointer;
}
.amount-slider:focus-visible {
  outline: 2px solid #2974a3;
  outline-offset: 6px;
}

.amount-tick-marks,
.amount-ticks {
  position: relative;
  margin-left: 12px;
  margin-right: 12px;
}
.amount-tick-marks {
  height: 10px;
  margin-top: 6px;
}
.amount-tick-marks i {
  position: absolute;
  top: 0;
  width: 2px;
  height: 10px;
  background: #b7bec6;
  transform: translateX(-50%);
}
.amount-ticks {
  height: 22px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #8b9199;
}
.amount-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.amount-type-field { font-variant-numeric: tabular-nums; }

.amount-range-note {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #2974a3;
  font-weight: 600;
}
.amount-range-note.is-warn { color: #8a3b32; }

.callout--notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  background: #fbf6e4;
  color: #5c4e2a;
}
.callout--notice[hidden] {
  display: none !important;
}
.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;
}

@media (max-width: 640px) {
  .amount-slider-block,
  .amount-slider {
    max-width: none;
    width: 100%;
  }
}
