* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Tomarik";
  src: url("/fonts/Tomarik-Display.ttf") format("opentype");
  font-weight: 400;
  font-style: normal;
}


.title {
  font-family: "Tomarik", sans-serif;
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  display: block;
  /* penting agar bisa full width */
  max-width: 220px;
  /* supaya auto jadi 2 baris */
  margin: 0 auto;
  /* center secara horizontal */
  line-height: 1.1;
  /* mirip Figma */
}

body {
  position: relative;
  background-image: url("/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  /* ganti dari height fixed */
  display: flex;
  justify-content: center;
  /* font-family: "Tomarik", sans-serif; */
}

.grey-box {
  position: relative;
  /* wajib */
  background-color: #ffffff;
  border-radius: 44px;
  padding: 28px 22px;
  border: 1.8px solid rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(255, 0, 132, 0.25);
  width: 100%;
  max-width: 360px;
  margin: auto;
  overflow: hidden;
  /* agar inner border tidak keluar */
}

/* .grey-box::before { */
/* content: ""; */
/* position: absolute; */
/* inset: 0; */
border: 9px solid #000000;
stroke inside warna hitam border-radius: 44px;
samakan dengan box
/* pointer-events: none; */
/* box-sizing: border-box; */
/* } */

.grey-box h1 {
  /* font-family: "Orbitron", sans-serif; */
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #000;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.form-group {
  position: relative;
  display: block;
  width: 100%;
  padding: 5px;
  /* WAJIB supaya stroke terlihat */
  border-radius: 20px;
}

.form-control {
  position: relative;
  z-index: 2;
  background-color: #fff;
  border: none;
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 18px;
  color: #000;
  width: 100%;
  /* font-family: "Tomarik", sans-serif; */
  outline: none;
  box-sizing: border-box;
  text-align: center;
}

/* Saat mengetik (focus) → hilangkan inset shadow gelap */
.form-control:focus {
  box-shadow: 0 0 0 2px rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.2);
  /* lebih terang */
  outline: none;
  color: #fff;
}

.tulisan-karakter .text-white {
  font-family: "Tomarik", sans-serif;
  font-weight: 500;
  /* semibold */
  color: #000;
  letter-spacing: 1px;
  text-align: center;
}

svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-background {
  position: fixed;
  /* Menjadikan video tetap di latar belakang */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  /* Agar video tidak mengganggu elemen lain di atasnya */
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.custom-card {
  background-color: rgba(237, 238, 207, 0.6);
  /* Warna kuning pucat */
  border-radius: 20px;
  /* Radius sudut */
  border: 4px solid #ffffff;
  /* Garis tipis */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Bayangan lembut */
  padding: 20px;
  /* Jarak konten ke tepi */
}

.custom-btn {
  position: relative;
  width: 240px;
  height: 54px;
  background-color: #339E7D;
  border-radius: 50px;
  border: none;
  /* diganti opensans   */
  font-family: "opensans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: 1px;

  box-shadow: 0 0 22px rgba(255, 45, 139, 0.35);
  overflow: visible;
  /* penting agar OUTSIDE stroke kelihatan */
}

/* .custom-btn::before { */
/* content: ""; */
/* position: absolute; */
/* inset: 0; */
/* border: 5px solid #000000;  */
/* border-radius: 50px;  */
/* pointer-events: none; */
/* box-sizing: border-box; */
/* } */

/* .custom-btn span { */
/* color: #fff; */
/* font-weight: 800; */
/* letter-spacing: 1px; */
/* -webkit-text-stroke: 4px #000;  */
/* paint-order: stroke fill; */
/* } */

#hero {
  max-height: 170px;
  width: auto;
}

.logo-kecil {
  max-height: 20px;
  height: auto;
  width: auto;
}

#hero-container {
  margin-bottom: 20px;
}

#thank {
  max-width: 500px;
  background: linear-gradient(180deg, #ff49b1, #8110ff);
}

@media (max-width: 768px) {
  #hero {
    max-height: 120px;
    width: auto;
  }

  #thank {
    max-width: 350px;
  }

  #hero-container {
    margin-bottom: 0px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #hero {
    max-height: 150px;
    width: auto;
  }

  #hero-container {
    margin-bottom: 20px;
  }
}

