* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px 20px;
  background: #f3edff;
  color: #1e293b;
  font-family: Arial, sans-serif;
}

h1 {
  margin-bottom: 30px;
  color: #45137c;
  text-align: center;
}

form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border: 3px solid #8a3bd3;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-top: 25px;
  color: #45137c;
  border-bottom: 2px solid #e8dbfe;
  padding-bottom: 8px;
}

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

input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}

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

input:focus,
textarea:focus {
  outline: 2px solid #b399ff;
  border-color: #ab56fb;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
  display: inline;
}

#imagePreview {
  display: block;
  max-width: 220px;
  max-height: 220px;
  margin-top: 15px;
  border-radius: 8px;
  object-fit: cover;
}

button {
  width: 100%;
  margin-top: 30px;
  padding: 12px;
  background: #9a53ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #9132e4;
}

input:invalid,
textarea:invalid {
  border-color: #ef4444;
}