/* ==========================================================================
    1. GLOBAL & RESET
   ========================================================================== */
:root {
    --dfr-green: #8cc63f;
}

body, html {
    background-color: #f7f8f9;
    font-family: 'Open Sans Hebrew', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}



/*****furgone****/
/* --- Gestione Immagine Furgone Responsive --- */


/* Versione Desktop (schermi grandi) */
@media (min-width: 992px) {
    .img-furgone-large {
        max-width: 160% !important;
        width: 160% !important;
        position: relative;
margin-left: -55%; margin-top:20%; z-index:99;
    }
}

/* Versione Mobile e Tablet (schermi piccoli) */
@media (max-width: 991px) {
    .img-furgone-large {
		 max-width: 160% !important;
        width: 160% !important;
        position: relative;
        height: auto;
margin-left: -55%;
		margin-top:60%; z-index:99;		
		
		
		
        
     
    }
    
    /* Rimuoviamo i bordi laterali su mobile per dare più spazio ai testi */
    .summary-bar .col-6.pl-3.border-left {
        border-left: none !important;
        padding-left: 15px !important;
    }
}


/* ==========================================================================
    2. HEADER STEPS & NAVIGATION
   ========================================================================== */
.booking-steps-bar { 
    background-color: var(--dfr-green); 
    padding: 10px 0 0 0; 
}

.step-item {
    display: block;
    padding: 12px 5px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    transition: 0.3s;
    text-decoration: none !important;
    margin-bottom: 0;
}