.wrapper {
  width: 100%;
  flex-direction: column;
  margin-top: 25px;
  position: relative;
  /* lebih stabil */
}

.navbar {
  height: 75px;
  background-color: black;
}

.select2-container .select2-selection--single {
  height: 38px;
  padding: 6px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
  right: 10px;
}

.carousel-container {
  display: flex;
  padding: 0 35px;
  align-items: center;
  justify-content: center;
}

.carousel-wrapper {
  max-width: 300px;
  width: 100%;
  position: relative;
  overflow: visible;
}

.carousel-wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: transparent;
  /* transparan */
  border: 2px solid #000;
  /* warna pinggir */
  color: #000;
  /* warna ikon panah */
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.1s linear, background 0.2s;
  z-index: 2;
}

.carousel-wrapper i:active {
  transform: translateY(-50%) scale(0.85);
}

.carousel-wrapper i:first-child {
  left: -22px;
}

.carousel-wrapper i:last-child {
  right: -22px;
}

.carousel-wrapper .carousel {
  display: flex;
  align-items: center;
  gap: 16px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 20px 40px;
  margin: 0;

  scrollbar-width: none;
  overflow-x: auto;
  overflow-y: visible;
  /* ⬅️ BIAR SCALE KE ATAS KELUAR */
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.no-transition {
  scroll-behavior: auto;
}

.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}

.carousel :where(.card, .img) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel .card {
  flex: 0 0 120px; /* Increased from 100px */
  /* ukuran slot */
  display: flex;
  justify-content: center;
  align-items: center;

  scroll-snap-align: center;

  opacity: 0.5; /* Slightly more visible inactive */
  transform: scale(0.7); /* Smaller inactive to contrast more */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease; /* Snappier bounce */
   background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}

.carousel .card.active {
  opacity: 1;
  transform: scale(1.2); /* Much larger active state */
  z-index: 10;
}

.carousel .card .img {
  padding: 10px;
  border-radius: 20px;
  background: transparent;
}

.carousel img {
  width: 80px;
  height: auto;
  pointer-events: none;
}

/* .carousel .card.active .img {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
} */


.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, #fff 60%, transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, #fff 60%, transparent);
}



.card .img img {
  width: 144px;
  height: 216px;
  object-fit: contain;
}

.thank-wrapper {
  position: relative;
  width: 290px;
  margin: 0 auto;
}

.thank-glow {
  width: 100%;
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.thank-box {
  position: relative;
  z-index: 2;
  padding: 25px 20px;
  border-radius: 18px;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(180deg, #ff62b0, #7a20ff);
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.swal-glow-box {
  width: 300px;
  margin: auto;
  position: relative;
}

.swal-glow-box::before {
  content: "";
  position: absolute;
  inset: -80px -70px;
  border-radius: 35px;
  background: radial-gradient(circle at top left, rgba(255, 40, 150, 0.55), transparent 60%), radial-gradient(circle at bottom right, rgba(90, 0, 255, 0.55), transparent 60%);
  filter: blur(70px);
  z-index: 0;
}

.swal-inner {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ff62b0, #7a20ff);
  font-family: "Orbitron", sans-serif;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.swal-inner .small-text {
  margin-top: 8px;
  font-size: 17px;
}

/* THANK-YOU BOX P2 — FIX (Mirip PNG Glow) */
.thank-glow-box {
  width: 320px;
  margin: 40px auto 0 auto;
  /* kasih jarak dari logo */
  position: relative;
}

.thank-glow-box::before {
  content: "";
  position: absolute;
  inset: -80px -70px;
  border-radius: 35px;
  background: radial-gradient(circle at top left, rgba(255, 40, 150, 0.55), transparent 65%), radial-gradient(circle at bottom right, rgba(90, 0, 255, 0.55), transparent 65%);
  filter: blur(70px);
  z-index: 0;
}

.thank-inner {
  position: relative;
  z-index: 2;
  padding: 28px 20px;
  border-radius: 22px;
  background-color: #339E7D;
  font-family: "Orbitron", sans-serif;
  text-align: center;
  color: white;
  overflow: visible;
}

.thank-inner .big {
  font-size: 23px;
  font-weight: 700;
}

.thank-inner .username {
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0;
}

#p2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#char-container {
  display: flex;
  justify-content: center;
  width: 100%;
}