* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}
form {
  display: block;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
h1 {
  margin-bottom: 20px;
}
label {
  margin-bottom: 5px;
  font-size: 14px;
}
.row {
  display: flex;
  gap: 10px;
}
.radio-row label {
  flex: 1;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.row .form-group {
  flex: 1;
}
input,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}
textarea {
  resize: none;
  height: 100px;
}
input:focus,
textarea:focus {
  border-color: #2a7f6f;
  outline: none;
}

.radio-group label {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
input[type="checkbox"] {
  margin-right: 5px;
}
button {
  width: 100%;
  padding: 12px;
  background-color: #2a7f6f;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
button:hover {
  background-color: #24665b;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
header {
  text-align: center;
  margin-top: 20px;
}
footer {
  margin: 20px 0;
  text-align: center;
  font-size: 12px;
}
form h1 {
  font-size: 22px;
  margin-bottom: 20px;
}
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}
input:hover,
textarea:hover {
  border-color: #2a7f6f;
}
.radio-row label:hover {
  border-color: #2a7f6f;
}
button:hover {
  background-color: #24665b;
}
#success-message {
  background-color: #2a7f6f;
  color: white;
  display: none;
  padding: 15px 25px;
  border-radius: 8px;

  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  z-index: 1000;
}
input.error,
textarea.error {
  border: 1px solid red;
}
#checkbox-error {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}
.form-group.error {
  border: none;
}
@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }
}
