/* ACT directory form controls: native checks and file picker. */
.act-p1-wrap input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  flex: 0 0 20px;
  padding: 0 !important;
  margin: 3px 0 0 !important;
  accent-color: #b3272d;
  cursor: pointer;
}
.act-p1-wrap label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
.act-p1-wrap input[type="checkbox"]:focus-visible {
  outline: 2px solid #b3272d;
  outline-offset: 3px;
}
.act-p1-wrap input[type="file"] {
  appearance: auto;
  display: block;
  min-width: 0;
  max-width: 100%;
  height: auto;
  color: #111;
  background: #fff;
  cursor: pointer;
}
.act-p1-wrap input[type="file"]::file-selector-button {
  appearance: auto;
  padding: 8px 12px;
  margin-right: 10px;
  border: 1px solid #6b7280;
  border-radius: 4px;
  background: #f3f4f6;
  color: #111;
  cursor: pointer;
}

/* Viewport-visible form validation and upload status. */
.act-p1-wrap form[data-act-visible-validation="1"] > div[role="alert"] {
  position:fixed;z-index:100000;left:50%;bottom:20px;
  transform:translateX(-50%);width:min(900px,calc(100vw - 32px));
  max-height:40vh;overflow:auto;box-shadow:0 8px 28px rgba(0,0,0,.2);
  margin:0!important;
}
