/* The homepage photo form (CF7 162); no rules apply to other form placements. */
.expert-consultation .form-checkbox,
.expert-consultation .form-checkbox label {
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}

.expert-consultation .form-checkbox {
  min-width: 0;
  min-height: 0;
  padding-top: 3px;
}

.expert-consultation .form-checkbox__input + span {
  max-width: 100%;
  padding-left: 28px;
  line-height: 1.5;
}

.expert-consultation .form-checkbox a {
  color: inherit;
  white-space: normal;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.expert-consultation .form-checkbox a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.expert-consultation .form-checkbox__input + span::before {
  top: 0;
  width: 19px;
  height: 19px;
  border-color: rgba(255, 255, 255, .8);
  background-color: transparent;
}

.expert-consultation .form-checkbox__input:checked + span::before {
  border-color: #fff;
  background-color: #fff;
  background-image: none;
  content: '✓';
  color: #27343b;
  line-height: 17px;
  font-weight: 700;
}

.expert-consultation .form-checkbox__input:focus-visible + span::before {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.expert-consultation.expert-consultation--attempted input.expert-consultation__invalid {
  border: 2px solid #b52a37;
  background-color: #fff5f5;
}

.expert-consultation.expert-consultation--attempted input.expert-consultation__invalid::placeholder {
  color: #9d2231;
  opacity: 1;
}

/* Keep CF7's response and error relationships available to assistive technology. */
.expert-consultation .wpcf7-not-valid-tip,
.expert-consultation .expert-consultation__error,
.expert-consultation .expert-consultation__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 600px) {
  .expert-consultation .form-row:last-child {
    flex-direction: column;
    gap: 16px;
  }

  .expert-consultation .form-row:last-child > * {
    width: 100%;
  }

  .expert-consultation .form-checkbox {
    min-height: 0;
    padding-top: 0;
  }

  .expert-consultation input.form-field {
    font-size: 16px;
  }
}
