#preventivo-area {
    font-size: 13px;
}

#preventivo-form input[type="text"],
#preventivo-form input[type="date"],
#preventivo-form input[type="time"] {
    height: 50px;
    font-size: 16px;
    color: #424953;
    width: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 18px 15px 8px;
    box-sizing: border-box;
    background: #fff;
}

#preventivo-form input::placeholder {
    color: transparent;
}

#preventivo-form input.error {
    border-color: #FE0000;
}

/* ====== FLOATING LABELS ====== */
.mb-floating {
    position: relative;
    margin-bottom: 20px;
}

.mb-floating > input {
    margin-bottom: 0 !important;
}

.mb-floating > label {
    position: absolute;
    left: 15px;
    top: 25px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ea0a4;
    pointer-events: none;
    transition: all .15s ease;
    background: #fff;
    padding: 0;
    line-height: 1;
}

.mb-floating > input:focus + label,
.mb-floating > input:not(:placeholder-shown) + label {
    top: 8px;
    transform: translateY(0);
    font-size: 12px;
    color: #8CA7E7;
}

.mb-floating > input:focus {
    outline: none;
    border-color: #8CA7E7;
    box-shadow: 0 0 0 2px rgba(140,167,231,.15);
}

/* checkbox (vecchio, non usato visivamente ma lasciato) */
#preventivo-form input[type="checkbox"] {
    margin-bottom: 20px;
}

#preventivo-area button {
    background: #718495;
    color: #FFF;
    padding: 13px 29px;
    border: 0;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    margin: 10px;
}

.sk-chase { width: 40px; height: 40px; margin: 0 auto; position: relative; animation: sk-chase 2.5s infinite linear both; }
.sk-chase-dot { width: 100%; height: 100%; position: absolute; left: 0; top: 0; animation: sk-chase-dot 2.0s infinite ease-in-out both; }
.sk-chase-dot:before { content: ""; display: block; width: 25%; height: 25%; background-color: #8CA7E7; border-radius: 100%; animation: sk-chase-dot-before 2.0s infinite ease-in-out both; }
.sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
.sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }
@keyframes sk-chase { 100% { transform: rotate(360deg); } }
@keyframes sk-chase-dot { 80%, 100% { transform: rotate(360deg); } }
@keyframes sk-chase-dot-before { 50% { transform: scale(0.4); } 100%, 0% { transform: scale(1.0); } }

#preventivo, #preventivo-loading, #preventivo-area.loaded form, #preventivo-area.loading form { display: none; }
#preventivo-area.loading #preventivo-loading, #preventivo-area.loaded #preventivo { display: block; }

#dati-preventivo { border: 1px solid #718495; padding: 25px; border-radius: 15px; color: #718495; }
#dati-preventivo label { font-size: 20px; line-height: 34px; color: #8CA7E7; text-transform: uppercase; font-weight: 600; }

/* ====== STEP 2: RIEPILOGO PREVENTIVO ====== */
#preventivo .subtitle{
    display: inline-block;
    margin-bottom: 8px;
    color: #6f6f6f;
}

#preventivo .title{
    margin-top: 0;
    margin-bottom: 18px;
}

#dati-preventivo.mb-quote-card{
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    padding: 22px;
}

.mb-quote-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mb-quote-block{
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px 16px;
    background: #fff;
}

.mb-quote-head{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mb-quote-icon{
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #718495;
    background: rgba(140,167,231,.12);
}

.mb-quote-icon svg{
    width: 18px;
    height: 18px;
}

#dati-preventivo .mb-quote-head label{
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #718495;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.mb-quote-main{
    font-size: 18px;
    font-weight: 700;
    color: #424953;
    line-height: 1.25;
}

.mb-quote-sub{
    margin-top: 6px;
    font-size: 13px;
    color: #6f6f6f;
    line-height: 1.3;
}

.mb-quote-kpis{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
}

.mb-kpi{
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
    background: #fff;
}

.mb-kpi-ico{
    font-size: 16px;
    line-height: 1;
}

.mb-kpi-label{
    font-size: 13px;
    color: #6f6f6f;
    font-weight: 600;
}

.mb-kpi-val{
    font-size: 18px;
    font-weight: 800;
    color: #424953;
}

.mb-quote-price{
    border: 1px solid rgba(113,132,149,.35);
    background: rgba(113,132,149,.08);
}

.mb-price{
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #424953;
    margin-top: 6px;
}

