/* تنسيق صفحة طلب المنتج */
.order-product-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* إضافة دعم لكلاسات Tailwind CSS */
.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.sm\:px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.lg\:px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:col-span-1 {
  grid-column: span 1 / span 1;
}

.lg\:col-span-2 {
  grid-column: span 2 / span 2;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-right: 0;
  margin-left: 0.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-800 {
  color: #1e40af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-green-600 {
  color: #16a34a;
}

.text-green-700 {
  color: #15803d;
}

.text-green-800 {
  color: #166534;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-700 {
  color: #b91c1c;
}

.text-red-800 {
  color: #991b1b;
}

.hover\:text-blue-800:hover {
  color: #1e40af;
}

.hover\:bg-blue-50:hover {
  background-color: #eff6ff;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.border {
  border-width: 1px;
}

.border-green-200 {
  border-color: #bbf7d0;
}

.border-red-200 {
  border-color: #fecaca;
}

.border-red-500 {
  border-color: #ef4444;
}

.border-blue-600 {
  border-color: #2563eb;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.w-full {
  width: 100%;
}

.h-auto {
  height: auto;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }
  
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

.order-product-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, #1a3c6c 0%, #00a69c 100%);
  opacity: 0.1;
  z-index: 0;
}

.order-product-container {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title {
  color: #1a3c6c;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
  text-align: center;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #1a3c6c 0%, #00a69c 100%);
  border-radius: 2px;
  animation: titleUnderline 1s ease-out;
}

@keyframes titleUnderline {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100px;
    opacity: 1;
  }
}

/* تنسيق معلومات المنتج */
.product-info-sidebar {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 25px;
  height: 100%;
  border: 1px solid rgba(233, 236, 239, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-info-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a3c6c 0%, #00a69c 100%);
}

.product-info-sidebar:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image-container {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(26, 60, 108, 0.05) 0%, rgba(0, 166, 156, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image-container:hover::before {
  opacity: 1;
}

.product-image {
  max-height: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-image:hover {
  transform: scale(1.05);
}

.product-name {
  color: #1a3c6c;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
  text-align: center;
  position: relative;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 10px;
}

.product-type, .product-volume {
  background: linear-gradient(135deg, #e9f5f4 0%, #d4edda 100%);
  color: #00a69c;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
  border: 1px solid rgba(0, 166, 156, 0.2);
  transition: all 0.3s ease;
}

.product-type:hover, .product-volume:hover {
  background: linear-gradient(135deg, #00a69c 0%, #1a3c6c 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 156, 0.3);
}

.product-description {
  font-size: 0.9rem;
  color: #6c757d;
}

/* تنسيق نموذج الطلب */
.order-form-container {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(233, 236, 239, 0.5);
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.order-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a69c 0%, #1a3c6c 100%);
}

.order-form-container h4 {
  color: #1a3c6c;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}



.form-label {
  font-weight: 600;
  color: #1a3c6c;
  margin-bottom: 8px;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.form-control {
  border-radius: 12px;
  padding: 12px 18px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  background-color: #fff;
  font-size: 0.95rem;
  position: relative;
}

.form-control:focus {
  border-color: #00a69c;
  box-shadow: 0 0 0 0.3rem rgba(0, 166, 156, 0.15);
  background-color: #fff;
  transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
  border-color: #adb5bd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group.focused-group .form-label {
  color: #00a69c;
  transform: translateY(-2px);
}

.form-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

/* تنسيق رسالة النجاح */
.order-success-message {
  max-width: 700px;
  margin: 0 auto;
  animation: successFadeIn 0.8s ease-out;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.order-success-message .alert {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.2);
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.order-success-message .alert h3 {
  color: #155724;
  font-weight: 700;
  margin-bottom: 15px;
}

.order-success-message .alert p {
  color: #155724;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* تأثيرات التركيز والتفاعل */
.form-control.focused {
  border-color: #00a69c !important;
  box-shadow: 0 0 0 0.3rem rgba(0, 166, 156, 0.15) !important;
  transform: translateY(-2px);
}

.form-control:valid {
  border-color: #28a745;
}

.form-control:valid:focus {
  border-color: #00a69c;
  box-shadow: 0 0 0 0.3rem rgba(0, 166, 156, 0.15);
}

/* تأثيرات الأزرار المحسنة */
.submit-btn {
  min-width: 180px;
  position: relative;
}

.back-btn {
  min-width: 160px;
}

.submit-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* تحسين مظهر الأيقونات */
.form-label .fas {
  color: #00a69c;
  transition: all 0.3s ease;
}

.form-group.focused-group .form-label .fas {
  transform: scale(1.1);
  color: #1a3c6c;
}

/* تأثيرات الرسوم المتحركة للعناصر */
.product-info-sidebar,
.order-form-container {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تأثيرات حركية للأزرار */
.btn-primary {
  background: linear-gradient(135deg, #1a3c6c 0%, #00a69c 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(26, 60, 108, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00a69c 0%, #1a3c6c 100%);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 60, 108, 0.4);
}

.btn-primary span, .btn-primary .fas {
  position: relative;
  z-index: 1;
}

.btn-outline-secondary {
  color: #6c757d;
  border: 2px solid #6c757d;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-outline-secondary:hover::before {
  left: 0;
}

.btn-outline-secondary:hover {
  color: #fff;
  border-color: #6c757d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-outline-secondary span, .btn-outline-secondary .fas {
  position: relative;
  z-index: 1;
}

/* تنسيقات متجاوبة */
@media (max-width: 991.98px) {
  .order-product-container {
    padding: 25px;
    margin: 15px;
  }
  
  .product-info-sidebar {
    margin-bottom: 30px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions .btn {
    width: 100%;
    margin-bottom: 0;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .order-product-container {
    padding: 20px;
    margin: 10px;
    border-radius: 15px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .product-info-sidebar,
  .order-form-container {
    padding: 20px;
  }
}

/* تنسيق الحقول المطلوبة */
.form-label::after {
  content: ' *';
  color: #dc3545;
}

/* إخفاء النجمة للحقول غير المطلوبة */
.form-label[for="customer_email"]::after,
.form-label[for="notes"]::after {
  content: '';
}

/* تأثيرات إضافية للتفاعل */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d;
}

.breadcrumb-item a {
  color: #1a3c6c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #00a69c;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* تحسين مظهر التنبيهات */
.alert {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.invalid-feedback {
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

/* تأثيرات التحميل */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-border {
  animation: spin 1s linear infinite;
}