/* Reset base per body */
.clienti_header-container {
    position: sticky;
    top: 125px;
    left: 0;
    width: 100%;
    background: #efefef;
    z-index: 1000;
    box-sizing: border-box;
    font-family: Inter, 'sans-serif';
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* wrapper interno con max-width */
.clienti_header-bar {
    max-width: 1600px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 50px 0 50px;
    box-sizing: border-box;
    font-family: Inter, 'sans-serif';
    overflow: visible;
}

.clienti_header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 22px;
    color: #020202;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;

}

.clienti_title_display_none {
    display: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 22px;
    color: #020202;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.clienti_buttons-container {
    display: flex;
    gap: 10px;
    flex: 0 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
}

.clienti_buttons-container::-webkit-scrollbar {
    display: none;
}

.clienti_comment-group,
.clienti_iscrizione-group {
    width: auto;
    height: auto;
}

.clienti_comment-btn {
    padding: 6px 16px;
    font-size: 15px;
    line-height: 20px;
    border-radius: 18px;
    background: #008BEE;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-family: Inter;
}

.clienti_comment-btn:hover {
    background: #0077cc;
}

.clienti_iscrizione-btn {
    border: solid 2px #000;
    border-radius: 18px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 16px;
}

.clienti_iscrizione-btn:hover {
    background-color: black;
    color: white;
}

.flex_link_clienti {
    display: inline-flex;
    gap: 5px;
    white-space: nowrap;
}

.flex_link_clienti a {
    padding: 0 10px;
    border-right: 1px solid black;
    color: #828282;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    text-decoration: none;
}

.flex_link_clienti a:last-child {
    border-right: none;
}

.flex_link_clienti a:hover {
    text-decoration: underline;
    cursor: pointer;
    color: black;
}

.flex_link_clienti a:active {
    text-decoration: underline;
    cursor: pointer;
}

.button_spacer_display_none {
    display: none;

}


#contatti {
    scroll-margin-top: -160px;
}

#social {
    scroll-margin-top: 70px;
}

#raggiungerci {
    scroll-margin-top: 80px;
}

#forum {
    scroll-margin-top: 150px;
}

#lavora {
    scroll-margin-top: 70px;
}

#rivenditore {
    scroll-margin-top: 70px;
}

.display_none_clienti {
    display: none;
}

/* Contenuto demo */
.demo-content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.demo-content h2 {
    color: #333;
    margin: 30px 0 15px 0;
}

.demo-content p {
    margin-bottom: 20px;
    color: #666;
}

.clienti-category-tabs-wrapper {
    overflow: hidden;
    position: relative;
}

.clienti-container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0px;
    display: flex;
    justify-content: flex-end;
}

.clienti-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    margin-left: 50px;
}

.clienti-category-tabs::-webkit-scrollbar {
    display: none;
}

.clienti-tab-item {
    flex-shrink: 0;
    padding: 10px 18px 0px 0px;
    border: none;
    border-radius: 25px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #828282;
    cursor: pointer;
    white-space: nowrap;
}

.clienti-tab-item:hover {
    color: black;
}

.clienti-tab-item.active {
    text-decoration: underline;
    color: black;
    font-weight: 400;
}


.button_spacer {
    display: flex;
}


.preventivo {
    width: 115px;
    height: 30px;
    font-size: 14px;
    font-family: Inter, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: transparent;
    color: #008BEE;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}

.button_spacer a {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    font-size: 14px;
    font-family: Inter, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: transparent;
    color: #45ab32;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    width: 70px;
    height: 30px;
    gap: 8px;
}

.button_spacer_display_none a,
.DEMO {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    font-size: 14px;
    font-family: Inter, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: transparent;
    color: #45ab32;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    width: 50px;
    height: 30px;
    gap: 8px;
}

.button_spacer a:hover {
    color: #378529;
}

.button_spacer_display_none a,
.DEMO:hover {
    color: #378529;
}

.preventivo:hover {
    color: #0077cc;
}

/* DESKTOP scrollspy active */
.flex_link_clienti a.active {
    text-decoration: underline;
    color: #000;
}



/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .clienti_header-bar {
        height: auto;
        padding: 5px 0px 5px 0px;
        gap: 15px;
        justify-items: center;
    }
}



