:root {
    --ink: #202020;
    --blue: #246c8c;
    --blue2: #174e68;
    --paper: #fff;
    --canvas: #f4f5f5;
    --line: #dfe3e4;
    --muted: #707b80;
    --green: #238363;
    --warm: #af6c3f;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--canvas);
    color: #38464d;
    font-family: Arial, Helvetica, sans-serif;
}
a {
    text-decoration: none;
    color: inherit;
}
button,
input,
select,
textarea {
    font: inherit;
}
.shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 245px;
    background: var(--ink);
    color: #fff;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
}
.brand,
.auth-brand {
  font-size: 25px;
  letter-spacing: -1px;
}
.brand img {
  display: block;
  width: 190px;
  height: auto;
}
.sidebar .brand {
  margin: -10px -4px 0;
  padding: 14px 10px;
  background: #fff;
  border-radius: 4px;
}
.auth-brand img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}
.brand span,
.auth-brand span {
    font-weight: 300;
}
.brand strong,
.auth-brand strong {
    color: #57a7c5;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 45px;
}
.sidebar nav a {
    padding: 13px 14px;
    color: #b8c1c5;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #c43d3d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}
.sidebar nav a:hover,
.sidebar nav a.active {
    color: #fff;
    background: #ffffff10;
    border-color: #57a7c5;
}
.sidebar-note {
    margin-top: auto;
    border: 1px solid #ffffff16;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sidebar-note span {
    color: #9ca9ae;
    font-size: 11px;
    line-height: 1.5;
}
.account {
    border-top: 1px solid #ffffff18;
    margin-top: 18px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.account div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}
.account span {
    color: #8f9da3;
    font-size: 10px;
}
.account button {
    border: 0;
    background: transparent;
    color: #9eb0b7;
    font-size: 11px;
    cursor: pointer;
}
.main {
    margin-left: 245px;
    width: calc(100% - 245px);
}
.topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 38px;
    color: #879196;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.content {
    max-width: 1480px;
    margin: auto;
    padding: 46px;
}
.button {
    border: 1px solid #cbd3d5;
    background: #fff;
    color: var(--ink);
  padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
}
.button.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.button.primary:hover {
    background: var(--blue2);
}
.heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.heading h1 {
    font-weight: 300;
    font-size: 34px;
    color: var(--ink);
    margin: 0 0 8px;
}
.heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.email-preview-shell {
    max-width: 820px;
    margin: 0 auto;
}
.email-meta {
    margin-bottom: 16px;
    padding: 18px 22px;
    border: 1px solid #d7dfe2;
    background: #fff;
}
.email-meta p {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    margin: 5px 0;
    font-size: 14px;
}
.email-meta span,
.email-order span {
    color: #718087;
}
.client-email {
    overflow: hidden;
    border: 1px solid #d7dfe2;
    background: #fff;
    box-shadow: 0 12px 35px #1b39450d;
}
.client-email > header {
    padding: 25px 34px;
    border-bottom: 4px solid #287ea8;
}
.client-email > header img {
    width: 240px;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
}
.email-firm-name,
.invoice-firm-name {
    color: #26363d;
    font-size: 24px;
    line-height: 1.2;
}
.client-email > main {
    padding: 42px 48px;
    color: #31444c;
    font-size: 15px;
    line-height: 1.65;
}
.client-email h2 {
    margin: 0 0 24px;
    color: #26363d;
    font-size: 28px;
    line-height: 1.2;
}
.email-eyebrow {
    margin: 0 0 8px;
    color: #287ea8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
.email-order {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 4px solid #287ea8;
    background: #f4f7f8;
}
.email-order p {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    margin: 4px 0;
}
.email-attachments {
    display: grid;
    gap: 8px;
    margin: 18px 0 30px;
}
.email-attachments div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d7dfe2;
    border-radius: 3px;
}
.email-attachments a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d7dfe2;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
}
.email-attachments span {
    padding: 3px 7px;
    background: #287ea8;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.client-email > footer {
    padding: 18px 48px;
    background: #f4f7f8;
    color: #718087;
    font-size: 12px;
}
.powered-by {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.powered-by > span {
    color: #718087;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.powered-by img {
    width: 145px;
    max-height: 38px;
    object-fit: contain;
}
.invoice-note {
    max-width: 900px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-left: 4px solid #287ea8;
    background: #eaf4f8;
    color: #405159;
    font-size: 14px;
}
.invoice-preview {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d7dfe2;
    background: #fff;
    box-shadow: 0 12px 35px #1b39450d;
}
.invoice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 34px 42px;
    border-bottom: 4px solid #287ea8;
}
.invoice-header img {
    width: 245px;
    max-height: 110px;
    object-fit: contain;
    object-position: left top;
}
.invoice-header div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.invoice-header div strong {
    color: #26363d;
    font-size: 30px;
    letter-spacing: .08em;
}
.invoice-header div span {
    color: #718087;
    font-size: 13px;
}
.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 34px 42px;
}
.invoice-parties > div {
    display: flex;
    flex-direction: column;
}
.invoice-parties > div span {
    margin-bottom: 9px;
    color: #287ea8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}
.invoice-parties p {
    margin: 2px 0;
    color: #596970;
    font-size: 14px;
}
.invoice-parties dl {
    margin: 0;
}
.invoice-parties dl div {
    display: grid;
    grid-template-columns: 110px 1fr;
    margin-bottom: 7px;
    font-size: 14px;
}
.invoice-parties dt {
    color: #718087;
}
.invoice-parties dd {
    margin: 0;
    font-weight: 700;
}
.invoice-lines {
    width: calc(100% - 84px);
    margin: 0 42px 42px;
    border-collapse: collapse;
    font-size: 14px;
}
.invoice-lines th {
    padding: 11px 14px;
    background: #26363d;
    color: #fff;
    text-align: left;
}
.invoice-lines th:last-child,
.invoice-lines td:last-child {
    text-align: right;
}
.invoice-lines td {
    padding: 15px 14px;
    border-bottom: 1px solid #d7dfe2;
    vertical-align: top;
}
.invoice-lines tbody td:first-child {
    display: flex;
    flex-direction: column;
}
.invoice-lines tbody span {
    color: #718087;
    font-size: 12px;
}
.invoice-lines tfoot td {
    padding: 10px 14px;
}
.invoice-preview > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 42px;
    background: #f4f7f8;
    color: #596970;
    font-size: 13px;
}
.invoice-preview > footer .powered-by img {
    width: 145px;
}
.profile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    max-width: 100%;
    min-height: 110px;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #d7dfe2;
    background: #fff;
}
.profile-logo img {
    display: block;
    max-width: 320px;
    max-height: 90px;
}
.eyebrow {
    font-size: 9px !important;
    letter-spacing: 0.18em;
    color: var(--blue) !important;
    font-weight: 800;
    margin: 0 0 10px !important;
}
.review-required {
    color: #835028;
    background: #f6eade;
    padding: 9px 12px;
  font-size: 14px;
    font-weight: bold;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 25px;
}
.metrics article {
    padding: 23px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.metrics article:last-child {
    border: 0;
}
.metrics span {
    color: var(--muted);
    font-size: 10px;
}
.metrics strong {
    font-size: 29px;
    font-weight: 300;
    color: var(--ink);
    margin-top: 6px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
}
.card-head {
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}
h2 {
    color: var(--ink);
    font-size: 19px;
    margin: 0 0 5px;
}
p {
    line-height: 1.5;
}
.card-head p,
.section-body > p {
    color: var(--muted);
  font-size: 14px;
    margin: 0;
}
.order-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr 0.8fr 25px;
    gap: 22px;
    align-items: center;
    padding: 17px 24px;
    border-bottom: 1px solid #e9ecec;
    font-size: 10px;
}
.order-row:hover {
    background: #fafbfb;
}
.order-row strong,
.order-row small {
    display: block;
}
.order-row strong {
    color: var(--ink);
    margin-bottom: 5px;
}
.order-row small {
    color: #899398;
}
.status {
    font-style: normal;
    text-transform: capitalize;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: bold;
    background: #e7eef1;
    color: #3b6274;
}
.status.attorney_review {
    background: #f5e9db;
    color: #865b2d;
}
.status.approved {
    background: #e2f1eb;
    color: #287356;
}
.status.changes_requested {
    background: #f6e3df;
    color: #914d3e;
}
.empty {
    text-align: center;
    padding: 70px 20px;
}
.empty h3 {
    color: var(--ink);
}
.form-section {
    display: grid;
    grid-template-columns: 52px 1fr;
    margin-bottom: 18px;
    padding: 28px;
}
.section-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-content: center;
    font-size: 12px;
}
.section-body h2 {
    font-size: 21px;
    font-weight: 400;
}
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 25px;
}
.fields.single-column {
    grid-template-columns: minmax(0, 1fr);
}
.fields label,
.stack label {
    display: flex;
    flex-direction: column;
  gap: 8px;
    color: #53636a;
  font-size: 14px;
    font-weight: bold;
}
.fields label.wide {
    grid-column: 1/-1;
}
.fields input,
.fields select,
.fields textarea,
.stack input {
    width: 100%;
    border: 1px solid #cbd4d6;
    background: #fff;
  min-height: 48px;
  padding: 12px 14px;
    color: #26363d;
  border-radius: 3px;
  font-size: 14px;
}
.fields textarea {
    resize: vertical;
}
.fields select {
    min-height: 38px;
    padding: 7px 10px;
}
.fields small {
  color: #727d82;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.45;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 9px;
}
.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #405159;
    font-size: 14px;
    font-weight: 700;
}
.field-group.wide {
    grid-column: 1/-1;
}
.fields [hidden] {
    display: none !important;
}
.fields label.choice-option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    width: auto;
    color: #405159;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
