@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: url("../other/images/backgroundform.png") no-repeat center center;
  background-size: cover;
  height: 100vh;
  overflow: hidden;
}

.form-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.form-wrapper {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 0 15px;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.form-container {
  background: white;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

h2 {
  color: #0f3c64;
  margin-bottom: 1.5rem;
  text-align: center;
}

form input,
form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  border-color: #007acc;
  outline: none;
}

textarea {
  resize: vertical;
  height: 100px;
}

button {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

button:hover {
  background-color: #005fa3;
}

#toast-container {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  display: none;
  padding: 15px 20px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: slideDown 0.3s ease;
  text-align: center;
  max-width: 420px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-success {
  background-color: #e6f7e6;
  color: #2c662d;
  border: 1px solid #a3d9a5;
}

.toast-error {
  background-color: #ffe6e6;
  color: #a12727;
  border: 1px solid #e0a5a5;
}

.toast .checkmark {
  font-size: 24px;
  margin-bottom: 5px;
  display: block;
}