:root { --accent: #1a3a5c; --bg: #f4f6f9; --panel: #fff; --text: #1c1e21; --muted: #556070; --border: #e2e6ea; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.top { text-align: center; margin-bottom: 24px; }
.logo { font-size: 46px; }
.top h1 { font-size: 24px; margin: 10px 0 8px; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.55; }

.steps { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.steps span { padding: 4px 10px; border-radius: 20px; font-size: 12px; background: #e8ebef; color: var(--muted); white-space: nowrap; }
.steps span.on { background: var(--accent); color: #fff; }
.steps span.done { background: #d5e8dc; color: #22633a; }

.card { background: var(--panel); border-radius: 16px; padding: 26px 24px; box-shadow: 0 8px 30px rgba(20,30,50,.08); }
.card h2 { font-size: 20px; margin-bottom: 6px; }
.card .intro { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea, .field select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 80px; }
.field .help { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.field .help b { color: var(--text); }

.guide { background: #f0f6ff; border: 1px solid #cfe0f5; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
.guide b { color: var(--accent); }
.guide ol { margin-left: 18px; }
.guide li { margin: 5px 0; }

.choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 15px; background: #fff; }
.choice:hover { border-color: #b8c4d4; }
.choice.sel { border-color: var(--accent); background: #f0f6ff; font-weight: 600; }
.choice .em { font-size: 20px; }

.row { display: flex; gap: 10px; }
.row .field { flex: 1; }
.person-row { display: flex; gap: 8px; margin-bottom: 8px; }
.person-row input { flex: 1; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; }
.person-row button { border: none; background: #fdecea; color: #c0392b; border-radius: 10px; width: 42px; font-size: 16px; cursor: pointer; }
.btn-add { background: #eef2f6; border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; cursor: pointer; width: 100%; }

.file-chip { display: flex; align-items: center; gap: 8px; background: #eef2f6; padding: 8px 12px; border-radius: 10px; font-size: 14px; margin: 6px 0; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; margin: 12px 0; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }

.nav { display: flex; justify-content: space-between; margin-top: 24px; }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 13px 26px; border-radius: 11px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-secondary { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 13px 10px; }
.save-note { text-align: center; color: #27ae60; font-size: 12.5px; margin-top: 14px; opacity: 0; transition: opacity .3s; }
.save-note.show { opacity: 1; }

.error-box { background: #fdecea; color: #a02722; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: 14.5px; }
.done { text-align: center; padding: 50px 30px; }
.done-icon { font-size: 56px; margin-bottom: 14px; }
.done p { color: var(--muted); line-height: 1.6; margin: 8px 0; }
.muted { color: var(--muted); font-size: 13.5px; }

@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  .top h1 { font-size: 21px; }
}