.mb-quote-actions{
    display: flex;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.mb-quote-actions button{
    min-width: 180px;
    border-radius: 12px;
    padding: 14px 22px;
}

.mb-btn-primary{
    background: #718495 !important;
    border: 1px solid #718495 !important;
    color: #fff !important;
}

.mb-btn-secondary{
    background: transparent !important;
    border: 1px solid #718495 !important;
    color: #8CA7E7 !important;
}

@media (max-width: 900px){
    .mb-quote-grid{
        grid-template-columns: 1fr;
    }
    .mb-price{
        font-size: 32px;
    }
    .mb-quote-actions button{
        width: 100%;
        min-width: 0;
    }
}

/* ====== Checkbox coerente ====== */
.mb-check{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
}

.mb-check input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mb-box{
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid #e2e2e2;
    background: #fff;
    flex: 0 0 22px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.mb-box::after{
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity .12s ease;
    margin-top: -1px;
}

.mb-check-text{
    font-size: 14px;
    color: #424953;
    line-height: 25px;
}

.mb-check-text a{
    color: #718495;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(113,132,149,.35);
}

.mb-check-text a:hover{
    border-bottom-color: rgba(113,132,149,.75);
}

.mb-check input:checked + .mb-box{
    background: #718495;
    border-color: #718495;
    box-shadow: 0 0 0 2px rgba(140,167,231,.15);
}

.mb-check input:checked + .mb-box::after{
    opacity: 1;
}

.mb-check input:focus + .mb-box{
    outline: none;
    box-shadow: 0 0 0 3px rgba(140,167,231,.18);
    border-color: #718495;
}

.tecContainer.error .mb-check-text,
.tecContainer.error .mb-check-text a{
    color: #b00000;
}

/* ====== Error messages in stile ====== */
.mb-field-error{
    display: none;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #b00000;
}

.mb-floating > input.error ~ .mb-field-error{
    display: block;
    background: rgba(254,0,0,.06);
    border: 1px solid rgba(254,0,0,.18);
    border-radius: 10px;
    padding: 8px 10px;
}

.tecContainer.error .mb-consent-error{
    display: block;
    margin-top: 8px;
    background: rgba(254,0,0,.06);
    border: 1px solid rgba(254,0,0,.18);
    border-radius: 10px;
    padding: 8px 10px;
}

/* ====== OSM Autocomplete dropdown (UNA sola definizione) ====== */
.mb-floating { position: relative; }

.mb-ac-list{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 9999;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

.mb-ac-hidden{ display:none; }

.mb-ac-item{
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}

.mb-ac-item:last-child{ border-bottom: 0; }
.mb-ac-item:hover{ background: rgba(140,167,231,.08); }

.mb-ac-title{
    font-size: 14px;
    font-weight: 700;
    color: #424953;
    line-height: 1.2;
}

.mb-ac-secondary{
    margin-top: 4px;
    font-size: 12px;
    color: #6f6f6f;
}
/* ====== Travel options field ====== */
#travel_options{
cursor: pointer;
background: #fff;
}

/* ====== Modal ====== */
.mb-modal{ position: fixed; inset: 0; z-index: 100000; }
.mb-modal-hidden{ display:none; }

.mb-modal-backdrop{
position:absolute; inset:0;
background: rgba(0,0,0,.28);
}

.mb-modal-card{
position: relative;
width: min(640px, calc(100% - 32px));
margin: 60px auto;
background:#fff;
border-radius: 18px;
box-shadow: 0 20px 60px rgba(0,0,0,.18);
overflow: hidden;
}

.mb-modal-header{
display:flex;
align-items:center;
justify-content: space-between;
padding: 16px 18px;
border-bottom: 1px solid #f0f0f0;
}

.mb-modal-title{
font-size: 16px;
font-weight: 800;
color:#424953;
}

.mb-modal-x{
width: 36px; height: 36px;
border-radius: 10px;
border: 1px solid #e6e6e6;
background:#fff;
font-size: 20px;
line-height: 1;
cursor:pointer;
}

.mb-modal-body{ padding: 12px 18px 6px; }

.mb-counter-row{
display:flex;
align-items:center;
justify-content: space-between;
gap: 16px;
padding: 14px 0;
border-bottom: 1px solid #f2f2f2;
}
.mb-counter-row:last-child{ border-bottom: 0; }

.mb-counter-label{
font-size: 14px;
font-weight: 800;
color:#424953;
}

.mb-counter{
display:flex;
align-items:center;
gap: 14px;
}

.mb-step{
width: 44px; height: 44px;
border-radius: 10px;
border: 2px solid #718495;
background:#fff;
font-size: 20px;
line-height: 1;
cursor:pointer;
}

.mb-counter-val{
min-width: 22px;
text-align:center;
font-size: 18px;
font-weight: 900;
color:#424953;
}

.mb-modal-footer{
display:flex;
gap: 12px;
justify-content: flex-end;
padding: 14px 18px 18px;
border-top: 1px solid #f0f0f0;
}

@media (max-width: 520px){
.mb-counter-row{ flex-direction: column; align-items: flex-start; }
.mb-modal-footer{ flex-direction: column; }
.mb-modal-footer button{ width: 100%; }
}
@media (max-width: 767px){
    .mb-counter {
        width: 100%;
    }
}

#mb-travel-modal .mb-step {
    width: 100%;
}