
/* font file */
@import url('https://fonts.googleapis.com/css2?family=Sriracha&display=swap');


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
}

#loader-logo {
    width: 200px;
    height: auto;
    animation: pulse 1.5s infinite;
}

.progress-loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  color: #dc3545;
  background: radial-gradient(farthest-side, currentColor calc(100% - 6px),#0000 calc(100% - 5px) 0);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 13px),#000 calc(100% - 12px));
  border-radius: 50%;
  animation: l19 2s infinite linear;
}
.progress-loader::before,
.progress-loader::after {    
  content: "";
  grid-area: 1/1;
  background:
    linear-gradient(currentColor 0 0) center,
    linear-gradient(currentColor 0 0) center;
  background-size: 100% 10px,10px 100%;
  background-repeat: no-repeat;
}
.progress-loader::after {
   transform: rotate(45deg);
}

@keyframes l19 { 
  100%{transform: rotate(1turn)}
}

@keyframes animFw {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}


body.loaded #loader {
    opacity: 0;
    visibility: hidden;
}

.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1500px;
}
  
  
/* Home Page */
/* Header Nav Banner */
.navbar{
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    transition: all 0.8s ease;
}
/* .bfo-home-header{
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
} */
.logo-white,
.logo-dark,
.footer-logo img{
    height: 90px !important;
}

/* Navbar initial absolute position */
.navbar-absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* higher than video/banner */
    background-color: transparent; /* or rgba if you want a shade */
    opacity: 1;
    transform: translateY(0);
}

/* Sticky style when scrolled */
.navbar-sticky {
    position: sticky;
    top: 15px;
    margin: 0 16px;
    border-radius: 20px;
    background-color: #fff; /* solid background when scrolling */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* optional shadow */
    opacity: 1;
    transform: translateY(0);
    z-index: 1000;
}

.bfo-other-header{
    margin: 0 16px;
    border-radius: 20px;
}

.navbar-sticky.hidden {
    opacity: 0;
    transform: translateY(-20px); /* slide in effect */
}
.navbar-absolute a.nav-link,
.navbar-absolute i {
    color: black;
}

/* Default (transparent navbar) */
.navbar-absolute .user-toggle .user-name,
.navbar-absolute .user-toggle::after {  
    color: #000;
}

.navbar-sticky .user-toggle .user-name,
.navbar-sticky .user-toggle::after {
    color: #000; 
}


/* ----------------------------------------------- */
/* Hero Banner Style */
.hero-header-classic{
    padding: 0;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.hero-header-classic video {
    object-fit: cover;
    z-index: 0;
}
.bfo-hero-banner-title{
    font-size: 52px !important;
    line-height: 65px;
}
.bfo-custom-banner .text-span{
    background-size: 35%;
}
/* .hero-header-classic::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 0;
} */

/* Rotating Text Animation */
.rotatingText-adjective {
    display: inline-block;
    opacity: 0;
    position: absolute;
    animation: rotate-text 6s linear infinite;
}

.rotatingText-adjective:nth-of-type(1) {
    animation-delay: 0s;
}
.rotatingText-adjective:nth-of-type(2) {
    animation-delay: 2s;
}
.rotatingText-adjective:nth-of-type(3) {
    animation-delay: 4s;
}
.bfo-custom-banner .text-span{
    background-position: 0% 100%;
}

@keyframes rotate-text {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    10%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    40% {
        opacity: 0;
        transform: translateY(-25px);
    }
    100% {
        opacity: 0;
    }
}


/* ----------------------------------------------- */
/* Service Categories Carousel */
.company-logo {
    filter: grayscale(100%); /* Makes the logo grayscale (gray) */
    transition: filter 0.3s ease-in-out; /* Smooth transition on hover */
    height: auto !important;
}
.company-logo:hover {
    filter: none; /* Restores the original color */
}
.bg-custom{
    background-color: #4d4d4d !important;
}
 /* Service Carousel  */
 .region-card-image::after{
    content: '';
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0));
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ----------------------------------------------- */
/* Why choose us section */
.home-why-choose-us .home-about-image {
    height: 480px;
}


/* ----------------------------------------------- */
/* How's it work section */
.number-wrap.second {
    margin-top: 20px;
}
.number-wrap.third {
    margin-top: 35px;
}
.bfo-how-it-work .col-md-2 {
    width: 20%;
}


