/*
  Styling for the enquiry forms' submit button, including the "submitting"
  loading state (see assets/js/form-submit-guard.js) that stops visitors
  double-clicking Submit and firing multiple enquiries.
*/

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 190px;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f9c8f, #257e73);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 156, 143, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.send-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 156, 143, 0.45);
}

.send-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(47, 156, 143, 0.35);
}

.send-button:focus-visible {
  outline: 3px solid rgba(47, 156, 143, 0.35);
  outline-offset: 2px;
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.send-button__spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: send-button-spin 0.7s linear infinite;
}

.send-button.is-submitting .send-button__spinner {
  display: inline-block;
}

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