:root{
  --sol-yellow:#FECB00;
  --sol-black:#111;
  --sol-light:#f7f7f7;
}

.bs-abrir-conta{
  padding:80px 20px;
  background:#fff;
  font-family:Arial, sans-serif;
}

.bs-abrir-wrap{
  max-width:1100px;
  margin:auto;
}

.bs-abrir-title{
  font-size:30px;
  font-weight:800;
  color:#111;
  margin-bottom:10px;
  position:relative;
}

.bs-abrir-title::after{
  content:"";
  width:50px;
  height:3px;
  background:var(--sol-yellow);
  display:block;
  margin-top:10px;
}

.bs-abrir-sub{
  color:#555;
  margin-bottom:40px;
}

.bs-steps{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:50px;
}

.bs-step{
  flex:1;
  text-align:center;
  opacity:.45;
}

.bs-step.is-active{
  opacity:1;
}

.bs-step-number{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--sol-yellow);
  color:#111;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:auto;
  margin-bottom:10px;
}

.bs-step p{
  font-size:13px;
  color:#333;
}

.bs-card{
  background:#fff;
  border-radius:12px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.bs-form-step{
  display:none !important;
}

.bs-form-step.is-visible{
  display:block !important;
}

.bs-step-title{
  font-size:20px;
  margin-bottom:20px;
  color:#111;
}

.bs-label{
  display:block;
  margin-bottom:6px;
  font-size:14px;
  font-weight:600;
  color:#111;
}

.bs-input{
  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:6px;
  margin-bottom:15px;
  font-size:14px;
}

.bs-input:focus{
  outline:none;
  border-color:var(--sol-yellow);
}

.bs-input-error{
  border:1px solid #dc2626 !important;
  background:#fff5f5 !important;
}

.bs-error-text{
  color:#dc2626;
  font-size:13px;
  margin-top:6px;
  margin-bottom:12px;
  font-weight:600;
}

.bs-info{
  background:#fff8df;
  border-left:4px solid var(--sol-yellow);
  padding:12px 14px;
  font-size:14px;
  color:#333;
  margin-bottom:20px;
}

/* =====================================================
   STEP 3 — Dados pessoais (secções + campos com ícones)
===================================================== */
.bs-form-section{
  background:#fcfcfd;
  border:1.5px solid #eef0f3;
  border-radius:16px;
  padding:22px;
  margin-bottom:18px;
  transition:border-color .25s ease;
}

.bs-form-section:focus-within{
  border-color:#e3c200;
}

.bs-section-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.bs-section-icon{
  flex:none;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--sol-yellow);
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bs-section-icon svg{
  width:20px;
  height:20px;
}

.bs-section-head h4{
  font-size:15px;
  color:#111;
  margin:0;
}

.bs-section-head small{
  display:block;
  font-size:12px;
  color:#777;
  margin-top:2px;
}

.bs-field{
  display:block;
  margin-bottom:18px;
}

.bs-field:last-child{
  margin-bottom:0;
}

.bs-field-label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:800;
  color:#111;
}

.bs-field-control{
  position:relative;
  display:block;
}

.bs-field-control > svg{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:#9aa1ab;
  pointer-events:none;
}

.bs-field .bs-input{
  height:46px;
  padding:12px 14px 12px 42px;
  border:1.5px solid #e3e6ea;
  border-radius:10px;
  margin-bottom:0;
  background:#fff;
  color:#111;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.bs-field .bs-input:hover{
  border-color:#cfd4da;
}

.bs-field .bs-input:focus{
  border-color:var(--sol-yellow);
  box-shadow:0 0 0 3px rgba(254,203,0,.2);
}

.bs-field-prefix{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  display:flex;
  align-items:center;
  padding:0 12px;
  font-size:13px;
  font-weight:800;
  color:#667085;
  background:#f4f5f7;
  border-right:1.5px solid #e3e6ea;
  border-top-left-radius:10px;
  border-bottom-left-radius:10px;
}

.bs-field-control:has(.bs-field-prefix) .bs-input{
  padding-left:62px;
}

.bs-field .bs-input::placeholder{
  color:#a4abb5;
}

/* select */
.bs-field select{
  padding-right:38px;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px;
}

.bs-field-hint{
  display:block;
  font-size:12px;
  color:#8a919d;
  margin-top:6px;
  line-height:1.4;
}

