:root {
  --bg: #eef6fa;
  --bg-overlay: rgba(238, 246, 250, 0.82);
  --surface: #ffffff;
  --ink: #123244;
  --ink-soft: #5c7d8c;
  --line: #cfe6ef;
  --brand: #1b8fa8;
  --accent: #ff8a5c;
  --error: #e2574c;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f212b; --bg-overlay: rgba(15, 33, 43, 0.82); --surface: #16303d; --ink: #eaf6fb; --ink-soft: #9bc0cf;
    --line: #234353; --brand: #4fc3e0; --accent: #ffab7a; --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { font-size: 23px; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url("/static/images/bg-sprout.png") center / cover no-repeat fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
.page { max-width: 880px; margin: 0 auto; padding: 44px 28px 88px; }
h1 { font-size: 2rem; margin-bottom: 6px; color: var(--brand); }
.lede { color: var(--ink-soft); margin-top: 0; }
.section-title { font-size: 1.1rem; color: var(--brand); margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.section-title:first-child { margin-top: 0; }
.field-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-bottom: 20px; position: relative; box-shadow: 0 2px 8px rgba(27, 143, 168, 0.06); }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
input, select { padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: transparent; color: inherit; font-size: 1rem; font-family: inherit; min-height: 48px; }
input:focus, select:focus { outline: none; border-color: var(--brand); }
select option { color: #123244; background: #ffffff; }
.field-group.has-error input, .field-group.has-error select { border-color: var(--error); }
.error-text { color: var(--error); font-size: 0.85rem; margin: 6px 0 0; min-height: 1.2em; }
.help-text { color: var(--ink-soft); font-weight: 400; font-size: 1rem; margin: 6px 0 0; }
.hint-text { color: var(--accent); font-weight: 600; font-size: 1rem; margin: 6px 0 0; }
.hint-text:empty, .help-text:empty { display: none; }
.hint-text.hint-warning { color: var(--error); }
.suggestions { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 180px; overflow: auto; background: var(--surface); }
.suggestions:empty { display: none; border: none; }
.suggestions li { padding: 10px 12px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.suggestions li:hover { background: var(--bg); }
button[type="submit"] { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 14px 36px; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(255, 138, 92, 0.35); transition: transform 0.15s ease; min-height: 48px; width: 100%; }
button[type="submit"]:hover { transform: translateY(-1px); }
#submit-status { margin-top: 12px; font-size: 0.9rem; font-weight: 600; }

@media (max-width: 640px) {
  .page { padding: 24px 16px 64px; }
  h1 { font-size: 1.5rem; }
  .lede { font-size: 0.9rem; }
  .field-group { padding: 14px 16px; border-radius: 14px; }
  input, select { font-size: 16px; }
  button[type="submit"] { font-size: 1rem; padding: 14px 24px; }
}

.draft-banner { background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(27, 143, 168, 0.06); }
.draft-banner p { margin: 0 0 12px; font-weight: 600; }
.draft-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.draft-banner-actions button { border-radius: 999px; padding: 10px 20px; font-size: 0.95rem; font-weight: 700; cursor: pointer; border: 2px solid var(--accent); }
#draft-resume-btn { background: var(--accent); color: #fff; }
#draft-discard-btn { background: transparent; color: var(--accent); }

.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-weight: 400; flex-direction: row; cursor: pointer; }
.radio-option input[type="radio"] { width: 24px; height: 24px; min-height: 0; accent-color: var(--brand); }

.submit-reminder { text-align: center; margin-bottom: 12px; font-size: 0.9rem; }
.success-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
}
.success-screen h1 { color: var(--brand); font-size: 2.2rem; margin: 0; }
.success-screen p { color: var(--ink-soft); font-size: 1.05rem; max-width: 520px; line-height: 1.8; }
