/* =========================================================
   Contato — no creme da home

   A página existe porque a /contato herdada do WordPress era um formulário
   morto: abas quebradas, campos apontando para um post_id que não existe
   mais e nenhum backend do outro lado. Quem escrevia não era respondido
   porque a mensagem não chegava a lugar nenhum.

   Uma coisa só na tela: o formulário, centrado, com a chamada em cima.
   Quem chega aqui quer escrever — não escolher para quem escrever.
   ========================================================= */

.ct-main {
  width: min(100% - clamp(32px, 6vw, 96px), 1240px);
  margin-inline: auto;
}

.ct-dobra {
  display: grid;
  justify-items: center;
  gap: clamp(24px, 3.4vw, 38px);
  padding-block: clamp(28px, 4vw, 56px) clamp(44px, 6vw, 80px);
}

/* --- chamada --- */
.ct-copy {
  max-width: 22ch;
  text-align: center;
}

.ct-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.ct-copy h1 em { font-style: normal; color: var(--rose); }

.ct-lead {
  /* mais larga que o título de propósito: o h1 quebra em poucas palavras
     por linha, o texto de apoio quer linha de leitura normal */
  width: max-content;
  max-width: min(52ch, 100%);
  margin: clamp(14px, 2vw, 18px) auto 0;
  color: var(--text);
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  font-weight: 600;
  line-height: 1.55;
}

/* --- o formulário --- */
.ct-form-card {
  width: min(100%, 680px);
  padding: clamp(24px, 3vw, 38px);
  border: 1.5px solid var(--line);
  border-radius: clamp(22px, 3vw, 32px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* nome+e-mail e telefone+assunto dividem a linha: encurta a página sem
   apertar nenhum campo, porque o cartão tem 680px de largura */
.ct-form__linha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ct-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-field { display: flex; flex-direction: column; gap: 6px; }

.ct-field > span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.ct-field > span small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid rgba(122, 99, 168, 0.28);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ct-field input,
.ct-field select { min-height: 48px; padding-block: 0; }

.ct-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.ct-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a63a8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgba(119, 125, 157, 0.72); font-weight: 500; }

.ct-field input:focus-visible,
.ct-field select:focus-visible,
.ct-field textarea:focus-visible {
  outline: none;
  border-color: var(--lilac-ink);
  box-shadow: 0 0 0 3px rgba(122, 99, 168, 0.16);
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  color: #fffdf7;
  background: var(--rose);
  box-shadow: 0 14px 30px rgba(196, 96, 139, 0.26);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.ct-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.ct-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ct-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }

.ct-form__nota {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.ct-form__nota[data-tom="erro"] { color: #b0324a; }
.ct-form__nota[data-tom="ok"] { color: var(--green-ink); }

/* --- estado de sucesso: o formulário some e dá lugar ao agradecimento --- */
.ct-form-card.is-enviado .ct-form { display: none; }

.ct-obrigado {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.ct-obrigado strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.ct-obrigado p { margin: 0; color: var(--text); font-size: 0.94rem; font-weight: 600; line-height: 1.5; }

/* --- telas menores --- */
@media (max-width: 620px) {
  .ct-main { width: min(100% - 28px, 1240px); }

  /* os pares viram uma coluna: 160px por campo não dá para digitar e-mail */
  .ct-form__linha { grid-template-columns: 1fr; }

  .ct-copy { max-width: none; }
  .ct-lead { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-submit { transition: none; }
  .ct-submit:hover { transform: none; }
}
