form {
  max-width: 30rem;
  margin: 10.38rem auto;
}
.input__field {
  margin-bottom: 1rem;
}

.input__field label,
.input__field input {
  display: block;
}

.input__field input,
.input__field textarea,
.input__field select {
  margin: 0.7rem 0 1.5rem 0;
  width: 100%;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--form-grey-input);
  background: #141414;
}

.submit_btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
}
.submit_btn > img {
  width: 1.5rem;
  height: 1.5rem;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(240, 236, 236, 0.966);
  border-top-color: rgba(255, 254, 254, 0.849); /* spinner color */
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.spinner_text {
  color: #f0e9e9;
}

/* Modal Background */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Hidden state */
.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Modal Box */
.modal-content {
  background: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
  color: #141414;
}

/* Icon styles */
.modal-icon {
  font-size: 4rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Success icon (checkmark) */
.modal-icon.success {
  color: #28a745;
  animation: popIn 0.5s ease forwards;
}

/* Failure icon (cross) */
.modal-icon.failure {
  color: #dc3545;
  animation: popIn 0.5s ease forwards;
}

/* Pop-in animation */
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Modal Title */
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Modal Message */
.modal-message {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Close Button */
.modal-close-btn {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  background-color: #0056b3;
  outline: none;
}


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


@media (max-width: 600px) {
  form {
    margin: 5rem auto;
  }
}
