.form-container {
  display: flex; /* Asettaa lapset rinnakkain */
  gap: 20px;
  width: 100%;
}

.form-element {
  width: 100%;
}

@media (max-width: 991px) {
  .form-container {
    flex-direction: column;
  }
}

.form-submit {
  padding: 14px 8px;
  border: none;
  background: linear-gradient(to right, #9d5894 0%, #867bab 50%, #41a9cd 100%);
  width: 100%;
  margin-top: 1rem;
}

.form-submit:hover {
  background: linear-gradient(to right, #b479ac 0%, #9f97bd 50%, #69bbd7 100%);
}

.form-alert-fail, .form-alert-success {
  text-align: center;
  margin-top: 1rem;
  padding: 14px 26px;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  width: 100%;
  color: white;
}

.form-alert-fail {
  background: linear-gradient(
          to right bottom,
          rgba(143, 31, 31, 1) 0%,
          rgba(87, 19, 19, 1) 100%
  );
  border: 1px solid rgba(249, 121, 121, 0.3);
}

.form-alert-success {
  background: linear-gradient(
          to right bottom,
          rgba(47, 107, 49, 1) 0%,
          rgba(22, 68, 23, 1) 100%
  );
  border: 1px solid rgba(64, 182, 68, 0.3);
}

.form-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
