.fade-in { opacity: 1; }
.fade-out { opacity: 0; }

.form-container {
  max-width: 400px;
  margin: 10vh auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-align: center;
  animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

input, button {
  display: block;
  width: 100%;
  margin: 1.5rem 0;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 2rem;
}

select {
  display: block;
  width: 100%;
  margin: 0.8rem 0;
  padding: 0.8rem 2.5rem 0.8rem 0.8rem; /* extra right padding for icon space */
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 2rem;
  background-color: white;
  appearance: none;          /* removes default OS dropdown arrow */
  -webkit-appearance: none;  /* for Safari */
  -moz-appearance: none;     /* for Firefox */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%230078ff" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
  border-color: #0078ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,120,255,0.2);
}

select:hover {
  border-color: #0078ff;
}



.error {
  color: #d93025;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}

.error.hidden {
  opacity: 0;
  height: 0;
}


button {
  background-color: #0078ff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #005fcc;
}

.hidden {
  display: none;
}

#successMsg {
  margin-top: 1.5rem;
  color: green;
  font-weight: bold;
  font-size: 3rem;
}
