/* أنماط إضافية للخدمات الإضافية - ENHANCED PREMIUM EDITION */
:root {
  --primary-blue: #3498db;
  --primary-green: #2ecc71;
  --primary-dark: #2980b9;
  --primary-dark-green: #27ae60;
  --text-dark: #2c3e50;
  --text-gray: #7f8c8d;
  --border-light: #e0e0e0;
  --border-lighter: #f0f0f0;
  --bg-light: #f8f9fa;
  --bg-lighter: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسين بطاقات الخدمة الرئيسية */
.service-type-selection {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.service-type-option {
  flex: 1;
  padding: 15px 12px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bg-lighter);
  min-height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-type-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.service-type-option:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-type-option:hover::before {
  transform: translateY(0);
}

.service-type-option.active {
  border-color: var(--primary-green);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
}

.service-type-option.active::before {
  transform: translateY(0);
  background: linear-gradient(90deg, var(--primary-green), #2ecc71);
}

.service-type-option i {
  font-size: 1.8rem;
  color: var(--text-gray);
  margin-bottom: 8px;
  display: block;
  transition: var(--transition-smooth);
}

.service-type-option:hover i {
  color: var(--primary-blue);
  transform: scale(1.1);
}

.service-type-option.active i {
  color: var(--primary-green);
  transform: scale(1.1);
}

.service-type-option h5 {
  margin: 0 0 4px 0;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-type-option p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.8rem;
  font-weight: 500;
}

/* تحسين قسم الكمية */
.quantity-section {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: 16px;
  border: 2px solid var(--border-light);
  animation: fadeInUp 0.5s ease;
  box-shadow: var(--shadow-sm);
}

.quantity-section .section-header {
  margin-bottom: 15px;
  text-align: center;
  position: relative;
}

.quantity-section .section-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  border-radius: 3px;
}

.quantity-section .section-header h5 {
  margin: 0 0 5px 0;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.quantity-section .section-header p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* معلومات الخدمة المحسنة */
.quantity-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary-blue);
  flex-wrap: wrap;
  gap: 8px;
}

.quantity-service-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-service-name i {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.quantity-price-per-item {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
  background: white;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.quantity-price-per-item span {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-green);
  margin-left: 5px;
}

/* تحكم الكمية المحسن */
.quantity-control-large {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.quantity-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-btn-large {
  width: 45px;
  height: 45px;
  border: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.quantity-btn-large:hover:not(:disabled) {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.quantity-btn-large:disabled {
  background: linear-gradient(135deg, #bdc3c7, #95a5a6);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.quantity-value {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 5px 15px;
  border-radius: 50px;
  border: 2px solid #e9ecef;
}

#item-quantity-large {
  width: 70px;
  height: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  pointer-events: none;
  flex-shrink: 0;
}

.quantity-label {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 600;
  padding-right: 10px;
  border-right: 2px solid #dee2e6;
}

/* قسم التسعير المحسن */
.quantity-pricing {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #f0fff4 0%, #e6f7e6 100%);
  border-radius: 12px;
  margin-top: 15px;
}

.quantity-total-large {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.quantity-total-large .total-price {
  color: var(--primary-green);
  font-size: 1.8rem;
  font-weight: 800;
  margin-left: 8px;
  text-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
}

.quantity-note {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: white;
  padding: 6px 15px;
  border-radius: 30px;
  width: fit-content;
  margin: 10px auto 0;
}

.quantity-note i {
  color: #f39c12;
  animation: pulse 2s infinite;
}

/* أزرار الاختيار السريع المحسنة */
.quantity-quick-select {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px dashed #dee2e6;
}

.quantity-quick-select span {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.quick-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 10px 18px;
  border: 2px solid var(--primary-blue);
  background: white;
  color: var(--primary-blue);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-width: 45px;
  text-align: center;
  flex: 1;
  max-width: 70px;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.1);
}

.quick-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.quick-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* رسالة الباقات المحسنة */
.package-info-message {
  margin-top: 15px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #e8f4fc 0%, #d9eaf9 100%);
  border-radius: 10px;
  border-right: 4px solid var(--primary-blue);
  text-align: center;
  display: none;
  animation: slideInRight 0.3s ease;
}

.package-info-message i {
  color: var(--primary-blue);
  margin-left: 8px;
  font-size: 1.1rem;
}

.package-info-message p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

/* تحسين بطاقات الخدمات الإضافية */
.services-selection {
  transition: var(--transition-smooth);
  margin-bottom: 20px;
}

.service-option {
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.service-option input[type="radio"]:checked + label {
  border-color: var(--primary-green);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
}

.service-option label {
  padding: 12px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 55px;
  position: relative;
  overflow: hidden;
}

.service-option label::after {
  content: '';
  position: absolute;
  right: 15px;
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.service-option input[type="radio"]:checked + label::after {
  border-color: var(--primary-green);
  background: var(--primary-green);
  box-shadow: inset 0 0 0 4px white;
}

.service-option label:hover {
  border-color: var(--primary-blue);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
}

.service-option i {
  font-size: 1.2rem;
  color: var(--primary-blue);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.service-option label:hover i {
  transform: scale(1.1);
}

.service-option-content {
  flex: 1;
}

.service-option h5 {
  margin: 0 0 2px 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-option p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* تحسين الملخص */
.booking-confirm {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: 16px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.booking-confirm h5 {
  margin: 0 0 15px 0;
  color: var(--text-dark);
  font-size: 1.2rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 8px;
}

.booking-confirm h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  border-radius: 3px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 0.95rem;
  min-height: 35px;
  align-items: center;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px solid var(--primary-green);
  background: #f0fff4;
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.summary-label {
  color: var(--text-gray);
  font-weight: 500;
}

.summary-value {
  font-weight: 700;
  color: var(--text-dark);
}

.summary-value.price {
  color: var(--primary-green);
  font-size: 1.2rem;
  font-weight: 800;
}

/* تحسين النموذج */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-group label i {
  color: var(--primary-blue);
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  min-height: 48px;
  background: white;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-blue);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
  transform: translateY(-1px);
}

/* تحسين رأس المودال */
.modal-header {
  padding: 18px 22px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-header h3 i {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* تحسين أزرار التنقل */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px solid #f0f0f0;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 10;
}

.form-navigation button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(52, 152, 219, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.submit-booking {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3) !important;
}

.submit-booking:hover:not(:disabled) {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4) !important;
}

/* تحسينات متقدمة */
.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* تأثيرات حركية جديدة */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* تحسينات التجاوب */
@media (max-width: 768px) {
  .service-type-option {
    min-height: 75px;
    padding: 10px;
  }
  
  .service-type-option i {
    font-size: 1.3rem;
  }
  
  .service-type-option h5 {
    font-size: 0.85rem;
  }
  
  .quick-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .quantity-btn-large {
    width: 40px;
    height: 40px;
  }
  
  #item-quantity-large {
    width: 55px;
    height: 45px;
    font-size: 1.4rem;
  }
  
  .form-navigation button {
    font-size: 0.9rem;
    padding: 10px;
  }
}

/* تأثير الظهور عند التمرير */
.service-option {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.service-option:nth-child(1) { animation-delay: 0.1s; }
.service-option:nth-child(2) { animation-delay: 0.2s; }
.service-option:nth-child(3) { animation-delay: 0.3s; }
.service-option:nth-child(4) { animation-delay: 0.4s; }
.service-option:nth-child(5) { animation-delay: 0.5s; }

/* تأثير اللمعان للعناصر النشطة */
.service-type-option.active,
.service-option input[type="radio"]:checked + label {
  animation: shimmer 2s infinite;
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 25%, #ffffff 50%, #f0fff4 75%, #ffffff 100%);
  background-size: 200% 100%;
}

/* تحسينات الوصولية */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* تأثيرات التركيز للوحة المفاتيح */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.quick-btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid rgba(52, 152, 219, 0.4);
  outline-offset: 2px;
}