body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(45deg, #ff416c, #4406d6, #069e5a, #5005e8);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

/* Prevent horizontal scroll by hiding overflow on x-axis */
body,
html {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Also make sure no container is wider than viewport */
.container,
.payment-card,
#chat-widget,
.floating-boxes {
  max-width: 100vw;
  box-sizing: border-box; /* So padding doesn't add extra width */
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.payment-card {
  max-width: 600px;
  margin: 60px auto;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.payment-card h3 {
  font-weight: bold;
  color: #fff;
}

.payment-info li {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.form-label {
  font-weight: 600;
  color: #fff;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  color: #fff;
}

.form-control::placeholder {
  color: #ddd;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.btn-light {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  border-radius: 50px;
}

@media (max-width: 576px) {
  .payment-card {
    margin: 30px 15px;
  }
}

.policy-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  margin-top: 80px;
}

.accordion-button {
  font-weight: bold;
  border: none;
  box-shadow: none;
}

.accordion-body ul {
  padding-left: 20px;
}

.accordion-body li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.floating-boxes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Still behind your main content */
  pointer-events: none; /* Allows clicks through */
}

.box {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  animation: floatBox 20s linear infinite;
}

/* Specific positioning and animation delay for each */
.box1 {
  left: 10%;
  animation-delay: 0s;
}
.box2 {
  left: 30%;
  animation-delay: 5s;
  width: 60px;
  height: 60px;
}
.box3 {
  left: 50%;
  animation-delay: 10s;
}
.box4 {
  left: 70%;
  animation-delay: 15s;
  width: 50px;
  height: 50px;
}
.box5 {
  left: 90%;
  animation-delay: 7s;
}

@keyframes floatBox {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.floating-boxes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* Above video, behind form */
  pointer-events: none;
}

.box {
  position: absolute;
  bottom: -50px;
  width: 25px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  animation: floatFast 8s linear infinite;
}

@keyframes floatFast {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50vh) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}
.box {
  position: absolute;
  bottom: -80px;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  animation: floatFast 8s linear infinite;
}

/* Video styles */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  pointer-events: none;
  animation: fadeInOut 20s ease-in-out infinite;
}

/* Dark gradient overlay on top of video */
#videoOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: fadeInOut 20s ease-in-out infinite;
}

/* Fade in/out animation */
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  } /* max opacity at middle of cycle */
}

/**/
#chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#chat-btn {
  background: #0d6efd; /* Bootstrap primary blue */
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
  transition: background-color 0.3s ease;
}

#chat-btn:hover {
  background: #0b5ed7;
}

#chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#chat-panel a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#chat-panel a:hover {
  text-decoration: underline;
}

#chat-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hidden {
  display: none;
}

.manual-payment-guide {
  /* background-color: #121212; */
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.manual-payment-guide h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 2rem;
}

.payment-step {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #0d6efd;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.payment-step:hover {
  background-color: rgba(13, 110, 253, 0.1);
  border-color: #0d6efd;
  transform: translateY(-4px);
}

.payment-step h4 {
  color: #0d6efd;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.payment-step p,
.payment-step ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.payment-step ul {
  padding-left: 1.25rem;
}

.payment-step ul li {
  margin-bottom: 0.5rem;
}

.manual-payment-guide small a {
  text-decoration: underline;
  color: #0d6efd;
  transition: color 0.3s ease;
}

.manual-payment-guide small a:hover {
  color: #66b3ff;
}
