/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0f172a;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: darkred;
}

/* ========================================
   HEADER & LOGO
   ======================================== */
.header {
  text-align: center;
  padding: 20px 0;
}

.logo-image {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* CSS - sesuai gaya Anda */
.info-marquee-wrapper {
  background-color: #b60000;
  overflow: hidden;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  height: 35px;
  width: 100%;
  max-width: 1200px;
  margin: 5px auto 0 auto;
  border-bottom-left-radius: 50px;
  display: flex;
  align-items: center; /* 👈 ini kunci agar semua sejajar vertikal */
  font-family: Arial, sans-serif;
}

.info-terkini {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-left: 15px;
  gap: 6px;
}

.marquee-text {
  flex: 1;
  overflow: hidden;
  position: relative;
  margin-left: 10px;
  margin-right: 15px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Opsional: hentikan saat hover */
.marquee-content:hover {
  animation-play-state: paused;
}
/* ========================================
   BANNER SECTION
   ======================================== */
.banner-section {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: rgb(76 0 0 / 80%);
  backdrop-filter: blur(8px);
  border: 1px solid #960000;
  margin-top: 0px;
  margin-bottom: 0px;
}

.banner-box {
  margin-bottom: 18px;
}

.banner-image {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.5s ease;
  opacity: 1;
}

/* ========================================
   WARNA EMAS UNTUK SEMUA <strong> DI SYARAT SOUVENIR
   ======================================== */
.souvenir-terms ul li strong {
  background: linear-gradient(135deg, #f59e0b, #fbbf36);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback */
  font-weight: 800;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(251, 191, 36, 0.2);
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Loading & Error State */
.souvenir-grid .loading,
.souvenir-grid .no-data,
.souvenir-grid .error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-style: italic;
}

.souvenir-grid .error {
  color: #ef4444;
}

/* Touch-friendly */
.souvenir-item {
  -webkit-tap-highlight-color: transparent;
}

/* Dropdown ukuran responsif */
.size-box {
  margin-top: 8px;
  font-size: 0.85rem;
}

.dropdown-ukuran {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
}

/* Efek hover agar lebih hidup */
.souvenir-terms ul li:hover strong {
  background: linear-gradient(135deg, #ea580c, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
}

/* JUDUL DIPINDAH KE BAWAH BANNER */
.banner-box h1 {
  background: linear-gradient(
    135deg,
    rgb(50 31 0 / 15%),
    rgba(249, 115, 22, 0.1)
  );
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: inline-block;
  margin: 12px auto 0;
  text-align: center;
}

/* TOMBOL KLAIM EKSKLUSIF + CAHAYA EMAS BERJALAN */
.claim-button {
  padding: 18px 50px;
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(45deg, #ff4757, #ff6b6b);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 71, 87, 0.6);
  min-width: 380px;
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse 2s infinite;
  animation-play-state: paused;
}

.claim-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 35px rgba(255, 71, 87, 0.7);
}

.claim-button:active {
  transform: scale(0.98);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

/* ========================================
   SOUVENIR TERMS
   ======================================== */
.souvenir-terms {
  background: rgb(76 0 0 / 80%);
  padding: 25px;
  border-radius: 16px;
  margin: 25px 0;
  border: 1px solid #960000;
  backdrop-filter: blur(6px);
}

.souvenir-terms h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 700;
}

.souvenir-terms ul {
  list-style: none;
  padding-left: 5px;
}

.souvenir-terms ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.souvenir-terms ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .claim-button {
    min-width: 260px;
    padding: 16px 32px;
    font-size: 20px;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .claim-button {
    min-width: 220px;
    padding: 14px 24px;
    font-size: 18px;
  }
}

/* ========================================
   FORM SECTION
   ======================================== */
.form-section {
  background: rgb(76 0 0 / 80%);
  padding: 30px;
  border-radius: 16px;
  margin: 20px 0;
  border: 1px solid #960000;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-section h2 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1.5rem;
  text-align: center;
}

.form-section > p {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 0.95rem;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  background: #ffffff; /* White background */
  color: #000000; /* Black text */
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: #f0f0f0; /* Slightly light background when focused */
}

.form-input::placeholder,
.form-select::placeholder {
  color: #000000; /* Placeholder text in black */
}

.whatsapp-input {
  display: flex;
  border: 1px solid #475569;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  align-items: center; /* 👈 INI YANG KURANG */
}

.country-code {
  background: #ffffff;
  color: #000000;
  padding: 12px 14px;
  font-weight: 600;
  border-right: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.whatsapp-input .form-input {
  border: none;
  background: transparent;
  color: #000000;
  flex: 1;
  padding: 12px 16px; /* 👈 Tambahkan ini agar sepadan dengan .country-code */
}

.whatsapp-input:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ========================================
   SOUVENIR GRID — GAMBAR BESAR (150px+)
   ======================================== */

#souvenir-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(170px, 1fr)
  ); /* Lebar tiap kolom */
  gap: 22px;
  margin-top: 24px;
}

.souvenir-item {
  background: #670001;
  border: 2px solid #d4af37;
  border-radius: 14px;
  padding: 18px 12px; /* Lebih banyak ruang vertikal */
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  position: relative;
  min-height: 240px; /* Pastikan cukup untuk gambar + teks + dropdown */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.souvenir-item.selected {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #065f46, 0 6px 16px rgba(16, 185, 129, 0.3);
  background: #ff0000;
}

/* Centang indikator saat dipilih */
.souvenir-item.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  z-index: 2;
}

/* ========================================
   DUKUNGAN 2 GAMBAR DALAM 1 SOUVENIR ITEM
   ======================================== */

/* Container untuk gambar ganda */
.souvenir-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  align-items: center;
}

/* Gambar utama (besar) */
.souvenir-image.primary {
  width: 190px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  background: #334155;
  flex-shrink: 0;
}

/* Gambar tambahan (kecil) */
.souvenir-image.secondary {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  background: #334155;
  opacity: 0.9;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.souvenir-image.secondary:hover {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Styling untuk dropdown warna */
.dropdown-warna {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Efek saat dropdown fokus */
.dropdown-warna:focus {
  outline: none;
  border-color: #4caf50; /* Warna hijau saat fokus */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Tambahkan bayangan untuk fokus */
}

/* Styling untuk label dropdown */
.dropdown-warna + label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

/* Styling untuk dropdown pilihan (option) */
.dropdown-warna option {
  padding: 10px;
  background-color: #fff;
  color: #333;
  font-size: 16px;
}

/* Efek hover pada opsi pilihan */
.dropdown-warna option:hover {
  background-color: #f1f1f1;
  color: #000;
}

/* Styling saat dropdown tidak tersedia (disabled) */
.dropdown-warna:disabled {
  background-color: #f0f0f0;
  color: #bbb;
  cursor: not-allowed;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 140px;
}

.btn-cancel {
  background: #ff0000;
  color: #e2e8f0;
}

.btn-cancel:hover {
  background: #860101;
  transform: translateY(-2px);
}

.btn-claim {
  background: green;
  color: white;
}

.btn-claim:hover {
  background: green;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.4);
}

/* ========================================
   SUCCESS SECTION
   ======================================== */
#successMessage {
  display: none; /* Disembunyikan secara default */
  padding: 20px;
  background-color: #28a745; /* Warna hijau untuk sukses */
  color: white;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 18px;
}

#successSection h2 {
  color: #10b981;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

#successSection .btn-claim {
  margin-top: 15px;
}

.snowflake {
      color: #fff;
      font-size: 1em;
      font-family: Arial, sans-serif;
      text-shadow: 0 0 5px #aaa;
      position: absolute;
      top: -10px;
      z-index: 9999;
      user-select: none;
      pointer-events: none;
      animation: fall linear infinite;
    }
    @keyframes fall {
      to { transform: translateY(100vh); }
    }
