:root {
  color-scheme: light;
  --ink: #14202b;
  --muted: #5b6875;
  --line: #d5dde5;
  --surface: #ffffff;
  --canvas: #f2f5f8;
  --navy: #172d42;
  --blue: #176b91;
  --blue-dark: #0f526f;
  --blue-soft: #eaf4f8;
  --amber: #9a6200;
  --amber-soft: #fff6df;
  --green: #227245;
  --green-soft: #eaf7f0;
  --shadow: 0 18px 48px rgba(22, 43, 62, .10);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(24px, calc((100% - 1080px) / 2));
  color: white;
  background: var(--navy);
  border-bottom: 4px solid #5bb7d4;
}
.brand-block { display: flex; align-items: center; gap: 12px; }
.brand-block strong, .brand-block span { display: block; }
.brand-block strong { font-size: 1.12rem; letter-spacing: .01em; }
.brand-block span { margin-top: 2px; color: #c5d4df; font-size: .82rem; }
.demo-chip { padding: 8px 12px; border: 1px solid #658097; border-radius: 999px; font-size: .82rem; color: #e7f1f7; }

.page { width: min(1080px, calc(100% - 32px)); margin: 26px auto 50px; }
.safety-banner { padding: 13px 16px; color: #24495d; background: var(--blue-soft); border: 1px solid #badbe7; border-radius: 10px; }
.safety-banner strong { margin-right: 5px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.step { display: flex; align-items: center; gap: 9px; padding: 11px 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 9px; text-align: left; }
.step span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #dfe5ea; color: #4a5967; font-weight: 750; }
.step.active { color: var(--blue-dark); border-color: #69afc8; background: white; }
.step.active span { color: white; background: var(--blue); }

.panel { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.16; }
h2 { margin: 0; font-size: 1.2rem; }
.panel-heading p:not(.eyebrow), .section-heading p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.status { white-space: nowrap; border-radius: 999px; padding: 7px 11px; font-size: .78rem; font-weight: 750; }
.status.neutral { color: #365463; background: #edf3f6; }
.status.warning { color: #7a4d00; background: var(--amber-soft); }

.upload-box { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 22px; border: 1px dashed #91a7b7; border-radius: 12px; background: #fbfcfd; }
.upload-box p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 58px; color: #9d4b3d; background: #fff0ed; border: 1px solid #e6c2bb; border-radius: 8px; font-size: .78rem; font-weight: 850; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; padding: 0; border: 0; }
.choice-group legend { width: 100%; margin-bottom: 9px; font-weight: 750; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice.selected { border-color: #55a5c2; background: var(--blue-soft); box-shadow: 0 0 0 1px #55a5c2 inset; }
.choice input { margin-top: 4px; accent-color: var(--blue); }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 4px; color: var(--muted); line-height: 1.4; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 0; border-radius: 7px; font-weight: 750; text-decoration: none; }
.button.primary { color: white; background: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.button.primary:disabled { cursor: not-allowed; opacity: .45; }
.button.secondary { color: #243746; background: #e6ebef; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.actions.split { justify-content: space-between; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; }
input, textarea { width: 100%; margin-top: 7px; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #8f9eaa; border-radius: 7px; }
textarea { min-height: 74px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { outline: 3px solid #c5e7f2; border-color: var(--blue); }
.wide-field { margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 28px 0 12px; }
.section-heading p { font-size: .9rem; }
.text-button, .icon-button { color: var(--blue-dark); background: transparent; border: 0; font-weight: 750; }
.address-list { display: grid; gap: 12px; }
.address-card { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; align-items: end; padding: 15px; background: #f8fafb; border: 1px solid var(--line); border-radius: 9px; }
.address-card label { font-size: .88rem; }
.icon-button { min-height: 42px; padding: 8px 5px; color: #8c3329; }

.date-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.date-strip div { padding: 14px; border-right: 1px solid var(--line); }
.date-strip div:last-child { border: 0; }
.date-strip small, .date-strip strong { display: block; }
.date-strip small { min-height: 34px; color: var(--muted); line-height: 1.3; }
.date-strip strong { margin-top: 4px; }
.notice-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 22px; background: #dfe5ea; border-radius: 11px; }
.paper { position: relative; min-height: 600px; padding: 36px 34px; color: #171717; background: white; box-shadow: 0 8px 20px rgba(24, 35, 45, .16); font-family: Georgia, "Times New Roman", serif; }
.paper::before { content: "DEMO · NOT A LEGAL NOTICE"; display: block; margin-bottom: 25px; padding: 7px; color: #8c3329; border: 1px solid #cf958b; text-align: center; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.paper h3 { margin: 0 0 5px; text-align: center; font-size: 1.05rem; }
.paper .subhead { margin: 0 0 24px; text-align: center; font-size: .72rem; font-style: italic; }
.paper p { margin: 0 0 12px; font-size: .78rem; line-height: 1.5; }
.paper .field { margin-bottom: 7px; }
.paper .field b { font-weight: 700; }
.paper .placeholder { margin-top: 22px; padding: 13px; color: #495764; background: #f4f6f7; border: 1px solid #d8dfe4; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .72rem; line-height: 1.45; }
.page-tag { position: absolute; right: 16px; bottom: 12px; color: #6b7780; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .7rem; }
.approval-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 15px; background: var(--amber-soft); border: 1px solid #ebd29e; border-radius: 9px; line-height: 1.45; }
.approval-check input { flex: 0 0 auto; width: auto; margin-top: 4px; accent-color: var(--blue); }

.success-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 3px auto 15px; color: white; background: var(--green); border-radius: 50%; font-size: 1.65rem; font-weight: 850; }
.centered { text-align: center; }
.lead { max-width: 720px; margin: 12px auto 26px; color: var(--muted); line-height: 1.6; }
.download-list { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.download-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 14px 16px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 9px; }
.download-row small { display: block; margin-top: 3px; color: var(--muted); }
.download-row .demo-download { color: var(--blue-dark); font-weight: 750; }
.next-step { max-width: 760px; margin: 24px auto 0; padding: 17px; color: #29533e; background: var(--green-soft); border: 1px solid #b9dbc8; border-radius: 10px; }
.next-step p { margin: 6px 0 0; line-height: 1.5; }
.centered-actions { justify-content: center; }
footer { padding: 20px; color: #687681; text-align: center; font-size: .78rem; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; }
  .brand-block span { display: none; }
  .demo-chip { white-space: nowrap; }
  .page { width: min(100% - 20px, 1080px); margin-top: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 20px; }
  .panel-heading { display: block; }
  .panel-heading .status { display: inline-block; margin-top: 12px; }
  .upload-box, .form-grid, .choice-group, .address-card, .date-strip, .notice-pages { grid-template-columns: 1fr; }
  .upload-box { text-align: center; }
  .upload-icon { margin: auto; }
  .date-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .date-strip div:last-child { border-bottom: 0; }
  .paper { min-height: 560px; padding: 28px 24px; }
}
