/* ==========================================================================
   CESURNES — Contact Form 7
   Its stylesheet is not loaded (inc/order-form.php): what its forms need of
   it, in the site's terms. Loaded on the pages with a form (functions.php):
   the Collection and Pièces uniques order dialog, the Sur mesure request.
   Each page lays its form out itself (order-dialog.css, sur-mesure.css).
   ========================================================================== */

.wpcf7 .hidden-fields-container { display: none; }

.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

/* -- invalid field ----------------------------------------------------- */
.wpcf7-form-control.wpcf7-not-valid { border-bottom-color: var(--c-terracota); }

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 300;
  color: var(--c-terracota);
}

/* -- sending ----------------------------------------------------------- */
/* The spinner shows only while sending, and takes no room otherwise. */
.wpcf7-spinner { display: none; }

.wpcf7-form.submitting .wpcf7-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-black);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cesurnes-spin 1s linear infinite;
}

@keyframes cesurnes-spin { to { transform: rotate(360deg); } }

/* The send button, while the form is sent. */
.wpcf7-form.submitting [type="submit"] {
  opacity: .6;
  pointer-events: none;
}

/* -- answer ------------------------------------------------------------ */
/* Contact Form 7's answer (sent, invalid fields, failure), none while idle. */
.wpcf7 .wpcf7-response-output {
  padding: 12px 16px;
  border: 1px solid var(--c-terracota);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--c-terracota);
}

.wpcf7 .wpcf7-response-output:empty,
.wpcf7 .init .wpcf7-response-output,
.wpcf7 .resetting .wpcf7-response-output,
.wpcf7 .submitting .wpcf7-response-output { display: none; }
