/* تعريف الخط */
@font-face {
    font-family: 'Droid Arabic Kufi';
    src: url('../fonts/DroidArabicKufi-Regular.ttf') format('truetype');
}

/* تنسيق الجسم */
body {
    font-family: 'Droid Arabic Kufi';
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* لإضافة طبقة للخلفية */
}

/* خلفية الصفحة */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/conference_hall2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.7; /* ضبط نسبة الوضوح للخلفية */
    z-index: -1; /* تأكيد أن الخلفية تكون أسفل العناصر الأخرى */
}

/* تنسيق الرأس */
header {
    width: 100%;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.5); /* إضافة شفافية للرأس لتحسين القراءة */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px #000;
    background-image: url('../images/banner_image11.jpg'); /* رابط الصورة */
    background-size: 100% 200px; /* تحديد عرض وطول الصورة */
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 600px) {
    header {
        height: 150px; /* تقليل الارتفاع على الأجهزة الصغيرة */
        background-size: 100% 150px; /* تعديل الصورة لارتفاع 150 بكسل */
    }

    header h1 {
        font-size: 2em;
    }
}

@media (max-width: 400px) {
    header {
        height: 100px; /* تقليل الارتفاع على الأجهزة الأصغر */
        background-size: 100% 100px; /* تعديل الصورة لارتفاع 100 بكسل */
    }

    header h1 {
        font-size: 1.5em;
    }
}

/* تنسيق العنوان الرئيسي في الرأس */
header h1 {
    font-size: 2em;
}

/* تنسيق التذييل */
footer {
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* إضافة شفافية للتذييل لتحسين القراءة */
    color: white;
    text-align: center;
    position: relative;
}

/* تنسيق الجزء الرئيسي */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* إضافة خلفية بيضاء شفافة للمحتوى */
}

/* تنسيق العناوين */
h1 {
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px #fff;
}

/* تنسيق النموذج */
form {
    font-family: 'Droid Arabic Kufi';
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 90%; /* تكبير عرض النموذج */
    max-width: 800px; /* تكبير عرض النموذج */
    box-sizing: border-box;
    background-color: #fff;
}

/* تنسيق العلامات في النموذج */
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-family: 'Droid Arabic Kufi';
}

/* تنسيق الحقول النصية والبريد الإلكتروني */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Droid Arabic Kufi';
}

/* تنسيق الأزرار */
button {
    font-family: 'Droid Arabic Kufi';
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-weight: bolder;
}

button:hover {
    background-color: #0056b3;
}

/* تنسيق الخيارات */
.status-options {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-options input,
.status-options label {
    margin-right: 10px; /* وضع مسافة بين خيارات الـ radio */
}

/* إخفاء الحقول بناءً على الحالة */
#workField, #collegeField {
    display: none;
}

/* تنسيق الرسائل */
.message-container {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

.message-container.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-container.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.workshops-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.workshops-container .row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
}

.workshops-container .row label {
    display: flex;
    align-items: center;
    font-weight: normal;
}


/* استعلامات الوسائط لتحسين التجاوب */
@media (max-width: 600px) {
    header {
        height: 150px;
    }

    header h1 {
        font-size: 2em;
    }

    form {
        width: 95%;
    }

    button {
        padding: 10px;
    }

    .message-container {
        width: 95%;
    }
}

@media (max-width: 400px) {
    header {
        height: 100px;
    }

    header h1 {
        font-size: 1.5em;
    }

    form {
        width: 100%;
    }

    button {
        padding: 10px;
    }

    .message-container {
        width: 100%;
    }
}
.workshop-item {
    width: 100%;
    text-align: right;
    margin-bottom: 20px;
}

.workshop-item label {
    display: inline-flex;
    flex-direction: row-reverse; /* هذا يضع الـ checkbox يمين والنص يسار */
    align-items: center;
    gap: 10px; /* مسافة بين المربع والنص */
    cursor: pointer;
    font-weight: bold;
    text-align: right;
    flex-direction: row; 
}

.workshop-item input[type="checkbox"] {
    accent-color: #007BFF;
    flex-direction: row; /* لتغيير لون الـ checkbox حسب التصميم */
}

.workshop-item .description {
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
    text-align: right;
}
