/* إعدادات أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    direction: rtl; /* لضبط النصوص من اليمين إلى اليسار */
    
    background-image: url('imgs_system/background/islamic_academy_background3.jpg'); /* تأكد من وضع المسار الصحيح للصورة */
    background-size: cover;        /* تجعل الخلفية تغطي كامل الشاشة */
    background-position: center;   /* تجعل الخلفية في المنتصف */
    background-repeat: no-repeat;  /* تمنع تكرار الخلفية */
    background-attachment: fixed;  /* تثبت الخلفية عند التمرير */
}

.container {
    background-color: #ffffff;
    border-radius: 10px;
    
    padding: 40px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;*/
    margin: 20px auto;
    
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    width: 70%; /* العرض كما طلبت 70% من الشاشة */
    max-width: 1000px; /* أقصى عرض لتبدو مرتبة على الشاشات الكبيرة */
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.header h1 {
    color: #007bff;
    font-size: 24px;
    margin-bottom: 10px;
}

.header p {
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
}

/* تنسيق النموذج */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

label {
    font-weight: bold;
    color: #333;
   /* margin-bottom: 5px;*/
}

input, select, button {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
    text-align: right;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus, select:focus {
    border-color: #007bff;
    outline: none;
}

select {
    cursor: pointer;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.radiolabeltitle{
    
        font-weight: bold;
    color: #333;
    margin-bottom: 0px;
    
    
}


/*******************************************************/

.radio-group {
     display: block;
    /*display: flex; */
   /*flex-direction: column;*/
     gap: 6px; /* مسافة بين العناصر */
    /*margin-bottom: 20px;*/
    /*margin-top: 10px; /* مسافة من أعلى */
     /*justify-content: flex-start; /* محاذاة الأزرار بالشكل الصحيح */
         margin: 0; /* تأكد من إزالة أي تباعد غير ضروري */
    padding: 0;
    
    
       /* display: grid; /* يمكن ترتيب الأزرار في شبكة */
    /*grid-template-columns: repeat(3, 1fr); /* وضع الأزرار في 3 أعمدة */
}

.radio-group label {
    /*display: inline-flex; /* عرض الزر والنص بجانب بعض */
     display: inline-block;
    /*flex-direction: column; /* لعرض الأزرار تحت بعضها */
    cursor: pointer;
   align-items: center; /* محاذاة النص مع الزر */
     font-size: 14px; /* حجم النص مناسب */
      color: #333; /* لون النص */
       /*line-height: 1.5; /* ارتفاع الخط لتحسين القراءة */
       
        /* padding: 0; /* إزالة الحشو */
    /* margin: 0; /* إزالة المسافات */
     flex-direction: row-reverse; /* عكس الاتجاه ليكون النص أولاً ثم الزر */
   gap: 6px; /* مسافة بين العناصر */

   /* justify-content: flex-start; /* محاذاة العناصر من البداية */
text-align: right; /* محاذاة النص لليمين */

   padding: 10px;  /* إضافة حشو لتوفير مساحة حول النص والزر */
    margin: 10px 0;  /* مسافة بين كل عنصر وآخر */

 /* إضافة الظل 3D تحت النص والزر */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), 3px 3px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 8px;  /* جعل الزر والنص يبدو أكثر نعومة */
    transition: box-shadow 0.3s ease, transform 0.3s ease;  /* تأثير الحركة عند التفاعل */
   
    
}

.radio-group label:hover {
    /* إضافة ظل أكبر عند التمرير بالماوس فوق الزر والنص */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 6px 6px 15px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px);  /* رفع العنصر قليلاً عند التمرير عليه */
}



.radio-group input[type="radio"] {
     margin: 0;  /* إزالة أي مسافات إضافية حول الزر */
    /*margin-left: 8px; /* مسافة بين الزر والنص */
       /* margin-right: 8px; /* مسافة بين النص والزر */
    transform: scale(1.2); /* تكبير الزر قليلاً */
    cursor: pointer; /* شكل مؤشر الفأرة */
        
    border: none; /* إزالة أي حدود غير مرغوب فيها */
    outline: none; /* إزالة الخط الخارجي */
    box-shadow: none; /* إزالة الظل حول الزر */
    padding:0;
    /* display: grid;  */
  vertical-align: middle;  /* محاذاة الزر مع النص في نفس المستوى */
    /*margin-right: 10px; /* مسافة بين الزر والنص */
    
}




/***********************************************************/


/* تحسين العرض للأجهزة المحمولة */
@media (max-width: 768px) {
 /*   .radio-group label {
        font-size: 14px; /* تصغير حجم النص */
   /* }
    .radio-group input[type="radio"] {
        transform: scale(1); /* تقليل حجم الدائرة قليلاً */
    /*}*/
    /********************************/
    .radio-group {
        display: block; /* وضع الأزرار في صفوف تحت بعضها */
    }
    
    /* التأكد من أن النص والزر يظهران في سطر واحد */
    .radio-group label {
        display: inline-block;  /* يعرض النص والزر في نفس السطر */
        font-size: 13px;  /* حجم النص */
        gap: 6px;  /* تباعد بين الزر والنص */
    }
    
    /* تغيير حجم الزر قليلاً في الموبايل */
    .radio-group input[type="radio"] {
        transform: scale(1); /* تقليص حجم الزر قليلاً */
    }
     
    
    
}


/***********************************************/



/* إعدادات الحاوية الخاصة بزر الإرسال */
.fixed-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.submit-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* حقل رفع الملفات */
.file-label {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    cursor: pointer;
    margin-bottom: 20px;
}

.custom-file-input {
    position: relative;
    margin-bottom: 20px;
}

.custom-file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-file-input .file-label:after {
    content: 'اختيار ملف';
    display: inline-block;
    margin-left: 10px;
}

.custom-file-input input[type="file"]:focus + .file-label {
    outline: 2px solid #0056b3;
}

/* تحسين العرض للأجهزة المحمولة */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        width: 90%;
    }
    .header h1 {
        font-size: 20px;
    }
    input, select, button {
        font-size: 16px;
        padding: 10px;
        margin-bottom: 15px;
    }
    .radio-group label {
        font-size: 14px;
    }
    .submit-button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* تحسين العرض للهواتف الصغيرة */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        width: 95%;
    }
    .header h1 {
        font-size: 18px;
    }
    input, select, button {
        font-size: 14px;
        padding: 8px;
    }
    .submit-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    .file-label {
        padding: 8px;
        font-size: 14px;
    }
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 20px;
    resize: vertical;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea:focus {
    border-color: #007bff;
    outline: none;
}

#other-nationality-container {
    margin-top: 15px;
}

#other-nationality-container input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 20px;
}

/*****************************************/
.submit-button-container {
    display: flex;
    justify-content: center; /* يضبط الزر في المنتصف أفقياً */
    align-items: center; /* يضبط الزر في المنتصف عمودياً */
    margin-top: 20px; /* مسافة علوية لإبعاده عن الحقول */
}

.submit-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 50px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

/**************************************/

@media (max-width: 768px) {
    .submit-button-container {
        justify-content: center; /* لضمان التوسيط الأفقي */
        align-items: center; /* لضمان التوسيط العمودي */
        margin-top: 20px;
    }

    .submit-button {
        width: 80%; /* اجعل الزر يحتل عرضًا مناسبًا على الأجهزة الصغيرة */
        text-align: center;
    }
}


@media (max-width: 480px) {
    .submit-button-container {
        justify-content: center; /* لضمان التوسيط الأفقي */
        align-items: center; /* لضمان التوسيط العمودي */
        margin-top: 20px;
    }

    .submit-button {
        width: 80%; /* اجعل الزر يحتل عرضًا مناسبًا على الأجهزة الصغيرة */
        text-align: center;
    }
}


