/* Additions for the full Form 03 field set. The approved sample CSS is unchanged. */

:root {
  --bhs-green-ink: #197443;
  --bhs-error: #CB292A;
  --bhs-footer-bar: #176D3F;
}
.bhs-kicker,
.bhs-saved,
.bhs-form-btn--secondary {
  color: var(--bhs-green-ink);
}
.bhs-saved { transition: none; }
.bhs-form-prefooter {
  background: #176D3F;
}
[hidden] { display: none !important; }
.bhs-provisional {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b3e00;
}
.bhs-lookup { margin: 0 0 8px; }
.bhs-lookup__label { display: block; margin: 0 0 8px; font-weight: 700; }
.bhs-lookup__row { display: flex; gap: 8px; align-items: center; }
.bhs-lookup__row .bhs-form-input { flex: 1 1 auto; }
.bhs-lookup__row .bhs-form-btn { flex: 0 0 auto; }
.bhs-link a,
.bhs-form-page .bhs-stage a,
.bhs-step-help a,
.bhs-call a { color: var(--bhs-green-ink); }
.bhs-call { max-width: 40rem; margin: 48px auto; padding: 24px; }
.bhs-select {
  background-image: linear-gradient(45deg, transparent 50%, #197443 50%), linear-gradient(135deg, #197443 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
@media (max-width: 500px) {
  .bhs-field { display: flex; flex-direction: column; }
  .bhs-form-label,
  .bhs-form-input:focus + .bhs-form-label,
  .bhs-form-input:not(:placeholder-shown) + .bhs-form-label,
  .bhs-form-input.is-filled + .bhs-form-label {
    position: static;
    order: -1;
    transform: none;
    top: auto;
    margin: 0 0 6px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    font-size: 14px;
    background: transparent;
  }
  .bhs-form-input,
  .bhs-form-input:focus,
  .bhs-form-input:not(:placeholder-shown) {
    order: 0;
    padding: 14px 12px;
    font-size: 13px;
  }
  .bhs-field .bhs-tick { top: 0; right: 0; width: 18px; height: 18px; }
  .bhs-form-label { padding-right: 24px; }
}
.bhs-review { margin: 0 0 8px; }
.bhs-review-row { display: grid; gap: 2px; margin: 0 0 12px; }
.bhs-review dt { font-size: 13px; color: #3d4a42; }
.bhs-review dd { margin: 0; font-weight: 650; }
body[data-screen="end"] .bhs-mobile-header__bar > span {
  background: var(--bhs-green);
}

#app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.bhs-date { padding-top: 22px; }
.bhs-date + .bhs-form-label {
  top: 10px;
  transform: none;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.bhs-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.bhs-options legend { margin: 0 0 8px; padding: 0; font-weight: 700; font-size: 14px; color: var(--bhs-text); }
.bhs-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px 52px 14px 14px;
  border: 1.5px solid var(--bhs-field-border);
  border-radius: var(--bhs-radius-input);
  background: var(--bhs-white);
  font-weight: 500;
  line-height: 1.4;
}
.bhs-option span:first-of-type { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.bhs-option input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--bhs-green-btn); }
.bhs-option .bhs-tick { top: 16px; right: 14px; transform: scale(0.6); }
.bhs-option:has(input:checked) .bhs-tick { opacity: 1; transform: scale(1); }
.bhs-options.is-error .bhs-option { border-color: var(--bhs-error); }
.bhs-options.is-error .bhs-form-error { display: block; }

select.bhs-form-input {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #5a5f5c 50%), linear-gradient(135deg, #5a5f5c 50%, transparent 50%);
  background-position: calc(100% - 18px) 26px, calc(100% - 13px) 26px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

textarea.bhs-form-input {
  height: auto;
  min-height: 120px;
  padding-top: 22px;
  resize: vertical;
}

select.bhs-form-input.is-filled,
textarea.bhs-form-input.is-filled,
select.bhs-form-input:focus,
textarea.bhs-form-input:focus {
  padding-top: 22px;
}

.bhs-field.is-valid .bhs-hint,
.bhs-field.is-error .bhs-hint { display: block; }
.bhs-field:has(select) .bhs-tick { right: 36px; }

select.bhs-form-input.is-filled + .bhs-form-label,
textarea.bhs-form-input.is-filled + .bhs-form-label,
select.bhs-form-input:focus + .bhs-form-label,
textarea.bhs-form-input:focus + .bhs-form-label {
  top: 10px;
  transform: none;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.bhs-choices {
  margin: 0;
  padding: 14px 16px 8px;
  border: 1.5px solid var(--bhs-field-border);
  border-radius: var(--bhs-radius-input);
  background: var(--bhs-white);
}
.bhs-choices.is-error { border-color: var(--bhs-error); box-shadow: 0 0 0 4px rgba(214, 54, 55, 0.16); }
.bhs-choices legend {
  padding: 0 4px;
  font-weight: 700;
  font-size: 13px;
  color: var(--bhs-muted);
}
.bhs-choices label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  font-weight: 500;
  line-height: 1.4;
}
.bhs-choices input,
.bhs-check input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--bhs-green-btn);
  flex: none;
}

.bhs-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--bhs-field-border);
  border-radius: var(--bhs-radius-input);
  background: var(--bhs-white);
  font-weight: 600;
  line-height: 1.45;
}
.bhs-check.is-error,
.bhs-choice-wrap.is-error .bhs-check { border-color: var(--bhs-error); }
.bhs-check + .bhs-form-error { margin-top: 6px; }
.bhs-check.is-error + .bhs-form-error,
.bhs-choice-wrap.is-error .bhs-form-error,
.bhs-choices.is-error .bhs-form-error { display: block; }