.fields .choice-row input[type="radio"],
.fields .choice-row input[type="checkbox"] {
    appearance: auto;
    flex: 0 0 16px;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    min-height: 16px;
    max-height: 16px;
    margin: 0;
    padding: 0;
}
.conditional[hidden] {
    display: none;
}
.submit-bar {
    position: sticky;
    bottom: 0;
    background: var(--ink);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -6px 25px #0002;
}
.submit-bar div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.submit-bar span {
  font-size: 14px;
  color: #c3cbce;
}
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.document-pane {
    overflow: hidden;
}
.pane-head {
    height: 67px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pane-head div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pane-head span {
    color: var(--blue);
    font-size: 8px;
    letter-spacing: 0.13em;
}
.pane-head strong {
    font-size: 11px;
    color: var(--ink);
}
.source-placeholder {
    min-height: 680px;
    background: #e4e7e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: #647178;
}
.source-placeholder strong {
    color: var(--ink);
}
.source-placeholder p {
    max-width: 360px;
    font-size: 12px;
}
.source-placeholder small {
    font-family: monospace;
    max-width: 90%;
    word-break: break-all;
}
.source-viewer {
    display: block;
    width: 100%;
    height: 760px;
    border: 0;
    background: #dfe3e2;
}
.source-document-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}
.image-viewer {
    min-height: 680px;
    background: #dfe3e2;
    padding: 24px;
    display: grid;
    place-content: start center;
    overflow: auto;
}
.image-viewer img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 3px 18px #142b3824;
}
.paper {
    width: 100%;
    padding: 25px 0;
    background: #dfe3e2;
    color: #111;
}
.deed-page {
    width: 8.5in;
    height: 14in;
    max-width: 90%;
    margin: 0 auto 25px;
    background: #fff;
    box-shadow: 0 3px 18px #142b3824;
    padding: 1.5in 1in 1in;
    overflow: hidden;
    font: 10pt/1.25 Arial, Helvetica, sans-serif;
}
.deed-page-one {
    padding-top: 1.5in;
}
.deed-page-two {
    margin-bottom: 0;
}
.paper h1 {
    text-align: center;
    font-size: 18pt;
    font-weight: 400;
    margin: 0 0 24px;
}
.recording-margin {
    height: 1.5in;
}
.paper hr {
    height: 2px;
    border: 0;
    background: #111;
    margin: 0 0 38px;
}
.paper p {
    text-align: left;
    margin: 0 0 24px;
}
.paper .legal-description {
    white-space: normal;
    margin: 0 0 24px;
}
.execution-row {
    display: grid;
    grid-template-columns: 1fr 3.2in;
    gap: 28px;
    align-items: start;
}
.signature-line {
    border-top: 2px solid #111;
    margin-top: 20px;
    padding-top: 3px;
    text-align: center;
}
.state-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    margin: 25px 0 55px;
}
.notary-line {
    width: 3.2in;
    border-top: 2px solid #111;
    margin: 78px 0 58px auto;
    padding-top: 3px;
    text-align: center;
}
.prepared-by {
    display: grid;
    grid-template-columns: 2.35in 1fr;
    gap: 12px;
    align-items: start;
}
.prepared-by p {
    margin: 0;
}
.approval {
    margin-top: 20px;
    padding: 23px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
}
.approval label {
  font-size: 14px;
}
.review-actions-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    margin-top: 20px;
}
.review-actions-grid .approval {
    margin-top: 0;
    grid-template-columns: 1.35fr 1fr 1fr auto;
}
.changes {
    padding: 23px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.changes p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}
