/* .list-group-item-primary {
  --bs-list-group-bg: #f3e7db;
  --bs-list-group-border-color: #ddc9b5;
}
.alert-primary {
  --bs-alert-bg: #f3e7db;
  --bs-alert-border-color: #ddc9b5;
} */
/* -------  OF ------- */

/* .list-group-item-primary {
  --bs-list-group-bg: #f2ebe4;
  --bs-list-group-border-color: #d6d6d5;
}

.alert-primary {
  --bs-alert-bg: #f2ebe4;
  --bs-alert-border-color: #d6d6d5;
} */

/* ////////////////////////////////////////// */

/* #selectedTimeAnimate {
            text-shadow: 0px 0px 10px 5px #6b82ff52;
            transition: text-shadow 0.2s ease-in-out;
        } */

#remove-booking1,
#remove-booking3 {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 1.2rem;
  color: darkblue;
  transition: color 0.2s ease;
}

#remove-booking1:hover,
#remove-booking3:hover {
  color: rgb(51, 28, 181);
  font-weight: bold;
  text-shadow: 0 0 11px rgba(4, 26, 65, 0.65);
  transition: color 0.2s ease;
}

#remove-booking3------------- {
  cursor: pointer;
  position: relative;
  left: 320px;
  /* top: 6px; */
  font-size: 1.2rem;
  color: darkblue;
  transition: color 0.2s ease;
}

#check-circle {
  position: relative;
  left: 0px;
  top: 4px;
}

/* Remove display: -webkit-flex; from input and textarea! */
/* correct international form layout to stack vertically */
button,
optgroup,
select {
  display: -webkit-flex;
}

input,
textarea {
  display: block;
  /* or just remove from the selector entirely */
}

input.form-control,
textarea.form-control {
  display: block !important;
  width: 100% !important;
}

label.form-label {
  display: block !important;
}

/* END stack vertically */
button.btn-outline-success {
  transition: all 0.13s ease-in-out;
}

button.btn-outline-success.active {
  background-color: #6b82ff !important;
  color: #fff !important;
  border-color: #7580b9 !important;
  transform: scale(0.97);
}

.btn-rounded {
  border-radius: 50px;
  padding: 10px;
}

/* see: <div id="timeSlots" class="d-flex flex-wrap xxxx xxx"></div>*/

/* #timeSlots {
            display: grid;
            grid: auto-flow / repeat(3, 70px);
            width: 300px;
            justify-content: space-evenly;
        } */
/* responsive grid for time slots */
#timeSlots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  width: 100%;
  /* max-width: 320px; */
  justify-content: center;
}

/* @media screen and (max-width: 405px) {
  .calendars .calendar {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 330px;
  } */

/* Force calendar to be responsive and fit within parent */
.calendars {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}

.calendars .calendar {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: unset !important;
}

@media only screen and (max-width: 990px) {
  .calendars .calendar {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
  }

  /* .p3 {
    padding: 0px !important;
  } */

  .py-mob-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Mobile adjustments for tablets and smaller */
@media only screen and (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .calendars .calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
  }

  /* Adjust calendar container */
  .calendar-container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    overflow: hidden;
  }

  /* Fix timeslots grid on mobile */
  #timeSlots {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Adjust spinner position for mobile */
  #spinner-timeslots {
    width: 90%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Additional mobile fixes for very small screens */
@media only screen and (max-width: 480px) {

  /* Force sections to full width */
  #section1,
  #section2 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .calendars .calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
  }

  /* Adjust spinner position for mobile */
  #spinner-timeslots {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .px-1-small {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .width-small {
    min-width: 340px;
  }
}


/* .custom-pt-5 {
            padding-top: 3.5rem !important;
        } */
/* 
        .custom-ms-4 {
             margin-left: 1.5rem !important; 
        } */



.rounded-box {
  border: solid 1px rgba(146, 104, 55, 0.59);
  border-radius: 25px;
  padding: 10px 20px;
}


#btnEdit {
  cursor: pointer;
}

/*  .btn-prev-time {
            background-color: #6b82ff !important; 
            background-color: #6b82ff70 !important;
            border: solid 1px #ffffff !important;
            color: #ffffff;
        } */

/* reset button */
#reset-btn {
  position: relative;
  left: 10px;
  top: 20px;
}

.form-select {
  width: 100%;
}

.btn-prev-time {
  background-color: #ffffff;
  border: solid 1px #6b82ff;
  color: #6b82ff;
}


.btn-prev-time:hover {
  background-color: rgb(64, 90, 241);
  border: #ffffff;
  color: #ffffff;
}

.custom-tooltip {
  --bs-tooltip-bg: rgb(244, 242, 240);
  --bs-tooltip-color: :rgb(149, 123, 98);
}

/* https://intl-tel-input.com */
.iti {
  display: block !important;
  width: 100% !important;
}

.iti input {
  width: 100% !important;
}

.iti .iti__country-list {
  width: auto !important;
  min-width: 220px;
  max-width: 350px;
}

#inputTelefoon::placeholder {
  color: #ccc;
}

.react-tel-input .country-list {
  width: 400px;
  max-height: 200px;
}

/* ========================================
   STYLES FROM cal_access_bars_Master.php
   ======================================== */

/* Custom Bootstrap color overrides */
.list-group-item-primary {
  --bs-list-group-color: #714e2f;
  --bs-list-group-bg: #e7e1db;
  --bs-list-group-border-color: #c1b3a5;
}

