/* Form2CRM – Frontend styles */
.form2crm-wrapper{max-width:720px;margin:24px auto;padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.form2crm-form{display:grid;grid-template-columns:1fr;gap:16px}
.form2crm-field label{display:block;font-weight:600;margin-bottom:6px}
.form2crm-field input[type="text"],
.form2crm-field input[type="email"],
.form2crm-field input[type="tel"],
.form2crm-field input[type="number"],
.form2crm-field input[type="date"],
.form2crm-field select,
.form2crm-field textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;outline:0}
.form2crm-field textarea{min-height:120px;resize:vertical}
.form2crm-actions{display:flex;gap:12px;justify-content:flex-end}
.form2crm-btn{appearance:none;border:0;border-radius:999px;padding:10px 16px;cursor:pointer;font-weight:600}
.form2crm-btn--primary{background:#111827;color:#fff}
.form2crm-btn--secondary{background:#f3f4f6}
.form2crm-alert{padding:12px 14px;border-radius:12px;margin:16px 0;font-weight:600}
.form2crm-alert--ok{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.form2crm-alert--error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.form2crm-required{color:#ef4444;margin-left:4px}
.form2crm-help{font-size:12px;color:#6b7280;margin-top:6px}




.form2crm-wrapper{
  width:100%;
}
.form2crm-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.form2crm-field label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
}
.form2crm-field input,
.form2crm-field textarea,
.form2crm-field select{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  outline:none;
}
.form2crm-field textarea{
  min-height:90px;
  resize:vertical;
}
.form2crm-required{ color:#ef4444; }

.form2crm-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  user-select:none;
}
.form2crm-help{
  margin-top:6px;
  color:#6b7280;
  font-size:13px;
}

.form2crm-actions{
  margin-top:8px;
}
.form2crm-btn{
  border:none;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
}
.form2crm-btn--primary{
  background:#111827;
  color:#fff;
}

.form2crm-alert{
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:12px;
}
.form2crm-alert--ok{ background:#ecfdf5; border:1px solid #34d399; }
.form2crm-alert--error{ background:#fef2f2; border:1px solid #f87171; }

/* ---- WhatsApp floating button ---- */
.f2c-wa-floating{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:none;
  background:#25D366;
  color:#fff;
  font-size:14px;
  font-weight:700;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.f2c-wa-floating:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(0,0,0,.3);
  background:#1ebe5d;
}
.f2c-wa-floating__text{ display:none; }
@media (min-width:480px){
  .f2c-wa-floating__text{ display:inline; }
}

/* ---- Modal ---- */
.f2c-wa-modal{
  position:fixed;
  inset:0;
  z-index:9998;
  display:none;
}
.f2c-wa-modal.is-open{ display:block; }

.f2c-wa-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}
.f2c-wa-modal__box{
  position:relative;
  max-width:420px;
  width:92%;
  margin:40px auto;
  background:#fff;
  border-radius:18px;
  padding:22px 18px 18px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
  max-height:calc(100vh - 80px);
  overflow-y:auto;
  animation:f2c-wa-pop .22s ease-out;
}
@keyframes f2c-wa-pop{
  from{ transform:translateY(10px); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}
.f2c-wa-modal__close{
  position:absolute;
  top:8px;
  right:12px;
  border:none;
  background:transparent;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.f2c-wa-modal__title{
  margin:0 0 6px;
  font-size:18px;
  font-weight:800;
}
.f2c-wa-modal__subtitle{
  margin:0 0 14px;
  font-size:13px;
  color:#6b7280;
  border-bottom:1px solid #e5e7eb;
  padding-bottom:12px;
}

/* Hide internal submit (we use our WhatsApp main button) */
.f2c-wa-modal__form-wrapper .form2crm-actions{
  display:none !important;
}

/* Main WhatsApp button */
.f2c-wa-primary{
  width:100%;
  border:none;
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  cursor:pointer;
  background:#25D366;
  color:#fff;
  margin-top:10px;
}
.f2c-wa-primary:hover{
  background:#1ebe5d;
}
