/* ================= PAGE ================= */

.booking-page {
    padding: 38px 0;
    background: #f2f2f2;
    min-height: calc(100vh - 200px);
    /* Adjust based on navbar/footer height */
}

.booking-page input[type="checkbox"] {
    width: 20px;
}

.booking-page h4 {
    margin-bottom: 21px;
    font-weight: 600;
    font-size: 24px;
    color: #111827;
}

/* Ensure the row distributes columns evenly */
/* .row.mb-xl-0 {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
} */

/* Force standard padding so gaps are identical */
/* .col-xl-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
} */

/* Ensure icons and buttons start exactly from the left of their column */
.service-icons,
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    /* Uniform internal gap between buttons */
    justify-content: flex-start;
    /* Aligns items to the left of the column */
    width: 100%;
}

/* Remove any old grid logic that might be overriding Bootstrap */
@media (min-width: 1200px) {
    .top-selection-row_ {
        display: flex !important;
        grid-template-columns: none !important;
    }
}

/* ================= TOP SELECTION ROW ================= */

/* .booking-page .top-selection-row { */
/* display: grid; */
/* grid-template-columns: 1.3fr 1.5fr 1.5fr; */
/* gap: 48px; */
/* align-items: flex-start; */
/* margin-bottom: 10px; */
/* } */

/* .booking-page .top-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
} */

/* ================= ULTRA-NARROW DEVICE FIX (< 354px) ================= */
@media (max-width: 354px) {
    /* .booking-page .top-selection-row_ { */
    /* display: block !important; */
    /* Forces vertical stacking */
    /* } */

    /* .booking-page .top-block { */
    /* display: block !important; */
    /* width: 100% !important; */
    /* margin-bottom: 20px !important; */
    /* Space between sections */
    /* } */

    .booking-page .block-title {
        display: block !important;
        /* Ensures label is on its own line */
        margin-bottom: 10px !important;
        font-size: 14px !important;
        /* Slightly smaller for tiny screens */
    }

    /* Adjust the radio group buttons to wrap neatly */
    .option-radio-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* ================= HIDE RADIO BUTTONS ================= */

.booking-page input[type="radio"] {
    display: none;
}

/* ================= TEXT & LABELS ================= */

.booking-page .block-title,
.booking-page .booking-form label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
    padding-top: 6px;
}

/* ================= SERVICE ICONS ================= */
.service-card .p4-btn {
    background-color: var(--theme-orange);
    ;
    border: none;
    border-radius: 6px;
    height: 48px;
    /* Remove the fixed 100px width to let w-100 work */
    width: 100%;

    /* Centering logic */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    /* Clear default padding that might push text */
}

#applyPromoBtn {
    background-color: rgba(14, 60, 97, 1) !important;
    /* Your specific color */
    color: #ffffff !important;
    /* Text color */
    transition: all 0.3s ease;
}

.custom-orange-btn {
    background-color: var(--theme-orange) !important;
    /* Your specific color */
    width: 160px;
    height: 40px;
    color: #ffffff !important;
    /* Text color */
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Ensure no padding or floats are pushing the text to the side */
    padding: 0 15px !important;
}

.booking-page .service-icons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    /* Ensures the row starts from the left */
}

.service-card .p4-btn {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.service-card .p4-btn:hover {
    background-color: var(--theme-orange);
    ;
    /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 110, 163, 0.3);
}

