/* ===== remove error ===== */
.available_information {
    display: none !important;
}


/* ===== Onna Fitness Calendar Styling ===== */
#osbcontainer {
  font-family: 'Open Sans', sans-serif;
  margin-top: 20px;
}

/* --- CALENDAR BASE RESET --- */
#osbcontainer table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   HEADER BAR (Month + Year + Arrows)
   White background, teal text/icons
============================================================ */
.my-calendar-style table.apptable {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  background-color: #ffffff !important; /* white header bar */
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.my-calendar-style table.apptable th.headercalendar {
  background: #ffffff !important;
  color: #12a89d !important; /* teal text */
  border: none !important;
  text-align: center !important;
  vertical-align: middle;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  padding: 12px 0 !important;
  width: 33.33% !important;
  font-family: 'Open Sans', sans-serif;
}

/* Left/right arrow cells */
.my-calendar-style table.apptable th.headercalendar:first-child,
.my-calendar-style table.apptable th.headercalendar:last-child {
  text-align: center !important;
}

/* Teal arrow icons */
.my-calendar-style table.apptable th.headercalendar img {
  filter: invert(44%) sepia(77%) saturate(566%) hue-rotate(128deg)
    brightness(96%) contrast(95%);
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

/* Darker teal hover for arrows */
.my-calendar-style table.apptable th.headercalendar a:hover img {
  filter: invert(37%) sepia(88%) saturate(400%) hue-rotate(136deg)
    brightness(92%) contrast(90%);
  transform: scale(1.1);
}

/* ============================================================
   WEEKDAY ROW (Mon–Sun)
   Teal background, white text
============================================================ */
#osbcontainer table.calendar_date_numbers thead tr th.header_calendar {
  background-color: #12a89d !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0 !important;
  border: none !important;
}

/* ============================================================
   CALENDAR GRID
============================================================ */
#osbcontainer table.calendar_date_numbers {
  border-collapse: separate;
  border-spacing: 6px;
  width: 100%;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-top: 0 !important;
}

/* Calendar cells */
#osbcontainer table.calendar_date_numbers tbody td {
  background-color: #ffffff !important;
  border: none !important;
}

/* ============================================================
   DAY BUTTONS
============================================================ */
#osbcontainer .calendar_date_numbers .btn {
  border-radius: 12px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  line-height: 20px;
  text-align: center;
}

/* Available days */
#osbcontainer .btn-warning {
  background: #12a89d !important;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 5px rgba(18,168,157,0.3);
}
#osbcontainer .btn-warning:hover {
  background: #0e8e84 !important;
  transform: scale(1.1);
}

/* Booked days */
#osbcontainer .btn-danger {
  background: #ff6b6b !important;
  color: #ffffff !important;
  border: none;
  opacity: 0.9;
}
#osbcontainer .btn-danger:hover {
  background: #ff5252 !important;
  transform: scale(1.1);
}

/* Empty / regular days */
#osbcontainer .btn-inverse {
  background: #f4f6f8 !important;
  color: #555555 !important;
  border: 1px solid #dddddd !important;
}
#osbcontainer .btn-inverse:hover {
  background: #e8f7f5 !important;
  color: #12a89d !important;
}

/* Current day highlight */
#osbcontainer .btn-inverse#today {
  border: 2px solid #12a89d !important;
  font-weight: 700;
  background: #e0f7f4 !important;
}

/* Smooth hover animation for all */
#osbcontainer .calendar_date_numbers .btn {
  transition: all 0.2s ease;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  #osbcontainer .calendar_date_numbers td {
    padding: 2px;
  }
  #osbcontainer .calendar_date_numbers .btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
/* Hide the old images */
.my-calendar-style table.apptable th.headercalendar img {
  display: none; /* hide the PNGs */
}

/* Left arrow (clickable because <a> is still there) */
.my-calendar-style table.apptable th.headercalendar:first-child a::before {
  content: '◀';
  display: inline-block;
  color: #12a89d;
  font-size: 20px;
  vertical-align: middle;
  margin-right: 5px;
  cursor: pointer; /* shows clickable pointer */
}

/* Right arrow (clickable) */
.my-calendar-style table.apptable th.headercalendar:last-child a::before {
  content: '▶';
  display: inline-block;
  color: #12a89d;
  font-size: 20px;
  vertical-align: middle;
  margin-left: 5px;
  cursor: pointer;
}

/* Class tabs === Bootstrap Tab Styling === */
.nav-link {
  color: #12a89d !important; /* default text color */
  border-color: #12a89d !important; /* for bordered tabs if used */
  font-weight: 600;
}

.nav-link.active {
  background-color: #12a89d !important; /* active tab background */
  color: #ffffff !important; /* text on active tab */
}

/* Optional: hover effect for tabs */
.nav-link:hover {
  color: #0e8e84 !important; /* slightly darker teal on hover */
}

/* === Time Selection Buttons === */
.btn-time, /* replace with actual class if needed */ 
.btn {
  background-color: #12a89d !important;
  color: #ffffff !important;
  border: none;
  font-weight: 600;
}

