/* إعادة تعيين الهوامش والحشوات لضمان الاتساق */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* الأنماط الأساسية للصفحة */
body {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  background-color: #f9f9f9;
  direction: rtl;
  text-align: right;
  margin: 20px;
  color: #444;
  line-height: 1.6;
}

/* تنسيق العنوان الرئيسي */
h1 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 10px;
  text-align: center; /* توسيط العنوان */
}

/* تنسيق العناوين الفرعية */
h2 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 1.8em;
  color: #34495e;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* تنسيق الفقرات */
p {
  margin-bottom: 15px;
}

/* تنسيق التسميات */
label {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: 1em;
  margin-bottom: 8px;
  color: #555;
}

/* تنسيق حقول الإدخال */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* تنسيق أزرار الراديو */
input[type="radio"] {
  margin-left: 10px;
}

/* تنسيق زر الإرسال */
input[type="submit"] {
  background-color: #2980b9;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #1c5980;
}

/* تنسيق النموذج */
form {
  background-color: #fff;
  padding: 25px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: auto;
}

/* تنسيق الروابط العامة */
a {
  color: #80b9;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

/* تنسيق رابط العودة للنموذج: توسيطه */
.center-link {
  display: block;
  text-align: center;
  margin: 20px 0;
}

/* تنسيق التذييل */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f2f2f2;
  color: #666;
  font-size: 0.9em;
  margin-top: 30px;
  border-top: 1px solid #ddd;
}

/* تنسيق فقرة المرجع داخل التذييل: محاذاة لليسار */
footer .reference {
  text-align: left;
  margin: 0 auto;
  max-width: 800px;
  font-size: 0.85em;
  line-height: 1.4;
}
