/* صندوق النموذج */
#cod-dz-form.cod-dz-box {
  border: 1px solid #e5e7eb;
  padding: 16px;
  margin-top: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  direction: rtl;
  text-align: right;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Noto Sans Arabic';
}

/* العنوان */
#cod-dz-form .cod-dz-title {
  margin-top: 0;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: #111827;
}

/* شبكة الحقول */
#cod-dz-form .cod-dz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

/* الليبل */
#cod-dz-form .cod-dz-field label {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 6px;
  display: block;
  color: #111827;
  text-align: right;
}

/* الحقول الأساسية */
#cod-dz-form input[type="text"],
#cod-dz-form input[type="tel"],
#cod-dz-form select {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border: 2px solid #2563eb;
  border-radius: 12px;
  outline: none;
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
  text-align: center;
  transition: all 0.3s ease;
}

#cod-dz-form input[type="text"]:focus,
#cod-dz-form input[type="tel"]:focus,
#cod-dz-form select:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
  background: #ffffff;
}

/* خيار افتراضي بالرمادي */
#cod-dz-form select option[disabled] {
  color: #6b7280;
  font-weight: bold;
}

/* حقل الكمية */
#cod-dz-form .cod-dz-field.cod-dz-qty .qty-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

#cod-dz-form .cod-dz-field.cod-dz-qty input {
  width: 120px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  border: 2px solid #2563eb;
  border-radius: 12px;
  -moz-appearance: textfield;
}
#cod-dz-form .cod-dz-field.cod-dz-qty input::-webkit-outer-spin-button,
#cod-dz-form .cod-dz-field.cod-dz-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* أزرار + و − */
#cod-dz-form .qty-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: 0.2s;
}
#cod-dz-form .qty-btn:hover {
  background: #1d4ed8;
}

/* زر تأكيد الطلب */
#cod-dz-form .cod-dz-btn {
  display: block;
  margin: 16px auto;
  padding: 14px 26px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg,#3b82f6,#2563eb);
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}
#cod-dz-form .cod-dz-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg,#2563eb,#1d4ed8);
  box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

/* ملخص الطلب */
#cod-dz-form .cod-dz-summary {
  margin-top: 20px;
  padding: 16px;
  border: 2px dashed #2563eb;
  border-radius: 12px;
  background: #f0f6ff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
  color: #111827;
}
#cod-dz-form .cod-dz-summary strong {
  font-size: 20px;
  color: #111827;
}

/* رسائل النجاح والخطأ */
#cod-dz-form .cod-dz-msg {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}
#cod-dz-form .cod-dz-msg.error {
  color: #b91c1c;
}
#cod-dz-form .cod-dz-msg.success {
  color: #065f46;
}

/* استجابة للشاشات الصغيرة */
@media (max-width:640px) {
  #cod-dz-form .cod-dz-grid {
    grid-template-columns: 1fr;
  }
}
