/* =============== Gradient Leads – Form styles =============== */
/* variáveis com fallbacks; se já tiver no tema, mantêm as suas */
:root{
  --gh-radius: 16px;
  --gh-radius-sm: 12px;
  --gh-gap: 20px;
  --gh-border: 1px solid rgba(15, 23, 42, .08);
  --gh-shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --gh-bg: #ffffff;
  --gh-fg: #0f172a;         /* slate-900 */
  --gh-fg-2: #475569;       /* slate-600 */
  --gh-line: rgba(15, 23, 42, .10);
  --gh-focus: #6d28d9;      /* fallback roxo */
  --gh-grad-a: #6d28d9;     /* ajuste p/ sua paleta */
  --gh-grad-b: #0ea5e9;
}

/* container do form */
.gh-lead-form{
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  background: var(--gh-bg);
  border: var(--gh-border);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  color: var(--gh-fg);
}

/* grid dos campos principais */
.gh-lead-form .grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gh-gap);
  margin-bottom: 16px;
}
@media (max-width: 640px){
  .gh-lead-form .grid{ grid-template-columns: 1fr; }
}

/* labels + tipografia */
.gh-lead-form label{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gh-fg);
}

/* inputs e textarea */
.gh-lead-form input[type="text"],
.gh-lead-form input[type="email"],
.gh-lead-form input[type="tel"],
.gh-lead-form textarea{
  appearance: none;
  width: 100%;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-sm);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.4;
  color: var(--gh-fg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.gh-lead-form textarea{ min-height: 120px; resize: vertical; }

/* estados */
.gh-lead-form input::placeholder,
.gh-lead-form textarea::placeholder{ color: #94a3b8; } /* slate-400 */

.gh-lead-form input:focus,
.gh-lead-form textarea:focus{
  outline: none;
  border-color: color-mix(in sRGB, var(--gh-focus) 60%, #fff);
  box-shadow: 0 0 0 3px color-mix(in sRGB, var(--gh-focus) 20%, transparent);
}

/* invalidação nativa (leve) */
.gh-lead-form input:required:invalid{ border-color: rgba(220, 38, 38, .35); } /* red-600/35 */

/* botão – se já existir .btn .btn-primary no tema, isso só refina dentro do form */
.gh-lead-form .btn,
.gh-lead-form button[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
  background-image: linear-gradient(135deg, var(--gh-grad-a), var(--gh-grad-b));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.gh-lead-form .btn:hover,
.gh-lead-form button[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.gh-lead-form .btn:active,
.gh-lead-form button[type="submit"]:active{
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

/* notas de apoio e sucesso */
.gh-lead-form .form-note{
  margin-top: 10px;
  font-size: .9rem;
  color: var(--gh-fg-2);
}

.gh-lead-form .form-success{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, .10);   /* emerald-500/10 */
  color: #065f46;                         /* emerald-800 */
  border: 1px solid rgba(16, 185, 129, .25);
}

/* estado “enviando” opcional (se depois você adicionar um disabled) */
.gh-lead-form button[disabled]{
  opacity: .6; cursor: not-allowed; transform: none;
}