.booking-page .service {
    min-width: 48px;
    height: 44px;
    border: 1.5px solid var(--booking-page-unselection-border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #000;
}

.booking-page .service span {
    margin-top: 4px;
}

.booking-page .service.active {
    background: var(--booking-page-service-active-selection);
    color: #fff;
    border-color: var(--booking-page-service-active-border);

}

/* .booking-page .service.active img {
    filter: brightness(0) invert(1);
} */
.booking-page .service.active img {
    /* 1. Reset the image to black */
    filter: brightness(0);

    /* 2. Apply the specific transformation to reach rgba(66, 130, 181, 1) */
    filter: invert(53%) sepia(11%) saturate(2251%) hue-rotate(166deg) brightness(92%) contrast(88%) !important;
}

/* ================= OPTIONS (COMMON CARDS) ================= */

.booking-page .option-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.booking-page .opt {
    min-width: 48px;
    padding: 10px 10px;
    /* width: 100%; */
    height: 44px;
    border: 1.5px solid var(--booking-page-unselection-border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: #000;
}

.booking-page .opt.active {
    background: var(--booking-page-service-active-selection);
    color: var(--booking-page-service-active-border);
    border-color: var(--booking-page-service-active-border);
}

/* ================= LAYOUT ================= */

.booking-page .booking-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ================= CARD ================= */

.booking-page .booking-card {
    background: #fff;
    padding: 20px;
    /* border-radius: 6px; */
    /* border-radius: 12px; */
    /* Slightly more rounded for a modern feel */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */

    /* Premium Multi-layered Shadow */
    box-shadow: 0 8px 32px 0px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* min-height: 612px; */
}

/* Subtle lift effect when the user interacts with the card */
.booking-page .booking-card:hover,
.booking-page .summary-card:hover
 {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* ================= FORM STRUCTURE ================= */

.booking-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ================= DATE SELECTOR ================= */

.booking-page .date-selector {
    display: flex;
    align-items: center;
    gap: 32px;
}

.booking-page .date-columns {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.booking-page .date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 48px;
}

.booking-page .date-col .day {
    font-size: 13px;
    font-weight: 500;
}

/* ================= ARROWS ================= */

.booking-page .arrow {
    font-size: 26px;
    cursor: pointer;
    user-select: none;
    padding: 0 4px;
}

.booking-page .arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ================= DATE & TIME ROW =================in a single row  */
/* Target the specific container for the days */
#dateColumns {
    display: flex;
    /* aligns items in a row */
    flex-direction: row;
    /* ensures horizontal flow */
    overflow-x: auto;
    /* allows scrolling if 14 days don't fit */
    flex-wrap: nowrap;
    /* prevents them from dropping to a second line */
    gap: 10px;
    /* space between date boxes */
    padding-bottom: 5px;
    /* space for the scrollbar */

    /* Optional: Smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ensure the individual date columns don't stretch weirdly */
.date-col {
    flex: 0 0 auto;
    /* Keeps them at their natural width, don't shrink */
    width: 60px;
    /* Set a fixed width for uniformity */
    min-width: 60px;
}

/* Custom Scrollbar Styling (Optional - for a cleaner look) */
#dateColumns::-webkit-scrollbar {
    height: 6px;
}

#dateColumns::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#dateColumns::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#dateColumns::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ================= DATE & TIME ROW CONFIGURATION ================= */

/* 1. DEFAULT FOR MOBILE & TABLETS (Double Line / Grid) 
      Targets everything up to 1199px (iPad Mini, Air, Surface Pro, etc.) */
@media (max-width: 1199.98px) {
    #dateColumns {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        /* Forces 2 rows of 7 */
        gap: 10px 8px !important;
        width: 100% !important;
        overflow-x: hidden !important;
        /* Disable scrolling on tabs */
        padding-bottom: 0;
    }

    .date-col {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .booking-page .date-col .opt {
        width: 100% !important;
        max-width: 42px;
        /* Keeps them neat on smaller tab screens */
        height: 42px;
        font-size: 13px;
        margin: 0 auto;
    }
    .service-icons, .option-radio-group {
        justify-content: flex-start !important; /* Ensures items start from the left */
        gap: 15px !important; /* Adds consistent space between the buttons */
    }
    
    .block-title {
        margin-top: 10px; /* Optional: adds a little space above headers when stacked */
    }
}

/* 2. DESKTOP ONLY (Single Line / Scroll) 
      Targets screens 1200px and larger */
@media (min-width: 1200px) {
    #dateColumns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 10px;
        padding-bottom: 5px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .date-col {
        flex: 0 0 60px !important;
        /* Your original desktop width */
        width: 60px !important;
        min-width: 60px !important;
    }

    /* Keep your custom scrollbar for desktop */
    #dateColumns::-webkit-scrollbar {
        height: 6px;
    }

    #dateColumns::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    #dateColumns::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}

.booking-page .date-time-row {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-direction: column;
}

.booking-page .date-time-row .form-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.booking-page .form-block label {
    margin-bottom: 10px;
}

/* ================= TIME ================= */

.booking-page .time-label {
    display: flex;
    justify-content: space-between;
}

.booking-page .see-all {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

/* ================= CHECKBOX ================= */

.booking-page .checkbox-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 12px;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.booking-page .checkbox-row small {
    font-size: 11px;
    color: #6b4080;
}

/* ================= BUTTONS ================= */

.booking-page .p4-btn {
    height: 40px;
    width: 160px;
    padding: 8px 36px;
    font-size: 14px;
    border-radius: 4px;
    background: var(--theme-orange);
    border: none;
    color: #fff;
}

.booking-page .p4-btn.full {
    width: 100%;
    margin-top: 10px;
}

.booking-page .btn-outline {
    border: 1px solid var(--theme-orange);
    background: transparent;
    color: var(--theme-orange);
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 4px;
}

/* booking.css */

/* This class hides content but keeps its physical space */
.invisible-section {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* Prevents users from accidentally clicking invisible buttons */
    transition: opacity 0.3s ease;
    /* Optional: makes it smooth */
}

/* This class restores it */
.visible-section {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ================= SUMMARY ================= */
.ordr-summary {
    margin: 0;
    color: #0E3C61;
    font-size: 20px;
}
/* ================= SUMMARY ROW ALIGNMENT (ONLY VALUE ROWS) ================= */

/* Target ONLY rows that actually have 2 spans (label + value) */
.summary-card .d-flex.justify-content-between:has(span + span) {
  align-items: flex-start;
  gap: 12px;
}

/* LEFT LABEL */
.summary-card .d-flex.justify-content-between:has(span + span) > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* RIGHT VALUE */
.summary-card .d-flex.justify-content-between:has(span + span) > span:last-child {
  flex: 0 0 130px;
  max-width: 130px;
  text-align: right;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

/* ================= HEADER SAFETY ================= */

.summary-card .ordr-summary {
  white-space: nowrap;   /* keep "Order Summary" on one line */
}

/* Force one consistent value column width */
.summary-card #sum-service-amount,
.summary-card #sum-materials-amount,
.summary-card #sum-subtotal,
.summary-card #sum-discount,
.summary-card #sum-after-discount,
.summary-card #sum-vat,
.summary-card #sum-grand-total {
  width: 120px !important;  /* pick 100–140px */
}

.booking-page .select2-container {
    box-sizing: border-box !important;
    display: inline-block !important;
    margin: 0 !important;
    position: relative !important;
    vertical-align: middle !important;
    margin-top: -9px !important;
}

.booking-page .select2-container--default .select2-selection--single {
    height: 33.5px !important;
    border-color: #e2e8f0 !important;
    opacity: 0.7 !important;    display: flex !important;
    align-items: center !important;
}

/* --- ADD THIS PART TO FIX THE CLOSE BUTTON --- */
.booking-page .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    /* This moves it to the right, next to the dropdown arrow */
    right: 30px !important;
    left: auto !important;
    font-weight: 100;
    /* Center it vertically inside the 38px box */
    height: 35px !important;
    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* Ensure the text doesn't overlap the clear button on the right */
.booking-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 45px !important;
}

.summary-card .discount {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Add to your styles or push main-css */
#topBackButton {
    transition: transform 0.2s ease;
    cursor: pointer;
}

#topBackButton:hover {
    transform: translateX(-3px);
    /* Subtle nudge left on hover */
}

#topBackButton svg path {
    stroke: var(--theme-orange, #0E3C61);
    /* Use your theme color if desired */
}

/* ================= TIME MODAL (CLEAN & ISOLATED) ================= */

/* IMPORTANT:
   Modal grid uses its OWN class to avoid flex conflict
*/

.booking-page .time-modal-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Time boxes (cards) */
.booking-page .time-modal-grid .opt {
    height: 44px;
    border: 1.5px solid #1f2937;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    color: #000000;
}

.booking-page .time-modal-grid .opt:hover {
    border-color: #0b3a5e;
}

/* Selected (blue) */
.booking-page .time-modal-grid .opt.active {
    background: var(--theme-orange);
    color: #ffffff;
    border-color: var(--theme-orange)
}

.select2-container .select2-selection--single {
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.mobile-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-total .summary-title {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-radio-group b {
    display: block;
    text-align: left;
    margin-bottom: 15px;
    /* Adds space between text and icon */
    font-size: 14px;
    font-weight: 600;
}

.service-card .p4-btn .btn:hover {
    --bs-btn-active-bg: var(--theme-orange);
}

.info-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--theme-orange);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.info-btn:hover {
    background: var(--theme-orange);
    ;
    color: #fff;
}

.info-btn:active {
    transform: scale(0.95);
}

.info-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Tiny non-clickable icon for mobile help text */
.info-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f2ff;
    color: var(--theme-orange);
    ;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 4px;
    vertical-align: middle;
}

/* Ensure the locked state also dulls this text */
.fields-locked .form-text {
    opacity: 0.7;
    color: #94a3b8 !important;
}

.date-col .opt.disabled-date {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    text-decoration: line-through;
    pointer-events: none !important;
    /* Disables all clicks */
    cursor: not-allowed !important;
    border-color: #e5e7eb !important;
    opacity: 0.7;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    /* .booking-page .top-selection-row {
        grid-template-columns: 1fr;
        gap: 18px;
    } */

    .booking-page .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-page .service-icons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Forces icons into 3 equal columns */
        gap: 10px;
        width: 100%;
    }

    .booking-page .service {
        width: 100%;
        /* Makes them fill the grid column */
        height: 70px;
        /* Taller for better "dominance" */
    }
}

@media (min-width: 1200px) {

    /* The container must be a flex row */
    /* .booking-page .top-selection-row { */
    /* display: flex; */
    /* flex-wrap: nowrap; */
    /* Forces them to stay in one line */
    /* justify-content: space-between; */
    /* gap: 20px; */
    /* Adjust this gap to your liking */
    /* width: 100%; */
    /* } */

    /* .booking-page .top-block { */
    /* This calculates 1/3 width minus the gap spacing */
    /* flex: 1; */
    /* min-width: 0; */
    /* Prevents content from pushing the width wider than the 1/3 */
    /* } */
}

@media (max-width: 768px) {
    .booking-page .date-time-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-page .time-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= FORCE FIX: TIME POPUP UI ================= */

/* Override flex from .option-group */
.booking-page .modal .time-modal-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Time boxes */
.booking-page .modal .time-modal-grid .opt {
    height: 44px;
    border: 1.5px solid #1f2937;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    white-space: nowrap;
}

/* Active (selected) */
.booking-page .modal .time-modal-grid .opt.active {
    background: var(--theme-orange);
    ;
    color: #ffffff;
    border-color: var(--theme-orange);
    ;
}

/* Hover */
.booking-page .modal .time-modal-grid .opt:hover {
    border-color: var(--theme-orange);
    ;
}

.option-group#timeSlots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    overflow: hidden;
    /* Large max-height for expanded state to allow smooth transition */
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
    align-items: flex-start;
}

/* Collapsed state: roughly 2 rows of slots (44px height + 12px gap) */
.option-group#timeSlots.collapsed {
    max-height: 105px !important;
}

