/* =========================
   COMMON POPUP
========================== */

.spin-wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.spin-wheel-popup {
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  animation: spinWheelPopupIn 0.3s ease;
}

@keyframes spinWheelPopupIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.spin-wheel-close-btn {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  color: #777;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-wheel-close-btn:hover {
  color: #333;
}

.spin-wheel-popup h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #222;
  font-size: 24px;
}

.spin-wheel-popup p {
  color: #555;
  margin: 10px 0;
  line-height: 1.6;
}

.spin-wheel-hidden {
  display: none !important;
}

/* =========================
   WHEEL
========================== */

.spin-wheel-wrapper {
  width: 280px;
  height: 280px;
  margin: 25px auto;
  position: relative;
}

.spin-wheel {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

  background: conic-gradient(
    #ff4757 0deg 45deg,
    #ffa502 45deg 90deg,
    #2ed573 90deg 135deg,
    #1e90ff 135deg 180deg,
    #a55eea 180deg 225deg,
    #ff6b81 225deg 270deg,
    #20bf6b 270deg 315deg,
    #f7b731 315deg 360deg
  );

  position: relative;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.spin-wheel-labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.spin-wheel-label {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 13px;
  width: 80px;
  text-align: center;
}

.spin-wheel-label1 {
  top: 40px;
  left: 140px;
}

.spin-wheel-label2 {
  top: 97px;
  right: 20px;
  transform: rotate(60deg);
}

.spin-wheel-label3 {
  top: 165px;
  right: 10px;
  transform: rotate(120deg);
}

.spin-wheel-label4 {
  bottom: 35px;
  right: 64px;
}

.spin-wheel-label5 {
  bottom: 37px;
  left: 64px;
  transform: rotate(22deg);
}

.spin-wheel-label6 {
  bottom: 93px;
  left: 4px;
  transform: rotate(63deg);
}

.spin-wheel-label7 {
  top: 100px;
  left: 4px;
  transform: rotate(60deg);
}

.spin-wheel-label8 {
  top: 41px;
  left: 54px;
  transform: rotate(120deg);
}

.spin-wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 35px solid #222;
  z-index: 2;
}

.spin-wheel-btn {
  border: 0;
  background: #ff4757;
  color: white;
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.spin-wheel-btn:hover:not(:disabled) {
  background: #ff3838;
}

.spin-wheel-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* =========================
   FORM
========================== */

.spin-wheel-form-group {
  text-align: left;
  margin-bottom: 15px;
}

.spin-wheel-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.spin-wheel-form-group input {
  width: 100%;
  padding: 13px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.spin-wheel-form-group input:focus {
  outline: none;
  border-color: #ff4757;
  box-shadow: 0 0 5px rgba(255, 71, 87, 0.3);
}

.spin-wheel-primary-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: white;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

.spin-wheel-primary-btn:hover {
  background: #333;
}

.spin-wheel-primary-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.spin-wheel-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.spin-wheel-error.show {
  display: block;
}

.spin-wheel-success {
  color: #27ae60;
  font-weight: bold;
  margin: 15px 0;
  display: none;
}

.spin-wheel-success.show {
  display: block;
}

/* =========================
   PRIZE BOX
========================== */

.spin-wheel-prize-box {
  background: #fff4d6;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.spin-wheel-prize-box strong {
  display: block;
  font-size: 28px;
  color: #e67e22;
  margin-top: 8px;
}

/* =========================
   CLAIM BUTTON
========================== */

.spin-wheel-claim-btn {
  background: #ff4757;
  color: white;
  border: 0;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.spin-wheel-claim-btn:hover {
  background: #ff3838;
}

.spin-wheel-claim-visible {
  display: flex !important;
}

/* =========================
   RATING
========================== */

.spin-wheel-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 25px 0;
}

.spin-wheel-star {
  font-size: 40px;
  color: #ccc;
  cursor: pointer;
  transition: 0.2s;
}

.spin-wheel-star.active,
.spin-wheel-star:hover {
  color: #ffc107;
}

/* =========================
   RESPONSIVE
========================== */

@media (max-width: 500px) {
  .spin-wheel-wrapper,
  .spin-wheel {
    width: 240px;
    height: 240px;
  }

  .spin-wheel-label {
    font-size: 11px;
  }

  .spin-wheel-popup {
    padding: 25px 18px;
  }

  .spin-wheel-popup h2 {
    font-size: 20px;
  }
}

#claimSection {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 20px;
}

#claimSection h2,
#claimSection p {
  margin-top: 0;
  margin-bottom: 10px;
}

#claimSection h2 {
  font-size: 22px;
}

#claimSection p {
  font-size: 16px;
}

.spin-wheel-popup label {
	width:100%;
}

.spin-wheel-popup input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
}

.spin-wheel-popup form {
  text-align: left;
  font-size: 14px;
}
