/*
	Custom CSS
	Please make sure your CSS rules are 
	more particular / have higher priority
	then other page styles
*/
 #events h3   {
	/* add your css rule here */
}


 #events p.duration, #events div.duration   {
	/* add your css rule here */
}


 #events p.description, #events div.description   {
	/* add your css rule here */
}


 #events .selectedEvent   {
	/* add your css rule here */
}


 #events input.reserve_time_btn   {
	/* add your css rule here */
}


 #events input.select_another_btn   {
	/* add your css rule here */
}


 #eventForm #start_date-block-container h3, #eventForm #timeline-container h3   {
	/* add your css rule here */
}


 #eventForm #save_button   {
	/* add your css rule here */
}


 div.ui-widget-content   {
	/* add your css rule here */
}


 div.ui-widget-header   {
	/* add your css rule here */
}


 #timeline-container table.timeline   {
	/* add your css rule here */
}


 .timeline td.not_worked_time   {
	/* add your css rule here */
}


 .timeline td.free_time   {
	/* add your css rule here */
}


 .timeline td.selected_time   {
	/* add your css rule here */
}


 .timeline td.reserved_time   {
	/* add your css rule here */
}


 div#loading   {
	/* add your css rule here */
}


 #start_date-block-container .zend_form dt, start_date-block-container .zend_form dt b, start_date-block-container .zend_form dd label   {
	/* add your css rule here */
}


/* ==========================================
   OAK THERAPY — GROUPED SERVICE CATEGORIES
   33 categories | 5 visual groups
   ========================================== */

/* MAIN CATEGORY GRID */
#sb_category_step_container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
    max-width: 1120px !important;
    width: 100% !important;
    margin: 15px auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

/* Allow category cards and headers to occupy
   separate cells in the parent grid */
#sb_category_step_container > .category-item {
    display: contents !important;
}

/* FULL-WIDTH GROUP HEADER STYLE */
#sb_category_step_container
> .category-item::before {
    grid-column: 1 / -1 !important;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    margin: 16px 0 2px;
    background: #EAF1F5;
    color: #0B3052;
    border-left: 5px solid #0B3052;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

/* GROUP 1 — IDs 6–10 */
#sb_category_step_container
> .category-item:has(
  a[href^="#book/category/6/"]
)::before {
    content: "PSYCHOLOGICAL ASSESSMENT";
}

/* GROUP 2 — IDs 11–19 */
#sb_category_step_container
> .category-item:has(
  a[href^="#book/category/11/"]
)::before {
    content: "PSYCHOTHERAPY & COUNSELLING";
}

/* GROUP 3 — IDs 20–27 */
#sb_category_step_container
> .category-item:has(
  a[href^="#book/category/20/"]
)::before {
    content: "NUTRITION & DIETITIAN";
}

/* GROUP 4 — IDs 28–32 */
#sb_category_step_container
> .category-item:has(
  a[href^="#book/category/28/"]
)::before {
    content: "SPEECH THERAPY–PATHOLOGY";
}

/* GROUP 5 — IDs 33–38 */
#sb_category_step_container
> .category-item:has(
  a[href^="#book/category/33/"]
)::before {
    content: "OCCUPATIONAL THERAPY";
}

/* COMPACT, WIDE CATEGORY CARDS */
#sb_category_step_container
.category-item > .tab {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #DCE5EB !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(11,48,82,0.06);
    overflow: hidden;
    box-sizing: border-box !important;
    transition: border-color .2s, box-shadow .2s;
}

#sb_category_step_container
.category-item > .tab:hover {
    border-color: #7FA7B9 !important;
    box-shadow: 0 5px 14px rgba(11,48,82,0.12);
}

/* HIDE LARGE CATEGORY ICONS */
#sb_category_step_container
.category-item .excerpt-info > .preloader {
    display: none !important;
}

/* REMOVE DEFAULT CARD HEIGHT */
#sb_category_step_container
.category-item .excerpt-info {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* HORIZONTAL TITLE + BUTTON */
#sb_category_step_container
.category-item .excerpt-info > .tab-pd {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* CATEGORY TITLE */
#sb_category_step_container
.category-item .excerpt-info .content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sb_category_step_container
.category-item .cap.short {
    color: #0B3052 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* SELECT BUTTON */
#sb_category_step_container
.category-item .btn-bar {
    position: static !important;
    float: none !important;
    width: 100px !important;
    flex: 0 0 100px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sb_category_step_container
.category-item .btn.select {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0B3052 !important;
    border-radius: 6px !important;
    overflow: hidden;
}

#sb_category_step_container
.category-item .btn.select a {
    display: block !important;
    padding: 10px 12px !important;
    color: #FFFFFF !important;
    background: #0B3052 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
}

#sb_category_step_container
.category-item .btn.select a:hover {
    background: #17658A !important;
}

#sb_category_step_container
.category-item a:focus-visible {
    outline: 3px solid #17658A !important;
    outline-offset: 2px;
}

/* TOP BOOKING NAVIGATION */
#steps-nav {
    background: #F3F7F9 !important;
    border-bottom: 1px solid #DFE8EE;
}

#steps-nav .step_info_item .title-small {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* TABLET AND MOBILE */
@media (max-width: 700px) {
    #sb_category_step_container {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 8px !important;
    }

    #sb_category_step_container
    > .category-item::before {
        padding: 12px 14px;
        font-size: 14px;
    }

    #sb_category_step_container
    .category-item .excerpt-info > .tab-pd {
        padding: 10px 12px !important;
    }

    #sb_category_step_container
    .category-item .btn-bar {
        width: 88px !important;
        flex-basis: 88px !important;
    }
}


/* ========================================
   OAK THERAPY — LIVE HEADING FIX
   Uses confirmed 33-category order
   ======================================== */

/* Common section header styling */
#sb_category_step_container
> .category-item:nth-child(1)::before,
#sb_category_step_container
> .category-item:nth-child(6)::before,
#sb_category_step_container
> .category-item:nth-child(15)::before,
#sb_category_step_container
> .category-item:nth-child(23)::before,
#sb_category_step_container
> .category-item:nth-child(28)::before {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #EAF1F5 !important;
    border-left: 5px solid #0B3052 !important;
    border-radius: 7px !important;
    padding: 14px 18px !important;
    margin: 20px 0 4px !important;
    color: #0B3052 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

/* 1 — Psychological Assessment */
#sb_category_step_container
> .category-item:nth-child(1)::before {
    content: "PSYCHOLOGICAL ASSESSMENT" !important;
}

/* 6 — Psychotherapy & Counselling */
#sb_category_step_container
> .category-item:nth-child(6)::before {
    content: "PSYCHOTHERAPY & COUNSELLING" !important;
}

/* 15 — Nutrition & Dietitian */
#sb_category_step_container
> .category-item:nth-child(15)::before {
    content: "NUTRITION & DIETITIAN" !important;
}

/* 23 — Speech Therapy */
#sb_category_step_container
> .category-item:nth-child(23)::before {
    content: "SPEECH THERAPY–PATHOLOGY" !important;
}

/* 28 — Occupational Therapy */
#sb_category_step_container
> .category-item:nth-child(28)::before {
    content: "OCCUPATIONAL THERAPY" !important;
}


/* =========================================
   OAK THERAPY — HIDE PROVIDER PROFILE CARD
   ========================================= */

#sb_booking_content .provider-item.item:has(
  > .tab.tab-col.tab-with-popup
  > .excerpt-info
  > .read-more[data-target="#provider"]
) {
    display: none !important;
}