/* Toggle Button Styling */
.toggle-time-slots {
    display: none;
    /* Hidden by default, JS will show if needed */
    background: none;
    border: none;
    color: var(--theme-orange);
    ;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 0;
    cursor: pointer;
    text-decoration: underline;
    text-align: left;
}

.toggle-time-slots:hover {
    color: var(--theme-orange);
    ;
}

#allTimeSlots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#allTimeSlots span.opt {
    display: block;
    background: #9dd9e321;
    padding: 3px 10px;
    border: 1px solid var(--theme-orange);
    ;
    border-radius: 42px;
}

#allTimeSlots span.opt.active {
    background: var(--theme-blue);
    color: white;
}

#payNowBtn:disabled {
    display: block !important;
    background-color: #d1d5db !important;
    /* Light grey background */
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    /* Dull grey text */
    cursor: not-allowed;
    opacity: 1 !important;
    /* Prevents Bootstrap's 0.65 opacity */
}

.invalid-feedback {
    display: none;
}

.is-invalid+.invalid-feedback {
    display: block;
}

.otp-input {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* ================= CONSOLIDATED FORM & ADDRESS CSS ================= */

/* 1. Global Placeholder (Unlocked State) */
.form-control::placeholder {
    color: #94a3b8 !important;
    /* Balanced Medium Gray */
    opacity: 1;
}

/* 2. THE LOCKED STATE FIX (Uniform across all elements) */
.fields-locked {
    /* Remove general opacity to prevent 'double-fading' */
    pointer-events: none;
    user-select: none;
}

/* Force ALL elements inside a locked container to look the same */
.fields-locked input,
.fields-locked select,
.fields-locked textarea,
.fields-locked .select2-selection,
.fields-locked .info-btn {
    background-color: #f8fafc !important;
    /* Very light subtle gray background */
    color: #94a3b8 !important;
    /* Muted text color */
    border-color: #e2e8f0 !important;
    opacity: 0.7 !important;
    /* One single opacity level for everything */
}

/* Forces labels to look dull/muted when the section is locked */
.fields-locked label,
.fields-locked label span,
.fields-locked .info-btn {
    color: #94a3b8 !important;
    /* Matches your muted grey color */
    opacity: 0.7 !important;
    /* Matches the dullness of your inputs */
    transition: all 0.3s ease;
}

/* Optional: Ensures the red asterisk also fades when locked */
.fields-locked label .text-danger {
    color: #94a3b8 !important;
    /* Turns the red star grey while locked */
}

/* Keep placeholders readable but muted when locked */
.fields-locked .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* 3. Community / Area Specific Fix (Ensures Select looks like Input) */
.fields-locked .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #94a3b8 !important;
}

