* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #ffffff;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

.survey-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.survey-title {
  font-size: 20px;
  margin: 4px 0 4px;
}

.survey-desc {
  color: #555;
  margin: 0 0 20px;
}

.logged-in-as {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-required-box {
  text-align: center;
  padding: 30px 20px;
}

.btn-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.message {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: bold;
}
.message.success { background: #e6f7ed; color: #1a7f4b; border: 1px solid #b7e4c7; }
.message.error   { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

.question-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.question-text {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.required {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #fff;
  background: #d9534f;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
}

.question-desc {
  margin: 0 0 10px;
  color: #666;
  font-size: 13px;
}

.answer-area input[type="text"],
.answer-area textarea,
.answer-area select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

.choice-label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}

.choice-label input {
  margin-right: 8px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

#submit-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
}

#submit-btn:disabled {
  background: #9db8e8;
  cursor: default;
}

#submit-btn:hover:not(:disabled) {
  background: #1d4ed8;
}
