/* Pre-order Form Styles */
.preorder-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.preorder-form-container {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #e0e0e0;
}

.preorder-form-overlay.active .preorder-form-container {
  transform: translateY(0);
  opacity: 1;
}

.preorder-form-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #d4af37;
  transition: color 0.3s ease, transform 0.3s ease;
}

.preorder-form-close:hover {
  color: #ffd700;
  transform: rotate(90deg);
}

.preorder-form h2 {
  color: #d4af37;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.preorder-form p {
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  text-align: center;
}

.preorder-form .form-group {
  margin-bottom: 1.5rem;
}

.preorder-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #d4af37;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.preorder-form input,
.preorder-form select,
.preorder-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
  color: #e0e0e0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.preorder-form input:focus,
.preorder-form select:focus,
.preorder-form textarea:focus {
  border-color: #d4af37;
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.preorder-form .product-info {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.preorder-form .product-info h3 {
  margin-top: 0;
  color: #d4af37;
  font-size: 1.3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.preorder-form .product-info p {
  margin: 0.5rem 0;
  text-align: left;
  color: #e0e0e0;
}

.preorder-form .submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #aa8c2c, #d4af37);
  color: #111;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(212, 175, 55, 0.2);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.preorder-form .submit-button:hover {
  background: linear-gradient(135deg, #d4af37, #aa8c2c);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.3);
}

.payment-info {
  margin-top: 2rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.payment-info h3 {
  color: #d4af37;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.momo-code {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 4px;
  display: inline-block;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0;
  color: #ffd700;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 10px rgba(212, 175, 55, 0.1);
}

.payment-qr-code {
  display: block;
  width: 150px;
  height: 150px;
  margin: 1rem auto;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.form-result {
  display: none;
  text-align: center;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 1rem;
}

.form-result.success {
  display: block;
  color: #4bb543;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(75, 181, 67, 0.1);
}

.form-result.error {
  display: block;
  color: #ff3333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 51, 51, 0.1);
}

.highlight-code {
  background-color: #f0f0f0;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  border: 1px solid #ddd;
}

.form-result.success p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.form-result.success strong {
  color: #1a5928;
}

@media (max-width: 576px) {
  .preorder-form-container {
    padding: 1.5rem;
  }

  .preorder-form h2 {
    font-size: 1.5rem;
  }
}
