/* General Styling */
body {
  background: linear-gradient(to right, #e3f2fd, #bbdefb);
  font-family: "Roboto", Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  animation: backgroundMove 10s infinite alternate;
  background-size: 200% 100%;
}

@keyframes backgroundMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Header Styling */
header {
  background: #13ca4d;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1.5s ease-in-out;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

nav ul li {
  display: inline-block;
  margin: 0 12px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.15);
}

nav ul li a:hover {
  background: #fff;
  color: #13ca4d;
  transform: scale(1.05);
}

/* Main Form Area */
main {
  padding: 40px 20px;
  animation: fadeInUp 1.5s ease-in-out;
}

h2 {
  text-align: center;
  color: #1976d2;
  margin-bottom: 30px;
  font-size: 2rem;
}

form {
  max-width: 700px;
  margin: 0 auto;
  padding: 35px;
  background: #ffffffda;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: slideIn 1.5s ease-in-out;
}

/* Form Fields */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: hsl(151, 79%, 46%);
  box-shadow: 0 0 6px rgba(25, 118, 210, 0.3);
  background-color: #fff;
}

/* Submit Button */
input[type="submit"] {
  background: hsl(117, 79%, 46%);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

input[type="submit"]:hover {
  background: hsl(118, 79%, 36%);
  transform: translateY(-2px) scale(1.02);
}

input[type="submit"]:active {
  background: #80d27d;
  transform: translateY(0);
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 18px;
  background: #18b74d;
  color: #fff;
  margin-top: 50px;
  animation: fadeIn 2.5s ease-in-out;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
  color: #ffe082;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  nav ul li {
    display: block;
    margin: 8px 0;
  }

  form {
    padding: 20px;
  }

  input[type="submit"] {
    width: 100%;
  }
}
