
/* ===== Lead Form (بديل Forminator) ===== */
.malaeb-lead-wrap{margin:0 0 28px}
.malaeb-lead{background:#fff;border:1px solid #e3e8e3;border-radius:16px;padding:30px 26px;box-shadow:0 6px 26px rgba(20,60,30,.07)}
.malaeb-lead h3{margin:0 0 6px;font-size:22px;font-weight:800;color:#12351c;line-height:1.5}
.malaeb-lead .ml-sub{margin:0 0 22px;font-size:15px;color:#5a6b5e;line-height:1.8}
.malaeb-lead-row{margin-bottom:16px}
.malaeb-lead label{display:block;margin-bottom:7px;font-size:14.5px;font-weight:700;color:#1e3a26}
.malaeb-lead .req{color:#c0392b;font-weight:800}
.malaeb-lead .opt{color:#8a978d;font-weight:500;font-size:13px}
.malaeb-lead input[type=text],.malaeb-lead input[type=tel],.malaeb-lead input[type=email],.malaeb-lead textarea{
  width:100%;padding:13px 15px;border:1.5px solid #cfd9d1;border-radius:10px;background:#fbfdfb;
  font-size:16px;font-family:inherit;color:#1c2a20;transition:border-color .18s,box-shadow .18s;box-sizing:border-box}
.malaeb-lead input:focus,.malaeb-lead textarea:focus{outline:0;border-color:#1a5d1a;box-shadow:0 0 0 3px rgba(26,93,26,.13);background:#fff}
.malaeb-lead textarea{min-height:132px;resize:vertical;line-height:1.8}
.malaeb-lead input::placeholder,.malaeb-lead textarea::placeholder{color:#a4b0a7}
.malaeb-lead.has-error input,.malaeb-lead.has-error textarea{border-color:#d64545}
.malaeb-lead .ml-err{display:none;margin-top:6px;font-size:13px;color:#c0392b;font-weight:600}
.malaeb-lead .ml-field.has-error .ml-err{display:block}
.malaeb-lead button[type=submit]{
  width:100%;padding:15px 24px;border:0;border-radius:11px;cursor:pointer;
  background:linear-gradient(135deg,#1a5d1a,#2e8b2e);color:#fff;font-size:17px;font-weight:800;
  font-family:inherit;transition:transform .14s,box-shadow .2s,opacity .2s;
  box-shadow:0 5px 18px rgba(26,93,26,.3)}
.malaeb-lead button[type=submit]:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(26,93,26,.4)}
.malaeb-lead button[type=submit]:disabled{opacity:.62;cursor:not-allowed;transform:none}
.malaeb-lead .ml-note{margin:14px 0 0;font-size:12.5px;color:#7d8a80;line-height:1.75;text-align:center}
.malaeb-lead .ml-hp{position:absolute!important;left:-9999px!important;opacity:0;height:0;overflow:hidden}
.malaeb-lead .ml-ok{display:none;padding:16px;border-radius:10px;background:#e8f6e8;border:1px solid #b8e0b8;color:#14591b;font-weight:700;text-align:center;margin-bottom:16px;font-size:15px}
.malaeb-lead.sent .ml-ok{display:block}
.malaeb-lead.sent form{display:none}
.malaeb-lead .ml-arabic-only{unicode-bidi:embed}
/* ---------- تكيّف الجدول/المجموعة الذي يحتوي النموذج ---------- */
/* العمود يحمل inline padding = 5.06rem (81px) وهو ضخم جدًا على الموبايل */
.wp-block-columns[style*="--wp--preset--spacing--80"]{font-size:16px}

@media (max-width:768px){
  .wp-block-columns[style*="--wp--preset--spacing--80"]{
    padding-top:20px!important;padding-right:16px!important;
    padding-bottom:20px!important;padding-left:16px!important;
    font-size:16px!important;margin-bottom:0!important}
  .wp-block-columns[style*="--wp--preset--spacing--80"] .wp-block-column{margin-bottom:0}

  .malaeb-lead-wrap{margin:0}
  .malaeb-lead{padding:24px 18px;border-radius:14px;box-shadow:0 4px 20px rgba(20,60,30,.08);font-size:16px}
  .malaeb-lead h3{font-size:20px;margin-bottom:6px;line-height:1.45}
  .malaeb-lead .ml-sub{font-size:14.5px;margin-bottom:18px;line-height:1.75}
  .malaeb-lead-row{margin-bottom:14px}
  .malaeb-lead label{font-size:14px;margin-bottom:6px}
  .malaeb-lead input[type=text],.malaeb-lead input[type=tel],.malaeb-lead input[type=email],.malaeb-lead textarea{
    padding:14px 14px;font-size:16px;border-radius:10px}
  .malaeb-lead textarea{min-height:110px}
  .malaeb-lead button[type=submit]{padding:16px 20px;font-size:17px;border-radius:12px;letter-spacing:.2px}
  .malaeb-lead .ml-note{font-size:12.5px;margin-top:12px}
  .malaeb-lead .ml-ok{font-size:14.5px;padding:14px 12px}
}

@media (max-width:480px){
  .wp-block-columns[style*="--wp--preset--spacing--80"]{
    padding-top:12px!important;padding-right:10px!important;
    padding-bottom:16px!important;padding-left:10px!important}
  .malaeb-lead{padding:20px 14px;border-radius:12px}
  .malaeb-lead h3{font-size:18.5px}
  .malaeb-lead .ml-sub{font-size:14px;margin-bottom:16px}
  .malaeb-lead input[type=text],.malaeb-lead input[type=tel],.malaeb-lead input[type=email],.malaeb-lead textarea{padding:13px 12px}
  .malaeb-lead button[type=submit]{font-size:16.5px;padding:15px 16px}
}

/* اتجاه عمودي للنموذج داخل أعمدة الصفحة */
@media (max-width:768px){
  .forminator-guttenberg{max-width:100%}
  .malaeb-lead,.malaeb-lead form{max-width:100%}
  .malaeb-lead input,.malaeb-lead textarea,.malaeb-lead button{max-width:100%}
}

