:root {
  --teal: #009E8E;
  --teal-dark: #007A6D;
  --teal-light: #E6F7F5;
  --teal-mid: #CCF0EC;
  --purple: #5B3FD9;
  --purple-light: #EEE9FF;
  --ink: #0F1C2E;
  --ink-2: #2D3F56;
  --muted: #6B7E96;
  --line: #E4EAF2;
  --off: #F7F9FC;
  --navy: #0F1C2E;
  --soft: #F7F9FC;
  --blue: #5B3FD9;
  --green: #059669;
  --red: #c74747;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 184, 166, .14), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(99, 102, 241, .11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .94)),
    var(--off);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 310px minmax(240px, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: .65rem .8rem .65rem 1rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  flex: 0 0 auto;
}

.brand-name {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-wrap {
  min-width: 180px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ecf4;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #6366f1);
  box-shadow: 0 0 18px rgba(20, 184, 166, .38);
  border-radius: inherit;
}

.secure-note {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.simple-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 900px);
  gap: 26px;
  align-items: start;
  justify-content: center;
  padding: 32px;
}

.step-list {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.step span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #c9d6e4;
  border-radius: 50%;
  background: white;
  font-size: 12px;
  font-weight: 850;
}

.step strong {
  color: var(--navy);
  font-size: 14px;
}

.step.active {
  background: white;
  border-color: #b9cce0;
  box-shadow: var(--shadow);
}

.step.active span {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.step.done span {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.backend-banner {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #fed39a;
  border-radius: 8px;
  background: #fff8ec;
  color: #714607;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.lead {
  max-width: 720px;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.field {
  display: block;
}

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

.field > span,
.label-text {
  display: block;
  margin-bottom: 7px;
  color: #27384f;
  font-size: 13px;
  font-weight: 780;
}

.required {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d6e4;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 158, 142, 0.13);
}

.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #c9d6e4;
  border-radius: 8px;
  background: #fbfdff;
  color: #27384f;
  font-size: 13px;
  font-weight: 650;
}

.check input {
  width: 17px;
  height: 17px;
  min-height: unset;
  padding: 0;
  accent-color: var(--blue);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white;
  font-weight: 780;
  cursor: pointer;
}

.btn.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .topbar,
  .simple-layout {
    grid-template-columns: 1fr;
  }

  .simple-layout {
    padding: 18px;
  }

  .step-list {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .card {
    padding: 20px;
  }

  .field-grid,
  .checks {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column-reverse;
  }
}
