/* Shared ten-step biodata form. Layout rules are limited to the wizard. */
body.bdh-theme .bdh-islamic-wizard{--iw-purple:#552b79;--iw-pink:#e32278;--iw-border:#e2e4ec;--iw-ink:#2f394a;max-width:1160px;margin:24px auto 55px;color:var(--iw-ink);font-family:"Noto Sans Bengali",sans-serif}
body.bdh-theme .bdh-islamic-wizard,body.bdh-theme .bdh-islamic-wizard *{box-sizing:border-box}
body.bdh-theme .bdh-islamic-wizard [hidden]{display:none!important}
body.bdh-theme .bdh-i-progress{border:1px solid #e8dced;background:linear-gradient(110deg,#fff,#fcf8fe);padding:18px 23px 14px;border-radius:16px;margin-bottom:16px}
body.bdh-theme .bdh-i-progress-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
body.bdh-theme .bdh-i-progress-top>div{display:flex;align-items:center;gap:12px;color:#5d426d;font-size:14px;font-weight:700}
body.bdh-theme .bdh-i-progress-top strong{font-size:22px;font-weight:900;line-height:1;color:var(--iw-purple);font-variant-numeric:tabular-nums}
body.bdh-theme .bdh-i-save-state{font-size:12px;color:#756d7a;font-weight:500;text-align:right}
body.bdh-theme .bdh-i-progress-track{height:10px;background:#eadff1;border-radius:20px;overflow:hidden}
body.bdh-theme .bdh-i-progress-track>span{height:100%;display:block;background:linear-gradient(90deg,#824caa,#e32278);border-radius:inherit;transition:width .25s ease}
body.bdh-theme .bdh-i-progress>small{display:block;font-size:11px;color:#877990;margin-top:6px}
body.bdh-theme .bdh-i-layout{border:1px solid #e5e5eb;border-radius:19px;overflow:hidden;background:#fff;display:grid;grid-template-columns:minmax(210px,285px) minmax(0,1fr);min-height:650px}
body.bdh-theme .bdh-i-sidebar{border-right:1px solid #eaeaf0;background:#fdfcfe;padding:26px 10px 28px 16px}
body.bdh-theme .bdh-i-steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
body.bdh-theme .bdh-i-steps>li{margin:0;padding:0;position:relative}
body.bdh-theme .bdh-i-steps>li:not(:last-child):after{content:"";position:absolute;right:25px;top:38px;bottom:-6px;width:1px;background:#f0d9e6}
body.bdh-theme .bdh-i-step-link{display:flex;gap:15px;align-items:center;justify-content:flex-end;min-height:53px;padding:7px 12px;width:100%;border:0;background:none;font-family:inherit;font-size:14px;color:#9aa1ae;cursor:pointer;text-align:right;font-weight:600}
body.bdh-theme .bdh-i-step-link:hover{color:var(--iw-purple)}
body.bdh-theme .bdh-i-step-name{min-width:0}
body.bdh-theme .bdh-i-step-dot{position:relative;z-index:1;display:grid;place-items:center;flex:none;border:1px solid #dfe3eb;width:29px;height:29px;border-radius:50%;background:white;color:#8992a2;font-family:Inter,sans-serif;font-size:13px;font-weight:600}
body.bdh-theme .bdh-i-step-link.is-active{color:var(--iw-pink);font-weight:900}
body.bdh-theme .bdh-i-step-link.is-active .bdh-i-step-dot{color:#fff;background:var(--iw-pink);border-color:var(--iw-pink);box-shadow:0 4px 11px #e3227838}
body.bdh-theme .bdh-i-step-link.is-done:not(.is-active){color:var(--iw-purple)}
body.bdh-theme .bdh-i-step-link.is-done:not(.is-active) .bdh-i-step-dot{color:var(--iw-purple);border-color:#a780c4}
body.bdh-theme .bdh-islamic-wizard .bdh-i-form{max-width:none!important;min-width:0;width:100%;margin:0!important;background:white}
body.bdh-theme .bdh-i-panel{width:100%;min-width:0;margin:0}
body.bdh-theme .bdh-i-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 34px 16px;border-bottom:1px solid #eef0f5;background:#fff}
body.bdh-theme .bdh-i-panel-title h2{font-size:23px;color:var(--iw-purple);font-weight:900;margin:0;line-height:1.5}
body.bdh-theme .bdh-i-panel-title small{font-family:Inter,sans-serif;font-size:12px;color:#91879b;white-space:nowrap}
body.bdh-theme .bdh-i-panel-body{padding:28px 34px 24px;max-width:750px}
body.bdh-theme .bdh-i-field{margin-bottom:26px;min-width:0}
body.bdh-theme .bdh-i-form .bdh-i-field>label:not(.bdh-i-upload-box),body.bdh-theme .bdh-i-form .bdh-i-age>label{display:block!important;width:100%;font-size:14px;font-weight:800;color:#364152;line-height:1.65;margin-bottom:9px}
body.bdh-theme .bdh-i-star{color:#e53b4b;font-weight:900}
body.bdh-theme .bdh-i-form .bdh-i-control:not([type="hidden"]){display:block;width:100%!important;min-width:0;min-height:49px!important;height:auto!important;padding:12px 15px!important;background:#fcfdff!important;color:#344054;border:1px solid #dfe3eb!important;border-radius:13px!important;font-family:inherit;font-size:14px!important;line-height:1.5!important;box-shadow:0 2px 2px #17243b0d!important;outline:none}
body.bdh-theme .bdh-i-form select.bdh-i-control{height:49px!important;appearance:auto;cursor:pointer;padding-right:12px!important}
body.bdh-theme .bdh-i-form textarea.bdh-i-control{height:auto!important;min-height:136px!important;resize:vertical;line-height:1.75!important}
body.bdh-theme .bdh-i-form .bdh-i-control:not([type="hidden"]):focus{border-color:#9460b2!important;box-shadow:0 0 0 3px #794aa219!important}
body.bdh-theme .bdh-i-form .bdh-i-control.is-invalid:not([type="hidden"]){border:2px solid #f5313e!important;background:#fff!important}
body.bdh-theme .bdh-i-form .bdh-i-control:disabled{opacity:.65;background:#f4f5f8!important}
body.bdh-theme .bdh-i-form .bdh-i-control::placeholder{color:#a4acb7}
body.bdh-theme .bdh-i-note{display:flex;align-items:flex-start;gap:11px;margin:10px 0 0!important;background:#f7f4fa;border:1px solid #d9c8e4;border-radius:12px;padding:11px 13px;color:#4c5367;line-height:1.65;font-size:12px}
body.bdh-theme .bdh-i-note i{flex:none;color:var(--iw-purple);font-size:15px;margin-top:1px}
body.bdh-theme .bdh-i-note>span{flex:1;min-width:0}
body.bdh-theme .bdh-i-form .bdh-i-check{display:flex!important;flex-direction:row;align-items:center;gap:10px!important;margin:5px 0 24px;font-weight:600;font-size:13px;cursor:pointer;color:#4d5465}
body.bdh-theme .bdh-i-form .bdh-i-check input{width:18px!important;height:18px!important;min-height:18px!important;accent-color:var(--iw-purple);flex:none}
body.bdh-theme .bdh-i-validation{padding:12px 15px;margin:10px 0 14px;border-radius:12px;color:#a62239;background:#fff4f6;border:1px solid #f9b5bf;font-size:13px}
body.bdh-theme .bdh-i-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:88px;margin-top:34px;padding-top:24px;border-top:1px solid #eceef3}
body.bdh-theme .bdh-i-action-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
body.bdh-theme .bdh-i-actions button{min-height:49px;border-radius:12px;font-size:14px;line-height:1.5;font-family:inherit;cursor:pointer;font-weight:800;padding:11px 18px;white-space:normal}
body.bdh-theme .bdh-i-back{border:none;background:#f2f3f6;color:#606b7b}
body.bdh-theme .bdh-i-back:disabled{opacity:.65;cursor:not-allowed}
body.bdh-theme .bdh-i-save{background:#fff;border:1px solid #cdb7db;color:var(--iw-purple)}
body.bdh-theme .bdh-i-next{border:none;background:var(--iw-purple);color:#fff;box-shadow:0 2px 4px #35154716}
body.bdh-theme .bdh-i-next i{padding-left:7px}
body.bdh-theme .bdh-i-next:hover{background:#49216b}
body.bdh-theme .bdh-i-upload-box{width:250px;max-width:100%;min-height:149px;border:2px dashed #cfd4e1;border-radius:13px;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:6px!important;background:#fafbfe;color:#586578;cursor:pointer;text-align:center;padding:17px}
body.bdh-theme .bdh-i-upload-box i{font-size:26px;color:#68748a}
body.bdh-theme .bdh-i-upload-box b{font-size:14px}
body.bdh-theme .bdh-i-upload-box span{font-size:11px;color:#788391}
body.bdh-theme .bdh-i-form input.bdh-i-file{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
body.bdh-theme .bdh-i-photo-preview{width:116px;height:116px;object-fit:cover;border-radius:13px;margin:10px 0 0;border:1px solid #e5e5eb}
body.bdh-theme .bdh-i-age-values{display:flex;align-items:center;gap:15px;justify-content:center;margin-bottom:19px;font-size:13px}
body.bdh-theme .bdh-i-age-values>span{border:1px solid #e0e4ee;border-radius:10px;padding:7px 13px;box-shadow:0 2px 4px #1628460c;background:#fff;font-size:13px}
body.bdh-theme .bdh-i-age-track{height:24px;margin:2px 14px 8px;position:relative}
body.bdh-theme .bdh-i-age-track:before,body.bdh-theme .bdh-i-age-fill{content:"";height:4px;border-radius:6px;position:absolute;top:10px;left:0;right:0;background:#e5dceb}
body.bdh-theme .bdh-i-age-fill{right:auto;width:100%;background:var(--iw-purple)}
body.bdh-theme .bdh-i-form .bdh-i-age-track input[type=range]{-webkit-appearance:none!important;appearance:none!important;position:absolute;top:0;left:0;margin:0;min-height:24px!important;height:24px!important;width:100%!important;background:transparent!important;border:0!important;padding:0!important;pointer-events:none;box-shadow:none!important}
body.bdh-theme .bdh-i-age-track input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#fff;border:2px solid var(--iw-purple);width:20px;height:20px;border-radius:100%;cursor:grab;pointer-events:auto}
body.bdh-theme .bdh-i-age-track input[type=range]::-moz-range-thumb{background:#fff;border:2px solid var(--iw-purple);width:17px;height:17px;border-radius:100%;cursor:grab;pointer-events:auto}
body.bdh-theme .bdh-i-footer-help{margin:13px 0 0;text-align:center;font-size:12px;color:#746a80}
/* Checkable options inherit the same rounded dropdown design as the screenshots. */
body.bdh-theme .bdh-i-multiselect{width:100%;border:1px solid #dfe3eb;border-radius:13px;box-shadow:0 2px 2px #17243b0d;background:#fcfdff;color:#344054;font-family:inherit;font-size:14px;overflow:hidden}
body.bdh-theme .bdh-i-multiselect>summary{list-style:none;display:flex;gap:10px;align-items:center;justify-content:space-between;min-height:49px;padding:11px 15px;cursor:pointer;line-height:1.5}
body.bdh-theme .bdh-i-multiselect>summary::-webkit-details-marker{display:none}
body.bdh-theme .bdh-i-multiselect>summary span{flex:1;min-width:0}
body.bdh-theme .bdh-i-multiselect>summary i{flex:none;color:#637083;font-size:13px}
body.bdh-theme .bdh-i-multiselect[open]>summary{border-bottom:1px solid #e6e1eb}
body.bdh-theme .bdh-i-multiselect[open]>summary i{transform:rotate(180deg)}
body.bdh-theme .bdh-i-multiselect>summary:focus-visible{outline:2px solid #9460b2;outline-offset:-3px;border-radius:13px}
body.bdh-theme .bdh-i-multi-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:2px 12px;padding:11px 14px 13px}
body.bdh-theme .bdh-i-multi-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;cursor:pointer;margin:0!important;padding:8px 5px;font-size:13px!important;font-weight:600!important;color:#48536a!important}
body.bdh-theme .bdh-i-multi-choice input{width:16px!important;height:16px!important;min-height:16px!important;flex:none;accent-color:#552b79}
body.bdh-theme .bdh-i-multi-choice span{flex:1}
body.bdh-theme .bdh-i-field:has(> .bdh-i-control.is-invalid[type=hidden]) .bdh-i-multiselect{border:2px solid #f5313e}
@media(max-width:900px){
  body.bdh-theme .bdh-i-layout{grid-template-columns:215px minmax(0,1fr)}
  body.bdh-theme .bdh-i-sidebar{padding:17px 8px 20px 8px}
  body.bdh-theme .bdh-i-panel-title{padding:16px 23px}
  body.bdh-theme .bdh-i-panel-body{padding:23px}
  body.bdh-theme .bdh-i-step-link{font-size:12px;gap:10px;padding-right:5px}
  body.bdh-theme .bdh-i-steps>li:not(:last-child):after{right:19px}
}
@media(max-width:650px){
  body.bdh-theme .bdh-islamic-wizard{margin-top:17px}
  body.bdh-theme .bdh-i-progress{padding:15px}
  body.bdh-theme .bdh-i-progress-top{flex-direction:column;align-items:flex-start;gap:6px}
  body.bdh-theme .bdh-i-save-state{text-align:left}
  body.bdh-theme .bdh-i-layout{display:block;border-radius:15px;min-height:0}
  body.bdh-theme .bdh-i-sidebar{border-right:0;border-bottom:1px solid #eaeaf0;padding:8px 11px;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.bdh-theme .bdh-i-steps{display:flex;flex-direction:row;gap:5px;width:max-content;min-width:100%}
  body.bdh-theme .bdh-i-steps>li:not(:last-child):after{display:none}
  body.bdh-theme .bdh-i-step-link{display:flex;flex-direction:row-reverse;justify-content:center;gap:7px;padding:9px 10px;width:auto;white-space:nowrap;min-height:44px;font-size:12px;border-radius:9px}
  body.bdh-theme .bdh-i-step-dot{width:24px;height:24px;font-size:11px}
  body.bdh-theme .bdh-i-step-link.is-active{background:#fff0f7}
  body.bdh-theme .bdh-i-panel-title{padding:14px 16px}
  body.bdh-theme .bdh-i-panel-title h2{font-size:20px}
  body.bdh-theme .bdh-i-panel-body{padding:20px 16px}
  body.bdh-theme .bdh-i-field{margin-bottom:22px}
  body.bdh-theme .bdh-i-actions{align-items:stretch;flex-direction:column-reverse;gap:12px}
  body.bdh-theme .bdh-i-action-right{justify-content:stretch}
  body.bdh-theme .bdh-i-actions button{flex:1;padding:12px 11px;font-size:12px}
  body.bdh-theme .bdh-i-back{align-self:flex-start;min-width:96px}
  body.bdh-theme .bdh-i-age-values{gap:8px}
  body.bdh-theme .bdh-i-upload-box{width:100%}
}
@media(max-width:380px){body.bdh-theme .bdh-i-action-right{flex-direction:column}body.bdh-theme .bdh-i-actions button{width:100%}}

/* v24: only the biodata selfie uploader. Global form-label CSS and optional
   sitewide Bengali font overrides must not collapse these three lines. */
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-photo-field > label.bdh-i-upload-box{
  display:flex!important;
  flex-flow:column nowrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:9px!important;
  width:250px;
  max-width:100%;
  min-height:156px;
  height:auto!important;
  padding:18px 16px!important;
  line-height:1.6!important;
  text-align:center;
  white-space:normal!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-upload-box > i,
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-upload-box > b,
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-upload-box > span{
  display:block!important;
  position:static!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  line-height:1.6!important;
  white-space:normal!important;
  overflow-wrap:break-word;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-upload-box > i{
  font-size:26px!important;
  line-height:1!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-upload-box > b{font-size:15px!important;font-weight:800!important}
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-upload-box > span{font-size:12px!important}
@media(max-width:650px){
  body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-photo-field > label.bdh-i-upload-box{width:100%}
}

/* v29: defensive Bengali text layout for the ten-step wizard.
   Very small helper copy could overprint when a sitewide custom Bengali font
   has taller glyph metrics. Keep text in normal document flow at every width. */
body.bdh-theme .bdh-islamic-wizard .bdh-i-note,
body.bdh-theme .bdh-islamic-wizard .bdh-i-validation,
body.bdh-theme .bdh-islamic-wizard .bdh-i-footer-help,
body.bdh-theme .bdh-islamic-wizard .bdh-i-save-state,
body.bdh-theme .bdh-islamic-wizard .bdh-i-progress > small{
  position:static!important;
  height:auto!important;
  max-height:none!important;
  min-width:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  text-overflow:clip!important;
  letter-spacing:normal!important;
  line-height:2!important;
  text-wrap:wrap!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-note{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:start!important;
  gap:10px!important;
  padding:13px 14px!important;
  margin:13px 0 0!important;
  font-size:14px!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-note > span{
  position:static!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  flex:none!important;
  font-size:inherit!important;
  font-weight:400!important;
  line-height:inherit!important;
  letter-spacing:normal!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-note > i{
  position:static!important;
  display:block!important;
  width:20px!important;
  line-height:1.6!important;
  margin:3px 0 0!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-validation{
  display:block;
  padding:14px 16px!important;
  margin:15px 0!important;
  font-size:14px!important;
  font-weight:600!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-footer-help{
  display:block!important;
  width:100%!important;
  margin:20px auto 0!important;
  padding:0 14px 18px!important;
  font-size:14px!important;
  font-weight:400!important;
  text-align:center!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-save-state,
body.bdh-theme .bdh-islamic-wizard .bdh-i-progress > small{
  font-size:13px!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-field.is-invalid > label:not(.bdh-i-upload-box){
  color:#c62543!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-field.is-invalid .bdh-i-upload-box{
  border-color:#e52f52!important;
  background:#fff5f7!important;
}
body.bdh-theme .bdh-islamic-wizard .bdh-i-form .bdh-i-control.is-invalid[type="hidden"] ~ .bdh-i-upload-box{
  border-color:#e52f52!important;
}
@media(max-width:650px){
  body.bdh-theme .bdh-islamic-wizard .bdh-i-panel-body{min-width:0!important}
  body.bdh-theme .bdh-islamic-wizard .bdh-i-note{font-size:14px!important;line-height:2.1!important}
  body.bdh-theme .bdh-islamic-wizard .bdh-i-footer-help{font-size:14px!important;line-height:2.1!important}
}
