:root {
    --bg: #fafaf9;
    --card: #ffffff;
    --text: #1c1917;
    --muted: #78716c;
    --border: #e7e5e4;
    --accent: #f59e0b;
    --accent-dark: #b45309;
    --success: #16a34a;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 800px; margin: 0 auto; padding: 40px 20px 80px; }

header { text-align: center; margin-bottom: 40px; }
.logo { font-size: 36px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.logo span { color: var(--accent); }
.subtitle { color: var(--muted); margin-top: 10px; font-size: 15px; }
.subtitle a { color: var(--muted); }

.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select {
    width: 100%; padding: 12px 14px; font-size: 15px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); font-family: inherit;
    transition: border-color 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }

.section-title { font-size: 20px; font-weight: 700; margin: 32px 0 6px; }
.section-hint { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.doc-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
}
.doc-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.doc-title { font-weight: 600; font-size: 15px; }
.doc-badge {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap;
}
.doc-hint { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.file-input {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 10px 14px; border: 1px dashed var(--border); border-radius: 8px;
    background: var(--bg); transition: border-color 0.15s;
}
.file-input:hover { border-color: var(--accent); background: #fffbeb; }
.file-input input[type="file"] { display: none; }
.file-btn { font-size: 13px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.file-name { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.selected { color: var(--success); font-weight: 500; }

.submit {
    display: block; width: 100%; padding: 16px;
    background: var(--text); color: white; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 24px;
    font-family: inherit; transition: background 0.15s;
    text-align: center; text-decoration: none;
}
.submit:hover { background: #000; }
.submit.small { width: auto; padding: 10px 20px; font-size: 14px; margin-top: 12px; }

.error {
    background: #fee2e2; color: #991b1b;
    padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
}