.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.popup-container {
  background: white;
  border-radius: 8px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.popup-close:hover {
  background: #f0f0f0;
}

.popup-close::before,
.popup-close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 2px;
  background: #333;
}

.popup-close::before {
  transform: rotate(45deg);
}

.popup-close::after {
  transform: rotate(-45deg);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.btn-primary {
  background: #fb993e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  font-size: 16px;
}

.btn-primary:hover {
  background: #e88b35;
}

.otp-timer {
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}

.btn-secondary {
  background: #666;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #555;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}

input:invalid {
  border-color: #dc3545;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .popup-container {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
    padding: 15px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group input,
  .form-group select {
    padding: 8px;
    font-size: 14px;
  }

  .popup-close {
    top: 10px;
    right: 10px;
  }

  .btn-primary {
    padding: 10px;
    font-size: 14px;
  }
}

/* Improve scrolling on mobile */
.popup-container {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Scrollbar Styling */
.popup-container::-webkit-scrollbar {
  width: 6px;
}

.popup-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.popup-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
