/* ================= RESET & BASICS ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  width: 100%;
  background: #f5f5f5;
  color: #222;
}

/* ================= PAGE WRAPPER ================= */
body {
  display: block; /* center handled via container */
}

.page {
  width: 100%;
  max-width: 900px;
  padding: 30px 20px;
  margin: 120px auto 0;
}

/* ================= TITLE ================= */
.title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ================= INPUT GROUP ================= */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 2px solid #6a11ff;
  border-radius: 14px;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23666666'%3E%3Cpath d='M3 5l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #2575fc;
}

/* ================= SEND BUTTON ================= */
.send-btn {
  margin-top: 22px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6a11ff, #2575fc);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.send-btn:hover {
  opacity: 0.92;
}

/* ================= MODAL ================= */
.modal {
  display: none; 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center; 
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 30px 25px;
  width: 380px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
}

/* Modal heading & paragraph */
.modal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.modal-content p {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* Modal inputs */
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 18px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.modal-content input:focus {
  border-color: #6a11ff;
  outline: none;
}

/* Modal buttons */
.modal-content button {
  width: 100%;
  padding: 14px 0;
  margin-top: 12px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Pay button */
#payBtn {
  background: linear-gradient(135deg, #6a11ff, #2575fc);
  color: #fff;
  margin-bottom: 10px;
}

#payBtn:hover {
  background: linear-gradient(135deg, #2575fc, #6a11ff);
}

/* Cancel button */
.close-btn {
  background-color: #aaa;
  color: #fff;
}

.close-btn:hover {
  background-color: #888;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .page {
    margin-top: 90px;
  }

  .title {
    font-size: 22px;
  }

  .modal-content {
    width: 90%;
    padding: 25px 20px;
  }
}

/* ================= EXTRA SMALL DEVICES ================= */
@media (max-width: 400px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card-btn {
    padding: 16px;
  }
}