.alert-primary {
  --bs-alert-color: #714e2f;
  /* --bs-alert-bg: #e7e1db; */
  --bs-alert-border-color: #c1b3a5;
  --bs-alert-link-color: #99816aff;
  background: linear-gradient(90deg, rgba(231, 225, 219, 0.74) 0%, rgb(196, 183, 171) 100%);
}

.btn-success {
  --bs-btn-color: #714e2f;
  --bs-btn-bg: #e7e1db;
  --bs-btn-border-color: #c1b3a5;
}

#timeSlots>.btn-outline-success {
  --bs-btn-color: #714e2f;
  --bs-btn-border-color: #c1b3a5;
}

/* Reset body and html for iframe context */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

/* Remove Bootstrap column padding */
/* .col-12.col-md-6 {
  padding-left: 0 !important;
  padding-right: 0 !important;
} */

p {
  margin-bottom: 2px !important;
}

/* Consistent width and centering for both sections */
#section1,
#section2 {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-height: 550px;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Remove padding from section1 inner div */
#section1>div {
  padding: 0 !important;
}

/* booking section hidden by default */
#section2 {
  display: none;
}

#datepicker {
  display: none;
  color: rgba(117, 128, 185, 0.29);
}

/* Calendar container */
.calendar-container {
  position: relative;
  border: solid 1px #ccc;
  padding: 1px !important;
  border-radius: 8px;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure timeSlotsListGroup matches calendar-container width */
#timeSlotsListGroup {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Force Easepick calendar to be responsive */
.calendar-container .easepick-wrapper,
.calendar-container .calendars,
.calendar-container .calendars .calendar,
.calendar-container .container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: unset !important;
  box-sizing: border-box !important;
  padding: 1px !important;
}

/* Reduce padding on calendar element specifically */
.calendar-container .calendar {
  padding: 1px !important;
}

/* Horizontal loader for timeslots */
#spinner-timeslots {
  position: relative;
  margin-top: 10px;
  margin-left: 12px;
  padding: 5px;
  border-radius: 5px;
  display: none;
  height: 4px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  --c: no-repeat linear-gradient(#b3b8c0ff 0 0);
  background: var(--c), var(--c), #dae0e8ff;
  background-size: 60% 100%;
  animation: l16 3s infinite;
}

/* Grow spinner in timeslot button */
/* #spinner {
  height: 38px !important;
} */

/* Alert message positioning - centered in calendar container */
#noDatesMsg {
  position: relative;
}

#msg-alert {
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  width: 70%;
  opacity: 0.75;
}

#next-avail-date {
padding: 5px 30px;
}

/* Ensure easepick wrapper is positioned context for absolute positioning */
.easepick-wrapper {
  position: relative;
}

/* Utility classes */
.radius-10 {
  border-radius: 10px;
}

.radius-25 {
  border-radius: 25px;
}

.fs-10 {
  font-size: 0.8em;
}

/* Loader overlays datepicker */
.loader {
  position: absolute;
  top: 178px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 85px;
  height: 60px;
  z-index: 10;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(#6282e17a 60px, transparent 0),
    linear-gradient(#6282e17a 60px, transparent 0),
    linear-gradient(#6282e17a 60px, transparent 0),
    linear-gradient(#6282e17a 60px, transparent 0),
    linear-gradient(#6282e17a 60px, transparent 0),
    linear-gradient(#6282e17a 60px, transparent 0);
  background-position: 0px center, 15px center, 30px center, 45px center,
    60px center, 75px center, 90px center;
  animation: rikSpikeRoll 1.5s linear infinite alternate;
}

@keyframes rikSpikeRoll {
  0% {
    background-size: 10px 3px;
  }

  16% {
    background-size: 10px 60px, 10px 3px, 10px 3px, 10px 3px, 10px 3px, 10px 3px;
  }

  33% {
    background-size: 10px 30px, 10px 60px, 10px 3px, 10px 3px, 10px 3px, 10px 3px;
  }

  50% {
    background-size: 10px 10px, 10px 30px, 10px 60px, 10px 3px, 10px 3px, 10px 3px;
  }

  66% {
    background-size: 10px 3px, 10px 10px, 10px 30px, 10px 60px, 10px 3px, 10px 3px;
  }

  83% {
    background-size: 10px 3px, 10px 3px, 10px 10px, 10px 30px, 10px 60px, 10px 3px;
  }

  100% {
    background-size: 10px 3px, 10px 3px, 10px 3px, 10px 10px, 10px 30px, 10px 60px;
  }
}

@keyframes l16 {
  0% {
    background-position: -150% 0, -150% 0;
  }

  66% {
    background-position: 250% 0, -150% 0;
  }

  100% {
    background-position: 250% 0, 250% 0;
  }
}

/* Media Queries - Additional overrides for sections */
@media (max-width: 767px) {

  #section1,
  #section2 {
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {

  #section1,
  #section2 {
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .calendar {
    padding: 0px;
  }

  #msg-alert {
    width: 90%;
    max-width: 280px;
  }
}

/* 
@media (max-width: 400px) {
  .calendar-container {
    width: 96% !important;
    max-width: 96% !important;
  }
} */

/* @media (max-width: 360px) {
  .calendar-container {
    width: 94% !important;
    max-width: 94% !important;
  }
} */