* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f8f7fc;
  color: #242033;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}
main { max-width: 600px; margin: 38px auto 64px; padding: 0 20px; }
.intro { margin-bottom: 30px; text-align: center; }
h1 { font-size: 30px; line-height: 1.5; margin: 10px 0 12px; }
#form-intro { font-size: 14px; color: #766e83; margin: 0; }
.card {
  background: white;
  border: 1px solid #eee8f4;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 40px #42236508;
}
.meta { display: flex; justify-content: space-between; font-size: 12px; color: #888091; }
.meta strong { color: #9333ea; }
.track { height: 5px; background: #eee9f4; margin: 12px 0 30px; border-radius: 5px; overflow: hidden; }
.fill { height: 100%; background: #9333ea; transition: width .25s; }
.field > label { display: block; font-size: 22px; font-weight: 700; line-height: 1.5; margin: 0 0 14px; }
.field fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.field fieldset label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  border: 1px solid #e8e0ef;
  border-radius: 10px;
  color: #38303f;
  font-size: 15px;
  cursor: pointer;
  transition: .15s;
}
.field fieldset label + label { margin-top: 12px; }
.field fieldset label:hover, .field fieldset label:focus-within {
  background: #faf5ff;
  border-color: #9333ea;
  outline: 2px solid #9333ea22;
}
.field fieldset input { position: absolute; opacity: 0; margin: 0; }
.option-mark { color: #a87cc9; margin-left: 8px; }
input[type="checkbox"] ~ .option-mark { visibility: hidden; }
input[type="checkbox"]:checked ~ .option-mark { visibility: visible; }
.field fieldset label:has(input:checked) { background: #9333ea; color: white; border-color: #9333ea; }
input:checked + span { font-weight: 700; }
.field fieldset label:has(input:checked) .option-mark { color: white; }
.field > input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e8e0ef;
  border-radius: 10px;
  background: white;
  color: #242033;
  font: inherit;
  font-size: 16px;
}
button { font: inherit; cursor: pointer; }
.primary, .line-button {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: #9333ea;
  color: white;
  font-weight: 700;
}
.primary:hover { background: #7e22ce; }
.line-button { background: #06c755; }
.line-button:disabled { opacity: .72; cursor: default; }
.back { border: 0; background: none; color: #83798e; font-size: 13px; padding: 0; margin-top: 24px; }
.reminder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f5f0ff;
  color: #594183;
  border-radius: 12px;
  margin: 16px 0 0;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reminder::before {
  content: "i";
  flex: 0 0 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #8956df;
  color: white;
  font: bold 16px/22px Georgia, serif;
  text-align: center;
}
#name-hint, #form-status, #line-fallback { font-size: 14px; }
.line-button[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid #ffffff80;
  border-top-color: white;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  main { margin: 26px auto 44px; }
  h1 { font-size: 25px; }
  .card { padding: 24px 20px; }
  .field > label { font-size: 20px; }
  .field fieldset label { min-height: 61px; }
}
@media (prefers-reduced-motion: reduce) {
  .fill, .field fieldset label { transition: none; }
  .line-button[aria-busy="true"]::before { animation: none; }
}
#recruit-form [hidden] { display: none; }
