/* Desktop Modal Styles - Traditional Pop-up */
.desktop-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
}
.desktop-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}
.desktop-modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 420px;
  width: calc(100% - 20px); /* Account for overlay padding */
  max-height: calc(100vh - 20px); /* Account for overlay padding */
  overflow-y: auto;
  margin: auto; /* Centering using flexbox */
  position: relative; /* For close button positioning */
  z-index: 100000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}
.desktop-modal-overlay.active .desktop-modal-content {
  opacity: 1 !important;
  visibility: visible !important;
}
.desktop-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 5px;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.desktop-modal-close:hover {
  color: #1f2937;
}
/* Adjust form inside modal */
.desktop-modal-content .multi-otp-container {
  margin: 0;
  box-shadow: none;
  border: none;
  padding: 0;
}
.desktop-modal-content .multi-otp-card {
  box-shadow: none;
  border: none;
  padding: 0;
}
.desktop-modal-content .multi-otp-card::before {
  display: none;
}

/* Trigger Icon Styles */
.desktop-otp-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #dc2626, #ef4444); /* Example color */
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.desktop-otp-trigger-icon:hover,
.desktop-otp-trigger-icon:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.desktop-otp-trigger-icon svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

/* Prevent body scroll when modal is open */
body.desktop-modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile Responsive for Desktop Modal (should ideally not be shown on mobile) */
@media (max-width: 768px) {
  .desktop-modal-overlay {
    padding: 5px;
  }
  .desktop-modal-content {
    padding: 15px;
    border-radius: 15px;
    max-height: calc(100vh - 10px);
    width: calc(100% - 10px);
  }
  .desktop-modal-close {
    top: 10px;
    right: 10px;
    font-size: 20px;
    padding: 8px;
  }
}
