.quick-order-container {
  margin: 2em auto;
  padding: 1.5em;
  max-width: 600px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.quick-order-title {
  text-align: center;
  color: #333;
  margin-bottom: 1.5em;
  font-size: 1.5em;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1em;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  transition: all 0.3s ease;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Redesigned quantity buttons */
.quantity-btn {
  width: 2.2em;
  height: 2.2em;
  background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
  color: #555;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.quantity-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quantity-btn:hover:before {
  opacity: 1;
}

.quantity-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.quantity-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quantity-btn.plus::after,
.quantity-btn.minus::after {
  content: "+";
  display: block;
  font-size: 1.2em;
  color: #555;
}

.quantity-btn.minus::after {
  content: "-";
}

.quantity-input {
  width: 3em;
  text-align: center;
  padding: 0.5em;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.submit-btn {
  width: 100%;
  padding: 1em;
  background: linear-gradient(145deg, #45a247, #4caf50);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1.5em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

.submit-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn:hover:before {
  opacity: 1;
}

.submit-btn:hover {
  background: linear-gradient(145deg, #3e8e41, #45a247);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transform: scale(1.05);
}

.submit-btn:active {
  transform: scale(0.95);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.order-summary {
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  margin-top: 1.5em;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 0;
  border-bottom: 1px dashed #eee;
}

.summary-total {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 1em;
  padding-top: 0.75em;
  border-top: 2px solid #eee;
}

.quick-order-alert {
  padding: 1em;
  margin-bottom: 1.5em;
  border-radius: 4px;
  display: none;
  transition: all 0.3s ease;
}

.quick-order-alert.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.quick-order-alert.error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
}

/* تأثيرات الاهتزاز والتحريك */
.shake-animation {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

.price-change {
  animation: price-flash 0.5s ease;
}

@keyframes price-flash {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    color: #4caf50;
  }
  100% {
    opacity: 1;
  }
}

/* Form blur and loading effects */
.form-blur {
  filter: blur(3px);
  pointer-events: none;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  border-top-color: #4caf50;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

.success-checkmark {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
  content: "";
  height: 100px;
  position: absolute;
  background: #ffffff;
  transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
}

.success-checkmark .check-icon .icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }
  5% {
    transform: rotate(-45deg);
  }
  12% {
    transform: rotate(-405deg);
  }
  100% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

.success-message {
  display: none;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1em;
  }

  .form-group {
    width: 100%;
    min-width: 100%;
  }

  .quick-order-container {
    padding: 1em;
    margin: 1em;
    width: auto;
  }
}