/* 4. Verified Button Success State */
.btn-verified-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* ================= CONSOLIDATED RESPONSIVE (ONE BLOCK) ================= */

@media (max-width: 991.98px) {
    .booking-page {
        padding-bottom: 120px !important;
        background: #f2f2f2;
        margin-bottom: 0 !important;
    }

    .booking-page .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }

    .booking-layout {
        display: block !important;
    }

    /* .booking-page .booking-form {
        padding: 10px 0 !important;
    } */

    /* Summary Bar Control */
    .summary-column {
        display: none !important;
    }

    .mobile-summary-bar,
    .mobile-summary-panel {
        display: flex !important;
    }

    /* Service Icons Grid */
    .booking-page .service-icons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .booking-page .service {
        width: 100%;
        height: 70px;
    }
}

/* Fix for screens smaller than 370px (iPhone SE, etc.) */
/* @media screen and (max-width: 370px) {

} */

/* Mobile */
@media (max-width: 576px) {
    .booking-page .date-selector {
        width: 100%;
        overflow: visible;
        /* Disable the horizontal scroll */
    }

    .booking-page .date-columns {
        display: grid !important;
        /* Back to Grid */
        /* This creates 7 equal columns that shrink to fit the screen */
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 8px;
        /* Reduced gap so 7 items fit on tiny screens */
        width: 100%;
    }

    .booking-page .date-col {
        min-width: 0;
        /* Allows the column to shrink below its content size */
        width: 100%;
    }

    .booking-page .modal .time-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-page .booking-form {
        padding: 12px;
    }

    .booking-page .opt {
        min-height: 35px;
        height: 100%;
        padding: 0 10px;
    }

    .booking-page .date-col .opt {
        /* Ensure the date circles are slightly smaller on mobile to prevent overlap */
        min-width: 32px;
        height: 38px;
        font-size: 12px;
        padding: 0;
    }

    .booking-page .checkbox-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }



    .booking-page .booking-layout {
        display: block;
    }

    .booking-page .date-time-row {
        margin-bottom: 24px;
    }
}

