/* =====================================================
   ELITE DETAILING - SIMPLYBOOK CUSTOM CSS
   Full updated stylesheet
   ===================================================== */

/* -----------------------------------------------------
   ORIGINAL SIMPLYBOOK PLACEHOLDER SELECTORS
   ----------------------------------------------------- */
#events h3,
#events p.duration,
#events div.duration,
#events p.description,
#events div.description,
#events .selectedEvent,
#events input.reserve_time_btn,
#events input.select_another_btn,
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3,
#eventForm #save_button,
div.ui-widget-content,
div.ui-widget-header,
#timeline-container table.timeline,
.timeline td.not_worked_time,
.timeline td.free_time,
.timeline td.selected_time,
.timeline td.reserved_time,
div#loading,
#start_date-block-container .zend_form dt,
#start_date-block-container .zend_form dt b,
#start_date-block-container .zend_form dd label {
    /* Add further custom rules here if required. */
}

/* -----------------------------------------------------
   PAYMENT OPTIONS
   ----------------------------------------------------- */
#sb_invoice_payment_systems_container .payment-system-stripe .name {
    font-size: 0 !important;
}

#sb_invoice_payment_systems_container .payment-system-stripe .name::after {
    content: "Pay by Card" !important;
    font-size: 14px !important;
    visibility: visible !important;
}

#sb_invoice_payment_systems_container .payment-system-delay .name {
    font-size: 0 !important;
}

#sb_invoice_payment_systems_container .payment-system-delay .name::after {
    content: "Pay on the Day" !important;
    font-size: 14px !important;
    visibility: visible !important;
}

/* -----------------------------------------------------
   TOP PROMOTIONAL BANNER
   ----------------------------------------------------- */
body::before {
    content: "✦ COMPLIMENTARY EXTRAS ✦ FREE PAINT PROTECTION + FREE INTERIOR PROTECTION WITH EVERY FULL VALET" !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    background: linear-gradient(90deg, #16091f 0%, #542080 50%, #16091f 100%) !important;
    color: #ffffff !important;
    text-align: center !important;
    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    border-bottom: 2px solid #a855f7 !important;
    box-shadow: 0 3px 12px rgba(168,85,247,0.35) !important;
    position: relative !important;
    z-index: 99999 !important;
}

/* -----------------------------------------------------
   FULL VALET FREE EXTRAS BADGE
   ----------------------------------------------------- */
div.user.img:has(img[alt="image_for_category_Full Valet"]) {
    position: relative !important;
    overflow: visible !important;
}

div.user.img:has(img[alt="image_for_category_Full Valet"])::after {
    content: "✦ FREE EXTRAS ✦\A FREE PAINT + INTERIOR PROTECTION\A INCLUDED WITH FULL VALET" !important;
    white-space: pre-line !important;
    display: block !important;
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    z-index: 9999 !important;
    width: 145px !important;
    min-width: 0 !important;
    max-width: 42% !important;
    padding: 8px 6px !important;
    box-sizing: border-box !important;
    background: linear-gradient(145deg, #702bb1, #35104f) !important;
    border: 1.5px solid #f5d36c !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(84,32,128,0.4) !important;
    pointer-events: none !important;
    animation: edFreeOfferBounce 2.5s ease-in-out infinite;
}

@keyframes edFreeOfferBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* -----------------------------------------------------
   SERVICE IMAGE FIT
   ----------------------------------------------------- */
#events img.user-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #16091f !important;
    box-sizing: border-box !important;
}

#events .user.img {
    width: 100% !important;
    overflow: hidden !important;
    background: #16091f !important;
}

#events .user {
    box-sizing: border-box !important;
}

/* -----------------------------------------------------
   BOOKING PROGRESS NAVIGATION - LIGHT ELITE THEME
   Uses SimplyBook's native .passed and .active states.
   ----------------------------------------------------- */
#sb_booking_info .booking-info {
    padding: 22px 18px !important;
    background: #F4ECFA !important;
    border: 1px solid #D8C2EA !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    box-shadow: 0 3px 12px rgba(84,32,128,0.08) !important;
}

#sb_booking_info .booking-info ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: ed-step !important;
}

#sb_booking_info .step_info_item {
    counter-increment: ed-step !important;
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 66px !important;
    background: #F4ECFA !important;
    border: 1px solid rgba(84,32,128,0.16) !important;
    border-radius: 10px !important;
    overflow: visible !important;
}

#sb_booking_info .step_info_item > a {
    display: flex !important;
    align-items: center !important;
    min-height: 66px !important;
    padding: 10px 12px 10px 60px !important;
    box-sizing: border-box !important;
    position: relative !important;
    text-decoration: none !important;
    border-radius: 10px !important;
}

#sb_booking_info .step_info_item > a::before {
    content: counter(ed-step) !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #E5D8EF !important;
    border: 2px solid #80649A !important;
    color: #542080 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
}

#sb_booking_info .step_info_item.passed {
    border-color: rgba(84,32,128,0.3) !important;
    background: #F4ECFA !important;
}

#sb_booking_info .step_info_item.passed > a::before {
    content: "✓" !important;
    background: #542080 !important;
    border-color: #A855F7 !important;
    color: #ffffff !important;
    font-size: 17px !important;
}

#sb_booking_info .step_info_item.active {
    background: linear-gradient(110deg, #542080, #35104F) !important;
    border: 1px solid #C084FC !important;
    box-shadow: 0 0 14px rgba(168,85,247,0.22) !important;
}