.step-item:hover { background-color: rgba(0,0,0,0.1); color: #fff; }
.step-item.active { background-color: #fff; color: #333; }

.header-logo-custom {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
    .booking-steps-bar { padding: 5px 0; }
    .step-item { font-size: 13px; padding: 25px 0; }
}

@media (max-width: 767px) {
    .header-logo-custom { height: 45px; }
    footer { text-align: center; }
    footer ul { padding: 0 !important; list-style: none; }
    footer .footer-social { justify-content: center; display: flex; margin-top: 15px; }
}

/* ==========================================================================
    3. BARRA RIEPILOGO (SUMMARY BAR)
   ========================================================================== */
.summary-bar { 
    background-color: #fff; 
    border-bottom: 2px solid #ececec; 
    padding: 20px 0; 
}

.summary-col { 
    padding: 15px 15px; 
    border-bottom: 1px solid #f0f0f0; 
    text-align: left; 
}

.summary-label { font-weight: 800; text-transform: uppercase; display: block; margin-bottom: 8px; color: #333; font-size: 11px; }
.summary-value { color: var(--dfr-green); font-weight: 700; font-size: 13px; }
.btn-modifica-small { background-color: var(--dfr-green); color: white !important; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 3px 12px; }
.price-total { font-size: 18px; font-weight: 800; display: block; line-height: 1.8; color: #000; }

@media (min-width: 768px) {
    .summary-col { 
        border-bottom: none; 
        border-right: 1px solid #eee; 
        min-height: 100px; 
        display: flex; 
        flex-direction: column; 
        padding-left: 50px !important; 
        padding-right: 50px !important;
    }
    .summary-col:last-child { border-right: none; }
}

/* ==========================================================================
    4. LAYOUT SCHEDE (WHITE BOXES)
   ========================================================================== */
.section-white-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.selection-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }

.itinerario-recap-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

/* ==========================================================================
    5. LOGICA SELEZIONE & CARDS (OTTIMIZZATA PER LEGGIBILITÀ)
   ========================================================================== */
.selection-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.extra-selectable-card {
    display: block;
    background: #fcfcfc;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 0;
}

.selection-input:checked + .extra-selectable-card {
    border: 2px solid var(--dfr-green) !important;
    background: #fff;
    box-shadow: 0 5px 15px rgba(118, 183, 42, 0.2);
}

.insurance-details {
    font-size: 12px; 
    line-height: 1.6;
    color: #333;
}

.insurance-details p.font-weight-bold {
    font-size: 14px !important; 
    margin-bottom: 12px !important;
    color: var(--dfr-green);
}

.insurance-details strong {
    font-size: 12.5px;
    color: #000;
}

/* Testi tipo "Costo a evento per danni" */
.insurance-details small {
    font-size: 11px !important; 
    color: #444 !important; /* Grigio più scuro per contrasto */
    display: block;
    line-height: 1.2;
    margin-top: 2px;
}

.insurance-details span[style*="text-align: right"] {
    font-size: 13px !important;
    font-weight: 800;
    color: #000 !important;
}

.extra-card {
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    transition: 0.3s;
    cursor: pointer;
    background: #fcfcfc;
    height: 100%;
}

.extra-card.active {
    border-color: var(--dfr-green);
    background: #fff;
    box-shadow: 0 5px 15px rgba(118, 183, 42, 0.15);
}

.price-tag { font-weight: 800; font-size: 1rem; display: block; color: #333; }

/* ==========================================================================
    6. CHECKOUT STRIPE LAYOUT (SPLIT SCREEN)
   ========================================================================== */
.main-checkout-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    min-height: 85vh;
    overflow: hidden;
}

.summary-side { padding: 40px; border-right: 1px solid #f0f0f0; flex: 1; }
.payment-side { padding: 40px 60px; flex: 1; }

.btn-prosegui-roll {
    position: relative;
    background-color: #8cc63f;
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 12px 60px;
    font-weight: 800;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-prosegui-roll::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #000;
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.btn-prosegui-roll:hover::before { left: 0; }

.custom-pagination .page-item .page-link {
    color: #333;
    border: none;
    margin: 0 5px;
    border-radius: 8px !important;
    font-weight: 700;
    transition: 0.3s;
    background-color: #eee;
    font-size: 14px;
    padding: 10px 18px;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--dfr-green) !important;
    color: white !important;
}



/***SOFFIETTO***/
/* --- Toggle Summary Mobile --- */
@media (max-width: 767px) {
    .mobile-collapse.show {
        display: flex !important; /* Forza la visibilità quando ha la classe .show */
        flex-direction: column;
        border-bottom: 1px solid #f0f0f0;
    }
    #arrowToggle {
        transition: transform 0.3s ease;
    }
    #arrowToggle.rotated {
        transform: rotate(180deg);
    }
}


/***********CHECK PAGINA***/
/* ==========================================================================
   RIPRISTINO STILI FORM STRIPE (CHECKOUT)
   ========================================================================== */

.stripe-input-box {
    background: #fcfcfc;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.stripe-input-box:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}

.stripe-input-field {
    border: none !important;
    background: transparent !important;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #333;
}

.stripe-input-box-select {
    background: #fcfcfc;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    height: 45px;
    overflow: hidden;
}

/* Stile della card del metodo di pagamento */
.payment-method-card {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.method-row {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.method-row.bg-light {
    background-color: #f8f9fa !important;
}

/* Bottone Google Pay */
.google-pay-btn {
    background-color: #000;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Divider 'o' */
.divider-o {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}
.divider-o::before, .divider-o::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 43%;
    border-bottom: 1px solid #eee;
}
.divider-o::before { left: 0; }
.divider-o::after { right: 0; }

/* Bottone Paga Blu */
.btn-stripe-pay {
    background-color: #0045a0;
    color: white !important;
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    font-size: 16px;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn-stripe-pay:hover {
    background-color: #003274;
}

/*************CHECKUOT***//*
==========================================================================
   6. CHECKOUT STRIPE LAYOUT (RIPRISTINO GRAFICA)
   ========================================================================== */
.main-checkout-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; /* FONDAMENTALE per mettere le colonne affiancate */
    min-height: 85vh;
    overflow: hidden;
}

.summary-side { 
    padding: 40px; 
    border-right: 1px solid #f0f0f0; 
    flex: 1; 
    background-color: #fff;
}

.payment-side { 
    padding: 40px 60px; 
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Gestione Responsive per Mobile */
@media (max-width: 991px) {
    .main-checkout-wrapper { 
        flex-direction: column; 
        margin: 0; 
        border-radius: 0; 
    }
    .summary-side, .payment-side { 
        padding: 30px 20px; 
        border-right: none; 
    }
}

.back-nav {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.payment-logo-centered {
    height: 80px;
    margin: 20px auto 40px auto;
    display: block;
}
	
	/* ==========================================================================
   FIX SPECIFICO PER IL CHECKOUT
   ========================================================================== */

/* Resettiamo i margini del furgone quando siamo dentro il summary-side del checkout */
.summary-side .img-fluid {
    max-width: 100% !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-top: 20px !important;
    transform: none !important;
    position: static !important;
}

/* Assicuriamoci che il wrapper del checkout rimanga affiancato su Desktop */
@media (min-width: 992px) {
    .main-checkout-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
    }
    .summary-side, .payment-side {
        flex: 1;
    }
}
