/* Formulário de contato no CTA final da home (ver dist/contact-form.js) */
.cf {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
.cf-form,
.cf-done {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cf-form[hidden],
.cf-done[hidden],
.cf-error[hidden],
.cf-wait[hidden] {
  display: none;
}
.cf-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.cf-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cf-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: rgba(247, 247, 247, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.cf-input::placeholder {
  color: var(--text-muted);
}
.cf-input:hover {
  border-color: rgba(247, 247, 247, 0.28);
}
.cf-input:focus {
  outline: none;
}
.cf-input:focus-visible {
  border-color: var(--green);
  background: rgba(247, 247, 247, 0.05);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.cf-input[aria-invalid="true"] {
  border-color: var(--red);
}
.cf-input[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(224, 74, 90, 0.2);
}
.cf-area {
  min-height: 120px;
  resize: vertical;
}
.cf-hint,
.cf-field-error,
.cf-error,
.cf-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cf-hint {
  color: var(--text-dim);
}
.cf-field-error {
  display: none;
  color: #ff7d8a;
}
.cf-field[data-invalid] .cf-field-error {
  display: block;
}
.cf-field[data-invalid] .cf-hint {
  display: none;
}
.cf-error {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(224, 74, 90, 0.4);
  border-radius: 12px;
  background: rgba(224, 74, 90, 0.08);
  color: #ffb3bb;
}
.cf-error a,
.cf-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cf-submit {
  width: 100%;
}
.cf-submit[aria-busy="true"] {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}
.cf-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(5, 5, 5, 0.25);
  border-top-color: #050505;
  border-radius: 50%;
  animation: cf-spin 0.7s linear infinite;
}
.cf-submit[aria-busy="true"] .cf-spinner {
  display: inline-block;
}
@keyframes cf-spin {
  to {
    transform: rotate(360deg);
  }
}
.cf-note {
  color: var(--text-dim);
}
.cf-done p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.55;
}
.cf-done .cf-title:focus {
  outline: none;
}
.cf-done .cf-title:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}
.cf-done .btn {
  align-self: flex-start;
}
.cf-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* O card do CTA sobe no hover; com o form dentro isso atrapalha a digitação */
.cta-grid.has-cf:hover,
.reveal.cta-grid.has-cf.is-visible:hover {
  transform: none;
}
.cta-grid.has-cf {
  align-items: start;
}
