/* =========================================================
   CricNets / Legacy4 Sports — Clean Booking Page CSS
   ========================================================= */

/* 1. HIDE TOP HERO BANNER & DECORATIVE COVER PHOTOS */
#main-buttons,
section#main-buttons,
.item__picture-wrapper, 
.item__picture, 
.user-img, 
.paid-attr__picture,
.item-picture,
.header__logo-wrapper,
.main-banner,
.theme-banner {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background-image: none !important;
}

/* 2. AUTO-HEIGHT SIDEBAR CARD & COMPACT HEADING-ONLY PREVIEW */
.timeline-sidebar .service-item,
.timeline-sidebar .item,
.timeline-sidebar .item__tab {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.timeline-sidebar .service-item,
.timeline-sidebar .item {
    border: 1px solid #E5E3DC !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    padding: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.timeline-sidebar .title--h4,
.timeline-sidebar h4 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #1F2328 !important;
    margin-bottom: 8px !important;
}

/* Hide raw text paragraph on cards; keep only 'Read more' directly after heading */
.item__description.short {
    font-size: 0 !important;
    line-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
    color: transparent !important;
}

/* Styled 'Read more' link in CricNets Gold */
.item__read-more,
button.item__read-more,
a.read-more,
.read-more {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    position: static !important;
    margin-top: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #D4A64A !important;
    font-weight: 600 !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.item__read-more:hover {
    color: #B8892E !important;
}

.item__read-more:before {
    display: none !important;
}

/* Duration and price info bar */
.timeline-sidebar .item__info-bar {
    position: static !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid #EFEFEC !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Clean Pop-up Modal */
.item__popup .item__picture-wrapper,
.item__popup .item__picture {
    display: none !important;
}

.item__popup .modal-content {
    border-radius: 8px !important;
    border: 1px solid #E5E3DC !important;
    padding: 24px !important;
    color: #1F2328 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.item__popup h4.title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1F2328 !important;
    margin-bottom: 12px !important;
    padding-right: 32px !important;
}

.item__popup .item__description.full {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #1F2328 !important;
}

.item__popup .close-full-info {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: #1F2328 !important;
    cursor: pointer !important;
}

/* 3. BUTTONS: MAPLE RED #D71920 PILL SHAPE */
.sb-next,
.btn.next,
button.next,
.btn.custom,
.btn--action,
.sb-btn,
.select-btn,
a.btn,
button.btn,
input[type="submit"].btn {
    background-color: #D71920 !important;
    border-color: #D71920 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    padding: 10px 28px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.sb-next:hover,
.btn.next:hover,
button.next:hover {
    background-color: #BD151B !important;
    border-color: #BD151B !important;
}

/* 4. TIME SLOTS & SELECTION */
.timeline td.free_time,
.sb-time-slot.free,
.time-cell.free {
    border: 1px solid #D4A64A !important;
    color: #1F2328 !important;
    border-radius: 6px !important;
    background: #FFFFFF !important;
}

.timeline td.selected_time,
.sb-time-slot.selected,
.time-cell.selected {
    background-color: #D4A64A !important;
    color: #1F2328 !important;
    font-weight: 700 !important;
    border-color: #B8892E !important;
}

/* 5. ADD-ON CARDS & ACCENTS */
.item-container,
.paid-attr-item,
.one-line__item {
    border-radius: 8px !important;
    border: 1px solid #E5E3DC !important;
}
/* =========================================================
   MEMBERSHIP CARDS: CLEAN SPACING & NO TEXT OVERLAP
   ========================================================= */

/* Hide text paragraphs inside short preview so they don't push content down */
.item__description.short p {
    display: none !important;
}

.item__description.short {
    font-size: 0 !important;
    line-height: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 6px 0 10px 0 !important;
    padding: 0 !important;
}

/* Position 'Read more' directly under the plan heading */
.item__read-more,
button.item__read-more {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    color: #D4A64A !important;
    font-weight: 600 !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    margin: 0 !important;
}

/* Clean up membership card container and red pill button */
.page--membership .membership-item {
    border: 1px solid #E5E3DC !important;
    border-radius: 8px !important;
    padding: 20px !important;
    background: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.page--membership .btn--membership {
    background-color: #D71920 !important;
    border-color: #D71920 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
}

/* Hide liability waiver link and empty footer bar from all booking screens */
#footer .container-fluid,
#footer a[href*="terms-and-conditions"],
footer a[href*="terms-and-conditions"] {
    display: none !important;
}

#footer {
    padding: 0 !important;
    min-height: 0 !important;
    border: none !important;
}

/* CricNets SimplyBook Timeline Bar Contrast Fix */
.booking-info .step_info_item .title-small {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.booking-info .step_info_item .title-sub,
.booking-info .step_info_item.filled .title-sub,
.booking-info .step_info_item.passed .title-sub {
    color: #EFEFEC !important; /* Crisp high-contrast off-white */
    opacity: 0.95 !important;
    font-weight: 400 !important;
}

/* Highlights current active step in CricNets gold */
.booking-info .step_info_item.active .title-small {
    color: #D4A64A !important;
}

/* CricNets SimplyBook Timeline Bar - Gold Subtext, No Red */
.booking-info .step_info_item .title-small {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.booking-info .step_info_item .title-sub,
.booking-info .step_info_item.filled .title-sub,
.booking-info .step_info_item.passed .title-sub,
.booking-info .step_info_item.active .title-sub {
    color: #D4A64A !important; /* CricNets Brand Gold */
    font-weight: 500 !important;
    opacity: 1 !important;
}

.booking-info .step_info_item.active .title-small {
    color: #FFFFFF !important;
}

/* Revert SimplyBook timeline bar from red to Charcoal; leave text as-is */
.booking-info .step_info_item.passed,
.booking-info .step_info_item.active,
.booking-info .step_info_item.filled {
    background-color: #1F2328 !important;
}

.booking-info .step_info_item.passed:after,
.booking-info .step_info_item.active:after,
.booking-info .step_info_item.filled:after {
    border-left-color: #1F2328 !important;
}