/* ----------------------------------------------- */
/* partner Form Page */
/* ----------------------------------------------- */
.bfo-partner-section{
    min-height: 60vh;
    margin-top: 16px;
}
.working-day-btn{
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

/* Form validation styles for Partner form */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
}
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0;
    padding: 1em;
    border-radius: 0.375rem;
}
.working-days-display {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge {
    font-size: 0.875rem;
    padding: 0.4em 0.6em;
    border-radius: 12px;
    display: inline-block;
}
.remove-day {
    border: none;
    background: transparent;
    cursor: pointer !important;
    padding: 1px 5px !important;
    color: #dc3545 !important;
    background-color: #fff !important;
}
.remove-day:hover {
    color: #dc3545;
}
.form-check-input {
    border: 1px solid #dee2e6;
}

.wpcf7-list-item {
    margin: 0;
}
.wpcf7-list-item-label {
    display: none;
}
.screen-reader-response {
    display: none;
}

/* ----------------------------------------------- */
/* Contact page */
/* ----------------------------------------------- */
.submit-btn {
    position: relative;
    overflow: hidden;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
}

.address-card-info {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    background-color: rgb(0 0 0 / 40%);
}

/* ----------------------------------------------- */
/* Custom CSS for Contact Form 7 styling */
/* ----------------------------------------------- */
.wpcf7-form {
    margin: 0;
    padding: 0;
}

.wpcf7-form label {
    width: 100%;
}
.wpcf7-form .form-control,
.wpcf7-form .form-select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.wpcf7-form .working-days-wrapper {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 10px;
}
.wpcf7-form .working-days-wrapper .wpcf7-list-item {
    display: block;
    margin: 5px 0;
}
.card-icon {
    width: 40px;
    height: 40px;
}

.wpcf7-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wpcf7-submit:after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    margin-left: 10px;
    font-size: 14px;
}

/* ----------------------------------------------- */
/* Book Service Form */
/* ----------------------------------------------- */
.form-check {
    margin-bottom: 10px; /* Add spacing between checkboxes */
}
.form-check-label {
    margin-left: 8px; /* Add spacing between checkbox and label */
}
.form-check-group {
    margin-top: 10px; /* Add spacing at the top of the checkbox group */
}
#customServiceSection .form-check-label{
    position: static !important;
}
.book-service-form .wpcf7-form label {
    width: auto;
}
.w-22px {
    width: 22px;
  }
.wpcf7-validates-as-date{
    cursor: pointer;
}

/* ----------------------------------------------- */
/* Emergency Popup Form */
/* ----------------------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto; /* Allow scroll if popup too tall */
    padding: 20px; /* Optional padding for mobile */
}
/* Popup Box */
.popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    max-width: 900px;    /* Limit max width */
    width: 100%;         /* Full width up to max */
    max-height: 90vh;    /* Limit max height */
    overflow-y: auto;    /* Scroll popup if content overflows */
}
/* Grid Layout */
.popup-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-height: 80vh;
    overflow: hidden; /* Prevent full popup from scrolling */
}
/* Rest unchanged */
.popup-form {
    flex: 1;
    overflow-y: auto;
    max-height: 80vh;
    padding-right: 10px;
}
.popup-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    height: auto;
}
.popup-image img {
    max-width: 100%;
    border-radius: 10px;
}
/* Close Button */
.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
/* Hide when empty */
.wpcf7-response-output:empty {
    display: none;
    margin: 0;
    padding: 0;
}
/* Hide when empty */
#wpcf7-f34-o1 .wpcf7-response-output:empty {
    display: none;
    margin: 0;
    padding: 0;
}
/* Optional: Transition for better UX */
#wpcf7-f34-o1 .wpcf7-response-output {
    margin-top: 15px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: all 0.3s ease;
}
/* Remove screen reader default */
#wpcf7-f34-o1 .screen-reader-response {
    display: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .popup-grid {
        flex-direction: column;
    }
}



/*  */
.carousel-container {
            overflow: hidden;
            position: relative;
            width: 100%;
        }

        .carousel-container::before,
        .carousel-container::after {
            content: '';
            position: absolute;
            top: 0;
            width: 100px;
            height: 100%;
            z-index: 10;
            pointer-events: none;
        }

        .carousel-container::before {
            left: 0;
            background: linear-gradient(to right, #ffffff 0%, rgba(248, 249, 250, 0) 100%);
        }

        .carousel-container::after {
            right: 0;
            background: linear-gradient(to left, #ffffff 0%, rgba(248, 249, 250, 0) 100%);
        }

        .carousel-row {
            display: flex;
            width: calc(200% + 20px);
            margin-bottom: 3rem;
        }

        .carousel-track {
            display: flex;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
            gap: 1rem;
            width: fit-content;
        }

        .forward {
            animation: scrollForward 20s linear infinite;
        }

        .backward {
            animation: scrollBackward 20s linear infinite;
            animation-delay: -10s;
        }

        .logo-item {
            flex-shrink: 0;
            width: 200px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .logo-item:hover {
            transform: translateY(-5px);
        }

        .logo-item img {
            object-fit: contain;
        }

        @keyframes scrollForward {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-50%));
            }
        }

        @keyframes scrollBackward {
            0% {
                transform: translateX(calc(-50%));
            }
            100% {
                transform: translateX(0);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .logo-item {
                width: 100px;
                height: 70px;
            }
            
            .logo-item img {
                max-width: 70px;
                max-height: 40px;
            }
        }

.home-about-image {
    height: 450px;
}

.nav-pills .nav-link { border-radius: 999px; }
.nav-pills .nav-link.active { background:#e81e27; }


/* Quick Booking Style */
.booking {
    position: relative;
    left: 3rem;
    top: 3rem;
    scale: 1.15;
}

.time-slot {
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
}

.time-slot:hover {
    background: #f0f0f0;
}

.time-slot.active {
    border: 2px solid #ff3b30 !important;
    background: #ffeceb;
}

.fade-box {
    transition: opacity .4s ease, transform .4s ease;
}
.time-btn.active {
    background: #ea1e27;
    color: white;
}
#popupBox {
    position: fixed; 
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 9999;
}

.styled-date {
    background: #fff url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>') no-repeat right 18px center;
    background-size: 20px;
    cursor: pointer;
    border: 1px solid #dcdcdc;
}

.styled-date:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,.2);
}

