:root{
  --hsbc-red:#db0011;
  --ink:#111;
  --ink-2:#333;
  --ink-3:#555;
  --muted:#70757a;
  --bg:#fff;
  --card:#fff;
  --border:rgba(17,17,17,.1);
  --shadow:0 8px 24px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08);
  --container:1200px;
  --gold:#f4b000;
}

.apply-page{
  --bg:#f7f7f7;
  --muted:#6b6f75;
  --shadow:0 12px 30px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.06);
  line-height:1.4;
}

*{box-sizing:border-box}
figure{margin:0;}
html,body{height:100%}
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.35;
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  -webkit-text-size-adjust:100%;
  touch-action:manipulation;
}
img{max-width:100%; display:block}

.apply-page main,
body > main{
  flex:1 0 auto;
}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:12px 20px 40px;
}
.apply-page .container{
  max-width:100%;
  width:100%;
  padding:24px 16px 60px;
}

/* Header */
.site-header{
  border-bottom:1px solid var(--border);
  background:#fff;
  padding:18px 0;
  box-shadow:0 6px 16px rgba(0,0,0,.05);
  position:sticky;
  top:0;
  z-index:1000;
}
.site-header .header-inner{
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0px 20px;
}
.site-header img{
  width:140px;
  height:auto;
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  grid-template-areas:"copy media";
  align-items:stretch;
  gap:16px;
  margin-top:6px;
}
.hero-copy{
  grid-area:copy;
  padding:0 16px 0 0;
  margin-top:0;
}
.hero-brand{
  grid-area:brand;
  font-weight:700;
  letter-spacing:.4em;
  text-transform:uppercase;
  font-size:14px;
  color:var(--ink);
  display:none;
}
h1{
  font-weight:800;
  font-size:clamp(32px, 5.2vw, 58px);
  line-height:1.05;
  letter-spacing:-.02em;
  margin:0 0 16px;
}
.apply-page h1{
  font-size:clamp(26px, 3.5vw, 40px);
}
.lead{
  font-size:18px;
  line-height:1.5;
  color:var(--ink-2);
  max-width:640px;
  margin-bottom:18px;
}
.hero-highlights{
  list-style:none;
  margin:0 0 20px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:12px;
}
.hero-highlights li{
  border:1px solid rgba(219,0,17,.18);
  background:rgba(219,0,17,.08);
  border-radius:0;
  padding:12px 14px;
  font-weight:600;
  color:var(--ink-2);
  font-size:15px;
}
.hero-highlights li span{
  display:block;
  font-size:13px;
  font-weight:500;
  color:var(--ink-3);
  margin-top:4px;
}
.cta{
  display:inline-block;
  background:var(--hsbc-red);
  color:#fff;
  font-weight:700;
  border:0;
  border-radius:0;
  padding:12px 20px;
  cursor:pointer;
  text-decoration:none;
  transition:filter .15s ease;
  font-size:16px;
}
.cta:hover{filter:brightness(.96);}
.cta.full{
  display:inline-flex;
  justify-content:center;
  border-radius:0;
  padding:15px 20px;
  width:100%;
  transition:filter .15s ease;
}
.cta.full:hover{filter:brightness(.95);}
.hero-cta{
  display:inline-block;
  margin-bottom:12px;
}
.hero-cta button{
  width:auto;
}

.fineprint{
  margin-top:16px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.5;
  max-width:680px;
}

.hero-media{
  grid-area:media;
  position:relative;
  min-height:300px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    url('../background.webp')
    center/cover no-repeat;
  -webkit-clip-path:polygon(18% 0, 100% 0, 100% 100%, 50% 100%, 0 52%);
          clip-path:polygon(18% 0, 100% 0, 100% 100%, 50% 100%, 0 52%);
}

/* Cards & spotlight */
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:28px;
}
.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:0;
  box-shadow:var(--shadow);
  padding:22px;
}
.card h2{
  font-size:clamp(21px, 3vw, 28px);
  line-height:1.15;
  margin-bottom:10px;
}
.card p{
  color:var(--ink-3);
  font-size:15.5px;
  line-height:1.55;
  margin:0 0 12px;
}

