.bltl-formWrap{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:22px;
  box-shadow:0 10px 15px -3px rgba(0,0,0,.05);
}

.bltl-form h3{
  margin:0 0 6px;
  font-size:20px;
  font-weight:900;
  color:#1e293b;
}

.bltl-hint{
  margin:0 0 14px;
  color:#475569;
  font-size:14px;
}

.bltl-hp{ position:absolute; left:-9999px; opacity:0; }

.bltl-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){ .bltl-grid{ grid-template-columns:1fr; } }

.bltl-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#1e293b;
}

.bltl-grid input[type="text"],
.bltl-grid input[type="email"],
.bltl-grid input[type="tel"],
.bltl-grid textarea,
.bltl-grid select{
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:12px;
  font-size:14px;
  text-transform:none;
  letter-spacing:normal;
  font-weight:600;
  color:#1e293b;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
  background:#fff;
}
.bltl-grid textarea{ resize:vertical; min-height:120px; }

.bltl-grid input:focus,
.bltl-grid textarea:focus,
.bltl-grid select:focus{
  border-color:rgba(15,111,179,.55);
  box-shadow:0 0 0 4px rgba(15,111,179,.10);
}

.bltl-span2{ grid-column:span 2; }
@media (max-width: 900px){ .bltl-span2{ grid-column:span 1; } }

.bltl-field{ display:flex; flex-direction:column; gap:8px; }
.bltl-labelRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.bltl-label{
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#1e293b;
}
.bltl-mini{
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#64748b;
}

.bltl-help{
  margin:0;
  font-size:13px;
  font-weight:700;
  color:#475569;
  text-transform:none;
  letter-spacing:0;
}

/* ===============================
   PILLS (radio / checkbox)
=============================== */
.bltl-choice{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.bltl-pill{
  position:relative;
  display:inline-flex;
  align-items:center;
  cursor:pointer;

  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:999px;

  padding:10px 12px;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  user-select:none;
}

.bltl-pill span{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:800;
  color:#475569;
  text-transform:none;
  letter-spacing:0;
}

.bltl-pill i{
  color:#0f6fb3;
  background:#f0f9ff;
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}

/* nascondi input ma resta accessibile */
.bltl-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Hover */
.bltl-pill:hover{
  transform:translateY(-1px);
  border-color:rgba(15,111,179,.45);
  box-shadow:0 10px 15px -10px rgba(15,111,179,.25);
}

/* Selected state (JS adds .is-active) */
.bltl-pill.is-active{
  border-color:rgba(15,111,179,.65);
  box-shadow:0 12px 20px -14px rgba(15,111,179,.45);
  background:linear-gradient(180deg, rgba(15,111,179,.07), rgba(27,179,138,.04));
}
.bltl-pill.is-active span{ color:#1e293b; }
.bltl-pill.is-active i{
  color:#fff;
  background:linear-gradient(135deg,#0f6fb3 0%, #094b7a 100%);
}

/* Subgrid inside extra sections */
.bltl-subgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){ .bltl-subgrid{ grid-template-columns:1fr; } }

/* Conditional callout */
.bltl-conditional{ display:none; }
.bltl-conditional.is-visible{ display:block; }

.bltl-callout{
  border:1px solid rgba(15,111,179,.18);
  background:rgba(240,249,255,.7);
  border-radius:14px;
  padding:14px;
}
.bltl-calloutTitle{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:#0f6fb3;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
}

/* Privacy */
.bltl-privacy{
  flex-direction:row !important;
  align-items:center;
  gap:10px;
  font-size:13px !important;
  font-weight:700 !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  color:#475569 !important;
}
.bltl-privacy a{
  color:#0f6fb3;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(15,111,179,.25);
}
.bltl-privacy a:hover{ border-bottom-color:rgba(15,111,179,.6); }

/* Footer / submit */
.bltl-footer{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.bltl-submit{
  border:0;
  border-radius:12px;
  padding:12px 18px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,#0f6fb3 0%, #094b7a 100%);
  box-shadow:0 8px 20px -10px rgba(15,111,179,.6);
  display:inline-flex;
  align-items:center;
  gap:12px;
}

.bltl-submit:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.bltl-spinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  display:none;
  animation: bltlspin .8s linear infinite;
  pointer-events:none;
}
@keyframes bltlspin{ to{ transform:rotate(360deg); } }

.bltl-status{
  color:#475569;
  font-weight:800;
}
.bltl-status.is-error{ color:#b91c1c; }
.bltl-status.is-ok{ color:#1bb38a; }

/* Error highlight */
.bltl-error{
  border-color: rgba(185, 28, 28, .55) !important;
  box-shadow:0 0 0 4px rgba(185, 28, 28, .10) !important;
}

/* FIX: freccia select centrata */
.bltl-grid select{
  min-height: 46px;
  line-height: 1.2;
  padding-top: 12px;
  padding-bottom: 12px;

  background-position:
    calc(100% - 20px) calc(50% - 1px),
    calc(100% - 14px) calc(50% - 1px);
}
.bltl-grid select::-ms-expand{ display:none; }
