.booking-container,
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.booking-form div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-form input,
.booking-form select {
  padding: 1rem;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--secondary);
}

.booking-form select {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  background-color: white;
  color: var(--secondary);
}

.summary-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.summary-container div:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-bottom: 2px solid var(--primary);
}

.calendar-wrapper {
  background: #fafafa;
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
}

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

#prev-month,
#next-month {
  color: var(--secondary);
}

.calendar-header h2 {
  font-size: 1.2rem;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 1rem;
  cursor: pointer;
}

.calendar-day {
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.calendar-day.inactive {
  color: #ccc;
}

.calendar-day.selected {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  border-radius: 2px;
}

.calendar-day.range {
  background-color: rgba(244, 67, 54, 0.3);
  border-radius: 0;
}

.past-date {
  color: #aaa;
  pointer-events: none;
  cursor: not-allowed;
}

.booking-container #confirm-booking {
  width: unset;
}

#calendar.disabled {
  pointer-events: none;
  opacity: 0.4;
}

@media screen and (min-width: 900px) {
  .booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section-heading,
  .booking-form,
  #confirm-booking {
    grid-column: span 2;
  }
}
