/* Required-field marker. site.css is a compiled Tailwind build, so this lives
   outside it. */
.req {
  color: #b4432c;
  font-weight: 700;
  margin-left: .1em;
}
.req-legend .req { margin-left: 0; }

/* ── Submission failure fallback ──────────────────────────────────────
   If the send fails, the visitor gets their answers back as copyable text
   rather than losing them. Deliberately loud: this must not be mistaken
   for a success message. */
.mailform-failure {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: .875rem;
  background: #fdf3f1;
  border: 2px solid #b4432c;
  box-shadow: 0 10px 30px -18px rgba(180, 67, 44, .8);
}

.mailform-failure__title {
  margin: 0 0 .5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8f2f1c;
}

.mailform-failure__lead {
  margin: 0 0 1rem;
  font-size: .9rem;
  line-height: 1.6;
  color: #5c2a1e;
}
.mailform-failure__lead a { color: #b4432c; text-decoration: underline; }

.mailform-failure__text {
  width: 100%;
  padding: .75rem .875rem;
  border-radius: .5rem;
  border: 1px solid #e0c4bc;
  background: #fff;
  color: #3a2018;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.55;
  resize: vertical;
}

.mailform-failure__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: .875rem;
}

.mailform-failure__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1.1rem;
  border: 1px solid #b4432c;
  border-radius: .5rem;
  background: #b4432c;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.mailform-failure__btn:hover { background: #8f2f1c; border-color: #8f2f1c; }

.mailform-failure__btn--ghost { background: transparent; color: #b4432c; }
.mailform-failure__btn--ghost:hover { background: #b4432c; color: #fff; }
