

body {
  background: #f7f7f7;
}

.cal-grid {
  width: 100%;
}

.cal-grid > .event-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.5rem;
}

.cal-grid > .calendar {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.cal-grid .calendar .cal-border {
  border: 1px solid #ced4da;
  background: white;
}

.cal-grid .calendar .event-time {
  display: flex;
  gap: 0.5rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.calendar-header button {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 5px 0;
}

.calendar-grid-container {
  min-height: 350px;
  position: relative;
  height: auto;
}

.day {
  height: 59px;
  text-align: center;
  padding: 12px 0;
  border-right: 1px solid #eee;
  border-top: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.calendar-grid.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.calendar-grid.visible {
  opacity: 1;
  z-index: 2;
}

.inactive {
  color: #bbb;
  cursor: default;
  background: #fafafa;
}

.today {
  background: #f7f7f7;
  font-weight: bold;
}

.selected {
  background: #0d6efd;
  color: white;
}

@media (min-width: 1000px) {
  .cal-grid {
    width: 800px;
  }

  .cal-grid > .event-details {
    flex-direction: row;
    justify-content: center;
  }

  .cal-grid > .event-details {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: left;
    gap: 0.5rem;
  }

  .cal-grid > .times,
  .cal-grid > .req-form {
    align-items: flex-start; /* aligns inner content to the left */
    width: 100%; /* optional, ensure full width */
  }
  .btn {
    width: 300px;
  }
}

@media (min-width: 700px) {
  .price-content {
    width: 600px;
  }
}

/* Confirmation */

.con-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;

  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.con-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.con-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 2rem;
  border-radius: 5px;
  max-width: 100%;
  text-align: left;
  line-height: 1.5;
}

/* Prices */

.price-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;

  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.price-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.price-content {
  margin-inline: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 2rem;
  border-radius: 5px;
  text-align: left;
  line-height: 1.5;

  max-height: 85vh; /* limit height relative to viewport */
  overflow-y: auto; /* force scroll inside the modal if needed */
}

body.modal-open {
  overflow: hidden;
}
