/* ============================================
   STILI GENERALI
   ============================================ */

.vci-verification-container {
    max-width: 600px;
    padding: 1px 30px 1px 30px;
    background: #f9f9f9;
    border-radius: 12px;
	border:1 px solid #ccc;
    /*box-shadow: 0 4px 20px rgba(0,0,0,0.08); */
}

.vci-step {
    margin-bottom: 1px;
}

.vci-step h3 {
    color: #257832;
    border-bottom: 3px solid #257832;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 20px;
}

/* ============================================
   STEP 1: CAMPO RICERCA COMUNE (STILE CARD)
   ============================================ */

.vci-form-group {
    position: relative;
    margin-bottom: 20px;
}

.vci-form-group label {
    display: block;
    margin-bottom: 1px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Input stile card come i bottoni CAP */
#vci-cerca-comune {
    width: 100%;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	margin:
}

#vci-cerca-comune:hover {
    border-color: #257832;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#vci-cerca-comune:focus {
    outline: none;
    border-color: #257832;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,115,170,0.15);
}

#vci-cerca-comune::placeholder {
    font-weight: normal;
    font-size: 16px;
    color: #999;
}

/* Suggerimenti stile grid come CAP */
.vci-suggerimenti {
    background: #fff;
    border: 2px solid #257832;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
}

.vci-suggerimento {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    transition: all 0.2s;
    background: #fff;
}

.vci-suggerimento:hover {
    background: #f0f6fc;
    border-left: 4px solid #257832;
}

.vci-suggerimento strong {
    color: #257832;
    font-size: 17px;
    display: block;
    margin-bottom: 4px;
}

.vci-suggerimento small {
    color: #666;
    font-size: 13px;
}

/* ============================================
   STEP 2: GRID CAP (invariato)
   ============================================ */

.vci-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.vci-cap-btn {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.vci-cap-btn:hover {
    border-color: #257832;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,115,170,0.15);
}

.vci-cap-numero {
    display: block;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.vci-badge-conv {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.vci-badge-nonconv {
    background: #f8d7da;
    color: #721c24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* ============================================
   STEP 3: RISULTATI
   ============================================ */

.vci-success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(40,167,69,0.15);
}

.vci-warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(255,193,7,0.15);
}

.vci-success-box h4,
.vci-warning-box h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* ============================================
   BOTTONI
   ============================================ */

.vci-button-secondary {
    background: #f8f9fa;
    border: 2px solid #6c757d;
    color: #495057;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 20px;
}

.vci-button-secondary:hover {
    background: #e9ecef;
    border-color: #495057;
    transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .vci-verification-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .vci-cap-grid,
    .vci-suggerimenti {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    #vci-cerca-comune {
        padding: 16px;
        font-size: 18px;
    }
}

.vci-form-group.active #vci-cerca-comune {
    border-color: #257832;
    box-shadow: 0 8px 24px rgba(0,115,170,0.2);
    transform: translateY(-2px) scale(1.02);
}

/* Badge "Seleziona" per Step 2 */
.vci-badge-seleziona {
    background: #257832;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vci-cap-btn:hover .vci-badge-seleziona {
    background: #005a87;
    transform: scale(1.05);
}
