.maf-intake-overlay{
  position:fixed;
  inset:0;
  z-index:1000000;
  background:rgba(2,12,23,.76);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:0;
}

.maf-intake-overlay.show{
  display:flex;
}

.maf-intake-sheet{
  width:100%;
  max-width:760px;
  height:min(94vh,900px);
  background:#0d2b45;
  color:#fff;
  border-radius:28px 28px 0 0;
  border:1px solid rgba(255,255,255,.14);
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.maf-intake-head{
  flex:0 0 auto;
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 18px 16px;
  background:#0d2b45;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.maf-intake-head-text{
  min-width:0;
  flex:1;
}

.maf-intake-head h2{
  margin:0;
  font-size:26px;
  line-height:1.15;
}

.maf-intake-meta{
  color:#9fb6c8;
  font-size:14px;
  margin-top:8px;
}

.maf-intake-close{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:30px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.maf-intake-form{
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
}

.maf-intake-scroll{
  min-height:0;
  flex:1;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:18px;
  overscroll-behavior:contain;
}

.maf-intake-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.maf-intake-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.maf-intake-field.full{
  grid-column:1 / -1;
}

.maf-intake-field label{
  font-size:14px;
  font-weight:700;
}

.maf-intake-field input,
.maf-intake-field textarea,
.maf-intake-field select{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:#153a59;
  color:#fff;
  padding:12px 13px;
  font-size:16px;
  outline:none;
}

.maf-intake-field textarea{
  min-height:100px;
  resize:vertical;
}

/* Person legal declaration */
.maf-intake-field .maf-person-consent{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:12px;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  line-height:1.55;
  cursor:pointer;
}

.maf-intake-field .maf-person-consent input[type="checkbox"]{
  width:22px;
  height:22px;
  min-width:22px;
  flex:0 0 22px;
  margin:2px 0 0;
  padding:0;
}

.maf-intake-field .maf-person-consent span{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  overflow-wrap:anywhere;
  word-break:normal;
}

.maf-intake-sheet[dir="rtl"] .maf-person-consent{
  direction:rtl;
  text-align:right;
}

.maf-intake-sheet[dir="ltr"] .maf-person-consent{
  direction:ltr;
  text-align:left;
}

.maf-intake-required{
  color:#ffcc70;
}

.maf-intake-actions{
  flex:0 0 auto;
  display:flex;
  gap:12px;
  justify-content:flex-end;
  padding:14px 18px calc(14px + env(safe-area-inset-bottom));
  background:#0d2b45;
  border-top:1px solid rgba(255,255,255,.10);
}

.maf-intake-btn{
  border:0;
  border-radius:14px;
  padding:13px 18px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.maf-intake-btn.secondary{
  background:#1d405e;
  color:#fff;
}

.maf-intake-btn.primary{
  background:linear-gradient(135deg,#1e88e5,#2dd4bf);
  color:#fff;
}

.maf-intake-security{
  margin-top:18px;
  padding:14px;
  border-radius:14px;
  background:rgba(255,193,7,.08);
  border:1px solid rgba(255,193,7,.2);
  color:#d8e6ef;
  font-size:14px;
  line-height:1.5;
}

.maf-intake-sheet[dir="rtl"]{
  text-align:right;
}

.maf-intake-sheet[dir="ltr"]{
  text-align:left;
}

@media (max-width:520px){
  .maf-intake-sheet{
    height:94vh;
  }

  .maf-intake-grid{
    grid-template-columns:1fr;
  }

  .maf-intake-field.full{
    grid-column:auto;
  }

  .maf-intake-head{
    padding-top:16px;
  }

  .maf-intake-head h2{
    font-size:23px;
  }

  .maf-intake-actions{
    justify-content:stretch;
  }

  .maf-intake-actions .maf-intake-btn{
    flex:1;
  }
}

/* L99 MOBILE INTAKE HEADER VISIBILITY */
@media (max-width:520px){
.maf-intake-sheet{height:min(94dvh,900px);max-height:94dvh;}
.maf-intake-head{position:sticky;top:0;z-index:20;flex:0 0 auto;}
}


/* Person verification custom file picker */
.maf-custom-file-picker{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:#153a59;
  padding:10px 12px;
}

.maf-custom-file-button{
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  padding:8px 14px;
  background:#f7f7f7;
  color:#1677d2;
  font:inherit;
  font-weight:600;
  cursor:pointer;
}

.maf-custom-file-name{
  flex:1 1 auto;
  min-width:0;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.maf-native-file-input{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.maf-intake-sheet[dir="rtl"] .maf-custom-file-picker{
  direction:rtl;
}

.maf-intake-sheet[dir="ltr"] .maf-custom-file-picker{
  direction:ltr;
}