/* Responsive Design - Mobile */
@media (max-width: 480px) {

    .clienti_title_display_none {
        font-size: 16px;
        line-height: 20px;
        max-width: 280px;
    }
}

/* Padding Responsive */
@media (max-width: 870px) {
    .clienti_header-container {
        padding-right: 0px;
    }
}

/* Font Resize */
@media (max-width: 699px) {
    .clienti_iscrizione-btn,
    .clienti_comment-btn,

    .clienti_title_display_none {
        font-size: 14px;
        line-height: 19px;
    }
}

/* Gestione visibilità menu */
@media (min-width: 1252px) {
    .display_none_clienti {
        display: none;
    }


}

@media (max-width: 1350px) {
    .display_none_clienti {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .display_none_clienti::-webkit-scrollbar {
        display: none;
    }

    .display_none_clienti a {
        flex-shrink: 0;
        text-decoration: none;
        white-space: nowrap;
    }


    .flex_link_clienti {
        display: none !important;
    }

    .clienti_header-bar {
        padding: 5px 0px;
    }
}

/* Layout mobile con scroll */
@media (max-width: 1350px) {

    .clienti_header-title {
        display: flex;
        justify-content: center;
        text-transform: uppercase;
    }

    .clienti_header-bar {
        gap: 5px;
        display: flex;
        flex-direction: column;
        height: 85px;
    }

    .clienti_title_display_none {
        display: none;
    }

    .clienti_buttons-container,
    .display_none_clienti {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }

    .clienti_buttons-container::-webkit-scrollbar,
    .display_none_clienti::-webkit-scrollbar {
        display: none;
    }

    .clienti_buttons-container>*,
    .display_none_clienti>* {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .clienti_buttons-container {
        flex: 0 150 auto;
    }

    .clienti-category-tabs {
        margin-left: 50px;
    }



}

@media (min-width: 401px) and (max-width: 550px) {
    .clienti_buttons-container {
        flex: 0 150 auto;
    }
}

@media (max-width: 400px) {
    .clienti_buttons-container {
        flex: 0 150 auto;
    }
}


@media (max-width: 699px) {
    .clienti-tab-item {
        padding: 8px 10px 0px 0px;
        font-size: 14px;
    }

    button.preventivo {
        font-size: 13px;
        width: 95px;
        height: 25px;
    }

    .button_spacer_display_none a,
    .DEMO {
        font-size: 13px;
        height: 25px;
    }
}

@media (max-width: 409px) {
    .clienti-category-tabs {
        margin-left: 30px;

    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .clienti-category-tabs {
        margin-left: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .clienti-category-tabs {
        margin-left: 30px;
    }
}


/* --- Nuovo layout sotto i 950px --- */
@media (max-width: 1350px) {
    .clienti_header-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        height: auto;
        padding: 10px 0px;
    }

    /* Riga con titolo e bottoni */
    .clienti_top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1350px;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        padding: 0px 50px;
    }

    .clienti_header-title {
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
        flex-shrink: 0;
    }

    .button_spacer_display_none {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .button_spacer {
        display: none;
    }

    .clienti_title_display_none {
        display: none;
    }

    .clienti_buttons-container,
    .display_none_clienti {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: start;
        width: 100%;
        padding: 0px 50px;
        box-sizing: border-box;
    }

    .clienti_buttons-container::-webkit-scrollbar,
    .display_none_clienti::-webkit-scrollbar {
        display: none;
    }

    .clienti_buttons-container>*,
    .display_none_clienti>* {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .clienti_buttons-container {
        flex: 0 150 auto;
    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;
    }

    /*  .clienti_header-bar {
        padding: 10px 0px;
     } */

}


@media (max-width: 1100px) {

    .clienti_buttons-container,
    .display_none_clienti {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }



}


@media (max-width: 409px) {

    .clienti_top-row,
    .display_none_clienti {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;

    }

    .clienti_header-bar {
        padding: 10px 0px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {

    .clienti_top-row,
    .display_none_clienti {
        padding-left: 50px;
        padding-right: 50px;
        width: 100%;
        box-sizing: border-box;

    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;


    }

    .clienti_header-bar {
        padding: 10px 0px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {

    .clienti_top-row,
    .display_none_clienti {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;

    }

    .clienti_header-bar {
        padding: 10px 0px;
    }
}

@media (max-width: 379px) {
    .clienti_title_display_none {
        display: block;
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
        flex-shrink: 0;
    }

    .clienti_header-title {
        display: none;
    }
}

@media (max-width: 1250px) {
    .clienti-category-tabs {
        gap: 10px;
    }
}

@media (min-width: 1275px) and (max-width: 1350px) {
    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media (max-width: 1280px) {
    .clienti_header-container {
        top: 55px !important;
    }


}



/* Container Principale */
.demo-popup-modal_p2 {
    background-color: #f5f5f5;
    /* Grigio chiarissimo quasi bianco */
    color: #000;
    font-family: 'Inter', sans-serif;
    /* O un font sans-serif pulito */
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Tipografia */
.demo-popup-modal_p2 h2 {
    color: #000;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
}

.demo-popup-modal_p2 p {
    padding-bottom: 0px;
    color: #8c8c8c;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    /* margin-bottom: 30px; */
}

.sottotitolo_step1 {
    margin-bottom: 10px !important;
}

.sottotitolo_step2 {
    margin-bottom: 25px !important;
}

.privacy-note_preventivo {
    font-size: 10px !important;
    line-height: 16px !important;
    font-family: Inter, sans-serif !important;
    color: #393939 !important;
    font-weight: 400 !important;
    margin-bottom: 0px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.quote-privacy-link_demo {
    text-decoration: underline !important;
    color: #000 !important;
    font-size: 9px !important;
    line-height: 15px !important;
    font-family: Inter, sans-serif !important;
    font-weight: 500 !important;
}

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}



.demo-group_p2 label:first-child {
    box-shadow: none !important;
    background: transparent !important;
    /* color: rgb(0, 0, 0) !important; */
    padding: 10px 0 10px;
    border: none !important;
    /* border-bottom: 1px solid #ccc !important; */
    border-radius: 0 !important;
    width: 90%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #5c5c5c;
    font-weight: 400;
}

.demo-group_p2 label:not(:first-child) {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    font-size: 13px;
    cursor: pointer;
    line-height: 19px;
}

.demo-group_p2 input[type="checkbox"],
.demo-group_p2 input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    /* FONDAMENTALE */
    cursor: pointer;
    flex-shrink: 0;
}

/* Check */
.demo-group_p2 input[type="checkbox"]::after,
.demo-group_p2 input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #28a745;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.demo-group_p2 input[type="checkbox"]:checked::after,
.demo-group_p2 input[type="radio"]:checked::after {
    content: "✔";
    opacity: 1;

}


/* Barra di Avanzamento */
.progress-container_p2,
.progress-container_p2-2 {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 50%;
}

.progress-bar_p2,
.progress-bar_p2-2 {
    width: 80px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill_p2 {
    width: 50%;
    height: 100%;
    background-color: #28a745;
}

.progress-fill_p2-2 {
    width: 100%;
    height: 100%;
    background-color: #28a745;
}

.step-text_p2 {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    width: 50%;
}

/* Pulsante AVANTI (Pillola) */
.demo-next-btn_p2 {
    float: right;
    background: #45ab32;
    border: 2px solid #45ab32;
    color: #fff;
    /* padding: 12px 45px; */
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: -40px;
    border-radius: 30px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 25px;
    padding-right: 25px;
}

.demo-next-btn_p2:hover {
    background: #398f29;
    border: 2px solid #398f29;
    color: #fff;
}

#quanti-partecipanti-group {
    width: 40%;
}

/* Utility per nascondere/mostrare step */
.demo-step {
    display: none;
}

.demo-step.active_p2 {
    display: block;
}

/* Nasconde tutti gli step di default */
.demo-step {
    display: none;
}

/* Mostra solo lo step attivo */
.demo-step.active_p2 {
    display: block;
}

/* Container principale: ora si comporta come il tuo modal esistente */
.demo-popup_p2 {
    display: none;
    /* Nascosto di base */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* Molto alto per stare sopra a tutto */
    align-items: center;
    justify-content: center;
}

/* Sfondo Nero quando il popup è attivo */
.demo-popup_p2.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.85);
    /* Nero profondo come richiesto */
    animation: unfoldInEstimate .5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Sfondo cliccabile (Overlay) */
.demo-popup-background_p2 {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Modal Bianco (Il contenuto) */
.demo-popup-modal_p2 {
    position: relative;
    background-color: #fff;
    color: #000;
    width: 90%;
    max-width: 650px;
    padding: 35px 50px;
    border-radius: 20px;
    z-index: 2;
    /* Animazione Zoom-In simile al tuo CSS */
    transform: scale(0);
    animation: zoomInEstimate 0.3s 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.form-group_p2 input.error,
.form-group_p2 textarea.error {
    border: 1px solid red;
}




/* Animazioni (Copia delle tue esistenti per coerenza) */
@keyframes unfoldInEstimate {
    0% {
        transform: scaleY(0.005) scaleX(0);
    }

    50% {
        transform: scaleY(0.005) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes zoomInEstimate {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Posizionamento della X */
.demo-close-btn_p2 {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    /* Dimensione generosa per essere cliccabile */
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.demo-close-btn_p2:hover {
    transform: scale(1.1);
    /* Effetto ingrandimento al passaggio */
}

.back-btn_p2:hover {
    transform: scale(1.1);
    /* Effetto ingrandimento al passaggio */
}

@media (max-width: 369px) {
    .demo-popup-modal_p2 h2 {
        line-height: 26px;
        font-size: 20px;
    }
}

@media (min-width: 369px) and (max-width: 388px) {
    .demo-popup-modal_p2 h2 {
        line-height: 28px;
        font-size: 22px;

    }
}

@media (min-width: 389px) and (max-width: 409px) {
    .demo-popup-modal_p2 h2 {
        line-height: 30px;
        font-size: 24px;
    }
}

@media (min-width: 410px) and (max-width: 820px) {
    .demo-popup-modal_p2 h2 {
        line-height: 30px;
        font-size: 24px;
    }
}

@media (min-width: 821px) and (max-width: 943px) {
    .demo-popup-modal_p2 h2 {
        line-height: 34px;
        font-size: 28px;
    }
}

.error-message_p2 {
    color: #ea5858 !important;
    font-size: 10px;
}

.error-message_p2-2 {
    position: absolute;
    bottom: -15px;
    /* sotto l’input */
    left: 173px;
    color: #ea5858 !important;
    font-size: 10px;
    text-align: end;
    display: none;
}

.demo-group_p2 input[type="number"]:checked::after {
    border: none;
    border-bottom: 2px solid black;
    outline: none;
}

.demo-group_p2 {
    margin-bottom: 20px;
}

.demo-success-close-btn_p2 {
    background: #45ab32;
    border: 2px solid #45ab32;
    color: #fff;
    border-radius: 30px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 25px;
    padding-right: 25px;
}

.demo-success-close-btn_p2:hover {
    background: #398f29;
    border: 2px solid #398f29;
    color: #fff;
}



@media (max-width: 409px) {
    .demo-popup-modal_p2 {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .demo-popup-modal_p2 {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .demo-popup-modal_p2 {
        padding-left: 30px;
        padding-right: 30px;
    }
}


.title_demo_step2 {
    box-shadow: none !important;
    background: transparent !important;
    color: #5c5c5c;
    padding: 15px 0 20px;
    border: none !important;
    border-radius: 0 !important;
    width: 90%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* Riga di campi affiancati */
.form-row_p2 {
    display: flex;
    gap: 0px 10px;
    /* spazio tra le colonne */
    flex-wrap: wrap;
    /* su mobile si può andare a capo */
    margin-bottom: 10px;
}

/* Ogni input occupa metà larghezza della riga */
.form-row_p2>.form-group_p2 {
    flex: 1;
    min-width: 200px;
    /* evita di diventare troppo piccolo su mobile */
}

/* Campo messaggio larga tutta la riga */
.form-row_p2>.form-group_p2 textarea {
    width: 100%;
    min-height: 100px;
}

/* Stile dei label flottanti già pronto */
.form-group_p2 {
    position: relative;
    margin-bottom: 10px;
}

/* Input e textarea con bordo completo */
.form-group_p2 input,
.form-group_p2 textarea {
    width: 100%;
    padding: 10px 20px 10px;
    border: 1px solid #ccc;
    /* bordo completo */
    border-radius: 6px;
    /* arrotondato come prima */
    outline: none;
    font-size: 13px;
    background: transparent;
    transition: border-color 0.2s ease;
}

/* Focus sui campi */
.form-group_p2 input:focus,
.form-group_p2 textarea:focus {
    border-color: #45ab32;
    /* bordo nero al focus */
}

/* Label fluttuante */
.form-group_p2 label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #5c5c5c;
    pointer-events: none;
    background: #fff;
    padding: 0 4px;
    transition: all 0.2s ease;
}

/* Label che sale quando il campo è attivo o ha valore */
.form-group_p2 input:focus+label,
.form-group_p2 textarea:focus+label,
.form-group_p2 input.filled+label,
.form-group_p2 textarea.filled+label {
    top: -1px;
    font-size: 12px;
    color: #45ab32;
    display: block !important;
}

/* Messaggi di errore */
.form-group_p2 .errors {
    display: none;
    font-size: 12px;
    color: red;
    margin-top: 4px;
}

/* Mostra errori quando c'è required */
.form-group_p2.required .errors {
    display: block;
}

/* Textarea non ridimensionabile */
.form-group_p2 textarea {
    resize: none;
    min-height: 70px;
}

/* label {
    display: inline-flex !important
} */

.form-group_p2 textarea+label {
    top: 25px;
    /* sposta verso l’alto */
    font-size: 12px;
    /* più piccolo */
    color: #5c5c5c;
    /* opzionale */
}

.back-btn_p2 {
    position: absolute;
    top: 15px;
    /* stessa altezza della chiusura */
    left: 20px;
    /* spostata a sinistra */
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}


.quote-privacy-check-container_popup {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.privacy-note_preventivo_popup {
    font-size: 9px !important;
    line-height: 15px !important;
    font-family: Inter, sans-serif !important;
    color: #393939 !important;
    font-weight: 400 !important;
    margin-bottom: 0px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: -15px !important;
}

@media (max-width: 409px) {
    .form-row_p2 {
        gap: 7px 10px;
    }

    .step-text_p2 {
        font-size: 10px;
        line-height: 17px;
    }

    .demo-close-btn_p2 {
        font-size: 24px;
    }

    .back-btn_p2 {
        font-size: 19px;
        top: 19px;
    }
}

@media (max-width: 369px) {
    .error-message_p2-2 {
        left: 120px;
    }
}

/* ===== AUTOFILL SOLO POPUP DEMO P2 ===== */
#demo-popup-p2 input:-webkit-autofill,
#demo-popup-p2 input:-webkit-autofill:hover,
#demo-popup-p2 input:-webkit-autofill:focus,
#demo-popup-p2 textarea:-webkit-autofill,
#demo-popup-p2 textarea:-webkit-autofill:hover,
#demo-popup-p2 textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;

    -webkit-text-fill-color: #000 !important;
    caret-color: #000 !important;

    transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 699px) {
    .demo-next-btn_p2 {
        font-size: 13px;
        line-height: 17px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .demo-popup-modal_p2 {
        padding: 20px 26px;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
        transform: scale(1);
        /* simula un 14px visivo */
        transform-origin: left center;
    }

    @media (max-width: 699px) {
        .form-group_p2 {
            margin-bottom: 15px;
        }

        body.demo-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }
    }

    .demo-popup_p2 {
        animation: none !important;
    }
}