:root{
  --ink:#102a22;
  --green:#063f34;
  --green-2:#0a5c4b;
  --green-3:#dfece7;
  --gold:#cba54b;
  --gold-2:#f2e5ba;
  --cream:#f4f0e6;
  --paper:#fffdf8;
  --white:#ffffff;
  --line:#d9dfda;
  --muted:#6c7772;
  --field:#fbfcfa;
  --danger:#b74f4f;
  --shadow:0 22px 58px rgba(18,42,34,.10)
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream);-webkit-font-smoothing:antialiased}
.hbmsp-app{padding:18px 16px 14px;background:var(--cream)}
.hbmsp-shell{max-width:1120px;margin:0 auto}
.hbmsp-surface{position:relative;background:var(--white);border:1px solid rgba(6,63,52,.13);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.hbmsp-surface:before{content:"";display:block;height:6px;background:linear-gradient(90deg,var(--green) 0 72%,var(--gold) 72% 100%)}

/* Intro: one restrained premium system */
.hbmsp-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:30px;padding:28px 36px 24px;background:linear-gradient(135deg,#fffefb 0%,#fbf6e8 100%);border-bottom:1px solid var(--line)}
.hbmsp-kicker,.hbmsp-step-count{display:block;color:#916e1e;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.hbmsp-intro h1,.hbmsp-step-head h2,.hbmsp-success h2{font-family:Georgia,"Times New Roman",serif;color:var(--green)}
.hbmsp-intro h1{font-size:clamp(40px,5vw,58px);line-height:.98;letter-spacing:-.035em;margin:8px 0 11px}
.hbmsp-intro p{max-width:690px;margin:0;color:#66736d;font-size:14px;line-height:1.65}
.hbmsp-intro__facts{display:grid;gap:8px;min-width:220px;padding-left:24px;border-left:1px solid rgba(6,63,52,.14)}
.hbmsp-intro__facts span{position:relative;padding-left:17px;color:#36564b;font-size:11px;font-weight:800;white-space:nowrap}
.hbmsp-intro__facts span:before{content:"✓";position:absolute;left:0;top:-1px;color:#9a761f;font-weight:900}

.hbmsp-alert{margin:16px 28px 0;padding:13px 15px;border-radius:9px;font-size:13px;font-weight:700}
.hbmsp-alert--error{background:#fff3f1;border:1px solid #efc8c2;color:#8b302b}
.hbmsp-alert--success{background:#edf8f2;border:1px solid #c5e3d2;color:#18583e}

/* Progress: one dark navigation band, not floating circles/cards */
.hbmsp-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;padding:0;background:#0a4b3d;border-bottom:1px solid #0a4b3d}
.hbmsp-progress:before{display:none}
.hbmsp-progress button{appearance:none;border:0;background:var(--green);color:#cfe0d9;min-height:66px;padding:12px 14px;display:grid;grid-template-columns:28px 1fr;gap:9px;align-items:center;text-align:left;cursor:pointer;transition:.18s}
.hbmsp-progress button+button{border-left:1px solid rgba(255,255,255,.10)}
.hbmsp-progress button>span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);font-size:11px;font-weight:900;color:#fff}
.hbmsp-progress button>b{font-size:11px;letter-spacing:.01em}
.hbmsp-progress button.is-active{background:#0b5b49;color:#fff}
.hbmsp-progress button.is-active>span{background:var(--gold);border-color:var(--gold);color:#2d2615;box-shadow:none}

/* Form body */
.hbmsp-form{padding:30px 36px 24px;background:var(--white)}
.hbmsp-step-panel{display:none}
.hbmsp-step-panel.is-active{display:block;animation:hbmspFade .16s ease-out}
@keyframes hbmspFade{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}
.hbmsp-step-head{display:flex;align-items:flex-start;gap:16px;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #edf0ed}
.hbmsp-step-head:before{content:attr(data-step-label);display:none}
.hbmsp-step-count{margin-bottom:7px}
.hbmsp-step-head h2{font-size:31px;line-height:1.04;margin:0 0 6px;letter-spacing:-.02em}
.hbmsp-step-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.hbmsp-grid{display:grid;gap:14px 18px}
.hbmsp-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hbmsp-field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.hbmsp-field label{font-size:11px;font-weight:850;color:#173e32;letter-spacing:.005em}
.hbmsp-field input,.hbmsp-field select,.hbmsp-field textarea{width:100%;border:1px solid #bfcfc7;background:var(--field);color:#17382e;border-radius:8px;padding:13px 14px;font:650 13px/1.4 inherit;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.hbmsp-field input,.hbmsp-field select{min-height:48px}
.hbmsp-field textarea{min-height:112px;resize:vertical}
.hbmsp-field input::placeholder,.hbmsp-field textarea::placeholder{color:#99a49f;font-weight:500}
.hbmsp-field input:hover,.hbmsp-field select:hover,.hbmsp-field textarea:hover{background:#fff;border-color:#9fb1a8}
.hbmsp-field input:focus,.hbmsp-field select:focus,.hbmsp-field textarea:focus{background:#fff;border-color:var(--green-2);box-shadow:0 0 0 3px rgba(10,92,75,.12)}
.hbmsp-field.is-invalid input,.hbmsp-field.is-invalid select,.hbmsp-field.is-invalid textarea{border-color:var(--danger);box-shadow:0 0 0 3px rgba(183,79,79,.10)}

.hbmsp-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 8px}
.hbmsp-upload{position:relative;display:grid;grid-template-columns:40px 1fr;column-gap:11px;row-gap:2px;align-items:center;min-height:86px;padding:14px;border:1px dashed #aebfb6;background:#fafbf9;border-radius:10px;cursor:pointer;transition:.18s}
.hbmsp-upload:hover{border-color:var(--green-2);background:#f3f8f5}
.hbmsp-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.hbmsp-upload__icon{grid-row:1/4;display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--gold-2);color:#6f571d;font-size:19px}
.hbmsp-upload b{font-size:12px;color:#183c31}
.hbmsp-upload small{font-size:10px;color:#87948e}
.hbmsp-upload em{font-style:normal;font-size:10px;color:var(--green);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.hbmsp-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:20px;border-top:1px solid #edf0ed}
.hbmsp-actions--end{justify-content:flex-end}
.hbmsp-btn{appearance:none;border:0;border-radius:8px;min-height:46px;padding:12px 18px;font:850 12px/1 inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s}
.hbmsp-btn--primary{background:var(--green);color:#fff;box-shadow:0 7px 16px rgba(6,63,52,.16)}
.hbmsp-btn--primary:hover{background:#032f27;transform:translateY(-1px)}
.hbmsp-btn--ghost{background:#edf3ef;color:#315447}
.hbmsp-btn--submit{min-width:195px}

.hbmsp-review{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:2px 0 16px}
.hbmsp-review article{padding:12px;border:1px solid #dfe6e2;background:#fafcfb;border-radius:8px}
.hbmsp-review small,.hbmsp-review b{display:block}
.hbmsp-review small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8b9892;font-weight:800;margin-bottom:4px}
.hbmsp-review b{font-size:11px;color:#214338;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbmsp-agree{display:grid;grid-template-columns:22px 1fr;gap:11px;align-items:start;padding:14px;border:1px solid #d4dfda;background:#f7faf8;border-radius:8px;cursor:pointer}
.hbmsp-agree input{margin-top:2px;width:18px;height:18px;accent-color:var(--green)}
.hbmsp-agree b,.hbmsp-agree small{display:block}
.hbmsp-agree b{font-size:12px;color:#214338;margin-bottom:3px}
.hbmsp-agree small{font-size:10px;color:#6f7f78;line-height:1.5}

/* One quiet closing line */
.hbmsp-form-note{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 36px;border-top:1px solid var(--line);background:#f8faf8}
.hbmsp-form-note div{display:flex;align-items:center;gap:9px;min-width:0}
.hbmsp-form-note div:before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e3f1eb;color:var(--green);font-size:11px;font-weight:900;flex:0 0 auto}
.hbmsp-form-note strong{font-size:11px;color:#173e32}
.hbmsp-form-note span{font-size:10px;color:#7a8982;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbmsp-form-note a{flex:0 0 auto;font-size:11px;font-weight:850;color:var(--green);text-decoration:none}

.hbmsp-success{padding:46px 36px;text-align:center}
.hbmsp-success__icon{margin:0 auto 16px;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e8f5ef;color:var(--green);font-size:25px;font-weight:900}
.hbmsp-success h2{font-size:36px;margin:7px 0 9px}
.hbmsp-success p{max-width:650px;margin:0 auto 20px;color:var(--muted);line-height:1.65}
.hbmsp-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important}

@media(max-width:820px){
  .hbmsp-app{padding:12px 10px}
  .hbmsp-intro{grid-template-columns:1fr;gap:14px;padding:24px 22px 21px}
  .hbmsp-intro__facts{grid-template-columns:repeat(3,max-content);min-width:0;padding-left:0;border-left:0}
  .hbmsp-form{padding:26px 22px 20px}
  .hbmsp-form-note{padding:14px 22px}
  .hbmsp-grid--2,.hbmsp-upload-grid{grid-template-columns:1fr}
  .hbmsp-review{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .hbmsp-surface{border-radius:14px}
  .hbmsp-intro{padding:22px 17px 18px}
  .hbmsp-intro h1{font-size:38px}
  .hbmsp-intro__facts{display:flex;gap:7px 14px;flex-wrap:wrap}
  .hbmsp-progress{grid-template-columns:repeat(4,1fr)}
  .hbmsp-progress button{min-height:58px;padding:9px 6px;display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:center}
  .hbmsp-progress button>span{width:26px;height:26px;border-radius:6px}
  .hbmsp-progress button>b{font-size:9px}
  .hbmsp-form{padding:22px 17px 18px}
  .hbmsp-step-head h2{font-size:26px}
  .hbmsp-review{grid-template-columns:1fr}
  .hbmsp-actions{align-items:stretch}
  .hbmsp-actions .hbmsp-btn{flex:1}
  .hbmsp-form-note{display:block;padding:13px 17px}
  .hbmsp-form-note div{align-items:flex-start}
  .hbmsp-form-note span{display:block;margin-top:2px;white-space:normal}
  .hbmsp-form-note a{display:inline-block;margin-top:9px}
  .hbmsp-success{padding:38px 18px}
  .hbmsp-success h2{font-size:31px}
}

/* =========================================================
   HBMSP 1.3.2 — FINAL VISUAL POLISH ONLY
   Keeps PHP + JS untouched. Refines the stable 1.3.0 layout.
   ========================================================= */
:root{
  --cream:#f5f1e8;
  --paper:#fffdfa;
  --field:#f8f7f2;
  --line:#d9ded9;
  --shadow:0 18px 44px rgba(18,42,34,.085)
}
body{background:var(--cream)}
.hbmsp-app{padding:14px 14px 10px;background:var(--cream)}
.hbmsp-shell{max-width:1080px}
.hbmsp-surface{border-radius:16px;box-shadow:var(--shadow);border-color:rgba(6,63,52,.12)}
.hbmsp-surface:before{height:5px}

/* Compact, balanced intro */
.hbmsp-intro{
  grid-template-columns:1fr;
  gap:14px;
  padding:22px 32px 20px;
  background:linear-gradient(135deg,#fffefb 0%,#fbf6e9 100%);
}
.hbmsp-intro h1{font-size:clamp(39px,4.6vw,52px);line-height:1;letter-spacing:-.03em;margin:7px 0 9px}
.hbmsp-intro p{font-size:13px;line-height:1.6;max-width:760px}
.hbmsp-intro__facts{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 22px;
  min-width:0;
  padding:0;
  border:0;
}
.hbmsp-intro__facts span{font-size:10px;white-space:normal;padding-left:16px}

/* Lighter navigation; active step carries the strongest emphasis */
.hbmsp-progress{background:#0b4a3d}
.hbmsp-progress button{min-height:58px;padding:10px 14px;background:#0d5143;color:#d9e7e1}
.hbmsp-progress button:hover{background:#0f5949}
.hbmsp-progress button.is-active{background:#073f34}
.hbmsp-progress button>span{width:26px;height:26px;border-radius:6px;background:rgba(255,255,255,.08)}
.hbmsp-progress button.is-active>span{background:var(--gold);color:#302714}

/* Tighter form hierarchy */
.hbmsp-form{padding:25px 32px 20px}
.hbmsp-step-head{margin-bottom:20px;padding-bottom:15px}
.hbmsp-step-head h2{font-size:29px;line-height:1.06;margin-bottom:5px}
.hbmsp-step-head p{font-size:11.5px}
.hbmsp-grid{gap:11px 16px}
.hbmsp-field{gap:7px;margin-bottom:11px}
.hbmsp-field label{font-size:10.5px;letter-spacing:.01em}
.hbmsp-field input,.hbmsp-field select,.hbmsp-field textarea{
  background:#f8f7f2;
  border-color:#cfd8d2;
  border-radius:9px;
  padding:13px 14px;
  color:#17382e;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75)
}
.hbmsp-field input,.hbmsp-field select{min-height:50px}
.hbmsp-field input:hover,.hbmsp-field select:hover,.hbmsp-field textarea:hover{background:#fffdf8;border-color:#aebfb6}
.hbmsp-field input:focus,.hbmsp-field select:focus,.hbmsp-field textarea:focus{
  background:#fff;
  border-color:#0a5c4b;
  box-shadow:0 0 0 3px rgba(10,92,75,.11),inset 0 1px 0 rgba(255,255,255,.85)
}

/* Better action footer */
.hbmsp-actions{margin-top:8px;padding-top:17px}
.hbmsp-actions--end{justify-content:flex-end}
.hbmsp-btn{min-height:48px;border-radius:9px;padding:13px 20px}
.hbmsp-btn--primary{min-width:150px;box-shadow:0 8px 18px rgba(6,63,52,.15)}
.hbmsp-btn--primary:hover{transform:none;background:#04362d}

/* Quieter closing note */
.hbmsp-form-note{padding:11px 32px;background:#fafbf9}
.hbmsp-form-note div:before{width:20px;height:20px}
.hbmsp-form-note strong{font-size:10.5px}
.hbmsp-form-note span,.hbmsp-form-note a{font-size:9.5px}

/* Slightly leaner uploads/review elements on later steps */
.hbmsp-upload{min-height:80px;padding:12px}
.hbmsp-review article{padding:11px;background:#fbfcfa}
.hbmsp-agree{padding:12px}

@media(max-width:820px){
  .hbmsp-app{padding:10px 8px 8px}
  .hbmsp-intro{padding:21px 22px 18px}
  .hbmsp-intro__facts{display:flex;gap:7px 16px}
  .hbmsp-form{padding:23px 22px 18px}
  .hbmsp-form-note{padding:11px 22px}
}
@media(max-width:560px){
  .hbmsp-intro{padding:19px 16px 16px}
  .hbmsp-intro h1{font-size:36px}
  .hbmsp-progress button{min-height:56px;padding:8px 4px}
  .hbmsp-form{padding:20px 16px 16px}
  .hbmsp-step-head h2{font-size:25px}
  .hbmsp-btn{min-height:48px}
  .hbmsp-form-note{padding:11px 16px}
}

/* =========================================================
   HBMSP 1.3.3 — FINAL MICRO POLISH
   CSS ONLY. No PHP/JS changes.
   ========================================================= */
.hbmsp-app{padding-top:10px;padding-bottom:0}
.hbmsp-shell{max-width:1040px}
.hbmsp-surface{border-radius:14px}
.hbmsp-intro{padding:19px 28px 17px;gap:11px}
.hbmsp-intro h1{font-size:clamp(37px,4.25vw,48px);margin:5px 0 7px;line-height:1.01}
.hbmsp-intro p{font-size:12.5px;line-height:1.55}
.hbmsp-intro__facts{gap:6px 18px}
.hbmsp-intro__facts span{font-size:9.75px}

.hbmsp-progress button{min-height:54px;padding:9px 13px;background:#0d5546}
.hbmsp-progress button.is-active{background:#074438}
.hbmsp-progress button>span{width:25px;height:25px}
.hbmsp-progress button>b{font-size:10.5px}

.hbmsp-form{padding:22px 28px 16px}
.hbmsp-step-head{margin-bottom:17px;padding-bottom:13px}
.hbmsp-step-count{margin-bottom:5px}
.hbmsp-step-head h2{font-size:27px;margin-bottom:4px}
.hbmsp-step-head p{font-size:11px}
.hbmsp-grid{gap:9px 15px}
.hbmsp-field{margin-bottom:9px}
.hbmsp-field label{font-size:10.25px}
.hbmsp-field input,.hbmsp-field select,.hbmsp-field textarea{
  background:#f5f3ed;
  border-color:#c3cec8;
  border-radius:8px;
  padding:12px 13px;
}
.hbmsp-field input,.hbmsp-field select{min-height:47px}
.hbmsp-field input::placeholder,.hbmsp-field textarea::placeholder{color:#8f9a95}
.hbmsp-field input:focus,.hbmsp-field select:focus,.hbmsp-field textarea:focus{
  border-color:#0a5c4b;
  box-shadow:0 0 0 3px rgba(10,92,75,.10)
}

.hbmsp-actions{margin-top:4px;padding-top:14px}
.hbmsp-btn{min-height:46px;padding:12px 18px;border-radius:8px}
.hbmsp-btn--primary{min-width:142px}

.hbmsp-form-note{padding:9px 28px}
.hbmsp-form-note div:before{width:19px;height:19px}
.hbmsp-form-note strong{font-size:10px}
.hbmsp-form-note span,.hbmsp-form-note a{font-size:9px}

@media(max-width:820px){
  .hbmsp-shell{max-width:100%}
  .hbmsp-intro{padding:18px 20px 16px}
  .hbmsp-form{padding:20px 20px 15px}
  .hbmsp-form-note{padding:9px 20px}
}
@media(max-width:560px){
  .hbmsp-app{padding:8px 7px 0}
  .hbmsp-intro{padding:17px 15px 14px}
  .hbmsp-intro h1{font-size:34px}
  .hbmsp-intro__facts{gap:6px 12px}
  .hbmsp-progress button{min-height:52px;padding:7px 3px}
  .hbmsp-progress button>b{font-size:8.75px}
  .hbmsp-form{padding:18px 15px 14px}
  .hbmsp-step-head h2{font-size:24px}
  .hbmsp-form-note{padding:9px 15px}
}
