.input-style {
  background: transparent;
  color: white;
  border: 1px solid #d0d5dd !important;
  border-radius: 8px !important;
  padding: 10px;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 22px;
}
#time-button-group:empty {
  display: none;
}

#no-available-label {
  display: block;
}

.selected-date {
  border: 2px solid red !important;
  border-radius: 5px !important;
}

.calendar-container .fc-daygrid-day-frame:hover {
  cursor: pointer;
}

.fully-booked {
  background-color: #ccc !important;
  color: red !important;
  opacity: 0.7;
  cursor: not-allowed !important;
}

.disabled-time {
  background-color: red !important;
  color: red !important;
  opacity: 0.7;
  cursor: not-allowed;
}

.textarea-style {
  background: transparent;
  color: white;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  margin-top: 8px;
  height: 120px;
  max-height: 120px;
  min-height: 120px;
  overflow: hidden;
}

.select-style {
  background-color: #1d1d1d;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  margin-top: 8px;
  -webkit-appearance: menulist-button;
  -moz-appearance: menulist-button;
  appearance: menulist-button;
}

.select-style:focus {
  background-color: #1d1d1d !important;
  color: white;
  border-color: #444;
}

.select-style option {
  background-color: #1d1d1d;
  color: white;
}

.select-style::-ms-expand {
  background-color: transparent;
  border: none;
}

.select-style::-webkit-appearance: none {
  background-color: transparent;
}

.select-style {
  background: transparent;
  color: white;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  margin-top: 8px;
}

.label_heading {
  color: white !important;
  font-weight: bold !important;
  text-align: left !important;
}

body {
  background: #111;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

.booking-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65vh;
  flex-wrap: wrap;
  max-width: 900px; /* Prevents it from stretching too much */
  margin: auto;
}

.booking-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.fc-scrollgrid-sync-table {
  background-color: #1d1d1d;
  background: #1d1d1d;
}

.booking-left,
.booking-middle,
.booking-right {
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 100%;
  background-color: transparent !important;
}

.booking-right button#submit {
  margin-top: auto;
  align-self: flex-end;
  padding: 10px 20px;
  background-color: #8b0101;
  padding: 15px 40px;
  margin-top: 30px;
  color: white;
  border: none;
  border-radius: 0 !important;
  font-size: 16px;
  cursor: pointer;
}

.booking-right button#submit:hover {
  background-color: #a50202;
}

.calendar-container {
  margin-top: 20px;
  padding: 10px;
  background-color: #1d1d1d;
  width: 100%;
  max-width: 500px;
}
.calendar-container #calendar {
  width: 100%;
  min-height: 380px;
}

.calendar-container #calendar {
  background: transparent;
  padding: 0;
  border-radius: 8px;
  width: 100%;
}

.calendar-container .fc-scroller {
  overflow: hidden !important;
}

.calendar-container .fc-toolbar-title {
  color: white;
  font-size: 16px;
  font-weight: 400;
}

.calendar-container .fc-button {
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 5px 10px !important;
  border-radius: 5px !important;
}

.calendar-container .fc-prev-button .fc-next-button {
  background-color: transparent !important;
  background: transparent !important;
}

.calendar-container .fc .fc-toolbar {
  padding-top: 20px;
}

.calendar-container .fc .fc-scrollgrid-liquid {
  border: none;
  background-color: #1d1d1d;
}

.calendar-container .fc .fc-scrollgrid-section {
  border: none;
}

.calendar-container .fc-daygrid-day-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.calendar-container .fc-daygrid-day-top {
  text-align: center;
  font-size: 16px !important;
}

.calendar-container .fc-day-other {
  visibility: hidden !important;
}

.calendar-container .fc-daygrid-day-events {
  display: none !important;
}

.calendar-container .selected-date {
  background: transparent !important;
  color: white !important;
  border-radius: 5px;
}
.fc-daygrid-day-frame.active .fc-daygrid-day-number {
  color: white !important;
}

.fc-daygrid-day-frame:focus {
  outline: none;
  border: 2px solid #8b0101 !important;
}

.calendar-container .fc-daygrid-day-number {
  color: white !important;
}

.calendar-container input,
.calendar-container textarea,
.calendar-container select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: #333;
  color: white;
  border: 1px solid white;
  border-radius: 5px;
}

