#qr-sound-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
  z-index: 10;
}
#qr-sound-btn:hover { background: rgba(0,0,0,0.75); }

#qr-video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: qrFadeIn 0.4s ease;
  overflow-y: auto;
  padding: 24px 16px;
  box-sizing: border-box;
}
#qr-video-overlay.active {
  display: flex;
}

@keyframes qrFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#qr-video-wrapper {
  position: relative;
  width: min(92vw, 500px);
  margin: 0 auto;
  border-radius: 16px;
  overflow-y: auto;              /* ? overflow:hidden HATA DIYA — yahi bug tha! */
  overflow-x: hidden;
  max-height: none;              /* ? max-height hatao — content freely grow kare */
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.75);
  animation: qrScaleIn 0.4s ease;
  background: #1a1a1a;           /* ? dark bg — video ke baad form float na lage */
  scrollbar-width: thin;
}

@keyframes qrScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Video styles */
#qr-video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 16px 16px 0 0;  /* ? sirf upar rounded — form se seamless connect */
}

/* Close button */
#qr-video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}
#qr-video-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Skip button */
#qr-video-skip {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: none;
  letter-spacing: 0.4px;
  font-family: inherit;
  transition: color 0.2s;
  padding: 6px 12px;
}
#qr-video-skip:hover { color: rgba(255, 255, 255, 0.85); }

/* ? Callback form — always visible */
#qr-callback-form {
  display: block !important;
  background: white;
  border-radius: 0 0 16px 16px;  /* ? sirf neeche rounded */
  margin-top: 0;                  /* ? video se directly attach */
}

/* Mobile */
@media (max-width: 500px) {
  #qr-video-overlay {
    padding: 12px 0;
  }
  #qr-video-wrapper {
    width: 96vw;
  }
  #qr-callback-form {
    padding: 18px 14px !important;
  }
}