.changes textarea {
    width: 100%;
    border: 1px solid #cbd4d6;
    padding: 12px 14px;
    font-size: 14px;
    resize: vertical;
}
.changes .button {
    align-self: flex-start;
}
.change-notice {
    background: #f7e9e5;
    border-left: 4px solid #a65a49;
    padding: 17px 20px;
    margin-bottom: 20px;
}
.change-notice strong,
.change-notice p {
    font-size: 14px;
}
.change-notice strong {
    color: #803e32;
}
.change-notice p {
    margin: 7px 0 0;
}
.admin-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
    gap: 20px;
    align-items: start;
}
.account-form {
    padding: 25px;
}
.account-form .fields {
    grid-template-columns: 1fr;
}
.account-list article {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}
.account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2eef2;
    color: var(--blue);
    display: grid;
    place-content: center;
    font-weight: bold;
}
.account-list article div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.account-list article strong {
    color: var(--ink);
    font-size: 14px;
}
.account-list article span,
.account-list article small {
    color: var(--muted);
    font-size: 12px;
}
.account-list article em {
    font-style: normal;
    text-transform: capitalize;
    background: #e7eef1;
    color: #3b6274;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 12px;
}
.audit {
    margin-top: 20px;
    padding: 24px;
}
.audit p {
    border-left: 2px solid var(--blue);
    padding-left: 13px;
}
.audit p strong,
.audit p span {
    display: block;
    font-size: 10px;
}
.audit p span {
    color: var(--muted);
    margin-top: 4px;
}
.flash {
    padding: 15px 18px;
    margin-bottom: 20px;
  font-size: 14px;
}
.flash.success {
    background: #e3f1eb;
    color: #24684f;
}
.flash.error {
    background: #f7e7e3;
    color: #8f4738;
}
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #202020 0 48%, #246c8c 48%);
    display: grid;
    place-content: center;
    padding: 30px;
}
.auth-card {
    width: min(460px, calc(100vw - 40px));
    background: #fff;
    padding: 45px;
    box-shadow: 0 24px 70px #0004;
}
.auth-brand {
    margin-bottom: 38px;
    color: var(--ink);
}
.auth-card h1 {
    font-weight: 300;
    color: var(--ink);
    font-size: 30px;
    margin: 0 0 10px;
}
.auth-card > p:not(.eyebrow) {
    color: var(--muted);
  font-size: 14px;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}
