body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #222;
  margin: 0;
  padding: 20px;
  background: #fff;
}
h1, h2 { font-size: 22px; margin: 0 0 15px; }
form { max-width: 640px; }
form input, form select, form textarea {
  display: block; width: 100%; margin-bottom: 10px; padding: 8px 10px;
  box-sizing: border-box; font-size: 15px; border: 1px solid #ccc; border-radius: 4px;
}
form label { display: block; margin-bottom: 5px; font-weight: 600; }
.switcher { margin-bottom: 15px; }
.switcher label { display: inline-block; margin-right: 20px; font-weight: normal; }
.switcher input { width: auto; display: inline-block; margin-right: 5px; }
form button {
  padding: 10px 22px; cursor: pointer; font-size: 15px;
  border: 0; border-radius: 4px; background: #0a7; color: #fff; margin-right: 10px;
}
form button:hover { background: #086; }
.hint { display: block; font-size: 12px; color: #666; margin: -6px 0 10px; }
.result-box { margin: 15px 0; }
.form-message { margin: 15px 0; padding: 10px; border-radius: 4px; display: none; }
.form-message.success { background: #e8f8ee; color: #1e7a3c; display: block; }
.form-message.error { background: #fdecea; color: #a52019; display: block; }
.total { font-size: 17px; margin: 15px 0; }