/* WLC R240 — Website ZERO SUBCOPY
   Removes UI subtitles/helper/instructional sub-copy from public pages/forms.
   Main headings, marketing/body content, data, controls and legal/validation feedback remain. */

.wlx-apply-subtitle,
.wlc-ui-subtitle,
.wlc-ui-helper,
[class~="subtitle"],
[class~="sub-title"],
[class~="helper"],
.help-text,
.helper-text,
.form-help,
.form-hint,
.field-help,
.hint,
[data-wlc-optional-subtitle],
[data-wlc-optional],
[data-wlc-persistent] {
  display:none !important;
}

/* Header sub-copy: keep the heading, remove the explanatory line directly attached to it. */
.section-head > p,
.section-head > div > p,
.wlx-form-section-head p,
.wlx-page-head p,
.wlx-section-head p,
.wlx-modal-head p,
.wlc-page-head p,
.wlc-section-head p,
.form-head p,
.modal-head p,
.dialog-head p,
.popup-head p {
  display:none !important;
}

/* Form helper lines and upload hints. */
.field > small:not(.error):not(.field-error):not(.validation-error),
.wlx-field > small:not(.wlx-error),
.wlx-upload > span,
.wlx-submit-row > small,
.apply-form .wlc-inline-26,
#requirement-form .wlc-inline-25,
#requirement-form .wlc-inline-26 {
  display:none !important;
}

/* Critical/legal feedback remains available, but form feedback controls its own visibility.
   R241 hard fix: success/error boxes must stay hidden until submit/validation logic reveals them. */
.error,
.field-error,
.validation-error,
.warning,
.alert,
[role="alert"],
[aria-live="assertive"],
.wlc-legal-consent,
.wlx-consent,
.legal-consent,
.privacy-consent {
  display:revert !important;
}

/* Do not force these visible on initial page load. Their page/runtime CSS is authoritative. */
.success-box,
.wlx-error,
.wlx-success {
  /* intentionally no display override */
}

/* R242 — public legal consent professional layout hard fix */
.wlc-legal-consent,
.wlx-consent,
.legal-consent,
.privacy-consent {
  display:grid !important;
  grid-template-columns:20px minmax(0,1fr) !important;
  align-items:start !important;
  column-gap:12px !important;
  width:100% !important;
  margin:8px 0 10px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  font-size:13.5px !important;
  line-height:1.6 !important;
  font-weight:600 !important;
  color:#4f5f73 !important;
}

.wlc-legal-consent input,
.wlx-consent input,
.legal-consent input,
.privacy-consent input {
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  margin:2px 0 0 0 !important;
  padding:0 !important;
  border-radius:4px !important;
  flex:none !important;
  align-self:start !important;
  accent-color:#f97316 !important;
  box-shadow:none !important;
}

.wlc-legal-consent span,
.wlx-consent span,
.legal-consent span,
.privacy-consent span {
  display:block !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  font-size:13.5px !important;
  line-height:1.6 !important;
  font-weight:600 !important;
  color:#1f3b63 !important;
}

.wlc-legal-consent a,
.wlx-consent a,
.legal-consent a,
.privacy-consent a {
  color:#2563eb !important;
  text-decoration:underline !important;
  text-underline-offset:2px !important;
  font-weight:800 !important;
}

body.wlc-apply-page .wlc-legal-consent,
body.wlc-contact-page .wlc-legal-consent,
body.wlc-employers-page .wlc-legal-consent,
body.wlc-partner-page .wlc-legal-consent {
  margin-top:6px !important;
  margin-bottom:12px !important;
}

@media(max-width:760px){
  .wlc-legal-consent,
  .wlx-consent,
  .legal-consent,
  .privacy-consent {
    grid-template-columns:18px minmax(0,1fr) !important;
    column-gap:10px !important;
    font-size:13px !important;
    line-height:1.58 !important;
  }

  .wlc-legal-consent span,
  .wlx-consent span,
  .legal-consent span,
  .privacy-consent span {
    font-size:13px !important;
    line-height:1.58 !important;
  }
}