#sb_booking_info .step_info_item.active > a::before {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #542080 !important;
}

#sb_booking_info .step_info_item .title-small {
    display: block !important;
    color: #49404F !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

#sb_booking_info .step_info_item .title-sub {
    display: block !important;
    color: #6D557C !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-top: 3px !important;
    overflow-wrap: anywhere !important;
}

#sb_booking_info .step_info_item.passed .title-small {
    color: #542080 !important;
}

#sb_booking_info .step_info_item.active .title-small,
#sb_booking_info .step_info_item.active .title-sub {
    color: #ffffff !important;
}

#sb_booking_info .step_info_item:not(.passed):not(.active) {
    opacity: 0.78 !important;
}

/* -----------------------------------------------------
   BOOKING SUMMARY PANEL - LIGHT LAVENDER
   ----------------------------------------------------- */
.booking-info.mg {
    background: #F4ECFA !important;
    border: 1px solid #D8C2EA !important;
    border-radius: 14px !important;
    padding: 15px !important;
    box-shadow: 0 3px 12px rgba(84,32,128,0.08) !important;
    box-sizing: border-box !important;
}

.booking-info.mg .booking-overview,
.booking-info.mg .booking-overview table,
.booking-info.mg .booking-overview tbody,
.booking-info.mg .booking-overview tr,
.booking-info.mg .booking-overview td {
    background: #F4ECFA !important;
    border: none !important;
    box-shadow: none !important;
}

.booking-info.mg td.label {
    color: #49404F !important;
    font-weight: 700 !important;
}

.booking-info.mg td.info,
.booking-info.mg .date-line--caption {
    color: #542080 !important;
    font-weight: 800 !important;
}

.booking-info.mg .booking-calendar {
    background: transparent !important;
}

/* -----------------------------------------------------
   RENAME SIMPLYBOOK ADD-ONS NEXT BUTTON
   Changes the wording only; keeps the original action.
   ----------------------------------------------------- */
button.sb-next.btn.next {
    font-size: 0 !important;
}

button.sb-next.btn.next::after {
    content: "Continue to next step →" !important;
    display: inline-block !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    visibility: visible !important;
}



/* -----------------------------------------------------
   HIDE BOOK NOW ON ALL STEPS EXCEPT CATEGORY
   SimplyBook adds service details to step aria-labels,
   so match the Category prefix rather than exact labels.
   ----------------------------------------------------- */
body:has(#sb_booking_info .step_info_item.active a[aria-label]:not([aria-label^="Category"]))
#main-buttons .btn.book.btn-with-icon.custom {
    display: none !important;
}

/* -----------------------------------------------------
   MOBILE RESPONSIVENESS
   ----------------------------------------------------- */
@media screen and (max-width: 600px) {
    body::before {
        font-size: 11px !important;
        padding: 12px 8px !important;
    }

    div.user.img:has(img[alt="image_for_category_Full Valet"])::after {
        width: 155px !important;
        font-size: 9px !important;
        padding: 9px 6px !important;
        top: 8px !important;
        right: 8px !important;
    }

    #events img.user-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important;
    }

    #sb_booking_info .booking-info {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    #sb_booking_info .booking-info ul {
        gap: 7px !important;
    }

    #sb_booking_info .step_info_item,
    #sb_booking_info .step_info_item > a {
        min-height: 56px !important;
    }

    #sb_booking_info .step_info_item > a {
        padding: 8px 8px 8px 50px !important;
    }

    #sb_booking_info .step_info_item > a::before {
        left: 11px !important;
        width: 27px !important;
        height: 27px !important;
        font-size: 13px !important;
    }

    #sb_booking_info .step_info_item .title-small {
        font-size: 13px !important;
    }

    #sb_booking_info .step_info_item .title-sub {
        font-size: 11px !important;
    }

    button.sb-next.btn.next::after {
        font-size: 14px !important;
    }
}

/* ================= END ELITE DETAILING CSS ================= */

/* ELITE DETAILING - ADD ANOTHER VEHICLE BUTTON */

#sb_multiple_booking_btn {
    background: #542080 !important;
    color: #ffffff !important;
    border: 2px solid #542080 !important;
    border-radius: 30px !important;
    padding: 15px 24px !important;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(84, 32, 128, 0.20) !important;
    transition: all 0.25s ease !important;
}

/* Change the wording */
#sb_multiple_booking_btn span {
    font-size: 0 !important;
}

#sb_multiple_booking_btn span::after {
    content: "+ Add another vehicle to your booking";
    font-size: 15px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Hover effect */
#sb_multiple_booking_btn:hover {
    background: #702bb1 !important;
    border-color: #702bb1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(84, 32, 128, 0.30) !important;
}

/* Mobile sizing */
@media screen and (max-width: 600px) {
    #sb_multiple_booking_btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    #sb_multiple_booking_btn span::after {
        font-size: 14px !important;
    }
}

/* FIX ADD ANOTHER VEHICLE BUTTON TEXT */

#sb_multiple_booking_btn {
    height: auto !important;
    min-height: 58px !important;
    padding: 12px 16px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

#sb_multiple_booking_btn span {
    display: block !important;
    width: 100% !important;
    line-height: 1.3 !important;
}

#sb_multiple_booking_btn span::after {
    content: "+ Add another vehicle to your booking" !important;
    display: block !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}
