:root {
  --blue: #21499b;
  --light-blue: #3c81c4;
  --green: #89c99e;
  --ink: #1d2e48;
  --muted: #475a72;
  --line: #dbe4f0;
  --input: #73849b;
  --paper: #fff;
  --bg: #f4f7fb;
  --pale: #eaf1fc;
  --mint: #e8f6ee;
  --success: #1e5941;
  --error-bg: #fff0eb;
  --error: #922e22;
  --shadow: 0 16px 48px #213c6c12;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.65 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--blue); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { background: var(--line); color: var(--ink); border-color: var(--line); cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav, main, footer { width: min(100% - 40px, 1080px); margin-inline: auto; }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 10px 26px; }
.brand { color: var(--blue); font-size: 20px; font-weight: 760; text-decoration: none; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
main { padding: 38px 0 64px; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.28; }
h1 { font-size: clamp(29px, 4vw, 48px); letter-spacing: -.035em; text-wrap: balance; }
.legacy-title { text-wrap: wrap; }
.legacy-title span { display: inline-block; white-space: nowrap; }
h2 { font-size: clamp(21px, 2.4vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.subtle, .step { color: var(--muted); font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(25px, 4vw, 54px); align-items: center; margin-bottom: 35px; }
.hero p { max-width: 40em; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 669; border-radius: 16px; box-shadow: var(--shadow); }
.hero-photo figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.entry-options, .process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.entry-options { margin: 18px 0 28px; }
.entry-choice {
  min-width: 0; text-align: start; display: flex; flex-direction: column; align-items: start; gap: 9px;
  width: 100%; border: 1px solid var(--line); padding: 23px;
  border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--paper);
}
.entry-choice:hover { border-color: var(--blue); }
.entry-choice:first-child { background: var(--pale); }
.entry-choice:nth-child(2) { background: var(--mint); }
.entry-title { font-size: 20px; font-weight: 750; color: var(--blue); }
.entry-description { color: var(--ink); }
.entry-action { margin-top: auto; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: .21em; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3.2vw, 32px); margin-bottom: 18px; }
.card :is(h2,h3) { color: var(--ink); }
.process h2 { font-size: 19px; }
.after-submit ol { padding-left: 1.35em; margin: 0; }
.after-submit li { padding: 4px 0; }
.content-card, .form-card, .notice { max-width: 760px; margin-inline: auto; }
.form-card { box-shadow: var(--shadow); }
.form-card h1 { font-size: 29px; }
.form-card h2 { font-size: 22px; margin-bottom: 14px; }
.form-card .step { margin: 0 0 8px; }
.back { display: inline-block; margin-bottom: 15px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 6px 0 14px; }
.wide { grid-column: 1/-1; }
label { display: block; color: var(--ink); font-size: 15px; font-weight: 650; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: 5px; min-height: 46px; border: 1px solid var(--input); border-radius: 9px;
  padding: 9px 12px; background: var(--paper); color: var(--ink); font-size: 16px;
}
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--muted); opacity: 1; }
textarea { min-height: 100px; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-weight: 450; }
.check input { height: 19px; width: 19px; flex: none; margin: 4px 0 0; accent-color: var(--blue); }
.actions { margin-top: 19px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.primary, .secondary, .text-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 9px;
  padding: 9px 16px; font-weight: 700; text-decoration: none; border: 1px solid var(--blue); text-align: center;
}
.primary { background: var(--blue); color: var(--paper); }
.secondary { background: var(--paper); color: var(--blue); }
.text-button { color: var(--blue); background: transparent; border-color: transparent; padding-inline: 8px; text-decoration: underline; }
.primary:hover, .secondary:hover { text-decoration: underline; }
details { margin-top: 13px; }
details[data-optional-details] { padding: 11px 13px; background: var(--bg); border-radius: 9px; border: 1px solid var(--line); }
details[data-optional-details] summary { min-height: 44px; }
details[open] > summary { margin-bottom: 9px; }
summary { cursor: pointer; color: var(--blue); font-weight: 650; padding-block: 8px; }
.notice { margin-top: 12px; margin-bottom: 12px; padding: 11px 14px; background: var(--pale); color: var(--blue); border-radius: 9px; }
.notice.error { background: var(--error-bg); color: var(--error); }
.notice:empty { display: none; }
[data-submission-pending] { padding: 12px 14px; border-radius: 9px; background: var(--pale); color: var(--blue); }
[data-draft-status] { margin-top: 12px; }
.success { border-top: 5px solid var(--green); }
.success h1 { color: var(--success); }
.receipt-number { width: fit-content; padding: 9px 12px; background: var(--mint); border-radius: 8px; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 16px 0 26px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 10px 20px; flex-wrap: wrap; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--paper); padding: 8px 12px; }
.skip:focus { top: 6px; z-index: 2; }
@media (max-width: 650px) {
  .nav { min-height: 68px; padding: 8px 0; align-items: flex-start; flex-direction: column; gap: 0; }
  .nav-links a, .footer-links a, .brand, .back { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-links, .footer-links { row-gap: 0; }
  .check { min-height: 44px; }
  main { padding: 23px 0 42px; }
  .hero, .fields, .entry-options, .process { grid-template-columns: 1fr; }
  .hero { margin-bottom: 23px; gap: 14px; }
  .entry-options { gap: 12px; }
  .entry-choice { padding: 16px; }
  .form-card .actions .primary { flex: 1; }
  .legacy-title { font-size: clamp(24px, 7.4vw, 29px); }
}
