/* ── Página de contato — complementa home.css (cores, fontes, menu, rodapé) ── */
.pg-contato { background: var(--bg); }
.ct { position: relative; padding: calc(var(--top) + 56px) 0 96px; overflow: hidden; }

/* fundo discreto */
.ct-bg { position: absolute; inset: 0; pointer-events: none; }
.ct-orb { position: absolute; width: 640px; height: 640px; border-radius: 50%; left: -200px; top: -120px; background: radial-gradient(circle, rgba(200,255,0,.10), transparent 62%); }
.ct-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 70%); }

.ct-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }

/* ── coluna da esquerda ── */
.ct-side { position: sticky; top: calc(var(--top) + 32px); }
.ct-side h1 { font-family: var(--display); font-size: clamp(32px, 3.8vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.ct-lede { margin-top: 16px; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 460px; }
.ct-canais { display: grid; gap: 10px; margin-top: 30px; max-width: 460px; }
.ct-canais .cta-item { text-decoration: none; color: inherit; }

.ct-passos { list-style: none; counter-reset: p; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.ct-passos li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: start; }
.ct-passos li::before { grid-row: 1 / span 2; }
.ct-passos b, .ct-passos span { grid-column: 2; }
.ct-passos li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--accent); background: rgba(200,255,0,.08); border: 1px solid rgba(200,255,0,.25); }
.ct-passos b { display: block; font-weight: 600; font-size: 15px; line-height: 30px; }
.ct-passos span { display: block; color: var(--text-3); font-size: 13.5px; line-height: 1.45; }

/* ── cartão do formulário ── */
.ct-form-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); padding: 34px 36px 30px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.ct-h2 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ct-h2 + .ct-hint { margin-top: 4px; }
.ct-hint { color: var(--text-3); font-size: 13.5px; }
.ct-campos ~ .ct-h2, .ct-err + .ct-h2 { margin-top: 28px; }

/* seletor de sistemas */
.ct-sistemas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ct-sys { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 30px 11px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; min-width: 0; }
.ct-sys:hover { border-color: rgba(255,255,255,.25); transform: translateY(-1px); }
.ct-sys input { position: absolute; opacity: 0; pointer-events: none; }
.ct-sys-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--c) 16%, transparent); flex-shrink: 0; }
.ct-sys-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ct-sys-txt b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.ct-sys-txt small { font-size: 12px; color: var(--text-3); line-height: 1.25; }
.ct-sys::after { content: ''; position: absolute; right: 10px; top: 10px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-2); background: var(--bg); transition: border-color .15s, background .15s; }
.ct-sys:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); }
.ct-sys:has(input:checked)::after { border-color: var(--c); background: var(--c); box-shadow: inset 0 0 0 3px var(--bg); }
.ct-sys:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-sys-custom .ct-sys-ico { color: var(--accent); }
.ct-sys-outro .ct-sys-ico { color: var(--text-2); font-weight: 700; letter-spacing: 1px; }

/* campos */
.ct-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 16px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field-full { grid-column: 1 / -1; }
.ct-field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.ct-opc { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 4px; }
.ct-field input, .ct-field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); font: 15px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--text-3); }
.ct-field input:focus, .ct-field textarea:focus { border-color: rgba(200,255,0,.6); box-shadow: 0 0 0 3px rgba(200,255,0,.12); }
.ct-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.ct-field.invalid input, .ct-field.invalid textarea { border-color: #ff6b6b; }
.ct-err { margin: 0; font-size: 12.5px; color: #ff6b6b; min-height: 0; }
.ct-err:empty { display: none; }
.ct-sistemas + .ct-err { margin-top: 8px; }

/* ações */
.ct-acoes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.ct-enviar { min-width: 200px; justify-content: center; gap: 10px; }
.ct-priv { font-size: 12.5px; color: var(--text-3); }
.ct-spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ct-spin .7s linear infinite; }
.ct-enviar.loading .ct-spin { display: inline-block; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; }
.ct-msg.show { display: block; }
.ct-msg.err { background: rgba(255,107,107,.12); color: #ff8787; border: 1px solid rgba(255,107,107,.3); }
.ct-form-card.shake { animation: ct-shake .4s ease; }
@keyframes ct-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* sucesso */
.ct-ok { text-align: center; padding: 26px 10px 10px; }
.ct-ok-ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.ct-ok h2 { font-family: var(--display); font-size: 26px; font-weight: 700; }
.ct-ok p { margin-top: 10px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.ct-ok-sub { margin-top: 26px !important; font-size: 14px !important; color: var(--text-3) !important; }
.ct-ok .btn { margin-top: 12px; }
.ct-ok-wa { margin-right: 8px; }

/* ── responsivo ── */
@media (max-width: 1080px) { .ct-grid { gap: 36px; } .ct-sistemas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ct { padding-top: calc(var(--top) + 20px); padding-bottom: 72px; }
  .ct-grid { grid-template-columns: 1fr; gap: 28px; }
  .ct-side { position: static; }
  .ct-passos { display: none; }
  .ct-canais { grid-template-columns: 1fr 1fr; }
  .ct-form-card { padding: 24px 20px 22px; }
}
@media (max-width: 640px) {
  .ct-canais { grid-template-columns: 1fr; }
  .ct-sistemas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ct-sys { padding: 10px; gap: 9px; }
  .ct-sys-ico { width: 32px; height: 32px; font-size: 15px; }
  .ct-sys-txt b { font-size: 13px; }
  .ct-sys-txt small { font-size: 11.5px; }
  .ct-sys::after { right: 8px; top: 8px; width: 14px; height: 14px; }
  .ct-campos { grid-template-columns: 1fr; }
  .ct-acoes { flex-direction: column; align-items: stretch; }
  .ct-enviar { width: 100%; }
  .ct-priv { text-align: center; }
  .ct-ok-wa { margin-right: 0; }
  .ct-ok .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ct-sys, .ct-form-card { transition: none; animation: none !important; } }