/* use this inside @media (max-width: 576px) { if you want to scroll the date's in one line */

/* .booking-page .date-selector {
        width: 100%;
        overflow-x: auto; /* Enable horizontal scroll */
/* -webkit-overflow-scrolling: touch; Smooth swiping on iOS */
/* padding-bottom: 8px; Space for a scrollbar if visible */
/* } */

/* .booking-page .date-columns { */
/* display: flex !important; Switch from Grid to Flex to allow overflow */
/* gap: 10px; Narrower gap to save space */
/* min-width: max-content; Ensures content doesn't wrap to next line */
/* } */

/* .booking-page .date-col { */
/* flex: 0 0 45px; Fixed width for each date block on tiny screens */
/* } */
/* 

/* Optional: If you want a grey background to fill the screen instead of white space */

/* ================= MOBILE FIXED SUMMARY & SLIDE-UP PANEL ================= */
@media (max-width: 991.98px) {

    /* 1. The Bottom Bar */
    /* .booking-page{
        padding-bottom: 140px;
    } */

    .mobile-summary-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid #eee;
        padding: 12px 20px 25px 20px;
        z-index: 1050;
        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-summary-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-total small {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #71717a;
        font-weight: 600;
        margin-bottom: -2px;
    }

    .mobile-total strong {
        font-size: 18px;
        color: #0b3a5e;
        font-weight: 700;
    }

    .mobile-actions {
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
    }

    /* 2. Toggle Button & Chevron */
    .toggle-summary {
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        background-color: #2563eb;
        /* Matching your theme blue */
        color: #ffffff;
    }

    .chevron-icon {
        width: 8px;
        height: 8px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(-45deg);
        /* Points Up */
        display: inline-block;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    /* Rotation state: We will add 'is-open' to the bar via JS */
    .mobile-summary-bar.is-open .chevron-icon {
        transform: rotate(135deg);
        /* Points Down */
    }

    /* 3. The Slide-up Panel */
    .mobile-summary-panel {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: #fff;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        padding-top: 12px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        z-index: 1060;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .mobile-summary-panel.active {
        bottom: 0;
    }

    /* Grab Handle at the top of the panel */
    .mobile-summary-panel::before {
        content: "";
        width: 40px;
        height: 5px;
        background: #e4e4e7;
        border-radius: 10px;
        display: block;
        margin: 0 auto 15px;
    }

    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px 15px;
        border-bottom: 1px solid #f4f4f5;
    }

    .panel-header h6 {
        margin: 0;
        font-weight: 700;
        color: var(--theme-orange);
    }

    .panel-body {
        padding: 20px;
    }

    .close-panel {
        background: #f4f4f5;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #71717a;
    }
}
.summary-card .summary-value{
  width: 120px;        
  text-align: right;  
  display: inline-block; 
  white-space: nowrap;
}
/* ================= SUMMARY RESPONSIVE CONTROL (FINAL) ================= */

