/* Ver.3.16.1: the approved form UX part of Ver.3.17 only. */
/* Form fields: built-in CF7 validation tips, plus a readable top-level summary.
 * Keep mail, recipient, spam handling and autoresponder configuration untouched. */
.cd40-form-test .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea),
.cd41-intake-form .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea),
  .cd31656-apply-section .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea) {
  line-height:1.55;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.cd40-form-test .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea):focus,
.cd41-intake-form .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea):focus,
  .cd31656-apply-section .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea):focus {
  border-color:#2e658d;
  box-shadow:0 0 0 3px rgba(46,101,141,.12);
}
.cd40-form-test .wpcf7 :is(input,select,textarea).wpcf7-not-valid,
.cd41-intake-form .wpcf7 :is(input,select,textarea).wpcf7-not-valid,
  .cd31656-apply-section .wpcf7 :is(input,select,textarea).wpcf7-not-valid {
  border:2px solid #b52d36!important;
  background:#fffafa;
  box-shadow:0 0 0 2px rgba(181,45,54,.08);
}
.cd40-form-test .wpcf7 .wpcf7-not-valid-tip,
.cd41-intake-form .wpcf7 .wpcf7-not-valid-tip,
  .cd31656-apply-section .wpcf7 .wpcf7-not-valid-tip {
  display:block;
  width:fit-content;
  max-width:100%;
  margin-top:6px;
  padding:3px 8px 4px;
  font-size:13px;
  font-weight:700;
  line-height:1.65;
  color:#a51f2b;
  background:#fff2f0;
  border-left:3px solid #ba3440;
  border-radius:2px;
}
.cd40-form-test .wpcf7 .cd40-acceptance,
.cd41-intake-form .wpcf7 .cd40-acceptance,
  .cd31656-apply-section .wpcf7 .cd40-acceptance { line-height:1.9; border-radius:9px; }
.cd40-form-test .wpcf7 .cd40-acceptance:has(.wpcf7-not-valid-tip),
.cd41-intake-form .wpcf7 .cd40-acceptance:has(.wpcf7-not-valid-tip),
  .cd31656-apply-section .wpcf7 .cd40-acceptance:has(.wpcf7-not-valid-tip) {
  border:2px solid #b52d36;
  background:#fff9f8;
}
.cd40-form-test .wpcf7 .wpcf7-response-output,
.cd41-intake-form .wpcf7 .wpcf7-response-output,
  .cd31656-apply-section .wpcf7 .wpcf7-response-output { margin:17px 0!important; padding:13px 15px!important; border-radius:7px; line-height:1.75; font-size:14px; }
.cd40-form-test .wpcf7 form[data-status="invalid"] .wpcf7-response-output,
.cd41-intake-form .wpcf7 form[data-status="invalid"] .wpcf7-response-output,
  .cd31656-apply-section .wpcf7 form[data-status="invalid"] .wpcf7-response-output {
  border-color:#b52d36;
  color:#852028;
  background:#fff5f3;
}
.cd40-form-test .wpcf7 .cd317-error-summary,
.cd41-intake-form .wpcf7 .cd317-error-summary,
  .cd31656-apply-section .wpcf7 .cd317-error-summary {
  margin:0 0 22px;
  scroll-margin-top:98px;
  padding:14px 15px;
  border:2px solid #b52d36;
  border-radius:7px;
  color:#84242b;
  background:#fff6f4;
  font-weight:700;
  line-height:1.8;
  font-size:14px;
}
.cd40-form-test .wpcf7 .cd317-error-summary:focus,
.cd41-intake-form .wpcf7 .cd317-error-summary:focus,
  .cd31656-apply-section .wpcf7 .cd317-error-summary:focus { outline:3px solid #b58b46; outline-offset:2px; }
@media (max-width:580px) {
  .cd40-form-test .wpcf7 .wpcf7-not-valid-tip,
  .cd41-intake-form .wpcf7 .wpcf7-not-valid-tip,
  .cd31656-apply-section .wpcf7 .wpcf7-not-valid-tip { font-size:12.5px; }
  .cd40-form-test .wpcf7 .cd317-error-summary,
  .cd41-intake-form .wpcf7 .cd317-error-summary,
  .cd31656-apply-section .wpcf7 .cd317-error-summary { font-size:13px; }
  .cd40-form-test .wpcf7,.cd41-intake-form .wpcf7,
  .cd31656-apply-section .wpcf7 { max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .cd40-form-test .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea),
  .cd41-intake-form .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea),
  .cd31656-apply-section .wpcf7 :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea) { transition:none; }
}
