/* 1. السيطرة على العرض الإجمالي للنموذج وتوسيطه */
html body div[id^="gform_wrapper_"] {
    max-width: 480px !important;
    margin: 0 auto !important;
}

/* 2. تصغير الأبعاد وإبراز الحقول بخلفية وإطار واضحين */
html body div[id^="gform_wrapper_"] .gform_body input:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),
html body div[id^="gform_wrapper_"] .gform_body select,
html body div[id^="gform_wrapper_"] .gform_body textarea {
    height: 36px !important;
    min-height: 36px !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
    background-color: #f4f5f7 !important;
    border: 1px solid #a0a5aa !important;
    border-radius: 4px !important;
    color: #333333 !important;
}

/* 3. تأثير التركيز عند النقر على الحقل */
html body div[id^="gform_wrapper_"] .gform_body input:focus,
html body div[id^="gform_wrapper_"] .gform_body select:focus,
html body div[id^="gform_wrapper_"] .gform_body textarea:focus {
    background-color: #ffffff !important;
    border-color: #0073aa !important;
    box-shadow: 0 0 0 1px #0073aa !important;
    outline: none !important;
}

/* 4. تقليل المسافات العمودية بين الحقول */
html body div[id^="gform_wrapper_"] .gfield {
    margin-bottom: 12px !important;
}

/* 5. ضبط اتجاه وتنسيق حقل رفع الملفات والنصوص المساعدة */
html body div[id^="gform_wrapper_"] input[type="file"],
html body div[id^="gform_wrapper_"] .gfield_description,
html body div[id^="gform_wrapper_"] .gfield_captcha_text {
    direction: ltr !important;
    text-align: left !important;
    font-size: 12px !important;
}

/* 6. تنسيق زر الإرسال */
html body div[id^="gform_wrapper_"] .gform_footer input[type="submit"] {
    height: 38px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
}
/* إجبار جميع النصوص والوصف والمساعدات أسفل الحقول لتكون جهة اليسار */
html body div[id^="gform_wrapper_"] .gfield_description,
html body div[id^="gform_wrapper_"] .gform_fileupload_rules,
html body div[id^="gform_wrapper_"] .instruction,
html body div[id^="gform_wrapper_"] .gfield_visibility_visible span {
    direction: ltr !important;
    text-align: left !important;
    display: block !important;
}