:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #5c6977;
  --line: #d7dde3;
  --surface: #ffffff;
  --band: #eef3f0;
  --accent: #16643f;
  --accent-dark: #104d31;
  --gold: #d7a321;
  --navy: #182b3a;
  --danger: #a33a2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--band);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.customer-body {
  background: #f4f6f3;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  background: #123627;
  color: white;
}

.brand,
.topbar a {
  color: white;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 96px;
  height: 34px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 3px;
}

.customer-topbar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(22, 32, 42, 0.08);
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04);
}

.customer-topbar .brand {
  color: #123627;
}

.topbar nav {
  display: flex;
  gap: 18px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

h1,
h2 {
  margin: 0 0 16px;
  line-height: 1.2;
}

.panel,
.table-wrap,
.auth-card,
.complete-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.auth-card,
.complete-card {
  box-shadow: 0 18px 45px rgba(22, 32, 42, 0.12);
  text-align: center;
}

.auth-logo {
  display: block;
  width: 210px;
  max-width: 70%;
  margin: 0 auto 22px;
}

.narrow {
  max-width: 460px;
  margin: 64px auto;
}

.page-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 16px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #26323e;
  font-weight: 650;
}

input,
select,
button,
.button {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 20px;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  background: white;
  color: #1f2933;
  font-weight: 800;
}

.google-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f4f7fb;
  color: #2563eb;
  font-weight: 900;
}

input,
select {
  width: 100%;
  border: 1px solid #b7c1ca;
  padding: 9px 11px;
  background: white;
}

input[readonly] {
  background: #f6f8f9;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
}

.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.secondary:hover {
  background: #f4f6f7;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.copy-box {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: var(--muted);
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e9edf1;
  font-size: 13px;
  font-weight: 750;
}

.status.completed {
  background: #dff1e7;
  color: #0d5130;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.fineprint {
  margin: 12px 0 0;
  color: #687482;
  font-size: 13px;
}

.customer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: 34px;
  background: linear-gradient(90deg, #123627 0, #123627 58%, #f7f8f5 58%);
  border: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(22, 32, 42, 0.14);
}

.single-customer-card {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.customer-hero {
  color: white;
  padding: 10px 8px;
}

.customer-hero img,
.sign-summary img {
  width: 260px;
  max-width: 82%;
  background: white;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-hero h1 {
  max-width: 680px;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 20px;
}

.customer-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-list span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.secure-card,
.document-card {
  background: #ffffff;
  border: 1px solid rgba(196, 205, 213, 0.85);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(22, 32, 42, 0.18);
  padding: 32px;
}

.card-kicker,
.lock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e9f4ee;
  color: #0f5a37;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prepared-for {
  margin: -4px 0 20px;
  color: var(--muted);
}

.code-input {
  min-height: 64px;
  border-color: #94a3af;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  background: #fbfcfb;
}

.sign-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.sign-summary {
  position: sticky;
  top: 24px;
  color: white;
  padding: 28px;
  background: #123627;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(22, 32, 42, 0.14);
}

.sign-summary h1 {
  font-size: 42px;
}

.sign-summary p:not(.eyebrow),
.sign-summary dd {
  color: rgba(255, 255, 255, 0.84);
}

.sign-summary dl {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sign-summary dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sign-summary dd {
  margin: 0 0 8px;
}

.document-card {
  margin-bottom: 36px;
}

.document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.document-heading h2 {
  margin-bottom: 0;
}

.document-heading span {
  flex: 0 0 auto;
  border: 1px solid #cfd7de;
  border-radius: 999px;
  padding: 7px 10px;
  color: #314152;
  font-size: 13px;
  font-weight: 850;
}

.section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
}

.section-title span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.section-title h2 {
  margin-bottom: 4px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.compact-form input {
  min-height: 42px;
}

.confirm-card {
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  padding: 15px;
  background: #f8fbf8;
}

.legal-copy {
  padding: 20px 22px;
  color: #26323e;
  border-left-width: 5px;
  background: #f7faf7;
}

.submit-button {
  min-height: 54px;
  font-size: 17px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e4f4ea;
  color: #0f6a3d;
  font-size: 34px;
  font-weight: 900;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.attestation {
  border-left: 4px solid var(--accent);
  background: #f6faf8;
  padding: 14px 16px;
}

.attestation p {
  margin: 0;
}

.signature-preview {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfbfb;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 38px;
}

.signature-pad {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  background: white;
  touch-action: none;
}

.signature-image {
  max-width: 420px;
  border-bottom: 1px solid var(--ink);
}

.hidden {
  display: none;
}

.print-actions {
  margin-bottom: 16px;
}

.paper {
  background: white;
  padding: 48px;
  border: 1px solid var(--line);
  max-width: 900px;
  margin: 0 auto;
}

.doc-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 18px;
}

.doc-grid dt {
  font-weight: 800;
}

.doc-grid dd {
  margin: 0;
}

@media (max-width: 760px) {
  .grid-form,
  .copy-box,
  .customer-shell,
  .sign-layout {
    grid-template-columns: 1fr;
  }

  .customer-body {
    background: #f4f6f3;
  }

  .customer-shell {
    padding: 20px;
    background: #123627;
    min-height: auto;
  }

  .customer-hero h1 {
    font-size: 40px;
  }

  .customer-hero img,
  .sign-summary img {
    width: 210px;
    margin-bottom: 20px;
  }

  .sign-summary {
    position: static;
  }

  .secure-card,
  .document-card {
    padding: 20px;
  }

  .document-heading {
    display: grid;
  }

  .page-head {
    display: grid;
  }

  .table-wrap {
    overflow-x: auto;
  }
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .print-actions {
    display: none;
  }

  main {
    width: 100%;
    margin: 0;
  }

  .paper {
    border: 0;
    padding: 0;
  }
}
