@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff7f0;
  color: #222222;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f8d9e0;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-family: 'Montserrat', sans-serif; 
  font-size: 36px;
  color: #222222;
  opacity: 0;
  animation: fadeInDown 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: #222222;
  font-weight: bold;
}

main {
  padding: 30px;
  max-width: 600px;
  margin: auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #ffffff;
  padding: 20px;
  border: 2px solid #fcdce4;
  border-radius: 10px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.6s;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #f8d9e0;
  border-radius: 5px;
  font-size: 16px;
  transition: box-shadow 0.3s ease;
  font-family: 'Montserrat', sans-serif; /* asigură font și la input/textarea */
}

input:focus,
textarea:focus {
  box-shadow: 0 0 8px 2px #ff66a3;
  outline: none;
}

button {
  background-color: #fcdce4;
  border: none;
  padding: 10px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  color: #222222;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-family: 'Montserrat', sans-serif; /* și la butoane */
}

button:hover {
  background-color: #ff66a3;
  transform: scale(1.05);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  form {
    width: 80%;
    margin: auto;
  }
}

@media (max-width: 768px) {
  form {
    width: 95%;
  }
}

@media (max-width: 480px) {
  form {
    width: 100%;
    padding: 0 10px;
  }
}