.btn-time:hover,
.btn:hover {
  background-color: #0e8e84 !important;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* === Bootstrap Tab Styling === */
.nav-link {
  color: #12a89d !important; /* default text color */
  border-color: #12a89d !important; /* for bordered tabs if used */
  font-weight: 600;
}

.nav-link.active {
  background-color: #12a89d !important; /* active tab background */
  color: #ffffff !important; /* text on active tab */
}

/* Optional: hover effect for tabs */
.nav-link:hover {
  color: #0e8e84 !important; /* slightly darker teal on hover */
}

/* Remove the grey background around time slot labels */
#osbcontainer .timeslots.divtimeslots {
    background-color: transparent !important;
    padding: 0 !important;  /* optional: removes extra spacing */
}

/* Target the label specifically inside the calendar/time slot container */
#osbcontainer .timeslotlabel,
#osbcontainer .timeslotlabel input + label {
    display: inline-block;
    background-color: #12a89d !important;  /* teal background */
    color: #ffffff !important;             /* white text */
    padding: 8px 12px !important;
    margin: 4px !important;
    border-radius: 8px !important;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

/* Hover effect */
#osbcontainer .timeslotlabel:hover,
#osbcontainer .timeslotlabel input:checked + label:hover {
    background-color: #0e8e84 !important;
    transform: scale(1.05);
}

/* Highlight selected time slot */
#osbcontainer .timeslotlabel input:checked + label {
    background-color: #0e8e84 !important;
    color: #fff !important;
    border: 1px solid #0b6f66;
}

/* === Limit notice text === */
#osbcontainer .noticeMsg {
    color: #12a89d !important; /* teal */
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* Teal background for the entire footer */
#footer.u-footer {
    background-color: #12a89d !important; /* Teal */
}

/* Make all text inside the footer white */
#footer.u-footer .u-text,
#footer.u-footer a {
    color: #ffffff !important;
}

/* Optional: Make buttons/links fully white on hover */
#footer.u-footer a:hover {
    color: #e0f7f4 !important; /* Slightly lighter teal text on hover for contrast */
}

/* Optional: Ensure logo area background stays transparent */
#footer.u-footer .u-logo-image-1 {
    background: transparent !important;
}

/* Ensure the date buttons are perfectly centered */
#osbcontainer .calendar_date_numbers td {
    text-align: center; /* horizontal centering */
    vertical-align: middle; /* vertical centering */
    padding: 4px !important; /* adjust if needed */
}

/* Date button itself */
#osbcontainer .calendar_date_numbers .btn {
    display: inline-flex;           /* allows flex centering */
    justify-content: center;        /* horizontal centering */
    align-items: center;            /* vertical centering */
    width: 40px;                    /* adjust size if needed */
    height: 40px;
    line-height: normal;            /* reset line height */
    text-align: center;
}


/* Make the SVG paths teal */
.service-header .header-graphic svg path {
    fill: #12a89d !important; /* your teal color */
}

.service-header::after {
    background-color: #12a89d !important; /* teal line */
}

/* === MOBILE FIXES FOR BOOKING PAGE === */
@media (max-width: 768px) {
  /* Prevent month header from wrapping */
  .my-calendar-style table.apptable th.headercalendar:nth-child(2) {
    white-space: nowrap !important;
    font-size: 1.1rem !important; /* slightly smaller for fit */
  }

  /* Adjust calendar header padding for smaller screens */
  .my-calendar-style table.apptable th.headercalendar {
    padding: 8px 0 !important;
  }

  /* Make progress bar responsive */
  .vbstepsbarcont {
    overflow-x: auto; /* allow horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
  }

  .vbo-stepbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 6px;
    min-width: 400px; /* ensures spacin*

    /* Improve overall text and layout scaling */
body {
    font-size: 16px;
    line-height: 1.4;
}

/* ===== Progress Bar: Wrap on Mobile ===== */
.vbo-stepbar {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}
.vbo-stepbar li {
    flex: 1 1 auto;
    text-align: center;
    min-width: 100px;
    font-size: 14px;
}

/* ===== Calendar Header: Fix Overlap ===== */
.headercalendar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    font-size: 16px;
    white-space: nowrap;
}
.headercalendar a img {
    max-width: 24px;
    height: auto;
}

/* ===== Calendar Table: Responsive ===== */
.apptable,
.calendar_date_numbers {
    width: 100% !important;
    table-layout: fixed;
    font-size: 14px;
}
.calendar_date_numbers th,
.calendar_date_numbers td {
    padding: 4px;
    text-align: center;
}

/* ===== Stack Calendar & Booking Form on Mobile ===== */
@media (max-width: 767px) {
    #calendardivleft,
    #maincontentdiv {
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* ===== Buttons: Better Touch Targets ===== */
.buttonpadding10,
.buttonpadding5,
.addtocartbtn {
    padding: 10px 14px !important;
    font-size: 16px !important;
    border-radius: 6px;
}

/* ===== Form Fields: Full Width on Mobile ===== */
@media (max-width: 575px) {
    input[type="number"],
    select,
    .form-control {
        width: 100% !important;
        font-size: 16px !important;
    }
}

/* ===== Tabs: Scrollable on Mobile ===== */
.joomla-tabs.nav-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
}
.joomla-tabs.nav-tabs li {
    flex: 0 0 auto;
}

/* ===== General Mobile Tweaks ===== */
@media (max-width: 575px) {
    .u-container-layout-1 {
        padding: 15px !important;
    }
    .u-sheet-1 {
        min-height: auto !important;
    }
    .service-header,
    .service-title {
        font-size: 16px !important;
    }
}