:root {
    --global-content-width: 1500px;
    --primary-blue: #1e3a8a;
    --accent-orange: #f97316;
    font-family: 'Montserrat', sans-serif;
}

.ui-autocomplete {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    padding: 5px 0;
    z-index: 9999 !important;
}

.ui-menu-item-wrapper {
    padding: 10px 15px !important;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid rgb(212 212 212);
}

.ui-menu-item-wrapper.ui-state-active {
    background-color: #007bff !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.ui-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- TITOLI GLOBALI --- */

.cz-container {
    max-width: var(--global-content-width);
    background-color: #F3F7FF;
}

h1,
h2,
h3,
h4,
p,
small,
button {
    color: #1C3584;
}

.mj-color-1 {
    color: #1C3584;
}

.mj-color-2 {
    color: #F38918;
}

.mj-color-3 {
    color: #00b2d4;
}

.mj-color-4 {
    color: #F3F7FF;
}

.mj-color-4 {}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

p {
    font-size: 18px;
}

.psecondary {
    font-size: 16px;
}

button {
    font-size: 16px;
}

small {
    font-size: 14px;
}



@media (max-width: 992px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 17px;
    }

    h3 {
        font-size: 15px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .psecondary {
        font-size: 14px;
    }

    button {
        font-size: 16px;
    }

    small {
        font-size: 10px;
    }
}

.row>* {
    padding: 0;
    margin: 0;
}

/* /// TITOLI GLOBALI /// */


/* --- CLASSE GLASS --- */
.cz-glass {
    background: rgba(255, 255, 255, 0.41);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 212, 212, 0.16);
    box-shadow: -8px 3px 29px 1px rgba(171, 171, 255, 0.42);
    border-radius: 15px;
}

.cz-glass-2 {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 212, 212, 0.16);
    box-shadow: -8px 3px 29px 1px rgba(171, 171, 255, 0.42);
}



/* --- LAYOUT HERO --- */
.cz-wrapper-wide {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
}

.cz-main-card {

    background-color: #F3F7FF;
    background-image: url('/assets/mojito/img/illustrations/sfondo-mappa-1-4.webp');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    display: flex;
    align-items: center;
}

.cz-content-area {
    width: 100%;
    max-width: 56%;
}


/* --- STEP COMPONENTS --- */
.cz-step-label {
    display: flex;
    align-items: center;
    margin: 0px;
    margin-bottom: 16px;
    font-weight: 800;
}

.cz-step-num {
    background: #245bcf;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 28px;
}

/* --- GRIGLIA SERVIZI (125px fissi) --- */
.cz-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cz-service-item {
    min-width: 135px;
    flex: 0 0 125px;
    background: rgba(243, 247, 255, 0.48);
    border-radius: 15px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgb(145 145 145 / 19%);
    font-size: 60px;
}

.cz-service-item.active {
    background: white;
    border: 2px solid var(--accent-orange);
    transform: translateY(-3px);
}

.cz-service-name {
    font-weight: 700;
    font-size: 17px;
}

/* --- STEP 2: FIX DESKTOP (Input e Button sulla stessa riga) --- */
#cerca-cap {
    height: 54px;
    border-radius: 12px;
    border: 1px solid #ced4da;
    background: white;
    padding-left: 15px;
}