.bs-fields-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 16px;
  margin-top:16px;
}

@media(max-width:640px){
  .bs-fields-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .bs-doc-grid{
    grid-template-columns:1fr;
  }
}

.bs-doc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.bs-upload{
  border:1.5px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
  background:#fff;
  transition:border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.bs-upload:hover{
  border-color:#cfd4da;
}

.bs-upload-top{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.bs-upload-fileicon{
  flex:none;
  width:36px;
  height:36px;
  border-radius:10px;
  background:#fff8df;
  color:#8a6d00;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bs-upload-fileicon svg{
  width:18px;
  height:18px;
}

.bs-upload-title{
  min-width:0;
  flex:1;
}

.bs-upload-title strong{
  display:block;
  font-size:13px;
  color:#111;
}

.bs-upload-help{
  display:block;
  font-size:12px;
  color:#8a919d;
  margin-top:3px;
  line-height:1.4;
}

.bs-upload-chip{
  flex:none;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
}

.bs-upload-chip[data-state="obrigatorio"]{
  background:#fff4bf;
  color:#8a6d00;
}

.bs-upload-chip[data-state="estrangeiro"]{
  background:#eef1ff;
  color:#3447a5;
}

.bs-upload-chip[data-state="opcional"]{
  background:#f1f2f4;
  color:#667085;
}

.bs-upload-zone{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1.5px dashed #d5d9e0;
  border-radius:12px;
  padding:22px 12px;
  background:#fafbfc;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease;
}

.bs-upload-zone:hover{
  border-color:#e3c200;
  background:#fffdf0;
}

.bs-upload-zone svg{
  width:26px;
  height:26px;
  color:#9aa1ab;
  transition:color .2s ease;
}

.bs-upload-zone:hover svg{
  color:#8a6d00;
}

.bs-upload-prompt{
  font-size:13px;
  font-weight:800;
  color:#111;
}

.bs-upload-zone input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.bs-upload.has-file{
  border-color:var(--sol-yellow);
  background:#fffbdd;
  box-shadow:0 10px 24px rgba(254,203,0,.14);
}

.bs-upload.has-file .bs-upload-zone{
  border-style:solid;
  border-color:var(--sol-yellow);
  background:#fffdf0;
}

.bs-upload.has-file .bs-upload-zone svg{
  color:#8a6d00;
}

.bs-upload-fileinfo{
  display:block;
  font-size:12px;
  color:#8a919d;
  margin-top:10px;
}

.bs-upload-fileinfo.has-file{
  color:#0d6e2b;
  font-weight:700;
}

.bs-upload-fileinfo.has-error{
  color:#b91c1c;
  font-weight:700;
}

.bs-upload-remove{
  margin-top:8px;
  border:0;
  background:transparent;
  color:#b91c1c;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  text-decoration:underline;
}

.bs-upload-remove:hover{
  color:#7f1d1d;
}

.bs-docs-counter{
  margin-top:0;
  padding-top:0;
  border-top:0;
  margin-bottom:16px;
}

.bs-deposito-section{
  margin-top:24px;
}

.bs-check{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1.5px solid #e5e7eb;
  border-radius:12px;
  padding:16px;
  background:#fff;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.bs-check:has(input:checked){
  border-color:var(--sol-yellow);
  background:#fffbdd;
  box-shadow:0 8px 20px rgba(254,203,0,.14);
}

.bs-check input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.bs-check .bs-criterio-check{
  flex:none;
  width:24px;
  height:24px;
  border-radius:8px;
  border:2px solid #d0d5dd;
  background:#fff;
  position:relative;
  box-shadow:none;
}

.bs-check:has(input:checked) .bs-criterio-check{
  background:var(--sol-yellow);
  border-color:var(--sol-yellow);
}

.bs-check:has(input:checked) .bs-criterio-check::after{
  content:"";
  position:absolute;
  left:7px;
  top:3px;
  width:6px;
  height:10px;
  border:solid #111;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

.bs-check-body{
  display:block;
}

.bs-check-body strong{
  display:block;
  font-size:13px;
  color:#111;
}

.bs-check-body small{
  display:block;
  font-size:12px;
  color:#8a919d;
  margin-top:3px;
  line-height:1.4;
}

/* =====================================================
   STEP 5 — Validação de segurança (código OTP)
===================================================== */
.bs-otp-options{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

.bs-otp-option{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-align:center;
  border:1.5px solid #e5e7eb;
  border-radius:14px;
  padding:18px 12px;
  background:#fff;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.bs-otp-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.bs-otp-option:hover{
  border-color:#e3c200;
}

.bs-otp-option:has(input:checked){
  border-color:var(--sol-yellow);
  background:#fffbdd;
  box-shadow:0 8px 20px rgba(254,203,0,.16);
}

.bs-otp-option.bs-otp-disabled{
  opacity:.55;
  cursor:not-allowed;
  background:#fafbfc;
}

.bs-otp-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#f3f4f6;
  color:#6b7280;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bs-otp-option:has(input:checked) .bs-otp-icon{
  background:var(--sol-yellow);
  color:#111;
}

.bs-otp-icon svg{
  width:20px;
  height:20px;
}

.bs-otp-body strong{
  display:block;
  font-size:13px;
  color:#111;
}

.bs-otp-body small{
  display:block;
  font-size:11px;
  color:#8a919d;
  margin-top:2px;
}

.bs-otp-check{
  position:absolute;
  top:10px;
  right:10px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  border:1.5px solid #d7dbe1;
  color:#111;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:scale(.6);
  transition:opacity .2s ease, transform .2s ease;
}

.bs-otp-option:has(input:checked) .bs-otp-check{
  opacity:1;
  transform:scale(1);
  background:var(--sol-yellow);
  border-color:var(--sol-yellow);
}

.bs-code-destino{
  color:#8a6d00;
}

.bs-otp-code{
  display:flex;
  justify-content:center;
  margin:6px 0 18px;
}

.bs-otp-input{
  width:240px;
  height:62px;
  text-align:center;
  font-size:28px;
  font-weight:800;
  letter-spacing:.45em;
  padding-left:.45em;
  font-family:'Courier New', monospace;
  border:1.5px solid #e3e6ea;
  border-radius:14px;
  color:#111;
  background:#fff;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.bs-otp-input:focus{
  border-color:var(--sol-yellow);
  box-shadow:0 0 0 3px rgba(254,203,0,.2);
}

.bs-otp-input::placeholder{
  color:#c6cbd3;
}

.bs-otp-actions{
  display:flex;
  justify-content:center;
  margin-bottom:6px;
}

.bs-otp-error{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:#fef2f2;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:12px 14px;
  margin-top:12px;
  color:#b91c1c;
  font-size:13px;
  line-height:1.5;
  animation:bs-otp-fade .25s ease;
}

@keyframes bs-otp-fade{
  from{ opacity:0; transform:translateY(-4px); }
  to{ opacity:1; transform:translateY(0); }
}

.bs-otp-error-icon{
  flex:none;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bs-otp-error-icon svg{
  width:20px;
  height:20px;
}

.bs-otp-error-msg{
  display:block;
}

.bs-code-note{
  text-align:center;
  font-size:13px;
  color:#555;
  min-height:18px;
}

.bs-code-note:not(:empty){
  background:#fff8df;
  border:1px solid #f3df9e;
  color:#6b5200;
  border-radius:10px;
  padding:10px 14px;
}

@media(max-width:640px){
  .bs-otp-options{
    grid-template-columns:1fr;
  }
}

/* =====================================================
   STEP 6 — Sucesso
===================================================== */
.bs-success{
  text-align:center;
  padding:34px 10px 20px;
}

.bs-success-chip{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:6px 14px;
  border-radius:999px;
  background:var(--sol-yellow);
  color:#111;
  margin-bottom:20px;
}

.bs-success-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  background:linear-gradient(135deg, #FECB00, #FFD84d);
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 20px;
  box-shadow:0 14px 30px rgba(254,203,0,.35);
}

.bs-success-icon svg{
  width:36px;
  height:36px;
}

.bs-success h3{
  color:#111;
  margin:0 0 12px;
  font-size:22px;
}

.bs-success-text{
  color:#555;
  max-width:520px;
  margin:0 auto;
  line-height:1.6;
}

.bs-success-details{
  max-width:430px;
  margin:26px auto 0;
  border:1.5px solid #eef0f3;
  border-radius:14px;
  overflow:hidden;
}

.bs-success-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  background:#fff;
}

.bs-success-row + .bs-success-row{
  border-top:1px solid #f0f2f6;
}

.bs-success-row dt{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#8a919d;
}

.bs-success-row dd{
  margin:0;
  font-size:14px;
  font-weight:800;
  color:#111;
  word-break:break-all;
}

.bs-success-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.bs-success-actions .bs-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.bs-actions{
  display:flex;
  justify-content:space-between;
  margin-top:25px;
}

.bs-btn{
  padding:12px 28px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  font-weight:700;
}

.bs-btn-primary{
  background:var(--sol-yellow);
  color:#111;
}

.bs-btn-secondary{
  background:#eee;
  color:#111;
}

.bs-progress{
  height:6px;
  background:#eee;
  border-radius:6px;
  margin-bottom:25px;
}

.bs-progress-bar{
  height:6px;
  width:25%;
  background:var(--sol-yellow);
  border-radius:6px;
  transition:.3s;
}

@media(max-width:768px){
  .bs-steps{
    flex-direction:column;
  }

  .bs-doc-grid{
    grid-template-columns:1fr;
  }

  .bs-actions{
    flex-direction:column;
    gap:12px;
  }

  .bs-btn{
    width:100%;
  }
}

.bs-upload-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
}

.bs-upload-overlay.is-open{
  display:flex;
}

.bs-upload-box{
  background:#fff;
  border-radius:18px;
  padding:35px;
  width:90%;
  max-width:420px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.bs-loader{
  width:54px;
  height:54px;
  border-radius:50%;
  border:5px solid #eee;
  border-top-color:#FECB00;
  margin:0 auto 18px;
  animation:bsSpin 1s linear infinite;
}

@keyframes bsSpin{
  to{transform:rotate(360deg);}
}

.bs-upload-box h3{
  margin:0 0 8px;
  color:#111;
}

.bs-upload-box p{
  margin:0;
  color:#666;
}

.bs-option-disabled{
  opacity:.45;
  cursor:not-allowed !important;
}

.bs-option-disabled input{
  cursor:not-allowed !important;
}

.bs-consent-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.bs-consent-card{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:16px;
  border:1px solid #ddd;
  border-radius:10px;
  padding:16px;
  background:#fff;
}

.bs-consent-card strong{
  display:block;
  color:#111;
  font-size:15px;
}

.bs-consent-card small{
  display:block;
  color:#666;
  margin-top:4px;
  line-height:1.4;
}

.bs-consent-card a{
  color:#111;
  font-weight:700;
  text-decoration:none;
  border-bottom:2px solid var(--sol-yellow);
  white-space:nowrap;
}

.bs-consent-card input{
  width:18px;
  height:18px;
}

.bs-check{
  margin-bottom:14px;
}

.bs-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

@media(max-width:768px){
  .bs-consent-card{
    grid-template-columns:1fr;
  }
}

.bs-consent-card em{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:#777;
  font-style:normal;
}

.bs-doc-btn{
  border:0;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:10px 18px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}

.bs-doc-btn:hover{
  background:#333;
}

.bs-consent-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  color:#111;
}

.bs-consent-check input{
  width:18px;
  height:18px;
}

.bs-consent-check input:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.bs-doc-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.bs-doc-modal.is-open{
  display:flex;
}

.bs-doc-modal-box{
  width:100%;
  max-width:980px;
  height:88vh;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.bs-doc-modal-head{
  padding:18px 22px;
  background:#111;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.bs-doc-modal-head h3{
  margin:0;
  font-size:18px;
}

.bs-doc-modal-head button{
  border:0;
  background:transparent;
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}

.bs-doc-modal-body{
  flex:1;
  min-height:0;
  background:#f4f4f4;
}

.bs-doc-modal-body iframe{
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}

.bs-doc-modal-footer{
  flex:0 0 auto;
  padding:16px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-top:1px solid #eee;
  background:#fff;
}

.bs-doc-modal-footer p{
  margin:0;
  color:#555;
  font-size:13px;
}

@media(max-width:768px){
  .bs-doc-modal-box{
    height:92vh;
  }

  .bs-doc-modal-footer{
    flex-direction:column;
    align-items:flex-start;
  }

  .bs-doc-modal-footer .bs-btn{
    width:100%;
  }
}/* === T16 — feedback de uploads === */
.bs-upload-fileinfo{
  display:block;  margin-top:8px;  font-size:12px;  color:#555;  line-height:1.5;
}
.bs-upload-fileinfo.has-file{
  color:#0d6e2b;  font-weight:600;
}
.bs-upload-remove{
  display:block;  margin-top:6px;  font-size:12px;  background:none;  border:none;  color:#a33;  text-decoration:underline;  cursor:pointer;
}
.bs-upload-remove:hover{ color:#6d1a1a; }

/* =====================================================
   STEP 1 — Condições iniciais (cards + checks banco)
===================================================== */
.bs-criterios{
  display:grid;
  gap:14px;
}

.bs-criterio{
  display:flex;
  align-items:center;
  gap:16px;
  border:1.5px solid #e5e7eb;
  border-radius:16px;
  padding:18px 20px;
  background:#fff;
  cursor:pointer;
  transition:border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.bs-criterio:hover{
  border-color:#e3c200;
  background:#fdfbe3;
  transform:translateY(-2px);
}

.bs-criterio input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.bs-criterio-check{
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:9px;
  border:2px solid #d1d5db;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bs-criterio-check::after{
  content:"";
  width:14px;
  height:8px;
  border-left:3px solid #111;
  border-bottom:3px solid #111;
  transform:rotate(-45deg) scale(0);
  transition:transform .2s ease;
  margin-top:-4px;
}

.bs-criterio.is-checked{
  border-color:var(--sol-yellow);
  background:#fffbdd;
  box-shadow:0 10px 24px rgba(254,203,0,.18);
}

.bs-criterio.is-checked .bs-criterio-check{
  background:var(--sol-yellow);
  border-color:var(--sol-yellow);
  box-shadow:0 6px 16px rgba(254,203,0,.45);
}

.bs-criterio.is-checked .bs-criterio-check::after{
  transform:rotate(-45deg) scale(1);
}

.bs-criterio-body{
  min-width:0;
}

.bs-criterio-body strong{
  display:block;
  font-size:15px;
  font-weight:800;
  color:#111;
}

.bs-criterio-body small{
  display:block;
  font-size:13px;
  color:#666;
  line-height:1.5;
  margin-top:2px;
}

.bs-criterio.is-checked .bs-criterio-body small{
  color:#555;
}

.bs-criterios-counter{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid #f0f2f6;
}

.bs-criterios-counter > span{
  font-size:13px;
  font-weight:800;
  color:#333;
}

.bs-criterios-progress{
  height:7px;
  background:#eeeef2;
  border-radius:999px;
  margin-top:10px;
  overflow:hidden;
}

.bs-criterios-bar{
  width:0;
  height:100%;
  background:linear-gradient(90deg, #FECB00, #FFD84d);
  border-radius:999px;
  transition:width .35s ease;
  box-shadow:0 2px 8px rgba(254,203,0,.5);
}

.bs-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  filter:grayscale(.35);
  transform:none;
}

/* =====================================================
   STEP 2 — Consentimentos (cards + chip + checks banco)
===================================================== */
.bs-consent-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:20px;
  border:1.5px solid #e5e7eb;
  border-radius:16px;
  padding:20px;
  background:#fff;
  transition:border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.bs-consent-card:hover{
  border-color:#e3c200;
}

.bs-consent-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.bs-consent-mid{
  display:flex;
  align-items:center;
}

.bs-consent-side{
  border-left:1px dashed #d9dde3;
  padding-left:20px;
}

.bs-consent-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.bs-consent-chip{
  align-self:flex-start;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:5px 12px;
  border-radius:999px;
  transition:background .25s ease, color .25s ease;
}

.bs-consent-chip[data-state="pendente"]{
  background:#f1f2f4;
  color:#667085;
}

.bs-consent-chip[data-state="visto"]{
  background:#fff4bf;
  color:#8a6d00;
}

.bs-consent-chip[data-state="confirmado"]{
  background:#e4f6e8;
  color:#0d6e2b;
}

.bs-consent-chip[data-state="obrigatorio"]{
  background:#fff4bf;
  color:#8a6d00;
}

.bs-consent-chip[data-state="informativo"]{
  background:#eef1ff;
  color:#3447a5;
}

/* Cartão informativo (Ficha Técnica Informativa): não é um consentimento,
   por isso não marca o cartão nem entra na contagem. */
.bs-consent-card--info{
  background:#fbfcff;
  border-style:dashed;
}

.bs-doc-link{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  text-decoration:underline;
  white-space:nowrap;
}

.bs-consent-badge{
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:5px 12px;
  border-radius:999px;
  background:#eef1ff;
  color:#3447a5;
}

.bs-kyc-accept{
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  padding:10px 18px;
  border-radius:999px;
  border:1.5px solid var(--sol-yellow);
  background:#fff;
  color:#111;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bs-kyc-accept:hover{
  background:#fff4bf;
}

.bs-kyc-accept.is-active{
  background:var(--sol-yellow);
  border-color:var(--sol-yellow);
  box-shadow:0 6px 16px rgba(254,203,0,.25);
}

.bs-consent-info strong{
  display:block;
  color:#111;
  font-size:15px;
}

.bs-consent-info small{
  display:block;
  color:#666;
  margin-top:4px;
  line-height:1.5;
}

.bs-consent-card.is-checked{
  border-color:var(--sol-yellow);
  background:#fffbdd;
  box-shadow:0 10px 24px rgba(254,203,0,.16);
}

.bs-consent-list .bs-criterio{
  border:0;
  padding:0;
  background:transparent;
  box-shadow:none;
  align-self:flex-start;
}

.bs-consent-list .bs-criterio:hover{
  background:transparent;
  transform:none;
}

.bs-consent-list .bs-criterio .bs-criterio-check{
  flex-basis:24px;
  width:24px;
  height:24px;
  border-radius:8px;
}

.bs-consent-list .bs-criterio input:disabled + .bs-criterio-check{
  background:#f4f4f5;
  border-color:#e0e0e3;
  box-shadow:none;
}

.bs-consent-criterio{
  cursor:pointer;
}

.bs-consent-criterio input:disabled ~ .bs-consent-check-label{
  opacity:.55;
}

.bs-consent-check-label{
  font-size:13px;
  font-weight:800;
  color:#111;
}

@media(max-width:768px){
  .bs-consent-card{
    grid-template-columns:1fr;
  }

  .bs-consent-side{
    border-left:0;
    border-top:1px dashed #d9dde3;
    padding-left:0;
    padding-top:14px;
  }
}

/* =====================================================
   MODAL DOCUMENTOS — contentor de scroll (gating)
===================================================== */
.bs-doc-scroll{
  height:100%;
  overflow:auto;
  background:#f4f4f4;
}

#docInlineText{
  padding:28px;
  font-size:14px;
  line-height:1.8;
  color:#333;
  background:#fff;
  min-height:100%;
}

#docFrame{
  display:block;
  width:100%;
  height:3400px;
  border:0;
  background:#fff;
}

/* =====================================================
   MODAL DOCUMENTOS — maximizar + scroll único
===================================================== */
.bs-doc-head-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.bs-doc-max{
  border:0;
  background:transparent;
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
  border-radius:6px;
  transition:background .2s ease;
}

.bs-doc-max:hover{
  background:rgba(255,255,255,.18);
}

.bs-doc-modal-box.is-maximized{
  width:100vw;
  height:100vh;
  max-width:none;
  border-radius:0;
}

.bs-doc-scroll{
  scrollbar-width:thin;
  scrollbar-color:#c9cdd4 #f4f4f4;
}

.bs-doc-scroll::-webkit-scrollbar{
  width:10px;
}

.bs-doc-scroll::-webkit-scrollbar-thumb{
  background:#c9cdd4;
  border-radius:999px;
}

/* =====================================================
   STEP 3 — validação NIF (Documento de identificação)
===================================================== */
.bs-field-control--nif{
  display:flex;
  align-items:center;
  gap:8px;
}

.bs-field-control--nif .bs-input{
  flex:1;
  min-width:0;
}

.bs-nif-btn{
  flex:none;
  height:34px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:var(--sol-yellow);
  color:#111;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}

.bs-nif-btn:hover:not(:disabled){
  filter:brightness(.97);
}

.bs-nif-btn:disabled{
  opacity:.6;
  cursor:default;
}

.bs-nif-btn[hidden]{
  display:none;
}
