/* Contact Form 7 magnetic submit button. */
.wpcf7-form input[type="submit"].wpcf7-submit {
  --mx: 0px;
  --my: 0px;
  opacity: .45;
  translate: var(--mx) var(--my);
  scale: 1;
  transform: none;
  box-shadow: none;
  will-change: auto;
  transition: opacity 200ms ease, box-shadow 250ms ease;
}

.wpcf7-form input[type="submit"].wpcf7-submit.is-ready {
  opacity: 1;
  box-shadow:
    0 12px 32px -10px rgba(209, 125, 28, 1),
    0 0 0 1px rgba(209, 125, 28, 1);
  will-change: translate;
  animation: cnCf7SubmitWake 450ms cubic-bezier(.2, .8, .2, 1) both;
}

.wpcf7-form input[type="submit"].wpcf7-submit:hover,
.wpcf7-form input[type="submit"].wpcf7-submit:active {
  transform: none;
}

.wpcf7-form input[type="submit"].wpcf7-submit:focus-visible {
  outline: 3px solid #58a4ff;
  outline-offset: 4px;
}

.wpcf7-form.submitting input[type="submit"].wpcf7-submit {
  --mx: 0px !important;
  --my: 0px !important;
  translate: 0 0;
  scale: 1;
  animation: none;
  will-change: auto;
}

.cn-cf7-submit-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;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes cnCf7SubmitWake {
  0%, 100% { scale: 1; }
  42% { scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  .wpcf7-form input[type="submit"].wpcf7-submit,
  .wpcf7-form input[type="submit"].wpcf7-submit.is-ready {
    --mx: 0px !important;
    --my: 0px !important;
    translate: 0 0 !important;
    scale: 1 !important;
    animation: none !important;
    will-change: auto;
  }
}
