.spin-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
}

.open-popup-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.open-popup-btn:hover {
  transform: scale(1.1);
}

.spin-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 9998;
}

.spin-popup-overlay.show {
  display: flex;
}

.spin-popup {
  width: 50%;
  height: 100%;
  background-color: #fff;
  position: relative;
  animation: slideIn 0.4s ease forwards;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.popup-header {
  align-items: center;
  padding-top: 50px;
}

.popup-title {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
}

.spin-description {
  text-align: center;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.spin-popup-content {
  margin-top: 40px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

#wheel-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

#wheel-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
}

#wheel-wrapper canvas {
  border-radius: 50%;
  width: 100%;
  height: 100%;
}
#pointer {
  position: absolute;
  top: -10px; /* dari -25px jadi lebih ke bawah */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid red;
  z-index: 10;
}

#spin-form {
  width: 95%;
  max-width: 95%;
  box-sizing: border-box;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 10px; /* sedikit padding samping agar tidak mentok */
}
#spin-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 10px;
}

#spin-form input,
#spin-form button {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
}

#spin-form input {
  color: #212529;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#spin-form input:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#spin-form button.spin-btn {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#spin-form button.spin-btn:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

#spin-result {
  display: none;
  text-align: center;
  padding: 20px;
}

#spin-result h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

#spin-result p {
  font-size: 18px;
}

/* Responsive: Full width di tablet & mobile */
@media (max-width: 768px) {
  .spin-popup {
    width: 100%;
  }
}
