/* The approved intake layout also applies to the connected Ninja Forms form.
 * Scoped overrides beat legacy Layout & Styles presets without changing fields,
 * conditional visibility, validation, upload handling or notification actions. */
body .nwl-existing-intake,
body .nwl-existing-intake .nf-form-cont,
body .nwl-existing-intake .nf-form-wrap,
body .nwl-existing-intake .nf-form-layout,
body .nwl-existing-intake .nf-form-content,
body .nwl-existing-intake .nf-field,
body .nwl-existing-intake .nf-field-wrap,
body .nwl-existing-intake .nf-field-element {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}
body .nwl-existing-intake .nf-form-content {
  margin: 0 !important;
  padding: 0 !important;
}
body .nwl-existing-intake .nf-field-wrap,
body .nwl-existing-intake .nf-field-element {
  float: none !important;
}
body .nwl-existing-intake .nf-field-container {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
body .nwl-existing-intake .nf-field-label {
  width: 100% !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  text-align: left !important;
}
body .nwl-existing-intake .nf-field-label label {
  float: none !important;
  margin: 0 !important;
  color: #20343d !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}
body .nwl-existing-intake input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body .nwl-existing-intake select,
body .nwl-existing-intake textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #aab5b9 !important;
  border-radius: 2px !important;
  background-color: #fff !important;
  color: #163447 !important;
  -webkit-text-fill-color: #163447 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
body .nwl-existing-intake select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='m2 2 6 6 6-6' fill='none' stroke='%23163447' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 12px 8px !important;
}
body .nwl-existing-intake select option {
  background: #fff !important;
  color: #163447 !important;
}
body .nwl-existing-intake .listselect-wrap .nf-field-element > div {
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
}
/* Ninja Forms' opinionated preset draws a second arrow beside the select. */
body .nwl-existing-intake .listselect-wrap .nf-field-element > div::after {
  content: none !important;
}
body .nwl-existing-intake textarea {
  height: 120px !important;
  min-height: 100px !important;
  resize: vertical;
}
body .nwl-existing-intake input::placeholder,
body .nwl-existing-intake textarea::placeholder {
  color: #5b6b74 !important;
  -webkit-text-fill-color: #5b6b74 !important;
  opacity: 1;
}
body .nwl-existing-intake .submit-wrap input,
body .nwl-existing-intake .submit-wrap button,
body .nwl-existing-intake .file_upload-wrap input[type="button"],
body .nwl-existing-intake .file_upload-wrap button {
  box-sizing: border-box !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 11px 16px !important;
  border: 1px solid #163447 !important;
  border-radius: 2px !important;
  background: #163447 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  cursor: pointer;
}
body .nwl-existing-intake .submit-wrap input,
body .nwl-existing-intake .submit-wrap button {
  width: 100% !important;
  margin: 0 !important;
}
body .nwl-existing-intake .file_upload-wrap input[type="button"],
body .nwl-existing-intake .file_upload-wrap button {
  width: auto !important;
  max-width: 100%;
}
body .nwl-existing-intake .submit-container {
  margin-bottom: 0 !important;
}
body .nwl-existing-intake :is(input, select, textarea, button):focus-visible {
  outline: 2px solid #163447 !important;
  outline-offset: 3px;
}
body .nwl-existing-intake .nf-error .nf-element {
  border-color: #a32626 !important;
}
body .nwl-existing-intake .nf-error-msg,
body .nwl-existing-intake .ninja-forms-req-symbol {
  color: #a32626 !important;
}
body .nwl-existing-intake .nf-error-msg,
body .nwl-existing-intake .nf-form-fields-required,
body .nwl-existing-intake .nf-field-description {
  font-family: inherit;
  font-size: 12px !important;
  line-height: 1.5;
}
body .nwl-existing-intake .nf-form-fields-required {
  margin-bottom: 12px;
}
/* Sidebar forms always use a single column, even with saved half-width cells. */
body .nwl-contact-rail .nwl-existing-intake .nf-row {
  margin: 0 !important;
  flex-wrap: wrap;
}
body .nwl-contact-rail .nwl-existing-intake .nf-cell {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body .nwl-contact-rail .nwl-existing-intake .nf-field-container {
  margin-bottom: 10px !important;
}
body .nwl-contact-rail .nwl-existing-intake .nf-field-label label {
  font-size: 12px !important;
}
body .nwl-contact-rail .nwl-existing-intake textarea {
  height: 76px !important;
  min-height: 76px !important;
}
body .nwl-contact-rail .nwl-existing-intake .submit-container {
  margin-bottom: 0 !important;
}