.stack .check {
    flex-direction: row;
    align-items: center;
  font-weight: normal;
  font-size: 14px;
}
.stack .check input {
    width: auto;
    min-height: auto;
}
.stack .button {
    margin-top: 6px;
}
@media (max-width: 900px) {
    .sidebar {
        width: 72px;
        padding: 25px 10px;
    }
  .brand {
    font-size: 0;
  }
  .brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: left;
  }
    .sidebar nav a {
        font-size: 0;
        height: 44px;
    }
    .sidebar-note,
    .account div,
    .account button {
        display: none;
    }
    .main {
        margin-left: 72px;
        width: calc(100% - 72px);
    }
    .content {
        padding: 28px 18px;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .approval {
        grid-template-columns: 1fr;
    }
    .review-actions-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .order-row {
        grid-template-columns: 1fr 1.4fr 1fr 25px;
    }
    .order-row > span:nth-child(3),
    .order-row > span:nth-child(5) {
        display: none;
    }
}
@media (max-width: 600px) {
    .fields,
    .metrics {
        grid-template-columns: 1fr;
    }
    .fields label.wide {
        grid-column: auto;
    }
    .form-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .section-number {
        margin-bottom: 15px;
    }
    .heading {
        align-items: flex-start;
        gap: 20px;
    }
    .heading h1 {
        font-size: 28px;
    }
    .submit-bar {
        position: static;
        gap: 20px;
        align-items: flex-start;
        flex-direction: column;
    }
    .topbar {
        padding: 0 18px;
    }
    .paper {
        padding: 18px 0;
    }
}

