:root {
  --navy: #1B3A5C;
  --navy-dark: #142c47;
  --teal: #2A8C99;
  --gold: #C9A227;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f6f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 14px 24px;
  text-align: center;
}
.site-header img { height: 56px; max-width: 100%; }

main { max-width: 860px; margin: 28px auto 40px; padding: 0 16px; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 18px 16px 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 34px;
  box-shadow: 0 1px 3px rgba(16, 42, 67, .06);
}
.card.narrow { max-width: 430px; margin: 8vh auto 0; }

h1 { color: var(--navy); font-size: 26px; margin: 0 0 6px; letter-spacing: .3px; }
.subtitle { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

label { display: block; font-weight: bold; color: var(--navy); margin: 16px 0 4px; font-size: 14.5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date],
textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}
textarea { min-height: 90px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 13px 30px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  margin-top: 22px;
}
.btn:hover { background: var(--navy-dark); }
.btn.gold { background: var(--gold); color: #21324a; font-weight: bold; }
.btn.small { padding: 6px 14px; font-size: 13px; margin-top: 0; }

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
}
.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 6px;
}

/* NDA signing page */
.nda-doc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfa;
  padding: 22px 26px;
  max-height: 430px;
  overflow-y: auto;
  font-size: 14px;
  margin-bottom: 8px;
}
.nda-doc h2 { text-align: center; color: var(--navy); font-size: 17px; letter-spacing: 1px; margin-top: 0; }
.nda-h { color: var(--navy); font-size: 14.5px; margin: 18px 0 4px; }
.nda-p { margin: 0 0 10px; text-align: justify; }
.scroll-hint { color: var(--muted); font-size: 12.5px; text-align: center; margin: 0 0 18px; }

.sig-wrap { border: 2px dashed #cbd5e1; border-radius: 8px; background: #fff; position: relative; }
.sig-wrap canvas { display: block; width: 100%; height: 180px; border-radius: 8px; touch-action: none; }
.sig-actions { margin-top: 6px; }
.sig-clear {
  background: none; border: none; color: var(--teal);
  cursor: pointer; font: inherit; font-size: 13.5px; text-decoration: underline; padding: 0;
}
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

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

/* Admin table */
.admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table.admin { border-collapse: collapse; width: 100%; font-size: 13.5px; font-family: Verdana, Geneva, sans-serif; }
table.admin th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 9px 10px; font-size: 12px; letter-spacing: .4px; white-space: nowrap;
}
table.admin td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.admin tr:nth-child(even) td { background: #f8fafc; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: bold; }
.badge.sent     { background: #fef9c3; color: #854d0e; }
.badge.signed   { background: #dcfce7; color: #166534; }
.badge.meeting  { background: #e0f2fe; color: #075985; }
.badge.committed{ background: #ede9fe; color: #5b21b6; }
.badge.invested { background: #d1fae5; color: #065f46; }
.badge.passed   { background: #f1f5f9; color: #475569; }
table.admin select, table.admin input[type=date], table.admin input[type=text] { font-size: 12.5px; padding: 4px 6px; }
.note-input { min-width: 160px; }
