body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* استخدام min-height بدلاً من height */
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
	   direction: rtl; /* لتحديد اتجاه الكتابة من اليمين إلى اليسار */
    text-align: right; /* لمحاذاة النص إلى اليمين */
}

.form-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	  direction: rtl; /* تأكد من أن النموذج أيضًا يتبع نفس الاتجاه */
}
.form-container:hover {
    transform: scale(1.02);
}

h2 {
    text-align: center;
    color: #007bff;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #007bff;
}

input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 16px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

.success, .error {
    text-align: center;
    margin: 20px 0;
    display: none; /* ستظهر عند الحاجة */
}

.error {
    color: red;
}

.success {
    color: green;
}

.checkbox-group {
    margin: 10px 0;
}
    
.checkbox-group {
        display: flex;
        flex-direction: column; /* وضع العناصر في عمود */
        direction: rtl; /* لجعل العناصر من اليمين إلى اليسار */
        max-width: 400px; /* عرض محدد للمجموعة */
        margin: 0 auto; /* محاذاة في المنتصف */
    }

    .checkbox-item {
        display: flex;
        align-items: center; /* محاذاة العناصر عموديًا */
        margin: 10px 0; /* مسافة بين العناصر */
        padding: 10px; /* حشوة داخلية */
        border: 1px solid #ccc; /* حدود خفيفة */
        border-radius: 5px; /* زوايا مستديرة */
        transition: background-color 0.3s, transform 0.2s; /* تأثيرات انتقال */
    }

    .checkbox-item:hover {
        background-color: #f0f0f0; /* تغيير لون الخلفية عند التحويم */
        transform: scale(1.02); /* تكبير طفيف عند التحويم */
    }

    .checkbox-item input {
        margin-left: 10px; /* مسافة بين مربع الاختيار والنص */
        margin-right: 0; /* إزالة المسافة الافتراضية */
    }

    .checkbox-item label {
        flex: 1; /* يجعل النص يستغل المساحة المتاحة */
        text-align: center; /* محاذاة النص لليمين */
    }    