/* Formulário de contato -> CRM TecnoFink. Usa as variáveis de cor das páginas, com fallback. */
.crm-form { font-family: 'Manrope', system-ui, sans-serif; color: var(--ink, #18182A); }
.crm-form *, .crm-form *::before, .crm-form *::after { box-sizing: border-box; }

.crm-grid { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
@media (min-width: 640px) {
  .crm-grid { grid-template-columns: 1fr 1fr; }
  .crm-span { grid-column: 1 / -1; }
}

.crm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.crm-field > label { font-size: 0.85rem; font-weight: 600; color: var(--ink, #18182A); }
.crm-req { color: var(--warn, #4F74F0); font-weight: 700; }

.crm-form input[type="text"], .crm-form input[type="email"], .crm-form input[type="tel"],
.crm-form select, .crm-form textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px evita zoom no iPhone */
  color: var(--ink, #18182A); background: var(--bg, #F4F6FC);
  border: 1.5px solid var(--line-2, #D4D4DA); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.crm-form textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.crm-form select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A4A5A' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.crm-form ::placeholder { color: var(--ink-3, #8E8E9A); }
.crm-form input:focus, .crm-form select:focus, .crm-form textarea:focus {
  outline: none; border-color: var(--accent, #0c0059); background: var(--bg-pure, #fff);
  box-shadow: 0 0 0 3px rgba(12, 0, 89, 0.12);
}
.crm-field.has-error input, .crm-field.has-error select, .crm-field.has-error textarea { border-color: #C62828; }

.crm-error { margin: 0; font-size: 0.8rem; font-weight: 600; color: #B3261E; line-height: 1.35; }
.crm-error:empty { display: none; }
.crm-form-error { margin-top: 14px; }

.crm-consent { margin-top: 18px; }
.crm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2, #4A4A5A); cursor: pointer; }
.crm-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent, #0c0059); }
.crm-consent-2 { margin-top: 10px; }
.crm-opt { color: var(--ink-3, #8E8E9A); }
.crm-check a { color: var(--accent, #0c0059); font-weight: 600; text-decoration: underline; }

.crm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.crm-submit {
  font: inherit; font-weight: 700; font-size: 1rem; color: #fff;
  background: var(--accent, #0c0059); border: none; border-radius: 999px;
  padding: 14px 34px; min-height: 48px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.crm-submit:hover:not(:disabled) { background: var(--accent-2, #1F1675); transform: translateY(-1px); }
.crm-submit:focus-visible { outline: 3px solid var(--warn, #4F74F0); outline-offset: 2px; }
.crm-submit:disabled { opacity: .6; cursor: wait; }
.crm-note { margin: 0; font-size: 0.78rem; color: var(--ink-3, #8E8E9A); }
@media (max-width: 480px) { .crm-submit { width: 100%; } }

.crm-status:empty { display: none; }
.crm-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; line-height: 1.5; border-left: 4px solid; outline: none; }
.crm-status.is-success { background: #E8F6EE; border-color: #2DBA70; color: #14532D; }
.crm-status.is-warn { background: #FFF6E0; border-color: #E0A100; color: #5C4300; }
.crm-status.is-error { background: #FDECEC; border-color: #C62828; color: #6B1414; }
.crm-status a { color: inherit; font-weight: 700; }

.crm-test-banner { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 0.85rem; line-height: 1.5;
  background: #FFF6E0; border: 1.5px dashed #E0A100; color: #5C4300; }
.crm-test-banner a { color: inherit; font-weight: 700; }

/* Armadilha para robôs: fora da tela, sem type="hidden" */
.crm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.crm-captcha:empty { display: none; }
.crm-captcha { margin-top: 12px; }