.bfo-date-wrapper {
    position: relative;
    max-width: 100%;
}

.bfo-date-display {
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.bfo-date-display:hover {
    background-color: #f9fafb;
}

.bfo-date-display:focus,
.bfo-date-display.bfo-open {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,.2);
}

.bfo-date-icon {
    font-size: 18px;
    opacity: .7;
}

.bfo-calendar {
    background:#ffffff;
    border:1px solid #e5e7eb;
    padding:16px;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    max-width:360px;
    z-index:20;
    opacity:0;
    pointer-events:none;
    transform:translateY(6px);
    transition:opacity .18s ease-out, transform .18s ease-out;
}

.bfo-calendar.bfo-show {
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
}

.bfo-cal-weekdays,
.bfo-cal-days {
    grid-template-columns: repeat(7, 1fr);
    text-align:center;
}

.bfo-cal-weekdays span {
    font-size:12px;
    color:#9ca3af;
    padding:4px 0;
}

.bfo-cal-day {
    font-size:14px;
    padding:7px 0 !important;
    margin:5px;
    border-radius:999px;
    cursor:pointer;
    border:1px solid;
    transition:background-color .15s ease, color .15s ease, border-color .15s ease;
    color: #ea1e27;
    text-decoration: none;
}

.bfo-cal-day.empty {
    cursor: not-allowed;
    border: none;
}

.bfo-cal-day.disabled {
    color:#d1d5db;
    cursor:not-allowed;
}

.bfo-cal-day:not(.empty):not(.disabled):hover {
    background:#eff6ff;
    border-color:#dbeafe;
}

.bfo-cal-day.selected {
    background:#0d6efd;
    color:#ffffff;
    border-color:#0d6efd;
}

/* Popup overlay */
.bfo-popup-overlay {
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.bfo-popup-card {
    background:#ffffff;
    border-radius:20px;
    padding:26px 24px 20px;
    box-shadow:0 22px 45px rgba(15,23,42,0.25);
    max-width:360px;
    width:90%;
}


.bfo-page-center {
  min-height: 50vh;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 5rem;           /* safety for small screens */
}

/* Keep wizard from becoming too wide */
#bfoWizardWrap {
  width: 100%;
}
#toast-container{
    display: none !important;
}


.bfo-table-wrap {
    overflow-x: auto;
    max-width: 100%;
}

.bfo-bookings-table {
    min-width: 1300px;
    border-collapse: separate;
    border-spacing: 0;
}

.bfo-bookings-table th {
    position: sticky;
    top: 0;
    background: #f6f7f7;
    z-index: 2;
    white-space: nowrap;
}

.bfo-bookings-table td {
    vertical-align: top;
    white-space: nowrap;
}

/* Inputs clean look */
.bfo-bookings-table input,
.bfo-bookings-table select {
    width: 100%;
    min-width: 140px;
    margin-bottom: 4px;
}

/* Assign column compact */
.bfo-assign-col {
    min-width: 220px;
}

/* user Dashboard */
.bfo-mechanic-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    gap: 12px;
    width: 75%;
}
.bfo-mechanic-info {
    width: 100%;
}

.bfo-mechanic-info .label {
    font-size: 14px;
    color: #6b7280;
}

.bfo-mechanic-info .name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.bfo-call-btn {
    white-space: nowrap;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .bfo-mechanic-card {
        flex-direction: column;
        align-items: stretch;
    }

    .bfo-call-btn {
        width: 100%;
        text-align: center;
    }
}
tr.updated {
  background: #ecfdf5 !important;
  transition: background 0.6s;
}
.bfo-sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 3;
    border-right: 1px solid #e5e7eb;
}
.bfo-fade {
  transition: all 0.4s ease;
}

.bfo-hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.bfo-visible {
  opacity: 1;
  height: auto;
}
.bfo-active-booking.bfo-completed {
  background: #e8f7ec !important;
  border-left: 6px solid #28a745;
}

.sidebar-body {
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* #bfoActiveBookingsWrap {
  min-height: 120px;
} */

/* Customewr dashboard */
.bfo-phone-no:hover{
    color: #fff;
    background-color: #ea1e27 !important;
}
.category-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.category-list thead th {
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.category-list tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.category-list tbody tr:last-child {
    border-bottom: none;
}

.category-list th,
.category-list td {
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    vertical-align: middle;
}

.card-header {
    padding: 20px;
    margin: 0;
}
.dataTables_length{
    display: none;
}

.modal-title {
    position: relative;
}