/**
 * Form Submission Processing Spinner
 * Shows during form submission to prevent accidental double-submit
 * Displays loading message while images upload
 * Date: May 19, 2026
 */

/* Overlay backdrop */
.rdg-form-submission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease-in;
}

/* Show overlay when processing */
.rdg-form-submission-overlay.show {
  display: flex;
}

/* Spinner container */
.rdg-spinner-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  animation: slideUp 0.3s ease-out;
}

/* Spinner animation */
.rdg-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinner text */
.rdg-spinner-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
}

/* Spinner message */
.rdg-spinner-message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media only screen and (max-width: 600px) {
  .rdg-spinner-container {
    padding: 30px 20px;
    max-width: 90%;
  }
  .rdg-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
}