/* Página de contato (page-templates/page-contato.php). Só classes cp-contact-*. */

.cp-contact {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
  color: #16142B;
}
.cp-contact *,
.cp-contact *::before,
.cp-contact *::after { box-sizing: border-box; }
.cp-contact a { color: #614BC3; text-decoration: none; font-weight: 600; }
.cp-contact a:hover { color: #4A36A3; }
.cp-contact a:focus-visible { outline: 2px solid #614BC3; outline-offset: 2px; border-radius: 2px; }

.cp-contact-crumbs { font-size: 13px; color: #6B6A80; }
.cp-contact .cp-contact-crumbs a { color: #6B6A80; font-weight: 400; }
.cp-contact .cp-contact-crumbs a:hover { color: #16142B; }

.cp-contact-layout {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 96px;
  align-items: flex-start;
}
.cp-contact-main {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cp-contact-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid #16142B;
}
.cp-contact-title {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #16142B;
}
.cp-contact-lead { margin: 0; font-size: 18px; line-height: 1.55; color: #4B4A63; }

/* Avisos */
.cp-contact-notice {
  margin: 0;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-contact-notice[hidden],
.cp-contact-formwrap[hidden] { display: none; }
.cp-contact-formwrap { display: flex; flex-direction: column; gap: 32px; }
.cp-contact-notice:focus { outline: none; }
.cp-contact-notice:focus-visible { outline: 2px solid #614BC3; outline-offset: 2px; }
.cp-contact-notice--ok { background: #EFEBFC; color: #16142B; border: 1px solid #C9C4E0; }
.cp-contact-notice--ok strong { font-size: 16px; font-weight: 700; }
.cp-contact-notice--error { background: #FDF0F0; color: #8A1C1C; border: 1px solid #F0C2C2; }

/* Formulário */
.cp-contact-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.cp-contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cp-contact-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cp-contact-field[hidden] { display: none; }
.cp-contact-field > label { font-size: 14px; font-weight: 600; color: #16142B; }

.cp-contact-input,
.cp-contact-textarea {
  width: 100%;
  border: 1px solid #C9C4E0;
  border-radius: 8px;
  font: 400 15px Inter, system-ui, sans-serif;
  color: #16142B;
  background: #FFFFFF;
  margin: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.cp-contact-input { height: 46px; padding: 0 14px; }
.cp-contact-textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; min-height: 120px; }
.cp-contact-input::placeholder,
.cp-contact-textarea::placeholder { color: #6B6A80; opacity: 1; }
.cp-contact-input:focus,
.cp-contact-textarea:focus { outline: none; }
.cp-contact-input:focus-visible,
.cp-contact-textarea:focus-visible,
.cp-contact-input:focus,
.cp-contact-textarea:focus {
  border-color: #614BC3;
  box-shadow: 0 0 0 3px rgba(97, 75, 195, 0.25);
}
.cp-contact-input[aria-invalid="true"],
.cp-contact-textarea[aria-invalid="true"] { border-color: #B42318; }

.cp-contact-hint { font-size: 13px; font-weight: 400; color: #6B6A80; }
.cp-contact-error { font-size: 13px; font-weight: 500; color: #B42318; }

/* Assunto: radios escondidos + labels como botões */
.cp-contact-topics { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-contact-topics legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; color: #16142B; }
.cp-contact-topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-contact-topic-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.cp-contact-topic {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #C9C4E0;
  background: #FFFFFF;
  color: #16142B;
  font: 500 14px Inter, system-ui, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.cp-contact-topic:hover { border-color: #16142B; }
.cp-contact-topic-input:checked + .cp-contact-topic {
  background: #16142B;
  border-color: #16142B;
  color: #FFFFFF;
}
.cp-contact-topic-input:focus-visible + .cp-contact-topic {
  outline: 2px solid #614BC3;
  outline-offset: 2px;
}

/* Consentimento */
.cp-contact-consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.cp-contact-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #4B4A63;
  font-weight: 400;
  cursor: pointer;
}
.cp-contact-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #614BC3;
  flex-shrink: 0;
}
.cp-contact-consent input:focus-visible { outline: 2px solid #614BC3; outline-offset: 2px; }

/* Ações */
.cp-contact-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cp-contact-submit {
  height: 48px;
  padding: 0 26px;
  background: #614BC3;
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  font: 600 15px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.cp-contact-submit:hover { background: #4A36A3; }
.cp-contact-submit:focus-visible { outline: 2px solid #16142B; outline-offset: 3px; }
.cp-contact-actions-note { font-size: 14px; color: #6B6A80; }

/* Honeypot */
.cp-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Lateral */
.cp-contact-aside {
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.cp-contact-aside-block {
  padding: 16px 0;
  border-top: 1px solid #E6E4EF;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-contact-aside-block:last-child { border-bottom: 1px solid #E6E4EF; }
.cp-contact-aside-block h2 { margin: 0; font-size: 15px; font-weight: 700; color: #16142B; letter-spacing: normal; }
.cp-contact-aside-block p { margin: 0; font-size: 14px; line-height: 1.6; color: #4B4A63; }

@media (max-width: 767px) {
  .cp-contact { padding: 28px 16px 64px; }
  .cp-contact-title { font-size: 36px; }
  .cp-contact-lead { font-size: 17px; }
  .cp-contact-aside { max-width: none; }
  .cp-contact-submit { width: 100%; }
}
