* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f6f8;
  color: #222;
}

main {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section {
  background-color: white;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

section h2 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 16px;
}

textarea {
  min-height: 100px;
}

#image-preview {
  width: 100%;
  height: 220px;
  margin-top: 15px;
  border: 2px dashed #aaa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
}

#image-preview p {
  color: #777;
}

#image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#terms {
  width: auto;
  margin-right: 8px;
}

label[for="terms"] {
  display: flex;
  align-items: center;
}

button {
  padding: 14px;
  border: none;
  border-radius: 6px;
  background-color: #1d6fdc;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

button:hover {
  background-color: #1558ad;
}

.message-page {
  background-color: white;
  padding: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

.message-page a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #1d6fdc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.message-page a:hover {
  background-color: #1558ad;
}

@media (max-width: 600px) {
  main {
    width: 95%;
    margin: 20px auto;
  }

  section {
    padding: 15px;
  }
}