/* BPP Preventivatore v2 — WordPress plugin stylesheet
   Tutti i selettori sono prefissati con .bpp-* per evitare
   conflitti con il tema WordPress / Elementor. */

.bpp-preventivatore-root *{box-sizing:border-box;margin:0;padding:0}
.bpp-wrap{background:#fff;border-radius:14px;max-width:780px;width:100%;padding:2rem;margin:0 auto;font-family:'Segoe UI',Arial,sans-serif;color:#222}
.bpp-header{display:flex;align-items:center;gap:14px;margin-bottom:1.75rem;padding-bottom:1.25rem;border-bottom:2px solid #003087}
.bpp-logo{width:46px;height:46px;background:#003087;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px;flex-shrink:0}
.bpp-header-text h2{font-size:18px;font-weight:700;color:#003087;margin:0}
.bpp-header-text p{font-size:13px;color:#666;margin:2px 0 0}

/* Progress */
.bpp-progress{display:flex;gap:5px;margin-bottom:1.75rem}
.bpp-ps{flex:1;height:4px;border-radius:2px;background:#ddd;transition:background .3s}
.bpp-ps.active{background:#003087}
.bpp-ps.done{background:#1D9E75}

/* Step header */
.bpp-step-label{font-size:11px;font-weight:700;color:#888;letter-spacing:.06em;text-transform:uppercase;margin-bottom:.5rem}
.bpp-step-title{font-size:20px;font-weight:700;color:#003087;margin-bottom:.3rem}
.bpp-step-sub{font-size:14px;color:#555;margin-bottom:1.5rem;line-height:1.6}

/* Form classico (step 1) */
.bpp-field{margin-bottom:1.1rem}
.bpp-field label{display:block;font-size:13px;font-weight:600;color:#444;margin-bottom:5px}
.bpp-field input,.bpp-field select{width:100%;font-size:15px;padding:9px 12px;border:1px solid #ccc;border-radius:7px;background:#fff;color:#222;outline:none;transition:border .15s}
.bpp-field input:focus,.bpp-field select:focus{border-color:#003087;box-shadow:0 0 0 3px rgba(0,48,135,.1)}
.bpp-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* Layout 2 colonne (step 2-3-4) */
.bpp-q-blocks-wrap{display:flex;flex-direction:column;gap:10px}
.bpp-q-block{display:grid;grid-template-columns:35% 65%;border:1px solid #e8ecf4;border-radius:10px;overflow:hidden}
.bpp-q-left{padding:1rem 1.1rem;background:#f7f9fd;border-right:1px solid #e8ecf4;display:flex;flex-direction:column;justify-content:center}
.bpp-q-left label{font-size:13px;font-weight:700;color:#003087;line-height:1.4;margin:0}
.bpp-q-num{font-size:11px;color:#aaa;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.bpp-q-right{padding:.75rem 1rem;display:flex;flex-direction:column;gap:6px}

/* Opzioni radio */
.bpp-opt{display:flex;align-items:flex-start;gap:9px;padding:9px 11px;border:1px solid #e0e6f0;border-radius:7px;cursor:pointer;transition:all .15s;background:#fff}
.bpp-opt:hover{border-color:#003087;background:#f0f5ff}
.bpp-opt.selected{border-color:#003087;background:#EAF2FF}
.bpp-opt input[type=radio]{margin-top:3px;accent-color:#003087;flex-shrink:0;width:15px;height:15px}
.bpp-opt-text{font-size:13.5px;color:#222;line-height:1.35;font-weight:500}
.bpp-opt-sub{font-size:11.5px;color:#888;margin-top:2px}

/* Separatore sezione */
.bpp-section-divider{font-size:11px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.06em;padding:.6rem 0 .4rem;margin-top:.5rem;border-top:1px solid #eee;display:flex;align-items:center;gap:8px}
.bpp-section-divider::after{content:'';flex:1;height:1px;background:#eee}

/* Navigazione */
.bpp-nav{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #eee}
.bpp-btn{padding:10px 22px;border-radius:7px;font-size:14px;font-weight:600;cursor:pointer;border:1px solid #ccc;background:#fff;color:#333;transition:all .15s}
.bpp-btn:hover{background:#f5f5f5}
.bpp-btn.primary{background:#003087;color:#fff;border-color:#003087}
.bpp-btn.primary:hover{background:#002070}

/* Result */
.bpp-result-card{border:1px solid #ddd;border-radius:12px;overflow:hidden;margin-bottom:1.25rem}
.bpp-result-head{padding:1.25rem 1.5rem;background:#003087;color:#fff}
.bpp-badge{display:inline-block;font-size:11px;font-weight:600;padding:3px 10px;border-radius:100px;background:rgba(255,255,255,.2);margin-bottom:.5rem}
.bpp-result-head h3{font-size:22px;font-weight:700;margin-bottom:.2rem;color:#fff}
.bpp-result-head p{font-size:13px;opacity:.8}
.bpp-result-body{padding:1.25rem 1.5rem;background:#fff}
.bpp-canone-box{display:flex;align-items:baseline;gap:8px;margin-bottom:1.25rem;padding-bottom:1.25rem;border-bottom:1px solid #eee}
.bpp-canone-num{font-size:38px;font-weight:700;color:#003087}
.bpp-canone-unit{font-size:14px;color:#666}
.bpp-canone-note{font-size:12px;color:#888;margin-left:auto;text-align:right;line-height:1.5}
.bpp-motiv-title{font-size:13px;font-weight:600;color:#666;margin-bottom:8px}
.bpp-motiv-list{list-style:none;display:flex;flex-direction:column;gap:6px;padding:0}
.bpp-motiv-list li{display:flex;gap:8px;font-size:14px;color:#333}
.bpp-motiv-list li::before{content:"✓";color:#1D9E75;font-weight:700;flex-shrink:0}
.bpp-bonus-box{background:#f8f9fa;border-radius:8px;padding:1rem 1.25rem;margin-top:1rem}
.bpp-bonus-title{font-size:13px;font-weight:600;color:#666;margin-bottom:8px}
.bpp-bonus-row{display:flex;justify-content:space-between;font-size:13px;padding:3px 0;color:#444}
.bpp-bonus-row span:last-child{color:#1D9E75;font-weight:600}
.bpp-bonus-total{display:flex;justify-content:space-between;font-size:15px;font-weight:700;padding-top:10px;margin-top:8px;border-top:1px solid #ddd}
.bpp-bonus-total span:last-child{color:#003087;font-size:18px}
.bpp-alt-title{font-size:13px;font-weight:600;color:#666;margin:1.5rem 0 .75rem}
.bpp-alt-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bpp-alt-card{border:1px solid #eee;border-radius:8px;padding:.75rem 1rem;transition:all .15s}
.bpp-alt-card:hover{border-color:#003087}
.bpp-alt-card h4{font-size:13px;font-weight:600;color:#003087;margin-bottom:3px}
.bpp-alt-card p{font-size:12px;color:#777;margin:0}
.bpp-cta-row{display:flex;gap:10px;margin-top:1.5rem}
.bpp-cta-row .bpp-btn{flex:1;text-align:center}
.bpp-info-user{background:#f0f5ff;border-radius:7px;padding:.7rem 1rem;margin-bottom:1.25rem;font-size:13px;color:#555}
.bpp-info-user strong{color:#003087}
.bpp-disclaimer{font-size:11px;color:#aaa;margin-top:1.5rem;line-height:1.6}
.bpp-tag-socio{display:inline-block;background:#FFF3CD;color:#856404;font-size:11px;font-weight:600;padding:2px 8px;border-radius:100px;margin-left:6px}

/* Responsive */
@media(max-width:600px){
  .bpp-wrap{padding:1.25rem}
  .bpp-q-block{grid-template-columns:1fr}
  .bpp-q-left{border-right:none;border-bottom:1px solid #e8ecf4;padding:.75rem 1rem}
  .bpp-field-row{grid-template-columns:1fr}
  .bpp-alt-cards{grid-template-columns:1fr 1fr}
  .bpp-canone-note{display:none}
  .bpp-cta-row{flex-direction:column}
}

/* Immagini dei conti e filiale */
.bpp-preventivatore-root .bpp-result-image{display:block;width:100%;height:auto}
.bpp-preventivatore-root .bpp-result-head-with-image{background:#fff;color:#003087;border-bottom:1px solid #eee}
.bpp-preventivatore-root .bpp-result-head-with-image h3{color:#003087}
.bpp-preventivatore-root .bpp-result-head-with-image .bpp-badge{background:#eaf2ff}
.bpp-preventivatore-root .bpp-alt-image{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#f7f9fd;border-radius:5px;margin-bottom:10px}

/* Coerenza risposte */
.bpp-preventivatore-root .bpp-coherence-notice{font-size:14px;line-height:1.5;padding:12px 0;color:#624600;margin-bottom:16px}
.bpp-preventivatore-root .bpp-coherence-hint{font-size:12px;line-height:1.4;color:#666;margin-bottom:5px}
