/* إعدادات عامة */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  direction: rtl;
}

/* حاوية النموذج */
.main-panel {
  max-width: 850px;
  margin: 40px auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px 40px;
}

/* العنوان */
.main-panel h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e3a8a;
}

/* صفوف النموذج */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* الحقول */
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  outline: none;
}

/* تنسيق الراديو */
.form-group div input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-inline-start: 6px;
}

/* زر الإرسال */
button.submit {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.submit:hover {
  background-color: #1e40af;
}

/* تكبير الصورة داخل حقل الملف */
input[type="file"] {
  padding: 6px;
}

/* حقل العنوان */
textarea {
  resize: vertical;
}

/* أنيميشن عند تحميل النموذج */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-panel {
  animation: fadeInUp 0.8s ease-in-out;
}

/* أنيميشن عند التركيز على الحقول */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* زر الإرسال مع أنيميشن عند المرور */
button.submit {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button.submit::before {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.4s ease-in-out;
  z-index: 0;
}

button.submit:hover::before {
  left: 0;
}

button.submit:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
