/* ========== RESET & BODY ========== */
* {
  box-sizing: border-box;
}

body {
  background-color: #F3F6F9;
  padding: 0;
  margin: 0;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}



/* ========== IMAGES / SECTION ========== */
.section {
  margin: 0 auto;
  max-width: 550px;
}

.img-container {
  line-height: 0;
}

.img-container img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  height: auto;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  display: none;
  background-color: white;
}

.popup-content {
  position: relative;
  width: 100%;
  height: auto;
}

.voucher-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 2;
}

.voucher-button {
  position: absolute;
  bottom: 10px;
  /* Tombol berada di bagian bawah gambar */
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  /* Kecilkan padding tombol */
  font-size: 14px;
  /* Kecilkan ukuran font tombol */
  font-weight: bold;
  color: aliceblue;
  background-color: rgb(6, 180, 0);
  /* Warna hijau terang */
  border: none;
  border-radius: 6px;
  /* Sudut tombol melengkung */
  cursor: pointer;
  z-index: 2;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Edit Button Pesan Dibawah ini  */
.buttons-pesan {
  background-color: #001eb2;
  border: 3px solid #fff;
  border-radius: 57px;
  color: #fff;
  padding: 14px 18px;
  margin: 4% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 620;
  display: inline-block;
  font-size: 20px;
  cursor: pointer;
  width: 80%;
}

/* Edit Button Ambil Promo Dibawah ini  */
.buttons-ambil-promo {
  background-color: #ffe600;
  border: 2px solid #000;
  border-radius: 3px;
  color: #000000;
  padding: 9px 18px;
  margin: 3% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 20px;
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
}

.buttons-ambil-promo:hover {
  background-color: #ffe600;
  border: 2px solid #fff;
  color: white;
}

/* Edit Cek Promo Dibawah ini  */
.buttons-cek-promo {
  background-color: #00337c;
  border: 2px solid #000;
  border-radius: 5px;
  color: #ffffff;
  padding: 9px 18px;
  margin: 3% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 20px;
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
}

.buttons-cek-promo:hover {
  background-color: #00337c;
  border: 2px solid #fff;
  color: white;
}

/* Fullscreen gambar di layar kecil */
@media (max-width: 767px) {
  .section {
    max-width: 100%;
    width: 100%;
  }
  .img-container img {
    width: 100%;
    height: auto;
  }
}

/* ========== FORM ========== */
#form {
  margin: 0px auto;
  max-width: 550px;
  width: 100%;
}

.form-box {
  border-radius: 10px;
  margin: 8% 2%;
  padding: 15px 10px;
  background: #ffe610;
  border: 4px solid black;
}

/* Judul */
#form h2 {
  font-size: 22px;
  margin: 0 0 15px 0;
  color: #000;
}

/* Group input */
.loops-group {
  margin-bottom: 12px;
}

.loops-group label {
  display: block;
  font-weight: bold;
  color: #000;
  margin-bottom: 6px;
}

.loops-group input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #b9d1be;
  border-radius: 6px;
  font-size: 14px;
}

/* Tombol submit */
.loops-group input.loops-submit {
  padding: 10px;
  font-weight: bold;
  background: #009e20;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  width: 100%;
  cursor: pointer;
}

.loops-group input.loops-submit:hover {
  opacity: 0.85;
}

/* ========== STATUS PESAN ========== */
.hidden {
  display: none;
}

#loading {
  color: #d27b00;
  font-weight: bold;
}

#error {
  color: #c00;
  font-weight: bold;
}

#success {
  color: #028a0f;
  font-weight: bold;
}

/* Purchase List */
.pembelian {
    border-radius: 10px;
    margin: 2% 1%;
    padding: 10px 25px;
    border: 4px solid rgb(5, 46, 196);
    background-color: #ffffff;
}

#purchase-list {
    display: grid;
    gap: 10px;
	row-gap: 10px;
    	column-gap: 10px;
}

.purchase-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.purchase-item:last-child {
    border-bottom: none;
}

.name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.package {
    color: #007BFF;
    text-align: left;
    font-weight: 500;
}

/* Edit Floating Button Dibawah ini  */
.floating-btn {
  position: fixed;
  z-index: 2;
  transform: translateX(-50%);
  bottom: 20px;
  width: 100px;
  /* right: 20px; */
  width: 70%;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.floating-btn img {
  width: 7.5cm;
}

/* ========== BUTTON WHATSAPP ========== */
#btnWhatsapp {
  background-color: #009e20;
  border-radius: 30px;
  color: #fff;
  padding: 9px 18px;
  margin: 6% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 13px;
}

#btnWhatsapp:hover {
  background-color: #00cc18;
}

.btnwa {
  background-color: #009e20;
  border-radius: 30px;
  color: #fff;
  padding: 9px 18px;
  margin: 6% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 13px;
}

/* Edit Alert Dibawah ini  */
.alert {
  margin: 0 3% 4%;
  padding: 20px;
  background-color: #91e5ff;
  color: #11425b;
}

.closebtnAlert {
  margin-left: 15px;
  color: #434343;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtnAlert:hover {
  color: black;
}

/* Slideshow (optional) */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #717171;
}

/* Animasi fade */
@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
