/**
 * Signup Form Modal Styles
 * @package ReasonableSpreadPlugin
 */

.reasonable-signup-form-wrapper {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
}

/* Toggle Button */
.reasonable-modal-toggle-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reasonable-modal-toggle-btn:hover {
  background: #005a87;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reasonable-modal-toggle-btn:active {
  transform: translateY(1px);
}

/* Modal Overlay */
.reasonable-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: reasonable-fadeIn 0.3s ease;
}

@keyframes reasonable-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.reasonable-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: reasonable-slideUp 0.3s ease;
}

@keyframes reasonable-slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.reasonable-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.reasonable-modal-close:hover {
  color: #000;
}

/* Modal Header */
.reasonable-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.reasonable-modal-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.reasonable-modal-description {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Form Styles */
.reasonable-form-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reasonable-input-modal {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.reasonable-input-modal:focus {
  outline: none;
  border-color: #0073aa;
}

.reasonable-submit-button-modal {
  width: 100%;
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.reasonable-submit-button-modal:hover {
  background: #005a87;
}

.reasonable-submit-button-modal:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
  .reasonable-modal-content {
    padding: 24px;
    width: 95%;
  }

  .reasonable-modal-title {
    font-size: 20px;
  }
}
