:root {
  --blue: #1d62a2;
  --blue-deep: #104c82;
  --blue-dark: #0b3158;
  --lime: #95c11f;
  --lime-dark: #6f9710;
  --ink: #17334d;
  --muted: #677789;
  --line: #d8e2eb;
  --ice: #f3f7fa;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  background: #eaf1f6;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #eaf1f6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.app-shell {
  min-height: 100vh;
}
.topbar {
  height: 92px;
  background: #fff;
  border-bottom: 4px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(16, 76, 130, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  width: 104px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.secure {
  font-size: 12px;
  color: var(--muted);
}
.secure:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 8px;
}
.save-button,
.soft-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.save-button:hover,
.soft-button:hover,
.soft-button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #f3f8fc;
}
.workspace {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: calc(100vh - 92px);
}
.sidebar {
  padding: 28px 32px;
  background: linear-gradient(
    155deg,
    var(--blue) 0%,
    var(--blue-deep) 63%,
    var(--blue-dark) 100%
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.sidebar:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 38px solid rgba(149, 193, 31, 0.12);
  border-radius: 50%;
  right: -150px;
  top: 170px;
}
.sidebar-logo {
  width: 72px;
  height: 77px;
  object-fit: contain;
  object-position: left center;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 800;
  color: var(--lime);
}
.side-intro {
  position: relative;
  z-index: 1;
}
.side-intro h1 {
  font-size: 29px;
  line-height: 1.12;
  font-weight: 700;
  margin: 11px 0;
}
.side-intro p {
  color: #d6e5f2;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.nav-step {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #bcd4e7;
  text-align: left;
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-step span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.nav-step b {
  font-size: 12px;
}
.nav-step.active {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(3, 29, 52, 0.15);
}
.nav-step.active span {
  background: var(--lime);
  border-color: var(--lime);
  color: #fff;
  font-weight: 900;
}
.nav-step.done {
  color: #fff;
}
.nav-step.done span {
  color: var(--lime);
  border-color: var(--lime);
}
.privacy-note {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  position: relative;
  z-index: 1;
}
.privacy-note b {
  font-size: 11px;
}
.privacy-note p {
  font-size: 10px;
  line-height: 1.5;
  color: #bad2e5;
  margin: 6px 0;
}
.content {
  padding: 30px 5vw 20px;
  background: linear-gradient(180deg, #f6f9fb, #eef4f8);
  min-width: 0;
}
.progress-row {
  max-width: 980px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.progress-track {
  height: 5px;
  background: #dbe5ed;
  border-radius: 4px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  transition: width 0.25s;
}
.panel {
  max-width: 980px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 14px 42px rgba(16, 76, 130, 0.07);
  position: relative;
  overflow: hidden;
}
.panel:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--lime), var(--blue));
}
.panel-heading {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
}
.section-number {
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
  opacity: 0.32;
}
.panel-heading h2 {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 750;
  margin: 5px 0 10px;
  color: var(--blue-dark);
}
.panel-heading p:last-child {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}
.kicker {
  margin: 0;
  color: var(--blue);
}
.purpose {
  margin: 0 -40px 30px;
  padding: 17px 40px;
  background: linear-gradient(90deg, #f0f7e1, #f7fbef);
  border-top: 1px solid #deebbf;
  border-bottom: 1px solid #deebbf;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
}
.purpose span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  font-size: 9px;
  color: var(--lime-dark);
}
.purpose p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: #526246;
}
.question {
  padding: 28px 0 8px;
}
.question.compact {
  padding: 16px 0 4px;
}
.question.divided {
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.question h3,
.subsection h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--blue-dark);
}
.question-note {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 13px;
}
.choice-grid {
  display: grid;
  gap: 10px;
}
.choice-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.choice-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.choice {
  min-height: 49px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}