/* Guided document creation */
.wizard-heading {
    margin-bottom: 32px;
}
.wizard-heading h1 {
    margin: 0 0 8px;
    color: #20282c;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
}
.wizard-heading > p:last-child {
    margin: 0;
    color: #66757b;
    font-size: 16px;
}
.document-wizard {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}
.wizard-progress {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
}
.wizard-progress-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    min-height: 67px;
    color: #75858c;
}
.wizard-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    bottom: 0;
    left: 17px;
    width: 1px;
    background: #cbd6da;
}
.wizard-progress-step > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #c6d3d8;
    border-radius: 50%;
    background: #f5f7f7;
    color: #718087;
    font-size: 14px;
}
.wizard-progress-step.current,
.wizard-progress-step.complete {
    color: #243239;
}
.wizard-progress-step.current > span {
    border-color: #20282c;
    background: #20282c;
    color: #fff;
}
.wizard-progress-step.complete > span {
    border-color: #288fb3;
    background: #288fb3;
    color: #fff;
}
.wizard-progress-step strong,
.wizard-progress-step small {
    display: block;
}
.wizard-progress-step strong {
    margin-top: 4px;
    font-size: 15px;
}
.wizard-progress-step small {
    margin-top: 4px;
    font-size: 12px;
}
.wizard-card {
    min-width: 0;
    padding: 42px 48px 28px;
    border: 1px solid #d2dadd;
    background: #fff;
    box-shadow: 0 8px 30px rgba(28, 48, 56, .04);
}
.wizard-card h2 {
    margin: 5px 0 8px;
    color: #2d383d;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}
.wizard-card > p,
.wizard-panel > p {
    color: #66757b;
    font-size: 15px;
    line-height: 1.55;
}
.wizard-step-label {
    margin: 0 0 14px !important;
    color: #13769a !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .16em;
}
.document-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0;
}
.document-choice {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
    min-height: 68px;
    padding: 14px 16px;
    border: 1px solid #ced7da;
    border-radius: 3px;
    cursor: pointer;
    color: #36464d;
    font-size: 15px;
}
.document-choice:has(input:checked) {
    border-color: #137fa7;
    background: #fbfdfe;
    box-shadow: inset 0 0 0 1px #137fa7;
}
.document-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.document-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef2f3;
    font-size: 20px;
}
.document-check {
    color: #1685ad;
    font-size: 24px;
    opacity: 0;
}
.document-choice:has(input:checked) .document-check {
    opacity: 1;
}
.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid #d8dfe2;
}
.wizard-actions .button {
    min-height: 48px;
    padding: 13px 20px;
    font-size: 15px;
}
.wizard-actions .primary {
    min-width: 135px;
    justify-content: center;
}
.wizard-fields {
    margin-top: 28px;
}
.wizard-fields input,
.wizard-fields select,
.wizard-fields textarea {
    min-height: 52px;
    font-size: 16px;
    line-height: 1.4;
}
.wizard-fields textarea {
    min-height: 130px;
}