.calendar-container button {
  background: red;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.fc-daygrid-day-frame.active {
  border: 2px solid #8b0101 !important;
  position: relative;
}

.fc-daygrid-day-frame.selected-date .fc-daygrid-day-number {
  background-color: #8b0101 !important;
  border: 2px solid red !important;
  color: white !important;
  border-radius: 5px;
}

.fc-daygrid-day-frame.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.fc .fc-daygrid-day.fc-highlight {
  background-color: #8b0101 !important;
}

.fc .fc-daygrid-day.fc-highlight .fc-daygrid-day-number {
  color: white !important;
  font-weight: bold;
}

.fc .fc-daygrid-day.fc-highlight .fc-daygrid-day-number {
  border-radius: 50%;
  padding: 0.3rem;
}

.fc .fc-col-header-cell-cushion {
  font-size: 12px !important;
  font-weight: 400 !important;
}

.calendar-container .fc-scroller {
  background-color: #1d1d1d;
}

.calendar-container .fc-toolbar-title {
  color: white;
  font-size: 16px !important;
  font-weight: 400 !important;
}

.calendar-container button:disabled {
  background: #555;
  cursor: not-allowed;
}

.calendar-container .fc-daygrid-day-frame,
.calendar-container .fc-daygrid-day-top,
.calendar-container .fc-daygrid-day,
.calendar-container .fc .fc-scrollgrid-section,
.calendar-container .fc-daygrid,
.calendar-container .fc-col-header-cell,
.calendar-container #calendar {
  border: none !important;
  background: #1d1d1d !important;
}

.time-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
  padding-top: 20px;
}

.time-slot {
  background-color: #1d1d1d !important;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

table thead:first-child tr:first-child th {
  border: none;
  padding: 0;
}
.fc .fc-scrollgrid-section table,
.fc .fc-scrollgrid-section table th,
.fc .fc-scrollgrid-section table td,
.fc .fc-scrollgrid-section-liquid > td {
  border: none !important;
}

.fc-scrollgrid-section-liquid .fc-scrollgrid-section {
  border: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.time-slot:focus {
  border-color: #8b0101 !important;
  border: 1px solid #8b0101;
  outline: none;
}

.time-slot:hover {
  background-color: #8b0101 !important;
}

.time-slot.active {
  border-color: #8b0101 !important;
  border: 2px solid #8b0101;
}

.time-slot:disabled {
  background-color: #555 !important;
  cursor: not-allowed;
}

.success-message {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #1d1d1d;
  color: white;
  border: 2px solid red;
  padding: 15px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards, fadeOut 0.5s ease-out 2.5s;
}

.fc .fc-daygrid-day-bg .fc-highlight {
  background-color: transparent !important;
  border: 2px solid #8b0101 !important;
  border-radius: 5px;
}

.booking-success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-success-popup .popup-content {
  background: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.popup-checkmark {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #0f0;
}

.popup-service-info {
  margin-top: 1rem;
  font-weight: bold;
}

/* Animation for fade-in and fade-out */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* General layout adjustments for mobile */
@media screen and (max-width: 768px) {
  .booking-container {
    height: auto;
    margin-top: 20px;
  }

  .booking-grid {
    display: inline-block;
    margin-top: 20px;
    width: 300px;
  }

  .booking-left,
  .booking-middle,
  .booking-right {
    width: 100% !important; /* Full width for mobile */
    padding: 15px;
    box-sizing: border-box;
  }

  .booking-left,
  .booking-middle {
    margin-bottom: 20px;
  }

  .time-buttons {
    display: grid;
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Adjust time slot grid for smaller screens */
    gap: 10px;
  }

  /* Hide the time slots until service and date are selected */
  #time-slots {
    display: none;
  }

  .booking-middle {
    text-align: left !important;
  }

  /* Button styles for mobile */
  .booking-right button#submit {
    padding: 15px 40px;
    font-size: 16px;
    width: 100%;
  }

  /* Adjust input and textarea fields for mobile */
  .input-style,
  .textarea-style,
  .select-style {
    width: 100% !important; /* Ensure full width for inputs */
    margin-top: 8px;
  }

  .calendar-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #1d1d1d;
  }

  .calendar-container #calendar {
    background: transparent;
    padding: 0;
    border-radius: 8px;
  }

  .calendar-container .fc-toolbar-title {
    color: white;
    font-size: 16px;
  }

  /* Ensure form labels are clear on mobile */
  .label_heading {
    font-size: 14px;
    color: white;
  }

  /* Adjust calendar layout for mobile */
  .fc-daygrid-day-frame {
    height: 35px; /* Adjust calendar day size for smaller screens */
    font-size: 12px;
  }

  .fc-daygrid-day-number {
    color: white;
    font-size: 14px;
  }

  /* Adjust buttons on calendar */
  .calendar-container button {
    background: #8b0101;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
  }

  /* Selected date styles */
  .calendar-container .selected-date {
    background-color: #8b0101 !important;
    color: white !important;
    border-radius: 5px !important;
    outline: none; /* Remove any default outline */
  }

  /* Apply focus to time slots after clicking on a date */
  .calendar-container .fc-daygrid-day-frame.selected-date:focus .time-slot {
    border-color: #8b0101 !important;
    border: 2px solid #8b0101;
  }
}
