* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f0f2f5;
  color: #333;
  line-height: 1.5;
  direction: rtl;
}

.payment-container {
  max-width: 450px;
  margin: 30px auto;
  background: #fff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.payment-container h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: #e63946;
}

#order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group, .form-group-inline {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 5px;
}

.form-group-inline {
  flex-direction: row;
  gap: 10px;
}

#order-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* حذف فلش های input عددی */
#order-form input[type="text"][inputmode="numeric"]::-webkit-outer-spin-button,
#order-form input[type="text"][inputmode="numeric"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#order-form input[type="text"][inputmode="numeric"] {
  -moz-appearance: textfield;
}

#order-form input:focus {
  border-color: #ff3f3f;
  box-shadow: 0 0 10px rgba(230,57,70,0.3);
}

#order-form input.invalid {
  border-color: #ff3f3f;
  box-shadow: 0 0 8px rgba(255,57,70,0.3);
}

.error-message {
  font-size: 0.8rem;
  color: #ff3f3f;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.error-message.show {
  height: auto;
  opacity: 1;
}

#order-form button {
  padding: 10px 0;
  border: none;
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #e63946, #ff3f3f);
  color: white;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(230,57,70,0.3);
}

#order-form button:hover {
  background: linear-gradient(135deg, #b41d2d, #ff1f1f);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230,57,70,0.4);
}

/* پیام موفقیت ساده */
.success-message {
  display: none;
  margin-top: 10px;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: #f1f1f1;
  color: #333;
  text-align: center;
}

.success-message.show {
  display: block;
}

.success-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.success-buttons button,
.success-buttons .btn-link {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.success-buttons button {
  border: none;
  background: linear-gradient(135deg, #e63946, #ff3f3f);
  color: white;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.success-buttons button:hover {
  background: linear-gradient(135deg, #b41d2d, #ff1f1f);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* لینک بازگشت به خانه */
.btn-link {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #555, #333);
  color: white;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.btn-link:hover {
  background: linear-gradient(135deg, #777, #555);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .payment-container {
    margin: 40px 15px;
    padding: 20px 15px;
  }

  #order-form input {
    font-size: 0.9rem;
    padding: 9px 10px;
  }

  #order-form button {
    font-size: 0.9rem;
    padding: 9px 0;
  }

  .success-buttons {
    gap: 8px;
  }
}
