:root{
  --bg: #F2F4EC;
  --ink: #0E181A;
  --blue: #0158F3;
  --accent: #5E3434;

  --card: rgba(255,255,255,0.88);
  --border: rgba(14,24,26,0.14);
  --shadow: 0 18px 60px rgba(0,0,0,0.18);

  --radius: 16px;

  /* Font */
  --font-display: "Book Antiqua", Palatino, "Palatino Linotype", serif;
  --font-ui: Arial, Helvetica, sans-serif;

  --ring: rgba(1,88,243,0.16);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: var(--font-ui);
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
}

/* geometric background */
.bg{ position: fixed; inset:0; z-index:-2; overflow:hidden; }
.shape{ position:absolute; background: var(--blue); opacity:0.92; transform: rotate(45deg); }
.s1{ width:520px; height:520px; left:-240px; bottom:-240px; }
.s2{ width:460px; height:460px; right:220px; top:-260px; opacity:0.86; }
.s3{ width:380px; height:380px; left:55%; top:30%; opacity:0.20; }
.s4{ width:700px; height:700px; right:-420px; bottom:-420px; opacity:0.10; }

/* topbar */
.topbar{
  position: sticky;
  top: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  background: rgba(14,24,26,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  z-index: 10;
  transition: box-shadow .15s ease;
}
.topbar.scrolled{ box-shadow: 0 12px 32px rgba(0,0,0,0.25); }

.brand{ display:flex; align-items:center; gap:12px; min-width: 0; }
.logo{
  height: 28px;
  width: auto;
  display:none;
}
.logo--white{ display:block; }
.brand-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.brand-title{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.brand-subtitle{
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

/* main */
.wrap{
  padding: 42px 16px 64px;
  display:flex;
  justify-content:center;
}
.card{
  width: min(980px, 100%);
  border-radius: calc(var(--radius) + 6px);
  background: transparent;
}

/* ribbon title */
.title-ribbon{
  position: relative;
  margin: 0 auto 16px;
  width: min(860px, 100%);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.title-ribbon__cap{
  height: 22px;
  background: var(--blue);
}
.title-ribbon__text{
  background: rgba(255,255,255,0.92);
  padding: 22px 18px;
  text-align:center;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ink);
}

/* wizard container */
.wizard{
  width: min(860px, 100%);
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.wizard-meta{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}

.wizard-kicker{
  font-size: 12px;
  color: rgba(14,24,26,0.70);
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.wizard-title{
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .6px;
}
.wizard-sub{
  margin-top: 6px;
  color: rgba(14,24,26,0.66);
  font-size: 13px;
}

/* stepper with embedded progress */
.stepper{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:space-between;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(14,24,26,0.10);
  border-radius: 18px;
  padding: 12px 12px;
}

.step{
  position: relative;
  flex: 1;
  min-width: 170px;
  border-radius: 14px;
  border: 1px solid rgba(14,24,26,0.14);
  background: rgba(255,255,255,0.86);
  padding: 10px 10px 12px;
  cursor:pointer;
  text-align:left;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  font-family: var(--font-ui);
  overflow:hidden;
}
.step:hover{ transform: translateY(-1px); }

/*progress bar*/
.step::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:8px;
  height:4px;
  border-radius: 999px;
  background: rgba(14,24,26,0.10);
}
.step::before{
  content:"";
  position:absolute;
  left:10px;
  bottom:8px;
  height:4px;
  width: var(--step-fill, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(1,88,243,0.55));
  transition: width .18s ease;
}

.step .step-num{
  font-size: 12px;
  font-weight: 900;
  color: rgba(14,24,26,0.65);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.step .step-title{
  margin-top: 4px;
  font-weight: 900;
  color: rgba(14,24,26,0.92);
  font-size: 13px;
}

/*outline highlight */
.step.active{
  border-color: rgba(1,88,243,0.55);
  box-shadow: 0 0 0 6px var(--ring);
}

.step.done{
  background: rgba(242,244,236,0.88);
  border-color: rgba(14,24,26,0.18);
}

/* pages */
.pages{
  width: 100%;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.page{ display:none; }
.page.active{ display:block; }

/* form surfaces */
.field{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

label{
  display:block;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.req{ color: #d00; }

.helptext{
  color: rgba(14,24,26,0.66);
  font-size: 13px;
  margin: -4px 0 10px;
}

/* Client Name helptext spacing fix */
.helptext--spaced{
  margin-top: 10px;
  margin-bottom: 0;
}

select, input, textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(14,24,26,0.16);
  background: rgba(255,255,255,0.86);
  padding: 12px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}

select:focus, input:focus, textarea:focus{
  border-color: rgba(1,88,243,0.55);
  box-shadow: 0 0 0 6px rgba(1,88,243,0.18);
}

.input-with-icon{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items:center;
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(14,24,26,0.16);
  background: rgba(255,255,255,0.86);
  cursor:pointer;
  font-family: var(--font-ui);
}

/* review snapshot */
.review{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(14,24,26,0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
  margin-top: 8px;
}
.review-title{
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .6px;
  margin-bottom: 6px;
}
.review-body{
  font-size: 13px;
  color: rgba(14,24,26,0.80);
  white-space: pre-wrap;
}

/* nav buttons */
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 0 0;
}
.nav-right{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* buttons */
.btn{
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:disabled{ cursor:not-allowed; filter: opacity(0.7); transform:none; }

.btn--primary{
  background: var(--blue);
  color: white;
  min-width: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}
.btn--primary:hover{ background: #0b4fe0; }

.btn--secondary{
  background: rgba(14,24,26,0.08);
  color: var(--ink);
}

.btn--ghost{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.16);
}

/* spinner */
.spinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,0.95);
  display:none;
  animation: spin 0.85s linear infinite;
}
.btn.loading .spinner{ display:inline-block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  background: rgba(14,24,26,0.92);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  transform: translateY(18px);
  opacity: 0;
  pointer-events:none;
  transition: transform .18s ease, opacity .18s ease;
}
.toast.show{ transform: translateY(0); opacity: 1; }
.toast-title{ font-weight: 900; margin-bottom: 4px; }
.toast-body{ opacity: 0.9; font-size: 13px; }

/* responsive */
@media (max-width: 920px){
  .step{ min-width: 160px; }
}
@media (max-width: 820px){
  .title-ribbon__text{ font-size: 22px; letter-spacing: 4px; }
  .step{ min-width: 140px; }
}