.bhs-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bhs-form-reassurance {
  margin: 0 0 28px;
}

.bhs-photo-hold {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(40, 40, 40, 0.28);
  border-radius: 8px;
  background: var(--bhs-white);
}
.bhs-photo-hold__label { margin: 0 0 4px; font-weight: 700; }
.bhs-photo-hold__note { margin: 0; color: var(--bhs-muted); font-size: 13px; }

.bhs-step-help {
  margin: 0 0 22px;
  max-width: 40em;
  color: var(--bhs-text);
  line-height: 1.5;
}

.bhs-notice {
  margin: 0 0 22px;
  padding: 16px 18px 4px;
  border: 1px solid rgba(40, 40, 40, 0.12);
  border-radius: 8px;
  background: var(--bhs-white);
  color: var(--bhs-text);
  line-height: 1.5;
  max-width: 42em;
}
.bhs-notice__status {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff6e5;
  color: #6b3e00;
  font-size: 13px;
  font-weight: 600;
}
.bhs-notice h2 {
  margin: 0 0 12px;
  font-family: var(--bhs-font-heading);
  font-size: 22px;
  line-height: 1.25;
}
.bhs-notice p { margin: 0 0 12px; }
.bhs-notice a { color: var(--bhs-green-btn); }

@media (max-width: 900px) {
  body.bhs-mid .bhs-stage {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }
  body.bhs-mid .bhs-stage__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  body.bhs-mid .bhs-form-step.is-active {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  body.bhs-mid .bhs-form-actions,
  body[data-screen="name"] .bhs-form-actions {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    margin-top: auto;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: transparent;
  }
}

@media (min-width: 1024px) {
  body[data-screen="welcome"],
  body[data-screen="end"] {
    height: 100vh;
    overflow: hidden;
  }
  body[data-screen="welcome"] #app,
  body[data-screen="end"] #app {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
  body[data-screen="welcome"] .bhs-shell,
  body[data-screen="end"] .bhs-shell {
    min-height: 0;
    overflow: hidden;
  }
  body[data-screen="welcome"] .bhs-form-title,
  body[data-screen="end"] .bhs-form-title {
    font-size: 40px;
    margin-bottom: 10px;
  }
  body[data-screen="welcome"] .bhs-form-intro,
  body[data-screen="end"] .bhs-form-intro {
    margin-bottom: 16px;
  }
  body[data-screen="welcome"] .bhs-stage__scroll,
  body[data-screen="end"] .bhs-stage__scroll {
    padding-top: 28px;
    padding-bottom: 16px;
  }
  body[data-screen="welcome"] .bhs-form-prefooter,
  body[data-screen="end"] .bhs-form-prefooter {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  body[data-screen="welcome"] .bhs-prefooter-logo,
  body[data-screen="end"] .bhs-prefooter-logo {
    height: 40px;
  }
  body[data-screen="welcome"] .bhs-form-copyright,
  body[data-screen="end"] .bhs-form-copyright {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
