/* ========== 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: 720px;
}

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

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

/* Courosel */
.carousel1 {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel2 {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel3 {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel4 {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-track1 {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track2 {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track3 {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track4 {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide1 {
  min-width: 100%;
  box-sizing: border-box;
}

.slide2 {
  min-width: 100%;
  box-sizing: border-box;
}

.slide3 {
  min-width: 100%;
  box-sizing: border-box;
}

.slide4 {
  min-width: 100%;
  box-sizing: border-box;
}

.slide1 img {
  width: 100%;
  display: block;
}

.slide2 img {
  width: 100%;
  display: block;
}

.slide3 img {
  width: 100%;
  display: block;
}

.slide4 img {
  width: 100%;
  display: block;
}

/* Button */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Dots */
.dots1 {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dots2 {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dots3 {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dots4 {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot1 {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot2 {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot3 {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot4 {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot1.active {
  background: white;
}

.dot2.active {
  background: white;
}

.dot3.active {
  background: white;
}

.dot4.active {
  background: white;
}

/* 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: 35px;
  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: 35px;
  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;
}

/* ========== FORM ========== */
.form {
  margin: 0px auto;
  max-width: 720px;
  width: 100%;
  height: auto;
}

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

/* Judul */
.form h2 {
  text-align: center;
  font-size: 40px;
  margin: 0 0 20px 0;
  color: #000;
}

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

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

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

/* Tombol submit */
.loops-group input.loops-submit {
  padding: 15px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: bold;
  background: #009e20;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 28px;
  width: 100%;
  cursor: pointer;
}

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

/* ========== STATUS PESAN ========== */
.error{
  font-size: 22px;
  font-weight: bold;
  color: red;
}

/* Purchase List */
.order-box {
    width: 95%;
    max-width: 720px;
    margin: 25px auto;
    background: linear-gradient(135deg, #1b4fc9, #3da5ff);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid #ffffff;
  }

  .order-title {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    padding: 20px;
    font-size: 30px; /* Pertimbangkan untuk mengecilkan jika di mobile (misal 24px) */
    letter-spacing: 0.5px;
  }

  .scroll-container {
    height: 350px;
    overflow: hidden;
    position: relative;
  }

  .orders {
    display: flex;
    flex-direction: column;
    animation: scrollOrders 25s linear infinite;
  }

  /* Berhenti saat kursor di atas kotak */
  .scroll-container:hover .orders {
    animation-play-state: paused;
  }

  @keyframes scrollOrders {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
  }

  .order-item {
    background: rgba(255, 255, 255, 0.9);
    color: #1b4fc9;
    margin: 6px 10px;
    border-radius: 10px;
    padding: 15px 20px; /* Padding ditingkatkan untuk kenyamanan visual */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid #ffcc00;
    transition: transform 0.3s ease;
  }

  .order-item:hover {
    transform: scale(1.02);
    background: #ffffff; /* Lebih terang saat hover */
  }

  /* --- PENGATURAN KOLOM --- */
  
  .order-name {
    font-weight: 600;
    font-size: 22px; /* Jika terlalu besar di HP, gunakan unit em/rem */
    flex: 2;         /* Mengambil 50% ruang */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Nama panjang akan terpotong rapi dengan titik (...) */
  }

  .order-box-count {
    color: #ffb300;
    font-weight: bold;
    font-size: 22px;
    flex: 1;         /* Mengambil 25% ruang */
    text-align: center; /* Sejajar di tengah */
  }

  .order-time {
    font-style: italic;
    color: #666;
    font-size: 22px;
    flex: 1.2;       /* Mengambil sisa ruang (sekitar 25-30%) */
    text-align: right; /* Melekat ke kanan */
  }

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

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

/* ========== 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: 35px;
}

#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: 35px;
}

/* Edit Alert Dibawah ini  */
.penting {
  margin: 0 3% 4%;
  padding: 20px;
  border-radius: 5px;
  background-color: #ccf3ff;
  color: #11425b;
  font-size: 30px;
}

.closebtnAlert {
  margin-left: 15px;
  color: #434343;
  font-weight: bold;
  float: right;
  font-size: 35px;
  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; }
}
/* Fullscreen gambar di layar kecil */
@media (max-width: 1080px) {
  .section {
    max-width: 100%;
    width: 100%;
  }

  .form {
    max-width: 100%;
    width: 100%;
  }

  .form h2 {
    font-size: 50px;
    font-weight: bold;
  }

  .error{
  font-size: 28px;
  }

  .loops-group label{
    font-size: 35px;
    font-weight: bold;
  }
  .loops-group input[type="text"]{
    font-size: 35px;
    padding: 20px 20px;
  }
  

  .loops-group input.loops-submit {
    font-size: 40px;
    padding: 20px 20px;
  }

  .floating-btn{
    max-width: 100%;
    padding-bottom: 60px;
  }

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

  .order-box {
    max-width: 100%;
    width: 100%;
  }

  .scroll-container {
    height: 550px;
  }

  .order-title { 
    font-size: 30px; 
  }

  .order-name, .order-box-count, .order-time {
     font-size: 25px; 
  }

  .img-container img {
    width: 100%;
    height: auto;
  }
}