
.bnt-cf-wrap{font-family:Sarabun,Arial,sans-serif;background:var(--bnt-cf-bg,#ffffff);padding:54px 24px;--bnt-cf-primary:#111569;--bnt-cf-accent:#185FA5;--bnt-cf-bg:#ffffff;--bnt-cf-card-bg:#ffffff}
.bnt-cf-card{max-width:1180px;margin:0 auto;background:var(--bnt-cf-card-bg,#ffffff);border-radius:26px;padding:44px 40px;box-shadow:none}
.bnt-cf-head{text-align:center;margin-bottom:38px}
.bnt-cf-kicker{margin:0 0 8px;color:var(--bnt-cf-accent);font-size:12px;letter-spacing:.14em;font-weight:800}
.bnt-cf-head h2{margin:0;color:var(--bnt-cf-primary);font-size:44px;line-height:1.1;font-weight:800}
.bnt-cf-head p{margin:10px 0 0;color:var(--bnt-cf-primary);font-size:22px;font-weight:700}
.bnt-cf-alert{padding:14px 18px;border-radius:14px;margin-bottom:20px;font-weight:700}
.bnt-cf-alert.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.bnt-cf-alert.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.bnt-cf-form{display:flex;flex-direction:column;gap:22px}
.bnt-cf-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.bnt-cf-form label{display:flex;flex-direction:column;gap:8px;color:#0d1f3c;font-weight:800}
.bnt-cf-form label span small{display:block;color:#0d1f3c;font-size:13px;font-weight:500;margin-top:4px}
.bnt-cf-form b{color:#ef4444}
.bnt-cf-form input,.bnt-cf-form select,.bnt-cf-form textarea{width:100%;min-height:48px;border:1.5px solid #aeb8c5;border-radius:16px;padding:10px 16px;font-family:inherit;font-size:16px;color:#0d1f3c;background:#fff;outline:none;transition:.2s}
.bnt-cf-form textarea{resize:vertical;min-height:140px}
.bnt-cf-form input:focus,.bnt-cf-form select:focus,.bnt-cf-form textarea:focus{border-color:var(--bnt-cf-accent);box-shadow:0 0 0 4px rgba(24,95,165,.12)}
.bnt-cf-upload{position:relative;border:1.5px dashed #0d1f3c;border-radius:14px;padding:36px 18px;text-align:center;background:#fbfdff;color:#0d1f3c}
.bnt-cf-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.bnt-cf-upload i{display:block;font-style:normal;font-size:36px;margin-bottom:6px}
.bnt-cf-upload strong{display:block;font-size:16px}
.bnt-cf-upload small{display:block;color:#64748b;margin-top:6px;font-weight:500}
.bnt-cf-consent{flex-direction:row!important;align-items:flex-start;gap:12px!important;font-weight:500!important}
.bnt-cf-consent input{width:22px!important;min-height:22px!important;height:22px!important;padding:0!important;margin-top:2px}
.bnt-cf-submit{margin-top:8px;background:var(--bnt-cf-primary);color:#fff;border:0;border-radius:16px;min-height:54px;font-family:inherit;font-size:18px;font-weight:800;cursor:pointer;transition:.2s}
.bnt-cf-submit:hover{background:var(--bnt-cf-accent);transform:translateY(-1px);box-shadow:0 12px 28px rgba(17,21,105,.18)}
@media(max-width:768px){.bnt-cf-wrap{padding:28px 14px}.bnt-cf-card{padding:28px 18px;border-radius:20px}.bnt-cf-head h2{font-size:32px}.bnt-cf-head p{font-size:18px}.bnt-cf-grid.two{grid-template-columns:1fr;gap:18px}}


/* V1.3 white background override */
.bnt-cf-wrap,
.bnt-cf-wrap *{
  box-sizing:border-box;
}
.bnt-cf-wrap{
  background:var(--bnt-cf-bg,#ffffff) !important;
}
.bnt-cf-card{
  background:var(--bnt-cf-card-bg,#ffffff) !important;
}

.bnt-cf-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}


/* V1.7 required field red notice */
.bnt-cf-required-notice{
  display:none;
  color:#dc2626;
  background:#fff1f2;
  border:1px solid #fecdd3;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  font-weight:700;
  line-height:1.55;
  margin-top:2px;
}
.bnt-cf-form input.bnt-cf-invalid,
.bnt-cf-form select.bnt-cf-invalid,
.bnt-cf-form textarea.bnt-cf-invalid{
  border-color:#dc2626 !important;
  box-shadow:0 0 0 4px rgba(220,38,38,.10) !important;
}


/* V1.8 custom select arrow */
.bnt-cf-select-wrap{
  position:relative;
  display:block;
  width:100%;
}
.bnt-cf-select-wrap select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:48px !important;
  background:#ffffff !important;
}
.bnt-cf-select-wrap:after{
  content:"";
  position:absolute;
  right:18px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid #64748b;
  border-bottom:2px solid #64748b;
  transform:translateY(-65%) rotate(45deg);
  pointer-events:none;
}
.bnt-cf-select-wrap:hover:after{
  border-color:var(--bnt-cf-accent,#185FA5);
}


/* V1.8 selected upload file list */
.bnt-cf-upload.has-files{
  border-color:var(--bnt-cf-accent,#185FA5);
  background:#f8fbff;
}
.bnt-cf-file-list{
  display:none;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:10px;
}
.bnt-cf-file-head{
  color:#0d1f3c;
  font-size:14px;
  font-weight:800;
  margin-bottom:2px;
}
.bnt-cf-file-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid #dbe5f1;
  border-radius:12px;
  background:#ffffff;
}
.bnt-cf-file-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.bnt-cf-file-icon{
  font-size:20px;
  line-height:1;
}
.bnt-cf-file-meta{
  display:grid;
  gap:2px;
  min-width:0;
}
.bnt-cf-file-meta strong{
  color:#0d1f3c;
  font-size:14px;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bnt-cf-file-meta small,
.bnt-cf-file-note{
  color:#64748b;
  font-size:12px;
  font-weight:500;
}
.bnt-cf-file-note{
  padding-left:2px;
}
@media(max-width:768px){
  .bnt-cf-file-item{
    padding:9px 10px;
  }
  .bnt-cf-file-meta strong{
    max-width:230px;
  }
}


/* V1.9 selected upload file list - force visible after file chosen */
.bnt-cf-file-list{
  display:none;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:10px;
  width:100%;
}
.bnt-cf-file-list[style*="grid"]{
  display:grid !important;
}
.bnt-cf-upload.has-files{
  border-color:var(--bnt-cf-accent,#185FA5) !important;
  background:#f8fbff !important;
}
.bnt-cf-file-head{
  color:#0d1f3c;
  font-size:14px;
  font-weight:800;
  margin-bottom:2px;
}
.bnt-cf-file-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid #dbe5f1;
  border-radius:12px;
  background:#ffffff;
}
.bnt-cf-file-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  width:100%;
}
.bnt-cf-file-icon{
  font-size:20px;
  line-height:1;
  flex:0 0 auto;
}
.bnt-cf-file-meta{
  display:grid;
  gap:2px;
  min-width:0;
}
.bnt-cf-file-meta strong{
  color:#0d1f3c;
  font-size:14px;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bnt-cf-file-meta small,
.bnt-cf-file-note{
  color:#64748b;
  font-size:12px;
  font-weight:500;
}
.bnt-cf-file-note{
  padding-left:2px;
}
@media(max-width:768px){
  .bnt-cf-file-meta strong{
    max-width:220px;
  }
}


/* V2.0 Upload preview cards */
.bnt-cf-upload-v20{
  position:relative;
  cursor:pointer;
}
.bnt-cf-upload-v20 .bnt-cf-file-input{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  cursor:pointer !important;
  z-index:3 !important;
}
.bnt-cf-choose-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  min-height:38px;
  padding:8px 18px;
  border-radius:999px;
  color:#ffffff;
  background:var(--bnt-cf-primary,#111569);
  font-size:14px;
  font-weight:800;
  pointer-events:none;
}
.bnt-cf-upload.has-files{
  border-color:var(--bnt-cf-accent,#185FA5) !important;
  background:#f8fbff !important;
}
.bnt-cf-file-preview-grid{
  display:none;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
  width:100%;
}
.bnt-cf-file-preview-grid[style*="grid"]{
  display:grid !important;
}
.bnt-cf-preview-title{
  color:#0d1f3c;
  font-size:14px;
  font-weight:800;
}
.bnt-cf-preview-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px;
}
.bnt-cf-preview-card{
  border:1px solid #dbe5f1;
  border-radius:14px;
  background:#ffffff;
  padding:10px;
  display:grid;
  gap:8px;
  min-width:0;
}
.bnt-cf-preview-thumb{
  width:100%;
  aspect-ratio:1.45/1;
  border-radius:10px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.bnt-cf-preview-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.bnt-cf-file-badge{
  min-width:54px;
  padding:8px 10px;
  border-radius:10px;
  background:#111569;
  color:#ffffff;
  font-size:13px;
  font-weight:900;
  text-align:center;
  letter-spacing:.05em;
}
.bnt-cf-preview-name{
  color:#0d1f3c;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  word-break:break-word;
}
.bnt-cf-preview-size,
.bnt-cf-preview-note{
  color:#64748b;
  font-size:12px;
  font-weight:500;
}
.bnt-cf-preview-note{
  margin-top:2px;
}
@media(max-width:768px){
  .bnt-cf-preview-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .bnt-cf-preview-card{
    padding:8px;
  }
}
@media(max-width:420px){
  .bnt-cf-preview-cards{
    grid-template-columns:1fr;
  }
}


/* V2.1 Upload preview inside upload box + remove buttons */
.bnt-cf-upload-v21{
  position:relative;
  cursor:pointer;
  display:grid;
  gap:16px;
  min-height:210px;
  align-items:center;
}
.bnt-cf-upload-v21 .bnt-cf-file-input{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  overflow:hidden !important;
}
.bnt-cf-upload-empty{
  display:grid;
  justify-items:center;
  align-content:center;
  gap:8px;
  min-height:135px;
  width:100%;
}
.bnt-cf-upload-v21.has-files .bnt-cf-upload-empty{
  min-height:auto;
  padding-top:4px;
}
.bnt-cf-upload-v21.has-files{
  align-items:start;
  border-color:var(--bnt-cf-accent,#185FA5) !important;
  background:#f8fbff !important;
}
.bnt-cf-upload-v21.is-dragging{
  border-color:var(--bnt-cf-accent,#185FA5) !important;
  background:#edf6ff !important;
}
.bnt-cf-choose-btn,
.bnt-cf-add-more-files{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 18px;
  border-radius:999px;
  color:#ffffff;
  background:var(--bnt-cf-primary,#111569);
  font-size:14px;
  font-weight:800;
  border:0;
  cursor:pointer;
}
.bnt-cf-add-more-files{
  justify-self:center;
  margin-top:2px;
}
.bnt-cf-file-preview-grid{
  display:none;
  grid-template-columns:1fr;
  gap:10px;
  width:100%;
  cursor:default;
}
.bnt-cf-file-preview-grid[style*="grid"]{
  display:grid !important;
}
.bnt-cf-preview-title{
  color:#0d1f3c;
  font-size:14px;
  font-weight:800;
  text-align:left;
}
.bnt-cf-preview-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
  gap:12px;
}
.bnt-cf-preview-card{
  position:relative;
  border:1px solid #dbe5f1;
  border-radius:14px;
  background:#ffffff;
  padding:10px;
  display:grid;
  gap:8px;
  min-width:0;
  cursor:default;
}
.bnt-cf-remove-file{
  position:absolute;
  top:7px;
  right:7px;
  z-index:5;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#dc2626;
  font-size:19px;
  line-height:1;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}
.bnt-cf-remove-file:hover{
  background:#dc2626;
  color:#ffffff;
  border-color:#dc2626;
}
.bnt-cf-preview-thumb{
  width:100%;
  aspect-ratio:1.45/1;
  border-radius:10px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.bnt-cf-preview-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.bnt-cf-file-badge{
  min-width:54px;
  padding:8px 10px;
  border-radius:10px;
  background:#111569;
  color:#ffffff;
  font-size:13px;
  font-weight:900;
  text-align:center;
  letter-spacing:.05em;
}
.bnt-cf-preview-name{
  color:#0d1f3c;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  word-break:break-word;
}
.bnt-cf-preview-size{
  color:#64748b;
  font-size:12px;
  font-weight:500;
}
@media(max-width:768px){
  .bnt-cf-upload-v21{
    min-height:190px;
  }
  .bnt-cf-preview-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .bnt-cf-preview-card{
    padding:8px;
  }
}
@media(max-width:420px){
  .bnt-cf-preview-cards{
    grid-template-columns:1fr;
  }
}


/* V2.2 Compact upload layout: hide instruction after selected files */
.bnt-cf-upload-v21{
  min-height:180px !important;
  padding:22px !important;
  align-items:center !important;
}
.bnt-cf-upload-v21.has-files{
  min-height:auto !important;
  padding:18px !important;
  display:grid !important;
  gap:12px !important;
}
.bnt-cf-upload-v21.has-files .bnt-cf-upload-empty{
  display:none !important;
}
.bnt-cf-upload-v21:not(.has-files) .bnt-cf-file-preview-grid{
  display:none !important;
}
.bnt-cf-file-preview-grid{
  width:100% !important;
  gap:10px !important;
}
.bnt-cf-preview-title{
  text-align:left !important;
  margin:0 0 2px !important;
  font-size:14px !important;
  font-weight:800 !important;
}
.bnt-cf-preview-cards{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(120px,150px)) !important;
  justify-content:start !important;
  align-items:start !important;
  gap:10px !important;
}
.bnt-cf-preview-card{
  width:100% !important;
  max-width:150px !important;
  padding:8px !important;
  gap:6px !important;
  border-radius:12px !important;
  text-align:left !important;
}
.bnt-cf-preview-thumb{
  aspect-ratio:1.35/1 !important;
  border-radius:9px !important;
}
.bnt-cf-file-badge{
  min-width:44px !important;
  padding:7px 9px !important;
  border-radius:9px !important;
  font-size:12px !important;
}
.bnt-cf-preview-name{
  font-size:12px !important;
  line-height:1.25 !important;
  -webkit-line-clamp:2 !important;
  text-align:left !important;
}
.bnt-cf-preview-size{
  font-size:11px !important;
}
.bnt-cf-remove-file{
  top:4px !important;
  right:4px !important;
  width:23px !important;
  height:23px !important;
  font-size:17px !important;
  background:#fff !important;
}
.bnt-cf-add-more-files{
  justify-self:start !important;
  min-height:34px !important;
  padding:7px 14px !important;
  font-size:13px !important;
  margin-top:2px !important;
}
@media(max-width:768px){
  .bnt-cf-upload-v21.has-files{
    padding:14px !important;
  }
  .bnt-cf-preview-cards{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .bnt-cf-preview-card{
    max-width:none !important;
  }
}
@media(max-width:420px){
  .bnt-cf-preview-cards{
    grid-template-columns:1fr !important;
  }
}