.form-error-banner{
  background:#fff0f0;
  border:1px solid rgba(219,0,17,.4);
  color:#7a0b13;
  padding:12px 16px;
  margin:0 auto 20px;
  max-width:960px;
  font-weight:600;
  box-shadow:0 12px 24px rgba(0,0,0,.08);
}
.card .inline-cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  font-weight:600;
  color:var(--ink-2);
  text-decoration:none;
  border-bottom:2px solid transparent;
  font-size:15px;
}
.card .inline-cta:hover{
  border-bottom-color:currentColor;
}

.wealth-spotlight{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(260px, .95fr);
  gap:0;
  margin-top:48px;
  border:1px solid var(--border);
  background:linear-gradient(120deg, #fff, rgba(17,17,17,.04));
  box-shadow:var(--shadow);
}
.spotlight-content{
  padding:38px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.spotlight-eyebrow{
  text-transform:uppercase;
  letter-spacing:.4em;
  font-size:13px;
  color:var(--muted);
  margin:0;
}
.spotlight-content h2{
  font-size:clamp(28px, 4vw, 38px);
  margin:0;
  line-height:1.15;
}
.spotlight-content p{
  font-size:16.5px;
  color:var(--ink-2);
  margin:0;
}
.spotlight-highlights{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:18px;
  margin-top:8px;
}
.spotlight-card{
  border:1px solid rgba(17,17,17,.12);
  background:#fff;
  padding:16px 18px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.spotlight-card .metric{
  display:block;
  font-weight:700;
  font-size:18px;
  letter-spacing:.08em;
  color:var(--hsbc-red);
  margin-bottom:6px;
}
.spotlight-card p{
  margin:0;
  font-size:15.5px;
  color:var(--ink-2);
}
.spotlight-media{
  border-radius:0;
  overflow:hidden;
  position:relative;
  min-height:280px;
  max-height:360px;
  aspect-ratio:4/3;
  box-shadow:none;
  border-left:1px solid var(--border);
}
.spotlight-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Apply page */
.apply-page main{
  padding-top:20px;
}
.application-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  align-items:start;
}
.application-form,
.projection-panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:0;
  padding:28px;
  box-shadow:var(--shadow);
}
.form-steps{
  position:relative;
}
.form-step{
  display:none;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .22s ease, transform .22s ease;
}
.form-step.is-active{
  display:block;
  opacity:1;
  transform:translateY(0);
}
.form-section + .form-section{
  margin-top:26px;
  padding-top:20px;
  border-top:1px solid rgba(17,17,17,.08);
}
.form-section h2{
  margin:0 0 16px;
  font-size:22px;
}
.field-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.application-grid:not(.has-projection){
  grid-template-columns:1fr;
}

.investment-label{
  display:block;
  margin-bottom:8px;
}
.investment-label span{
  font-weight:600;
}
.field-grid > *{
  min-width:0;
}
.step-nav{
  margin-top:22px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.step-nav .step-prev,
.step-nav .step-next{
  flex:0 0 auto;
  min-width:140px;
  border:1px solid rgba(17,17,17,.2);
  background:#fff;
  border-radius:0;
  padding:10px 18px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  color:var(--ink-2);
  display:inline-flex;
  justify-content:center;
  align-items:center;
}
.step-nav .step-next{
  border-color:var(--hsbc-red);
  background:var(--hsbc-red);
  color:#fff;
}
@media (max-width:600px){
  .step-nav{
    flex-direction:column;
    justify-content:stretch;
  }
  .step-nav .step-prev,
  .step-nav .step-next{
    width:100%;
  }
}
label{
  font-size:14px;
  font-weight:600;
  color:var(--ink-2);
}
input,
select,
textarea{
  border:1px solid rgba(17,17,17,.2);
  border-radius:0;
  padding:12px;
  font-size:15px;
  font-family:inherit;
  transition:border .18s ease, box-shadow .18s ease;
  width:100%;
  box-sizing:border-box;
  min-width:0;
}
.float-label{
  position:relative;
  display:block;
  font-weight:500;
}
.float-label input,
.float-label textarea,
.float-label select{
  padding-top:18px;
  padding-bottom:6px;
}
.float-label span{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:13px;
  color:var(--muted);
  pointer-events:none;
  transition:top .16s ease, transform .16s ease, font-size .16s ease, color .16s ease;
}
.float-label.is-active span,
.float-label.is-filled span{
  top:5px;
  transform:none;
  font-size:11px;
  letter-spacing:.02em;
  color:var(--ink-3);
}
.float-label.dob-label span{
  top:5px;
  transform:none;
  font-size:11px;
  letter-spacing:.02em;
  color:var(--ink-3);
  opacity:1;
}
.float-label input[type="date"]{
  width:100%;
  min-width:0;
}
input:focus,
select:focus,
textarea:focus{
  border-color:var(--hsbc-red);
  box-shadow:none;
  outline:none;
}
.input-hint{
  font-size:13px;
  color:var(--muted);
  margin-top:6px;
  display:block;
}
.input-hint.warning{
  color:var(--hsbc-red);
  font-weight:600;
}

.projection-panel{
  position:sticky;
  top:30px;
}
.projection-panel h3{
  margin:0 0 12px;
  font-size:21px;
}
.projection-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.projection-figure span{
  display:block;
  font-size:13px;
  color:var(--ink-3);
}
.projection-figure strong{
  font-size:32px;
  display:block;
  margin-top:4px;
}
.projection-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.projection-row{
  border:1px solid rgba(17,17,17,.08);
  border-radius:0;
  padding:12px 14px;
  background:#fafafa;
}
.projection-row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
  margin-bottom:8px;
}
.projection-bar{
  position:relative;
  height:8px;
  border-radius:0;
  background:rgba(219,0,17,.15);
  overflow:hidden;
  margin-bottom:6px;
}
.projection-bar span{
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  border-radius:0;
  background:linear-gradient(90deg, #db0011, #f43c12);
}
.projection-row small{
  color:var(--ink-3);
}

.investment-mobile-module{
  margin-top:18px;
  border:1px solid rgba(17,17,17,.12);
  background:#fafafa;
  padding:14px 14px 16px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.investment-mobile-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.investment-mobile-header span{
  font-size:13px;
  color:var(--ink-3);
  text-transform:uppercase;
  letter-spacing:.16em;
}
.investment-mobile-header strong{
  font-size:22px;
}
.investment-mobile-amount{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:8px;
  font-size:14px;
  color:var(--ink-2);
}
.investment-mobile-amount strong{
  font-size:18px;
  color:var(--ink-2);
}
.investment-mobile-slider{
  margin-bottom:8px;
}
.investment-mobile-slider input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:26px;
  padding:0;
  margin:0;
  background:transparent;
  border:none;
  outline:none;
}
.investment-mobile-slider input[type="range"]::-webkit-slider-runnable-track{
  height:6px;
  border-radius:0;
  background:linear-gradient(
    90deg,
    #db0011 0%,
    #db0011 var(--slider-fill, 0%),
    #e4e4e4 var(--slider-fill, 0%),
    #e4e4e4 100%
  );
  border:none;
}
.investment-mobile-slider input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  background:#fff;
  border:2px solid #db0011;
  border-radius:0;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
  margin-top:-8px;
}
.investment-mobile-slider input[type="range"]::-moz-range-thumb{
  width:22px;
  height:22px;
  background:#fff;
  border:2px solid #db0011;
  border-radius:0;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.investment-mobile-slider input[type="range"]::-webkit-slider-thumb:hover,
.investment-mobile-slider input[type="range"]::-moz-range-thumb:hover{
  transform:scale(1.04);
  box-shadow:0 6px 12px rgba(0,0,0,.24);
}
.investment-mobile-slider input[type="range"]::-moz-range-track{
  height:6px;
  border-radius:0;
  background:linear-gradient(
    90deg,
    #db0011 0%,
    #db0011 var(--slider-fill, 0%),
    #e4e4e4 var(--slider-fill, 0%),
    #e4e4e4 100%
  );
  border:none;
}
.investment-mobile-slider input[type="range"]::-ms-track{
  height:6px;
  border-radius:0;
  background:transparent;
  border:none;
  color:transparent;
}
.investment-mobile-slider input[type="range"]::-ms-fill-lower{
  background:#db0011;
  border:none;
}
.investment-mobile-slider input[type="range"]::-ms-fill-upper{
  background:#e4e4e4;
  border:none;
}
.investment-mobile-slider input[type="range"]::-ms-thumb{
  width:22px;
  height:22px;
  background:#fff;
  border:2px solid #db0011;
  border-radius:0;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}

.desktop-only{display:block;}
.mobile-only{display:none;}

.site-footer{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:40px;
  padding:24px 20px 32px;
  background:#000;
  color:#fff;
  flex-shrink:0;
}
.site-footer .footer-inner{
  max-width:var(--container);
  margin:0 auto;
  text-align:center;
  font-size:14px;
  line-height:1.6;
  color:#fff;
}
.site-footer .footer-inner small{
  display:block;
  margin-top:6px;
  color:rgba(255,255,255,.75);
}
.apply-page .site-footer{
  margin-top:50px;
}

/* Responsive */
@media (max-width:980px){
  .application-grid{
    grid-template-columns:1fr;
  }
  .projection-panel{
    position:static;
  }
}
@media (max-width:860px){
  .hero{
    grid-template-columns:minmax(0, 1fr) minmax(220px, .8fr);
    gap:14px;
  }
  .hero-copy{padding-right:12px;}
}

@media (max-width:768px){
  .hero{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .hero-brand{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:6px 0;
    border-bottom:1px solid rgba(17,17,17,.12);
    letter-spacing:.35em;
    order:0;
  }
  .hero-copy{
    order:1;
    padding:16px 0 0;
  }
  .hero-media{
    order:2;
    display:block;
    min-height:220px;
    height:220px;
    width:100%;
    margin:24px 0 0;
    -webkit-clip-path:none;
            clip-path:none;
    background-size:cover;
    background-position:70% center;
    background-repeat:no-repeat;
    box-shadow:0 18px 26px rgba(0,0,0,.18);
    transform:none;
    border:none;
  }
}
@media (max-width:720px){
  .row{grid-template-columns:1fr; gap:16px;}
  .container{padding:0 16px 36px;}
  .wealth-spotlight{
    grid-template-columns:1fr;
    gap:0;
  }
  .spotlight-media{
    min-height:220px;
    aspect-ratio:3 / 2;
    max-height:none;
  }
  .spotlight-content{
    padding:28px 20px;
  }
  .spotlight-highlights{
    grid-template-columns:1fr;
  }
}
@media (max-width:600px){
  .site-header{padding:4px 0;}
  .site-header img{width:110px;}
  .site-header .header-inner{padding:10px 20px;}
  .container{padding:0 14px 32px;}
  .hero{
    grid-template-columns:minmax(0, 1fr) minmax(110px, .55fr);
    gap:10px;
    align-items:flex-start;
  }
  .hero-brand{
    font-size:12px;
    letter-spacing:.28em;
  }
  .hero-copy{padding:12px 0 0;}
  .apply-page h1{
    font-size:clamp(16px, 4.5vw, 20px);
    margin:0 0 14px;
  }
  .lead{
    font-size:16px;
    margin-bottom:16px;
  }
  .cta{
    width:100%;
    text-align:center;
    /*! padding:13px 0; */
    font-size:15.5px;
  }
  .fineprint{
    font-size:13px;
    margin-top:14px;
  }
  .hero-media{
    min-height:190px;
    height:190px;
    background-position:80% center;
  }
  .card{
    padding:18px 16px;
  }
  .row{margin-top:20px;}
  .hero-highlights{
    grid-template-columns:1fr;
  }
  .spotlight-media{
    min-height:200px;
    aspect-ratio:3 / 2;
  }
  .spotlight-content{
    padding:22px 16px;
  }
  .application-form,
  .projection-panel{
    padding:22px 18px;
  }
  .application-form .float-label,
  .application-form label{
    width:100%;
    margin-bottom:10px;
  }
  .float-label input[type="date"]{
    font-size:15px;
  }
  .projection-panel.desktop-only{
    display:none !important;
  }
  .mobile-only{
    display:block;
  }
}

/* ===================== Header polish ===================== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.85);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
          backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(17,17,17,.08);
  padding:calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  transition:padding .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header .header-inner{
  justify-content:center;
  min-height:44px;
  padding:0 16px;
}
.site-header img{
  width:132px;
  height:auto;
}
body.header-scrolled .site-header{
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.08), 0 1px 0 rgba(0,0,0,.05);
  padding:calc(6px + env(safe-area-inset-top, 0px)) 0 6px;
}
@media (max-width:600px){
  .site-header img{width:118px;}
}

/* ===================== Stage indicator ===================== */
.stage-indicator{
  --dot:30px;
  --stage-progress:0%;
  position:relative;
  margin:10px 0 22px;
  padding:6px 6px 0;
}
.stage-indicator .stage-line{
  position:absolute;
  left:calc(var(--dot) / 2 + 2px);
  right:calc(var(--dot) / 2 + 2px);
  top:calc(var(--dot) / 2);
  height:3px;
  background:#e5e5e5;
  border-radius:999px;
  overflow:hidden;
}
.stage-indicator .stage-line::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--stage-progress, 0%);
  background:linear-gradient(90deg, var(--hsbc-red), #f43c12);
  transition:width .28s ease;
}
.stage-steps{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  padding:0;
  margin:0;
  position:relative;
  z-index:1;
}
.stage-step{
  display:grid;
  justify-items:center;
  align-content:start;
  gap:6px;
  text-align:center;
  cursor:default;
  user-select:none;
  pointer-events:none;
}
.stage-step:focus-visible .stage-dot{
  outline:3px solid rgba(219,0,17,.35);
  outline-offset:2px;
}
.stage-dot{
  width:var(--dot);
  height:var(--dot);
  border-radius:50%;
  border:2px solid #d3d3d3;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:12px;
  color:var(--muted);
  position:relative;
  transition:background .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}
.stage-step.is-active .stage-dot,
.stage-step.is-complete .stage-dot{
  background:var(--hsbc-red);
  border-color:var(--hsbc-red);
  color:#fff;
}
.stage-step.is-active .stage-dot{
  transform:scale(1.06);
}
.stage-step.is-complete .stage-dot{
  color:transparent;
}
.stage-step.is-complete .stage-dot::after{
  content:"\2713";
  color:#fff;
  font-weight:800;
  font-size:12px;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  line-height:1;
}
.stage-label{
  font-size:12px;
  font-weight:600;
  color:var(--ink-2);
}
.stage-step.is-active .stage-label{
  color:var(--ink);
}
@media (min-width:980px){
  .stage-indicator{
    --dot:34px;
    margin-bottom:26px;
  }
  .stage-label{
    font-size:13px;
  }
}
@media (max-width:600px){
  .stage-indicator{
    padding:0;
    margin:6px 0 16px;
    background:transparent;
  }
  .stage-indicator .stage-line{
    display:none;
  }
  .stage-steps{
    display:block;
    position:relative;
    padding-left:calc(var(--dot) + 14px);
  }
  .stage-steps::before{
    content:"";
    position:absolute;
    left:calc(var(--dot) / 2);
    top:6px;
    bottom:6px;
    width:3px;
    background:#e0e0e0;
    border-radius:999px;
  }
  .stage-steps::after{
    content:"";
    position:absolute;
    left:calc(var(--dot) / 2);
    top:6px;
    width:3px;
    height:var(--stage-progress);
    background:var(--hsbc-red);
    border-radius:999px;
    transition:height .28s ease;
  }
  .stage-step{
    grid-auto-flow:column;
    grid-auto-columns:max-content;
    justify-content:start;
    align-items:center;
    gap:10px;
    margin:0 0 10px;
    text-align:left;
  }
  .stage-label{
    font-size:14px;
  }
}

/* ===================== Date of Birth (compact split) ===================== */
.float-label.dob-split{
  margin-top:2px;
}
.float-label.dob-split > span{
  position:static;
  display:block;
  margin-bottom:6px;
  font-size:13px;
  color:var(--ink-3);
}
.dob-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1.3fr;
  gap:8px;
  align-items:start;
}
.dob-input{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.dob-input .field-error{
  text-align:center;
}
.dob-grid input{
  text-align:center;
  letter-spacing:.06em;
  padding-top:10px;
  padding-bottom:10px;
}
.dob-sep{
  color:var(--muted);
  align-self:center;
}
@media (max-width:600px){
  .dob-grid{
    grid-template-columns:repeat(3, 1fr);
    gap:8px;
  }
  .dob-sep{
    display:none;
  }
}

input[type="date"]{
  appearance:none;
  -webkit-appearance:none;
  background-color:#fff;
}

.field-error{
  margin:4px 0 0;
  font-size:12px;
  color:var(--hsbc-red);
}
.float-label.has-error input,
.float-label.has-error textarea,
.float-label.has-error select,
.dob-input.has-error input{
  border-color:var(--hsbc-red);
}
.float-label.has-error span{
  color:var(--hsbc-red);
}

@media (prefers-reduced-motion: reduce){
  .stage-indicator .stage-line::after,
  .stage-steps::after{
    transition:none;
  }
}

/* ===================== Confirmation ===================== */
.confirmation-page{
  --bg:#f3f3f3;
}
.confirmation-container{
  max-width:760px;
  margin:0 auto;
  padding:40px 16px 80px;
}
.confirmation-panel{
  background:var(--card);
  border:1px solid rgba(17,17,17,.08);
  box-shadow:var(--shadow);
  padding:38px clamp(20px, 6vw, 48px);
  text-align:center;
}
.confirmation-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  background:rgba(219,0,17,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
}
.confirmation-icon svg{
  width:44px;
  height:44px;
  stroke:var(--hsbc-red);
  stroke-width:2.5;
  fill:none;
}
.confirmation-icon circle{
  stroke:rgba(219,0,17,.35);
}
.confirmation-icon path{
  stroke:var(--hsbc-red);
  stroke-linecap:round;
  stroke-linejoin:round;
}
.confirmation-eyebrow{
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:12px;
  color:var(--muted);
  margin:0 0 8px;
}
.confirmation-panel h1{
  font-size:clamp(26px, 4vw, 40px);
  margin:0 0 14px;
}
.confirmation-lede{
  font-size:17px;
  color:var(--ink-2);
  margin:0 auto 18px;
  max-width:540px;
}
.confirmation-reference{
  font-weight:600;
  color:var(--ink);
  border:1px dashed rgba(17,17,17,.2);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:6px;
  margin-bottom:22px;
}
.status-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:16px;
  margin:0 0 26px;
  text-align:left;
}
.status-card{
  border:1px solid rgba(17,17,17,.08);
  background:rgba(248,248,248,.8);
  padding:18px;
}
.status-card h3{
  margin:0 0 10px;
  font-size:16px;
}
.status-card p{
  margin:0;
  color:var(--ink-2);
  font-size:14.5px;
  line-height:1.45;
}
.support-panel{
  border-top:1px solid rgba(17,17,17,.08);
  margin:8px 0 26px;
  padding-top:16px;
  font-size:14.5px;
  color:var(--ink-2);
}
.support-panel a{
  color:var(--hsbc-red);
  text-decoration:none;
  font-weight:600;
}
.support-panel a:hover{
  text-decoration:underline;
}
.confirmation-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}
.confirmation-actions form{
  margin:0;
}
.cta.secondary{
  background:transparent;
  color:var(--ink-2);
  border:1px solid rgba(17,17,17,.4);
}
.cta.secondary:hover{
  filter:none;
  background:rgba(17,17,17,.05);
}
.confirmation-panel .cta{
  min-width:220px;
  text-align:center;
}
.confirmation-visual{
  margin:24px auto 18px;
  max-width:520px;
}
.confirmation-visual img{
  width:100%;
  display:block;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
}
@media (max-width:600px){
  .confirmation-panel{
    padding:28px 18px 34px;
  }
  .confirmation-reference{
    width:100%;
  }
}
