/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #d0d0d0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 30px;
}

/* Animations */
@keyframes fadeInDownScale {
  0% { opacity: 0; transform: translateY(-30px) scale(0.95);}
  60% { opacity: 1; transform: translateY(10px) scale(1.05);}
  100% { transform: translateY(0) scale(1);}
}

@keyframes fadeInUpScale {
  0% { opacity: 0; transform: translateY(40px) scale(0.95);}
  60% { opacity: 1; transform: translateY(-10px) scale(1.05);}
  100% { transform: translateY(0) scale(1);}
}

@keyframes bounceScale {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0) scale(1);}
  40% {transform: translateY(-15px) scale(1.05);}
  60% {transform: translateY(-7px) scale(1.02);}
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

#title {
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 8px;
  animation: fadeInDownScale 1s ease-in-out;
}

#description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 25px;
  animation: fadeInDownScale 1.2s ease-in-out;
}

/* Form */
#survey-form {
  background: #f0f0f0;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0px 15px 40px rgba(0,0,0,0.2);
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUpScale 1s ease-in-out;
  transform-origin: top center;
}

/* Labels & inputs */
label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #bbb;
  font-size: 1rem;
  margin-top: 8px;
  transition: 0.3s ease-in-out;
  background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #777;
  box-shadow: 0 0 12px rgba(100,100,100,0.4);
  transform: scale(1.02);
}

/* Radio & checkbox */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.input-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.input-group label:hover {
  transform: scale(1.05);
  color: #000;
}

label input[type="radio"],
label input[type="checkbox"] {
  accent-color: #555;
  flex-shrink: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

label input[type="radio"]:checked,
label input[type="checkbox"]:checked {
  transform: scale(1.2);
  animation: bounceScale 0.5s;
}

/* Submit button */
#submit {
  padding: 14px;
  background: #666;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

#submit:hover {
  background: #444;
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0px 8px 25px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 600px) {
  #survey-form {
    padding: 25px;
    gap: 18px;
  }

  #title {
    font-size: 2rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  select,
  textarea {
    font-size: 0.95rem;
  }
}
