.main {
  margin-top: 170px;
  margin-bottom: 30px;
}
form {
  max-width: 700px;
  margin: 40px auto;
  padding: 24px;
  background: #fffdf8;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #3b2d1f;
}

form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #6a1b1b;
  font-size: 1.6rem;
}

form label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9a97c;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  background: #fff;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #8b4513;
  outline: none;
  box-shadow: 0 0 6px rgba(139, 69, 19, 0.3);
}

form small {
  font-size: 0.85rem;
  color: #6d4c41;
}

form b {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
}

form button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #d4af37, #c98910);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s;
}

form button:hover {
  background: linear-gradient(135deg, #c98910, #a67c00);
  transform: translateY(-2px);
}

form button:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  form {
    max-width: 400px;
    padding: 16px;
  }

  form h2 {
    font-size: 1.4rem;
  }

  form button {
    font-size: 1rem;
    padding: 10px;
  }
}

.qr-section {
  display: none;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.qr-container {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.qr-code {
  width: 200px;
  height: auto;
}
.qr-text {
  margin-top: 8px;
  font-weight: bold;
  color: green;
}

/* Popup background */
.popup {
  display: none; /* default hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 25, 10, 0.6); /* dark overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup content box */
.popup-content {
  background: #fffdf8;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: popupFade 0.3s ease;
  border: 2px solid #d4af37;
}

/* Heading */
.popup-content h3 {
  margin-bottom: 16px;
  color: #6a1b1b;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Confirm details list */
#confirmDetails {
  text-align: left;
  margin-bottom: 20px;
  background: #fdf6e3;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid #e0c97f;
}

/* Actions (buttons area) */
.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Buttons */
.popup-actions button {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

/* Cancel button */
#cancelBtn {
  background: #f0e1d2;
  color: #5a3e2b;
  border: 1px solid #d1b497;
}

#cancelBtn:hover {
  background: #e3cbb3;
}

/* Confirm button */
#okBtn {
  background: linear-gradient(135deg, #d4af37, #c98910);
  color: white;
}

#okBtn:hover {
  background: linear-gradient(135deg, #c98910, #a67c00);
  transform: translateY(-2px);
}

#okBtn:active {
  transform: scale(0.97);
}

/* Smooth animation */
@keyframes popupFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .popup-content {
    padding: 18px;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-actions button {
    width: 100%;
  }
}
