/* Reset default styles */
body, input, textarea, button {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Page layout */
body {
  background: #f4f6f8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Form container */
form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

/* Labels */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

/* Inputs and textarea */
input, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
  outline: none;
}

/* Textarea behavior */
textarea {
  resize: vertical;       /* ✅ Only vertical resizing allowed */
  overflow-y: auto;
  height: 120px;
  max-width: 100%;
}

/* Submit button */
button {
  background-color: #0078d4;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Responsive tweaks */
@media (max-width: 600px) {
  form {
    padding: 1.5rem;
  }

  input, textarea, button {
    font-size: 0.95rem;
  }
}
