* { box-sizing: border-box; }
:root { --ink: #172033; --muted: #667085; --line: #d9e0ea; --panel: #ffffff; --soft: #f4f7fb; --brand: #0f3d5e; --brand-2: #b42318; --focus: #1d6fb8; }
body { margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: linear-gradient(180deg, rgba(15,61,94,.08), rgba(255,255,255,0) 280px), var(--soft); line-height: 1.5; }
.page, .admin-page { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 56px; }
.narrow { width: min(640px, calc(100% - 32px)); }
.intro { margin: 0 0 22px; padding: 28px 0 6px; }
.eyebrow { margin: 0 0 10px; color: var(--brand-2); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.18; }
.intro p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 18px 48px rgba(15,34,55,.08); }
label { display: block; margin: 0; font-size: 14px; font-weight: 700; }
label:nth-of-type(8), label:nth-of-type(9), .consent { grid-column: 1 / -1; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #c8d1dc; border-radius: 6px; padding: 12px 13px; color: var(--ink); background: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(29,111,184,.14); }
textarea { min-height: 120px; resize: vertical; }
.documents-fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2px 0 0; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.documents-fieldset legend { padding: 0 8px; color: var(--brand); font-size: 16px; font-weight: 700; }
.documents-fieldset > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.documents-fieldset .documents-help { margin-top: -8px; font-size: 13px; }
.documents-fieldset input[type="file"] { min-height: 48px; padding: 9px; background: #f7f9fc; }
.documents-fieldset input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }
.grid { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-weight: 400; }
.consent input { width: auto; margin: 3px 0 0; }
button, .link-button, .admin-header a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 6px; padding: 11px 18px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .link-button:hover, .admin-header a:hover { background: #0a2f49; }
.trap { position: absolute; left: -9999px; }
.error { color: var(--brand-2); font-weight: 700; }
.admin-page { width: min(1280px, calc(100% - 32px)); }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-header nav { display: flex; gap: 10px; }
.admin-page form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; width: min(720px, 100%); padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 36px rgba(15,34,55,.08); }
.admin-page form label { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(15,34,55,.06); }
table { width: 100%; min-width: 1120px; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e8edf3; padding: 12px 14px; text-align: left; vertical-align: top; font-size: 14px; }
th { color: #344054; background: #f7f9fc; font-size: 13px; text-transform: uppercase; }
@media (max-width: 760px) { .page, .admin-page { width: min(100% - 22px, 1040px); padding-top: 24px; } h1 { font-size: 27px; } .form, .grid, .documents-fieldset { grid-template-columns: 1fr; } .form { padding: 20px; } }
/* Admin login layout */
.page.narrow {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
}

.page.narrow .form {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 34px;
}

.page.narrow .form h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
}

.page.narrow .form label {
  width: 100%;
}

.page.narrow .form button {
  width: 100%;
  margin-top: 4px;
}
