/* Form Styles - Split from form.php */

/* Submit button styles */
#submit-button {
  cursor: pointer !important;
  background-color: transparent !important;
  color: #6200FF !important;
  position: relative !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

#submit-button:hover {
  background-color: #6200FF !important;
  color: white !important;
}

/* Tooltip for disabled submit button */
#submit-button.has-tooltip {
  position: relative;
}

#submit-button.has-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-in-out;
}

#submit-button.has-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  z-index: 1000;
}

/* Spinner styles */
#submit-spinner {
  z-index: 10 !important;
  pointer-events: none !important;
}

#submit-spinner.active {
  z-index: 9999 !important;
  pointer-events: auto !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Error message styles */
.error-message {
  color: #ff0000;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Terms checkbox styles */
#accept_terms_privacy:focus {
  outline: 2px solid #6200FF;
}

.login-checkbox {
  appearance: none;
  background-color: transparent;
  border: 1px solid black;
  width: 0.75rem;
  height: 0.75rem;
  cursor: pointer;
  position: relative;
}

.login-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #6200FF;
  transform: translate(-50%, -50%);
}

/* File upload styles */
.file-item {
  padding: 0.25rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.file-item:last-child {
  border-bottom: none;
}


/* Make the X button bigger and black to match the arrow */
button[type="submit"].search-clear-btn {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: normal;
  padding: 0px 4px;
}


.delete-file {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
  color: #999;
  transition: color 0.2s ease;
}

.delete-file:hover {
  color: #000;
}

.file-list-container {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
  margin-top: 0.5rem;
}

.file-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Spinner animation */
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(98, 0, 255, 0.2);
  border-top: 2px solid #6200FF;
  border-radius: 50% !important;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  min-width: 12px;
  min-height: 12px;
  box-shadow: none;
  background: transparent;
  aspect-ratio: 1/1;
  overflow: hidden;
}

@media (min-width: 640px) {
  .spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    min-width: 14px;
    min-height: 14px;
  }
}

@media (min-width: 1024px) {
  .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    min-width: 16px;
    min-height: 16px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Action buttons */
.retry-upload {
  font-size: 0.75rem;
  color: #2563eb !important;
  cursor: pointer;
  margin-left: 0.5rem;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 2px 4px;
  line-height: 1;
  display: inline-block;
}

.retry-upload:hover {
  color: #1d4ed8 !important;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.file-actions button {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  line-height: 1;
  display: inline-block;
}

.file-name-error {
  color: #ff0000;
}

.cancel-upload {
  font-size: 0.75rem;
  color: #999 !important;
  cursor: pointer;
  margin-left: 0.5rem;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 2px 4px;
  line-height: 1;
  display: inline-block;
}

.cancel-upload:hover {
  color: #ff0000 !important;
} 