/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Modal Content */
.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Space Grotesk', sans-serif;
}

/* Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: black;
}

/* Modal Title */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  font-weight: 500;
  color: black;
}

/* Modal Description */
.modal-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Form Styling */
#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#email-input {
  font-family: 'Space Grotesk', sans-serif;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  transition: border-color 0.3s;
}

#email-input:focus {
  outline: none;
  border-color: black;
}

#submit-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem;
  background-color: black;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
}

#submit-btn:hover:not(:disabled) {
  background-color: #333;
}

#submit-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
}

/* Spinner */
#spinner {
  font-size: 1.25rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hidden Class */
.hidden {
  display: none;
}

/* Error Message */
.error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin: 0;
  padding: 0.5rem;
  background-color: #ffebee;
  border-radius: 0.25rem;
}

/* Success Message */
.success {
  color: #388e3c;
  font-size: 0.875rem;
  margin: 0;
  padding: 0.5rem;
  background-color: #e8f5e9;
  border-radius: 0.25rem;
}

/* Responsive Design */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    margin: 20% auto;
    padding: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }
}

/* reCAPTCHA Badge Positioning */
.grecaptcha-badge {
  visibility: hidden;
}
