/* Self-hosted contact form — replaces the HubSpot form embed.
   Uses the Elevate theme's CSS variables (defined inline on each page)
   so the submit button matches the site's other buttons. */

.mr-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.mr-form__field {
  margin-bottom: 1.25rem;
}

.mr-form__field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mr-form__field input,
.mr-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
}

.mr-form__field input:focus,
.mr-form__field textarea:focus {
  outline: 2px solid var(--hsElevate--button--primary__backgroundColor, #5835f7);
  outline-offset: 1px;
  border-color: transparent;
}

.mr-form__field textarea {
  resize: vertical;
  min-height: 8rem;
}

/* Honeypot — visually removed, still in the DOM for bots */
.mr-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mr-form__submit {
  display: inline-block;
  cursor: pointer;
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-size: var(--hsElevate--button--primary__fontSize, 1rem);
  font-weight: var(--hsElevate--button--primary__fontWeight, 600);
  color: var(--hsElevate--button--primary__textColor, #eeeeee);
  background: var(--hsElevate--button--primary__backgroundColor, #5835f7);
  border: var(--hsElevate--button--primary__borderThickness, 0px) solid
    var(--hsElevate--button--primary__borderColor, transparent);
  border-radius: var(--hsElevate--button--primary__borderRadius, 50px);
  transition: background-color 0.15s ease;
}

.mr-form__submit:hover {
  background: var(--hsElevate--button--primary__hover--backgroundColor, #6441ff);
}

.mr-form__submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.mr-form__status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  min-height: 1.5em;
}

.mr-form__status--ok {
  color: #1a7f37;
  font-weight: 600;
}

.mr-form__status--error {
  color: #b42318;
  font-weight: 600;
}
