/* إعدادات الأساس */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB); /* تدرج لوني هادئ من الأزرق الفاتح */
  font-family: Arial, sans-serif;
}

/* تنسيق العنوان الرئيسي */
h1 {
  color: #333;
  text-align: center;
  font-size: 36px;
  margin-top: 100px;
  font-weight: bold;
}

/* تنسيق معلومات المنتج */
.product-info {
  text-align: center;
  margin: 20px auto;
  max-width: 600px;
}

#product-details {
  display: none; /* إخفاء التفاصيل بشكل افتراضي */
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-info p {
  font-size: 16px;
  color: #333;
}

.product-info .short-info {
  font-weight: bold;
  cursor: pointer;
}

#product-image {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  display: none; /* إخفاء الصورة حتى يتم عرض التفاصيل */
}

/* تنسيق زر إظهار التفاصيل */
#toggle-details {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}

#toggle-details:hover {
  background-color: #0056b3;
}

/* الحاوية الرئيسية للنموذج */
.form-container {
  width: 70%;
  margin: 50px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* تنسيق الأقسام */
.section {
  margin-bottom: 20px;
}

h2 {
  color: #333;
  font-size: 24px;
}

/* تنسيق الحقول */
.input-group {
  margin-bottom: 15px;
}

label {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

input,
select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* تنسيق حقول الشحن لتكون بجانب بعضها */
.input-group.half {
  display: inline-block;
  width: calc(33.33% - 10px);
  margin-right: 10px;
}

.input-group.half:last-child {
  margin-right: 0;
}

/* تقليل عرض الحقول الأخرى */
#first-name, #last-name, #city, #state, #zip-code {
  width: 100%;
  padding: 8px;
  font-size: 14px;
}

/* تنسيق زر الإرسال */
button {
  width: 100%;
  padding: 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

button:active {
  background-color: #398c3c;
}

/* تحسين التنسيق للأحجام الصغيرة */
@media (max-width: 768px) {
  .form-container {
    width: 90%;
  }

  /* تحسين التنسيق عند الشاشات الصغيرة */
  .input-group.half {
    width: 100%;
    margin-right: 0;
  }
}
