/* Tax intake form */
.intake .lead{max-width:62ch;}
.intake h2{font-size:1.7rem; margin-top:4px;}
.intake h3{margin:26px 0 12px;}
.step-panel{background:#fff; border:1px solid var(--line); border-radius:14px; padding:32px; box-shadow:var(--shadow);}
.sub{border-left:3px solid var(--bg-tint); padding-left:16px; margin-left:2px;}

.progress{list-style:none; display:flex; gap:6px; padding:0; margin:28px 0 20px; counter-reset:p;}
.progress li{flex:1; min-width:0; font-family:'IBM Plex Mono',monospace; font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:#7A868D; padding-top:10px; border-top:4px solid var(--line); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.progress li.done{border-top-color:var(--teal); color:var(--teal-dark);}
.progress li.current{border-top-color:var(--accent); color:var(--ink); font-weight:600;}

.step-nav{display:flex; justify-content:space-between; gap:12px; margin-top:22px;}
.step-nav #nextBtn, .step-nav #submitBtn{margin-left:auto;}

/* Upload slots */
.upload{border:1px solid var(--line); border-radius:10px; padding:16px; margin:0 0 16px; background:var(--bg);}
.upload-head{display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; margin-bottom:10px;}
.upload-head .label{font-weight:600; color:var(--ink); font-size:.95rem;}
.drop{display:flex; align-items:center; justify-content:center; gap:10px; text-align:center; border:1.5px dashed #A9C2AF; border-radius:8px; padding:16px; cursor:pointer; color:var(--teal-dark); font-weight:600; font-size:.92rem; background:#fff;}
.drop:hover,.drop.over{border-color:var(--teal); background:var(--bg-tint);}
.drop input{position:absolute; width:1px; height:1px; opacity:0;}
.drop:focus-within{outline:3px solid var(--accent); outline-offset:2px;}
.drop svg{width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; flex:none;}
.file-list{list-style:none; margin:10px 0 0; padding:0;}
.file-list li{display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid var(--line); border-radius:6px; padding:8px 10px; margin-top:6px; font-size:.88rem;}
.file-list .fname{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink);}
.file-list .fsize{color:#6B777E; font-size:.8rem; margin-left:6px;}
.file-list button{background:none; border:none; color:var(--error); font:inherit; font-size:.82rem; cursor:pointer; padding:4px; flex:none;}
.file-list li.up-done{border-color:#BFE3D4;}
.file-list li.up-done .fname::before{content:"\2713  "; color:#0F7B53;}
.upload.has-error{border-color:var(--error);}

/* Dependents */
.dependent{position:relative; margin:0 0 16px; padding:22px 20px 18px; box-shadow:none;}
.dependent legend{font-family:'IBM Plex Mono',monospace; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-dark); padding:0 6px;}
.remove-dep{position:absolute; top:10px; right:12px; background:none; border:none; color:var(--error); font:inherit; font-size:.85rem; cursor:pointer;}

.choice.ack{align-items:flex-start; font-weight:400; line-height:1.45;}
.choice.ack input{margin-top:2px;}

/* Review */
.review dl{display:grid; grid-template-columns:minmax(150px,220px) 1fr; gap:6px 16px; margin:0 0 6px; font-size:.92rem;}
.review dt{font-weight:600; color:var(--ink);}
.review dd{margin:0; overflow-wrap:anywhere;}
.review-sec{border-bottom:1px solid var(--line); padding:14px 0;}
.review-sec h3{display:flex; justify-content:space-between; align-items:baseline; margin:0 0 10px; font-size:1rem;}
.review-sec h3 button{background:none; border:none; color:var(--teal-dark); font:inherit; font-size:.85rem; font-weight:600; cursor:pointer; text-decoration:underline;}

.submit-status{margin-top:18px; border:1px solid var(--line); border-radius:10px; padding:16px; background:var(--bg-tint);}
.status-line{font-weight:600; color:var(--ink); margin:0 0 10px;}
.bar{height:8px; background:#fff; border-radius:6px; overflow:hidden;}
.bar span{display:block; height:100%; width:0; background:var(--teal); transition:width .2s ease;}

@media (max-width:640px){
  .step-panel{padding:22px 16px; border-radius:10px;}
  .progress li{font-size:0; padding-top:0;}
  .progress li.current{font-size:.66rem; flex:3; padding-top:8px;}
  .review dl{grid-template-columns:1fr; gap:0;}
  .review dd{margin-bottom:8px;}
  .row [style*="span 2"]{grid-column:auto !important;}
}