/* Modern form controls shared by every document workflow. */
.fields {
    gap: 24px 20px;
}
.fields label,
.stack label,
.field-group {
    gap: 9px;
    color: #344b55;
    font-weight: 650;
    letter-spacing: .005em;
}
.fields input,
.fields select,
.fields textarea,
.stack input {
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #c6d2d7;
    border-radius: 10px;
    background: #fbfcfd;
    color: #21343c;
    box-shadow: 0 1px 2px rgba(28, 48, 56, .035);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.fields select {
    min-height: 52px;
    padding: 12px 14px;
}
.fields input:hover,
.fields select:hover,
.fields textarea:hover,
.stack input:hover {
    border-color: #9eb2bb;
    background: #fff;
}
.fields input:focus,
.fields select:focus,
.fields textarea:focus,
.stack input:focus {
    outline: none;
    border-color: #2188ae;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 136, 174, .13);
}
.fields input::placeholder,
.fields textarea::placeholder,
.stack input::placeholder {
    color: #8b9aa1;
    opacity: 1;
}
.fields input:disabled,
.fields select:disabled,
.fields textarea:disabled {
    background: #eef2f3;
    color: #718087;
    cursor: not-allowed;
}
.choice-row {
    gap: 10px;
    padding-top: 2px;
}
.fields label.choice-option {
    min-height: 46px;
    padding: 10px 14px;
    gap: 10px;
    border: 1px solid #cbd6da;
    border-radius: 10px;
    background: #fbfcfd;
    color: #344b55;
    font-weight: 600;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.fields label.choice-option:hover {
    border-color: #93adb8;
    background: #fff;
}
.fields label.choice-option:has(input:checked) {
    border-color: #2188ae;
    background: #f2f9fc;
    box-shadow: 0 0 0 3px rgba(33, 136, 174, .1);
}
.fields .choice-row input[type="radio"],
.fields .choice-row input[type="checkbox"] {
    flex-basis: 17px;
    width: 17px;
    min-width: 17px;
    max-width: 17px;
    height: 17px;
    min-height: 17px;
    max-height: 17px;
    accent-color: #2188ae;
}
.wizard-card {
    border-color: #d6e0e3;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(28, 48, 56, .075);
}
.document-choice {
    border-color: #cad6da;
    border-radius: 12px;
    background: #fbfcfd;
    box-shadow: 0 1px 2px rgba(28, 48, 56, .025);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.document-choice:hover {
    transform: translateY(-1px);
    border-color: #91aab5;
    background: #fff;
    box-shadow: 0 8px 20px rgba(28, 48, 56, .07);
}
.document-choice:has(input:checked) {
    border-color: #2188ae;
    background: #f4fafc;
    box-shadow: 0 0 0 3px rgba(33, 136, 174, .11);
}
.source-drop-zone {
    border-width: 2px;
    border-radius: 14px;
    background: #f8fbfc;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.source-drop-zone:hover,
.source-drop-zone:focus-within {
    border-color: #2188ae;
    background: #f2f9fc;
    box-shadow: 0 0 0 4px rgba(33, 136, 174, .09);
}
.button {
    border-radius: 9px;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.button:hover {
    transform: translateY(-1px);
    border-color: #9fb0b7;
    box-shadow: 0 5px 14px rgba(28, 48, 56, .09);
}
.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(33, 136, 174, .16);
}
.wizard-fields label,
.wizard-fields .field-group,
.wizard-fields small {
    font-size: 15px;
}
.wizard-subsection {
    margin-top: 32px;
    padding-top: 10px;
}
.wizard-subsection + .wizard-subsection {
    margin-top: 44px;
    padding-top: 34px;
    border-top: 1px solid #d8dfe2;
}
.wizard-subsection h3 {
    margin: 0;
    color: #26363d;
    font-size: 21px;
    font-weight: 600;
}
.source-drop-zone {
    align-items: center;
    justify-content: center;
    min-height: 275px;
    padding: 32px !important;
    border: 1px dashed #9fb8c2;
    background: #fcfdfd;
    text-align: center;
    cursor: pointer;
}
.source-drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.source-drop-zone .upload-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #edf3f5;
    color: #26363d;
    font-size: 28px;
}
.source-drop-zone > strong {
    color: #26363d;
    font-size: 20px;
}
.source-drop-zone .button {
    margin-top: 8px;
    background: #fff;
}
.source-drop-zone em {
    color: #287ea8;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}
.wizard-review {
    margin-top: 30px;
    border: 1px solid #d3dcdf;
}
.wizard-review p {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid #d8dfe2;
    font-size: 15px;
}
.wizard-review p:last-child {
    border-bottom: 0;
}
.wizard-review span {
    color: #718087;
}
.wizard-review strong {
    text-align: right;
}
.review-rule {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 4px solid #288fb3;
    background: #e9f5f9;
    color: #60471f;
    font-size: 14px;
}
.wizard-complete-note {
    margin: 36px 0;
    padding: 20px;
    background: #f4f7f8;
    color: #53636a;
    font-size: 16px;
}
@media (max-width: 980px) {
    .document-wizard { grid-template-columns: 1fr; }
    .wizard-progress { position: static; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .wizard-progress-step { grid-template-columns: 34px 1fr; min-height: 54px; }
    .wizard-progress-step:not(:last-child)::after { display: none; }
    .wizard-progress-step small { display: none; }
}
@media (max-width: 700px) {
    .wizard-heading h1 { font-size: 31px; }
    .wizard-progress { grid-template-columns: repeat(5, 34px); justify-content: space-between; }
    .wizard-progress-step { display: block; min-height: 38px; }
    .wizard-progress-step div { display: none; }
    .wizard-card { padding: 28px 20px 20px; }
    .wizard-card h2 { font-size: 25px; }
    .document-choice-grid { grid-template-columns: 1fr; }
    .wizard-review p { grid-template-columns: 1fr; gap: 5px; }
    .wizard-review strong { text-align: left; }
}