/* DESKTOP & TABLET (>= 992px) */
@media (min-width: 992px) {

    .summary-column {
        display: block !important;
    }

    .mobile-summary-bar,
    .mobile-summary-panel {
        display: none !important;
    }
}

/* MOBILE (< 992px) */
@media (max-width: 991.98px) {

    .summary-column {
        display: none !important;
    }

    .mobile-summary-bar {
        display: block !important;
    }

    .mobile-summary-panel {
        display: block !important;
    }
}

/* ================= TABLET WIDTH FIX (992px – 1199px) ================= */
@media (min-width: 992px) and (max-width: 1199.98px) {

    .booking-layout {
        flex-direction: column;
    }

    .summary-column {
        display: block !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .summary-column .summary-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
}

/* Safe scoped fix: keep booking + summary side-by-side only in mid desktop widths */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .booking-page .booking-layout {
        flex-wrap: nowrap !important;
        align-items: flex-start;
    }

    .booking-page .booking-layout > .booking-form {
        flex: 0 0 calc(62% - 0.75rem) !important;
        max-width: calc(62% - 0.75rem);
        min-width: 0;
    }

    .booking-page .booking-layout > .summary-column {
        flex: 0 0 calc(38% - 0.75rem) !important;
        max-width: calc(38% - 0.75rem) !important;
        min-width: 0;
    }

    .booking-page .summary-column .summary-card {
        width: 100%;
    }

    .booking-page #dateColumns {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 10px 8px !important;
        width: 100% !important;
        overflow-x: hidden !important;
        padding-bottom: 0;
    }

    .booking-page .date-col {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .booking-page .date-col .opt {
        width: 100% !important;
        max-width: 42px;
        margin: 0 auto;
    }

    .booking-page #step-booking .row.mb-xl-0.mb-3.gy-4 > div:nth-child(1),
    .booking-page #step-booking .row.mb-xl-0.mb-3.gy-4 > div:nth-child(2) {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .booking-page #step-booking .row.mb-xl-0.mb-3.gy-4 > div:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* This makes the Pay Now card look gray and unclickable */
.summary-column.is-disabled {
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
    cursor: not-allowed;
}


/* ================= TABLET & MOBILE PADDING UNIFICATION ================= */
@media (max-width: 991.98px) {

    /* 1. Reduce container padding so it looks like < 575px */
    .booking-page .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        /* Prevents the container from shrinking too much */
    }

    /* 2. Reduce the padding inside the white card */
    /* .booking-page .booking-card {
        padding: 15px !important; /* Smaller padding for more content space */
}

*/

/* 3. Ensure the form doesn't have its own extra padding */
.booking-page .booking-form {
    padding: 10px 0 !important;
}

/* 4. Fix row gaps that might look too wide on tablets */
/* .booking-page .top-selection-row_ {
    margin-left: -5px;
    margin-right: -5px;
} */

/* .booking-page .top-selection-row_>[class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
} */


/* Specific fix for the 575px to 991px range where Bootstrap containers jump in size */
@media (min-width: 576px) and (max-width: 991.98px) {
    .booking-page .booking-layout {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        /* Keep it stacked like mobile */
    }

    .booking-page {
        min-height: 0 !important;
        /* padding-bottom: 120px !important; */
        /* Keep space for your sticky AED bar */
    }

    .booking-page .booking-card {
        margin: 0 auto;
        width: 100%;
    }

    /* 2. Stop the content container from growing to fill empty space */
    /* .app-content {
        flex: none !important;
        display: block !important;
        height: auto !important;
    } */
}
