/* Applicant area — builds on site.css variables. */

.auth-card {
    max-width: 460px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px;
}
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-muted); margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: .92rem; }

/* stepper */
.stepper { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; counter-reset: step; }
.stepper .s {
    flex: 1 1 auto; min-width: 90px; text-align: center; padding: 10px 6px;
    border-radius: 8px; font-size: .8rem; font-weight: 600;
    background: #eef1f6; color: var(--ink-muted); border: 1.5px solid transparent;
}
.stepper .s.done { background: var(--blue-100); color: var(--blue-600); }
.stepper .s.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.stepper .s .n {
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.25); margin-right: 6px; font-size: .78rem;
}

.form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px;
}
.form-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.form-card .step-help { color: var(--ink-muted); margin-bottom: 24px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.form-actions {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.form-actions .spacer { flex: 1; }
.save-hint { font-size: .85rem; color: var(--ink-muted); }

/* document upload block */
.doc-slot {
    border: 1.5px dashed var(--border, #d4dce8); border-radius: 12px;
    padding: 18px 20px; margin-bottom: 18px; background: #fafbfd;
}
.doc-slot h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.doc-slot .req { color: var(--err); }
.doc-slot .help { font-size: .86rem; color: var(--ink-muted); margin-bottom: 12px; }
.doc-list { list-style: none; margin: 12px 0 0; padding: 0; }
.doc-list li {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px;
}
.doc-list .ext {
    flex: 0 0 auto; font-size: .68rem; font-weight: 800; color: #fff; background: var(--navy);
    padding: 4px 7px; border-radius: 5px;
}
.doc-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }

.children-rows .child-row {
    display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 12px; align-items: end;
    padding: 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px;
}
@media (max-width: 720px) { .children-rows .child-row { grid-template-columns: 1fr; } }

.income-table { width: 100%; border-collapse: collapse; }
.income-table th, .income-table td { padding: 8px; text-align: left; }
.income-table th { font-size: .82rem; color: var(--ink-muted); font-weight: 600; }
.income-table input { max-width: 140px; }

.preview-section { margin-bottom: 26px; }
.preview-section h3 {
    font-size: 1.05rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold); margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.preview-section h3 a { font-size: .8rem; font-weight: 600; }
.preview-table { width: 100%; border-collapse: collapse; }
.preview-table th, .preview-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .92rem; }
.preview-table th { width: 42%; color: var(--ink-muted); font-weight: 600; }
.missing-badge { color: var(--err); font-style: italic; }

.status-pill { display:inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-draft { background: var(--gold-100); color: #8a6d00; }
.status-sent { background: #dcf5e7; color: var(--ok); }

.dash-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
