* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* BACKGROUND DINAMIS DARI TIKET */
body {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.8s ease-in-out;
}

/* Kaca pemburam (Overlay Hitam Transparan supaya modalnya keliatan) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* MODAL / CARD CHECKOUT (PUTIH BERSIH) */
.modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  margin: 20px;
  background: rgba(255, 255, 255, 0.95); /* Putih hampir solid */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem 2.5rem;
  color: #333; /* Teks Hitam/Abu Tua */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.btn-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #777;
  font-size: 1.8rem;
  text-decoration: none;
  transition: 0.3s;
  background: #f0f0f0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.btn-close:hover {
  color: white;
  background: #ef4444;
  transform: rotate(90deg);
}

.ticket-header {
  margin-bottom: 2.5rem;
}
.badge {
  background: #e0f7fa;
  color: #00838f;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid #b2ebf2;
  text-transform: uppercase;
}
#ticket-title {
  margin-top: 1.2rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
}

.route-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid #eaeaea;
}
.city p {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.city h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}
.divider {
  font-size: 1.8rem;
  color: #0ef;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: #666;
  font-weight: 500;
}
.form-group input[type="date"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid #eee;
  background: white;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}
.form-group input[type="date"]:focus {
  border-color: #0ef;
}

.row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.counter {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  border: 2px solid #eee;
  padding: 5px;
}
.counter button {
  background: #f0f0f0;
  color: #333;
  border: none;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
  font-weight: bold;
}
.counter button:hover {
  background: #0ef;
  color: black;
}
.counter input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  color: #111;
  font-weight: bold;
  font-size: 1.1rem;
  pointer-events: none;
}

.price-action {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #ddd;
}
.total {
  text-align: center;
  margin-bottom: 1.5rem;
}
.total p {
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.total h2 {
  font-size: 2.2rem;
  color: #006aff;
  font-weight: 800;
}

.btn-buy {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: #0ef;
  color: #111;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 238, 255, 0.3);
  transition: all 0.3s ease;
}
.btn-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 238, 255, 0.5);
  background: #00d2d3;
}