.choice:hover {
  border-color: #81a9ca;
  background: #f6fafd;
}
.choice.selected {
  border-color: var(--blue);
  background: #eef6fc;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.radio-dot,
.check-box {
  width: 17px;
  height: 17px;
  border: 1px solid #9cabb7;
  position: relative;
  flex: 0 0 auto;
}
.radio-dot {
  border-radius: 50%;
}
.check-box {
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
}
.selected .radio-dot,
.selected .check-box {
  border-color: var(--blue);
}
.selected .radio-dot:after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--blue);
  border-radius: 50%;
}
.selected .check-box {
  background: var(--blue);
}
.conditional {
  background: #f5f8fb;
  border: 1px solid #e2eaf0;
  border-radius: 9px;
  margin-top: 18px;
  padding: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.field-grid label,
.investment-card label,
.wide-label,
.economic-grid label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: #526b7e;
  display: grid;
  gap: 7px;
}
.field-grid input,
.field-grid select,
.investment-card input,
.economic-grid input,
.wide-label input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.field-grid input:focus,
.investment-card input:focus,
.economic-grid input:focus,
.wide-label input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 162, 0.08);
}
.intro-fields {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.intro-fields h3 {
  font-size: 16px;
  color: var(--blue-dark);
  margin: 0 0 6px;
}
.intro-fields > p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 10px;
}
.intro-fields > .wide-label {
  margin-top: 14px;
}
.input-prefix {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.input-prefix span {
  padding: 12px;
  color: #7890a2;
  border-right: 1px solid var(--line);
}
.input-prefix input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #edf5fb;
  border-left: 3px solid var(--blue);
  padding: 13px 15px;
  margin: 18px 0;
  text-align: left;
}
.info-strip span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex: 0 0 auto;
}
.info-strip p {
  font-size: 11px;
  line-height: 1.5;
  color: #52697a;
  margin: 1px 0;
}
.info-strip.success {
  background: #f2f8e7;
  border-color: var(--lime);
}
.info-strip.success span {
  background: var(--lime);
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.file-box {
  border: 1px dashed #9fb4c5;
  background: #fff;
  border-radius: 8px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  min-height: 80px;
}
.file-box:hover {
  border-color: var(--blue);
  background: #f7fbfe;
}
.file-box input {
  display: none;
}
.file-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #eaf3fa;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}
.file-box strong {
  display: block;
  font-size: 11px;
}
.file-box small {
  display: block;
  font-size: 9px;
  color: #8293a0;
  margin-top: 4px;
}
.file-box.has-file {
  border-style: solid;
  border-color: var(--lime);
  background: #fbfdf7;
}
.subsection {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.subsection.vertical {
  display: grid;
  align-items: start;
}
.subsection p,
.helper {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0;
  line-height: 1.5;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.soft-button {
  border-color: #b6c7d5;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 10px;
}
.text-button.active {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
}
.mode-content {
  max-width: 440px;
  margin-top: 12px;
}
.economic-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}
.economic-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}
.economic-title b {
  font-size: 12px;
  color: var(--blue-dark);
}
.economic-title span {
  font-size: 9px;
  color: var(--muted);
}
.economic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.item-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.investment-card {
  display: grid;
  grid-template-columns: 38px 2fr 1.2fr 0.7fr 1.2fr;
  gap: 12px;
  align-items: end;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}
.investment-card.future {
  grid-template-columns: 38px 2fr 1.2fr 0.8fr;
}
.item-count {
  align-self: center;
  color: var(--blue);
  font-weight: 800;
  opacity: 0.45;
}
.add-button {
  justify-self: start;
  border: 1px solid var(--lime);
  color: var(--lime-dark);
  background: #f7fbef;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.credentials {
  text-align: center;
}
.primary-button,
.next-button {
  border: 0;
  background: var(--lime);
  color: #fff;
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(149, 193, 31, 0.22);
}
.primary-button:hover,
.next-button:hover {
  background: var(--lime-dark);
}
.centered {
  text-align: center;
}
.tag-grid {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
.tag {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tag:hover {
  border-color: var(--blue);
  background: #f2f7fb;
}
.tag.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.wide-label textarea {
  min-height: 120px;
  resize: vertical;
}
.completion {
  margin-top: 28px;
  padding: 26px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: 9px;
  text-align: center;
  border-bottom: 5px solid var(--lime);
}
.completion span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  color: #d9eea6;
}
.completion h3 {
  font-size: 25px;
  font-weight: 750;
  margin: 7px;
}
.completion p {
  font-size: 11px;
  color: #d4e4f0;
  max-width: 570px;
  margin: 0 auto 18px;
  line-height: 1.5;
}
.form-footer {
  max-width: 980px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.form-footer > span {
  font-size: 9px;
  color: #7b8c98;
}
.back-button {
  justify-self: start;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  color: var(--blue);
}
.back-button:disabled,
.next-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.next-button {
  justify-self: end;
}
.next-button span {
  font-size: 17px;
  margin-left: 8px;
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 280px 1fr;
  }
  .sidebar {
    padding: 26px 20px;
  }
  .content {
    padding: 24px;
  }
  .panel {
    padding: 28px;
  }
  .purpose {
    margin: 0 -28px 26px;
    padding: 16px 28px;
  }
  .choice-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .investment-card,
  .investment-card.future {
    grid-template-columns: 32px 1fr 1fr;
  }
  .investment-card label:first-of-type {
    grid-column: 2/-1;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 76px;
    padding: 0 16px;
  }
  .brand img {
    width: 78px;
    height: 62px;
  }
  .top-actions .secure {
    display: none;
  }
  .save-button {
    padding: 8px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    padding: 14px 16px;
  }
  .sidebar-logo,
  .side-intro h1,
  .side-intro p,
  .privacy-note {
    display: none;
  }
  .side-intro {
    margin-bottom: 8px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav-step {
    min-width: 46px;
    padding: 6px;
  }
  .nav-step b {
    display: none;
  }
  .content {
    padding: 16px;
  }
  .panel {
    padding: 22px 18px;
  }
  .panel-heading h2 {
    font-size: 28px;
  }
  .purpose {
    margin: 0 -18px 22px;
    padding: 15px 18px;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .choice-grid.two,
  .choice-grid.three,
  .choice-grid.four,
  .upload-grid,
  .field-grid,
  .economic-grid {
    grid-template-columns: 1fr;
  }
  .investment-card,
  .investment-card.future {
    grid-template-columns: 28px 1fr;
  }
  .investment-card label,
  .investment-card label:first-of-type {
    grid-column: 2;
  }
  .subsection {
    align-items: flex-start;
    flex-direction: column;
  }
  .economic-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-footer {
    grid-template-columns: 1fr 1fr;
  }
  .form-footer > span {
    display: none;
  }
}
