* { box-sizing: border-box; }

body {
  font-family: -apple-system, system-ui, sans-serif;
  background: #f4f5f7;
  color: #222;
  margin: 0;
  padding: 24px;
  line-height: 1.5;
}

main {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 32px;
}

h1 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 600;
}

.status {
  padding: 12px 16px;
  border-radius: 4px;
  background: #eef;
  color: #335;
  margin-bottom: 16px;
}

.status.error {
  background: #fee;
  color: #833;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.field .required-mark {
  color: #c00;
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #36c;
  box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.2);
}

.field.error input,
.field.error select {
  border-color: #c00;
}

.field .error-message {
  color: #c00;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.field.error .error-message {
  display: block;
}

.field.hidden {
  display: none;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #36c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

button[type="submit"]:hover:not(:disabled) {
  background: #25b;
}

#thanks {
  text-align: center;
  padding: 24px 0;
}

#thanks h2 {
  color: #2a2;
  margin-bottom: 16px;
}
