/* General Page Styling */
body,
html {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Default Form Styling (For Desktop) */
form {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 400px;
  min-height: 50vh;
  box-sizing: border-box;
}

/* Textarea Styling */
textarea {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
  min-height: 0;
}

/* Button Styling */
input[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 15px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Success/Error Message */
.message {
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  margin-left: 10px;
}

.message a:hover {
  opacity: 0.7;
}

/* MOBILE-SPECIFIC STYLES (Only Apply on Mobile Devices) */
@media (max-width: 768px) {
  body {
    justify-content: flex-start;
    align-items: flex-start;
  }

  form {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 15px;
  }

  textarea {
    height: 100%;
  }

  input[type="submit"] {
    font-size: 16px;
    padding: 12px;
  }
}