.cz-btn-action {
    background: linear-gradient(180deg, #fba146 0%, #ea580c 100%);
    color: #fff !important;
    border: none;
    padding: 0 25px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 800;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* OTTIMIZZAZIONE DESKTOP (>= 768px) */
@media (min-width: 768px) {
    #cerca-cap {
        flex: 1;
        /* Permette all'input di occupare lo spazio a sinistra */
        width: auto !important;
    }

    .cz-btn-action {
        width: auto !important;
    }

    .cz-small {
        width: 100% !important;
        /* Forza il testo ad andare sotto su una nuova riga */
        margin-top: 5px;
    }
}

/* --- BADGES E FOOTER HERO --- */
.cz-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cz-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cz-check-circle {
    color: #10b981;
    font-size: 1.2rem;
}

/* --- SEZIONE COME FUNZIONA --- */

.cz-steps-row {
    position: relative;
    margin-top: 50px;
}

.cz-steps-row>div {
    padding-left: 15px !important;
    padding-right: 15px !important;
}


.cz-step-card {
    padding: 65px 25px 10px 25px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.cz-step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 61px;
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.cz-step-img {
    height: 140px;
    width: auto;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

.cz-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cz-check-list i {
    color: var(--accent-orange);
    font-size: 1.4rem;
}

.cz-badge-pill {
    background: #ecfdf5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid #d1fae5;
}

.cz-placeholder-img {
    border-radius: 24px;
    overflow: hidden;
}

/* --- RESPONSIVE OPTIMIZATION --- */

/* TABLET & MOBILE (< 992px) */
@media (max-width: 992px) {
    .cz-main-card {
        width: 100%;
        background-image: none !important;
    }

    .cz-content-area {
        max-width: 100%;
    }

    .cz-services-grid {
        max-width: none;
        justify-content: center;
    }
}

/* SOLO MOBILE (< 768px) */
@media (max-width: 767px) {
    .cz-step-label {}

    .cz-step-num {

        width: 25px;
        height: 25px;
        min-width: 25px;
        margin-right: 12px;
        font-size: 18px;
    }


    #cerca-cap,
    .cz-btn-action,
    .cz-small {
        width: 100% !important;
        flex: none;
    }

    .cz-step-card {
        margin-top: 0;
        padding-bottom: 10px;
    }



    .cz-service-item {
        min-width: 85px;
        height: 85px;
        padding: 10px 0px;
        flex: 0 0 50px;
    }

    .cz-service-item i {
        font-size: 40px;
    }

    .cz-service-name {
        font-size: 15px;
    }

    #cerca-cap {
        height: auto;
    }

    .cz-btn-action{
        height: 35px;
    }

    .cz-badge-item {
        font-size: 12px;
    }
}

/* --- BREADCRUMBS --- */
.cz-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #6b7280;
}

.cz-breadcrumbs a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.cz-breadcrumbs a:hover {
    color: var(--primary-blue);
}

.cz-breadcrumbs i {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* --- TITOLO RISULTATI --- */
.cz-title-results {
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -1px;
}

/* --- ADATTAMENTO MOBILE --- */
@media (max-width: 767px) {
    .cz-title-results {
        font-size: 2rem !important;
        text-align: center !important;
    }

    .cz-breadcrumbs {
        justify-content: center;
    }
}

/* --- SEZIONE AI CUSTOM --- */
.cz-ai-card h2 {
    font-weight: 900 !important;
    font-size: 2.2rem;
    margin: 0;
}

/* Finto input con lente e freccia */
.cz-fake-input {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #4b5563;
    cursor: pointer;
    gap: 10px;
    transition: border-color 0.2s;
}

.cz-fake-input:hover {
    border-color: var(--primary-blue);
}

.cz-fake-input span {
    font-weight: 600;
}

/* Immagine Robot */
.cz-robot-img {
    max-height: 250px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

/* Check verdi specifici per questa sezione */
.cz-ai-card .bx-check-circle {
    color: #10b981 !important;
}

/* Responsive fix */
@media (max-width: 992px) {
    .cz-ai-card h2 {
        font-size: 1.8rem;
    }

    .cz-fake-input {
        width: 100%;
    }

    .cz-robot-img {
        max-height: 180px;
    }
}



/* CONTAINER CARD */
.cz-offer-card-new {
    display: flex;
    backdrop-filter: blur(20px);
    overflow: hidden;
    margin: 20px 0;
    min-height: 280px;
}

/* SIDEBAR GIALLA */
.cz-sidebar {
    width: 150px;
    min-height: 206px;
    height: 168px;
    background: #FFECB3;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.cz-badge-consigliato {
    width: 100%;
    background: #FFD54F;
    text-align: center;
    padding: 6px 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #444;
}

.cz-logo-wrap {
    margin: auto 0;
    padding: 15px;
}

.cz-logo-wrap img {
    width: 100px;
}

/* MAIN CONTENT */
.cz-main-content {
    flex-grow: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
}

/* HEADER RIGA 1 */
.cz-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cz-title {
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    color: #1e3a8a !important;
    margin: 0 !important;
    text-align: left !important;
}

.cz-title span {
    font-weight: 400;
    color: #6b7280;
}

.cz-data-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.9rem;
}

.cz-data-badge i {
    color: #0ea5e9;
}

/* BODY RIGA 2 */
.cz-row-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.cz-savings {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
}

.cz-savings span {
    color: #f97316;
}

.cz-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cz-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
}

.cz-features i {
    color: #84cc16;
    font-size: 1.2rem;
}

/* AZIONI */
.cz-action-side {
    text-align: right;
}

.cz-btn-green {
    background: linear-gradient(180deg, #84cc16 0%, #65a30d 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(101, 163, 13, 0.3);
    cursor: pointer;
    margin-bottom: 8px;
}

.cz-link-details {
    display: block;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* PROMO BOX RIGA 3 */
.cz-promo-box {
    margin-top: 20px;
    background: #f0f7ff;
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cz-plus-icon {
    width: 22px;
    height: 22px;
    border: 1.5px solid #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 0.8rem;
}

.cz-promo-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #1e3a8a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cz-row-header {
        display: flex;
        flex-direction: column-reverse;
        /* Inverte l'ordine: Badge sopra, Titolo sotto */
        align-items: flex-end;
        /* Allinea il Badge a destra */
        gap: 8px;
        /* Spazio tra badge e titolo */
        margin-bottom: 15px;
    }

    .cz-title {
        width: 100%;
        /* Occupa tutto lo spazio per permettere il centraggio */
        text-align: center !important;
        /* Il titolo solitamente sta meglio centrato su mobile */
    }

    .cz-data-badge {
        font-size: 0.85rem;
        /* Leggermente più piccolo per non rubare spazio */
        margin-bottom: 5px;
        /* Distacco dal titolo sotto */
    }

    .cz-offer-card-new {
        flex-direction: column;
    }

    .cz-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        height: auto;
        min-height: auto;
    }

    .cz-badge-consigliato {
        width: auto;
        padding: 5px 20px;
        border-radius: 0 0 10px 0;
    }

    .cz-logo-wrap {
        padding: 5px 20px;
    }

    .cz-logo-wrap img {
        width: 70px;
    }

    .cz-row-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cz-action-side {
        margin-top: 20px;
        text-align: center;
    }

    .cz-title,
    .cz-savings {
        text-align: center !important;
    }
}

/* --- UPDATE 1 --- */

.cz-offer-card-new {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.cz-offer-card-new:hover {
    transform: translateY(-5px);
}

/* HEADER */
.cz-header-serp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.cz-logo-img {
    max-width: 110px;
    height: auto;
}

.cz-offer-name {
    margin: 5px 0 0 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a;
}

.cz-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
}

.cz-price-unit {
    font-size: 16px;
    color: #1e3a8a;
    margin-left: 4px;
}

/* SEPARATORI */
.cz-separator {
    height: 1px;
    background: rgba(30, 58, 138, 0.1);
    margin: 0 25px;
}

/* BODY */
.cz-body-serp {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 25px;
    align-items: center;
    gap: 20px;
}

.cz-features-col { flex: 2; min-width: 250px; }
.cz-info-icons-col { 
    flex: 1.5; 
    display: flex; 
    justify-content: space-around; 
    text-align: center;
    gap: 15px;
}
.cz-cta-col { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    min-width: 200px;
}

/* LISTA CARATTERISTICHE */
.cz-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cz-features-list li {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cz-features-list i {
    font-size: 8px;
    margin-top: 6px;
    color: #1e3a8a;
}

/* ICONE (Arancioni come da foto) */
.cz-icon-label {
    font-size: 12px;
    font-weight: 700;
    color: #f97316; /* Accent Orange */
    text-transform: uppercase;
    margin-bottom: 5px !important;
    line-height: 1.2;
}

.cz-icon-box img {
    width: 45px;
    margin: 0 auto;
}

.cz-icon-value {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    margin: 0;
}

/* BOTTONI CTA */
.cz-btn-outline {
    background: transparent;
    border: 2px solid #22c55e;
    color: #22c55e !important;
    border-radius: 50px;
    padding: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.cz-btn-whatsapp {
    background: #22c55e;
    border: none;
    color: white !important;
    border-radius: 50px;
    padding: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.cz-btn-outline:hover { background: #22c55e; color: white !important; }

/* FOOTER */
.cz-footer-serp {
    padding: 10px 25px;
}

.cz-details-trigger {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .cz-body-serp { flex-direction: column; align-items: flex-start; }
    .cz-info-icons-col { width: 100%; justify-content: space-around; }
    .cz-cta-col { width: 100%; }
}

/* UPDATE 2*/ 

/* --- OVERRIDE DETTAGLI ACCORDEON --- */

.cz-details-content {
    padding: 25px;
    background: rgba(255, 255, 255, 0.3); /* Leggero sfondo per staccare dal glass */
}

.cz-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Colonne su Desktop */
    gap: 30px 50px; /* Spazio tra righe e colonne */
}

.cz-detail-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Intestazione Categoria (es. Materia Energia) */
.cz-detail-cat-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 15px;
    color: #1e3a8a;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* Singola riga (es. Quota fissa) */
.cz-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4b5563;
    padding-left: 10px; /* Indentazione per gerarchia */
}


/* ICONA TRIGGER */
.cz-details-trigger i {
    transition: transform 0.3s ease;
}

.cz-details-trigger:not(.collapsed) i {
    transform: rotate(180deg); /* Ruota l'icona quando aperto */
}

.cz-price-section{
    text-align: end;
}

/* RESPONSIVE: Passa a 1 colonna su Tablet/Mobile */
@media (max-width: 992px) {
    .cz-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cz-details-content {
        padding: 15px;
    }
}





/* MODAL*/
.modal-content.cz-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.15);
}

.modal-header .btn-close {
    background-color: white;
    border-radius: 50%;
    padding: 10px;
    opacity: 0.8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cz-wizard-step {
    display: none;
    margin-bottom: 25px;
    animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cz-step-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.cz-btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.cz-btn-grid-dense {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cz-wiz-btn, .cz-filter-btn {
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-align: center;
    
    /* FIX ICONE STORTI: Allineamento verticale */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 6px; /* Spazio preciso tra icona e testo */
    padding: 15px 10px;
    min-height: 54px; /* Altezza minima garantita */
    width: 100%;
}

.cz-wiz-btn:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.cz-wiz-btn.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.cz-form-input {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    height: 50px;
    color: #4b5563;
    width: 100%;
}

.cz-form-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.cz-req { color: #ef4444; }

.cz-input-group-text {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-left: none;
    color: #6b7280;
    font-weight: 600;
}

@media (min-width: 992px) {
    .modal-lg-custom { max-width: 800px; }
}



/* --- PRIVACY SECTION STYLE --- */
.cz-privacy-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cz-privacy-header label {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cz-privacy-header .form-check-input {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
    border: 2px solid white;
}

.cz-privacy-header .form-check-input:checked {
    background-color: var(--accent-orange);
    border-color: white;
}

.cz-consents-list {
    padding-left: 10px;
}

.cz-consents-list .form-check {
    margin-bottom: 12px;
}

.cz-consents-list .form-check-label {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.cz-consents-list a {
    color: #0ea5e9;
    text-decoration: underline;
}

.cz-consents-list .form-check-input {
    cursor: pointer;
    border: 1.5px solid #ced4da;
}

.cz-consents-list .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Validazione Checkbox */
.form-check-input.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}


/* --- FILTERS SECTION STYLE --- */
.accordion-item.cz-glass {
    border: none;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 20px;
}

.accordion-button.cz-filter-header {
    background: transparent;
    padding: 20px;
    box-shadow: none;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-blue);
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

.cz-filter-group {
    margin-bottom: 25px;
}

.cz-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.cz-filter-btn-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px; 
}

.cz-filter-btn {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
}

.cz-wiz-btn:hover, .cz-filter-btn:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.cz-wiz-btn.active, .cz-filter-btn.active {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Fornitori Grid */
.cz-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
}

.cz-provider-box {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 5px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cz-provider-box img {
    max-width: 80%;
    max-height: 80%;
    filter: grayscale(100%);
    opacity: 0.6;
}

.cz-provider-box.active {
    border: 2px solid var(--primary-blue);
}

.cz-provider-box.active img {
    filter: none;
    opacity: 1;
}

.cz-btn-update-filters {
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 18px;
    margin-top: 10px;
}


/* 1. Contenitore principale */
.dropzone.cz-dropzone {
    border: 2px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    min-height: 200px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

/* 2. Messaggio centrale (quando è vuoto) */
.dz-message {
    text-align: center;
    color: #475569;
    font-weight: 500;
}

/* 3. L'anteprima del file (il box bianco) */
.dropzone .dz-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px !important;
    display: flex !important;
    flex-direction: column !important; /* Forza i dettagli sopra e il tasto sotto */
    align-items: center;
    width: 280px; /* Leggermente più largo per nomi file lunghi */
    min-height: 160px;
}

/* 4. Dettagli del file (Nome e Dimensione) */
.dropzone .dz-preview .dz-details {
    position: relative !important;
    opacity: 1 !important;
    text-align: center;
    color: #1e293b;
    margin-bottom: 20px;
    width: 100%;
}

.dropzone .dz-preview .dz-details .dz-size {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.dropzone .dz-preview .dz-details .dz-filename {
    font-size: 0.95rem; /* Testo più grande */
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word; /* Permette al nome di andare a capo */
    white-space: normal !important; /* Disabilita i puntini di sospensione */
}

.dropzone .dz-preview .dz-details .dz-filename span {
    border: none !important;
}

/* 5. IL TASTO RIMUOVI (Migliorato) */
.dropzone .dz-preview .dz-remove {
    display: block !important;
    width: 100%;
    text-align: center;
    color: #ef4444 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 10px 0;
    cursor: pointer;
    border: 1.5px solid #fee2e2;
    border-radius: 8px;
    background-color: #fef2f2;
    transition: all 0.2s ease;
    margin-top: auto; /* Lo spinge sempre in fondo al box */
}

.dropzone .dz-preview .dz-remove:hover {
    background-color: #ef4444;
    color: white !important;
}

/* Nascondi icone di spunta/errore e barre di progresso che disturbano */
.dz-success-mark, .dz-error-mark, .dz-progress {
    display: none !important;
}