.pomb-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);
}

.pomb-form h3{
  margin:0 0 6px;
  font-size:20px;
  font-weight:900;
  color:#1e293b;
}

.pomb-hint{
  margin:0 0 14px;
  color:#475569;
  font-size:14px;
}

.pomb-hp{ position:absolute; left:-9999px; opacity:0; }

.pomb-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){ .pomb-grid{ grid-template-columns:1fr; } }

.pomb-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#1e293b;
}

.pomb-grid input[type="text"],
.pomb-grid input[type="email"],
.pomb-grid input[type="tel"],
.pomb-grid textarea,
.pomb-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;
}
.pomb-grid textarea{ resize:vertical; min-height:120px; }

.pomb-grid input:focus,
.pomb-grid textarea:focus,
.pomb-grid select:focus{
  border-color:rgba(4,141,70,.55);
  box-shadow:0 0 0 4px rgba(4,141,70,.10);
}

.pomb-span2{ grid-column:span 2; }
@media (max-width: 900px){ .pomb-span2{ grid-column:span 1; } }

.pomb-field{ display:flex; flex-direction:column; gap:8px; }
.pomb-labelRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.pomb-label{
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#1e293b;
}
.pomb-mini{
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#64748b;
}

.pomb-help{
  margin:0;
  font-size:13px;
  font-weight:700;
  color:#475569;
  text-transform:none;
  letter-spacing:0;
}

/* ===============================
   PILLS (radio / checkbox)
=============================== */
.pomb-choice{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pomb-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;
}

.pomb-pill span{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:800;
  color:#475569;
  text-transform:none;
  letter-spacing:0;
}

.pomb-pill i{
  color:#048D46;
  background:#eaf7ef;
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}

/* nascondi input ma resta accessibile */
.pomb-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Hover */
.pomb-pill:hover{
  transform:translateY(-1px);
  border-color:rgba(4,141,70,.45);
  box-shadow:0 10px 15px -10px rgba(4,141,70,.25);
}

/* Selected state (JS adds .is-active) */
.pomb-pill.is-active{
  border-color:rgba(4,141,70,.65);
  box-shadow:0 12px 20px -14px rgba(4,141,70,.45);
  background:linear-gradient(180deg, rgba(4,141,70,.07), rgba(4,141,70,.04));
}
.pomb-pill.is-active span{ color:#1e293b; }
.pomb-pill.is-active i{
  color:#fff;
  background:linear-gradient(135deg,#048D46 0%, #046B3A 100%);
}

/* Subgrid inside extra sections */
.pomb-subgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){ .pomb-subgrid{ grid-template-columns:1fr; } }

/* Conditional callout */
.pomb-conditional{ display:none; }
.pomb-conditional.is-visible{ display:block; }

.pomb-callout{
  border:1px solid rgba(4,141,70,.18);
  background:rgba(234,247,239,.7);
  border-radius:14px;
  padding:14px;
}
.pomb-calloutTitle{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:#048D46;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
}

/* Privacy */
.pomb-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;
}
.pomb-privacy a{
  color:#048D46;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(4,141,70,.25);
}
.pomb-privacy a:hover{ border-bottom-color:rgba(4,141,70,.6); }

/* Footer / submit */
.pomb-footer{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.pomb-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,#048D46 0%, #046B3A 100%);
  box-shadow:0 8px 20px -10px rgba(4,141,70,.6);
  display:inline-flex;
  align-items:center;
  gap:12px;
}

.pomb-submit:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.pomb-spinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  display:none;
  animation: pombspin .8s linear infinite;
  pointer-events:none;
}
@keyframes pombspin{ to{ transform:rotate(360deg); } }

.pomb-status{
  color:#475569;
  font-weight:800;
}
.pomb-status.is-error{ color:#b91c1c; }
.pomb-status.is-ok{ color:#048D46; }

/* Error highlight */
.pomb-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 */
.pomb-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);
}
.pomb-grid select::-ms-expand{ display:none; }


/* ==================================
   FOTO UPLOAD (MULTI)
================================== */
/* File picker: input nascosto + bottone custom */
.pomb-fileBar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px dashed rgba(4,141,70,.35);
  border-radius:16px;
  background:#f8fafc;
}

.pomb-fileBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  cursor:pointer;
  user-select:none;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg, #048D46, #046B3A);
  box-shadow:0 14px 30px -16px rgba(4,141,70,.70);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.pomb-fileBtn:hover{
  transform: translateY(-1px);
  box-shadow:0 18px 34px -18px rgba(4,141,70,.78);
  filter:saturate(1.05);
}

.pomb-fileBtn:active{
  transform: translateY(0);
  box-shadow:0 10px 22px -16px rgba(4,141,70,.62);
  filter:saturate(.98);
}

.pomb-fileText{
  font-size:13px;
  font-weight:800;
  color:rgba(10,9,18,.72);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pomb-upload .pomb-file--hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip: rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.pomb-photoMeta{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
  color:rgba(10,9,18,.72);
  font-size:13px;
}

.pomb-photoCount{
  font-weight:800;
  color:rgba(4,141,70,.95);
  background:rgba(4,141,70,.10);
  border:1px solid rgba(4,141,70,.18);
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.pomb-photoHint{
  opacity:.9;
}

.pomb-photoGrid{
  margin-top:12px;
  display:grid;
  /* Celle a dimensione fissa: anche con 1 foto non diventa gigante */
  grid-template-columns:repeat(auto-fill, minmax(190px, 190px));
  justify-content:flex-start;
  gap:10px;
}

.pomb-photoCard{
  position:relative;
  border:1px solid rgba(4,141,70,.20);
  background:#ffffff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
}

.pomb-photoThumb{
  aspect-ratio: 16 / 10;
  background:#0a0912;
}

.pomb-photoThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pomb-photoInfo{
  padding:10px 12px 12px;
}

.pomb-photoName{
  font-weight:800;
  font-size:13px;
  color:#0a0912;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pomb-photoMetaLine{
  font-size:12px;
  color:rgba(10,9,18,.62);
  margin-top:2px;
}

.pomb-photoRemove{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(10,9,18,.45);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(6px);
}

.pomb-photoRemove:hover{
  background:rgba(10,9,18,.62);
  border-color: rgba(255,255,255,.45);
}

@media (max-width: 680px){
  .pomb-photoMeta{
    flex-direction:column;
    align-items:flex-start;
  }
  .pomb-photoHint{
    font-size:12px;
  }
}

/* ==================================
   SUBMIT BUTTON (POLISH)
================================== */
.pomb-footer{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:flex-start;
  margin-top:18px;
}

.pomb-submit{
  min-width:220px;
  padding:14px 22px;
  border-radius:14px;
  box-shadow:0 14px 30px -16px rgba(4,141,70,.70);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.pomb-submit:hover{
  transform: translateY(-1px);
  box-shadow:0 18px 34px -18px rgba(4,141,70,.80);
  filter:saturate(1.05);
}

.pomb-submit:active{
  transform: translateY(0px);
}

.pomb-submit:focus-visible{
  outline: none;
  box-shadow:0 0 0 4px rgba(253,240,4,.35), 0 14px 30px -16px rgba(4,141,70,.70);
}

@media (max-width: 680px){
  .pomb-footer{ flex-direction:column; }
  .pomb-submit{
    width:100%;
    justify-content:center;
  }
}

