/* ========== BOEKINGSPAGINA ========== */

.booking-page {
  background-color: #f8fcff;
}

/* Hero / introblok */

.booking-hero-section {
  padding: 3rem 0 0rem 0;
}

.booking-hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.booking-hero-text {
  flex: 1 1 280px;
  height: 276px;
}

.booking-hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.booking-hero-text p {
  max-width: 640px;
  color: #555;
  margin-bottom: 1.25rem;
}

.booking-legal-box {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background-color: #e7f6ff;
  border: 1px solid #cfe7fb;
}

.booking-legal-line {
  margin: 0;
  font-size: 0.95rem;
}

.booking-hero-summary {
  flex: 0 1 317px;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.booking-hero-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.booking-hero-summary ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
  color: #555;
}

/* Hoofdsectie */

.booking-main-section {
  padding: 0 0 0rem 0;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Kaarten */

.booking-calendar-card,
.booking-form-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 1.75rem 1.75rem 1.5rem 1.75rem;
}

/* Kalender header */

.booking-calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.booking-calendar-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.booking-calendar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-current-month {
  font-weight: 600;
}

.cal-nav-btn {
  border: 1px solid #d0e4f8;
  background-color: #f5f9ff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.cal-nav-btn:hover {
  background-color: #e7f1ff;
  transform: translateY(-1px);
}

/* Legenda */

.booking-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: #666;
}

.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 0.35rem;
}

.legend-available {
  background-color: #eaf6ff;
  border: 1px solid #c7e1ff;
}

.legend-selected {
  background-color: #0077b6;
  border: 1px solid #005b8a;
}

.legend-booked {
  background-color: #ffdddd;
  border: 1px solid #e9a6a6;
}

/* Kalender grid */

.booking-calendar {
  border-radius: 1rem;
  border: 1px solid #e1ecf8;
  background-color: #fdfefe;
  overflow: hidden;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f1f6ff;
  border-bottom: 1px solid #e1ecf8;
}

.cal-weekdays span {
  padding: 0.4rem 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a6c8b;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.85rem;
}

/* Dag-cellen */

.cal-day {
  min-height: 62px;
  padding: 0.3rem 0.4rem;
  border-right: 1px solid #edf3fb;
  border-bottom: 1px solid #edf3fb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.12s ease, box-shadow 0.12s ease,
    transform 0.08s ease;
}

.cal-day:nth-child(7n) {
  border-right: none;
}

.cal-day-number {
  font-weight: 600;
  font-size: 0.9rem;
}

.cal-day-price {
  font-size: 0.75rem;
  color: #2679b8;
}

.cal-day.is-today .cal-day-number {
  border-radius: 999px;
  padding: 0 0.35rem;
  background-color: #0077b6;
  color: #fff;
}

.cal-day.available:hover {
  background-color: #e7f2ff;
  box-shadow: inset 0 0 0 1px #c6ddff;
  transform: translateY(-1px);
}

/* Beschikbaar / niet beschikbaar */

.cal-day.disabled {
  cursor: default;
  color: #c0c7d2;
  background-color: #f7f9fc;
}

.cal-day.disabled .cal-day-price {
  color: #cdd3dd;
}

.cal-day.booked {
  cursor: default;
  background-color: #ffe6e6;
  color: #a15b5b;
}

.cal-day.booked .cal-day-price {
  color: #b06b6b;
}

/* Selectie */

.cal-day.selected-range {
  background-color: #cfe7ff;
}

.cal-day.selected-start,
.cal-day.selected-end {
  background-color: #0077b6;
  color: #ffffff;
}

.cal-day.selected-start .cal-day-price,
.cal-day.selected-end .cal-day-price {
  color: #eaf4ff;
}

/* Samenvatting onder kalender */

.booking-selection-summary {
  margin-top: 1.3rem;
}

.booking-selection-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#selectionText {
  margin: 0 0 0.25rem 0;
  color: #333;
}

.booking-total-text {
  margin: 0 0 0.4rem 0;
  font-weight: 600;
  color: #0077b6;
}

.booking-hint {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 0.35rem;
}

.booking-message {
  font-size: 0.85rem;
  min-height: 1rem;
}

.booking-message.error {
  color: #c0392b;
}

.booking-message.success {
  color: #1b8a4a;
}

/* Formulier */

.booking-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.booking-form-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.optional {
  font-weight: 400;
  color: #999;
}

.booking-form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.small-text {
  font-size: 0.8rem;
  color: #777;
}

.booking-submit-btn {
  align-self: flex-start;
  min-width: 210px;
}

/* Legal blok onder formulier */

.booking-legal-card {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5edf7;
}

.booking-legal-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.booking-legal-card p {
  margin: 0;
  font-size: 0.9rem;
}

#opmerking {
  height: 172px;
}

/* Responsief */

@media (max-width: 1199px) {
  .booking-hero-summary {
    height: 256px;
  }
}

@media (max-width: 992px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-calendar-card,
  .booking-form-card {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  }
}

@media (max-width: 991px) {
  .booking-hero-text {
    height: 300px;
  }
  .booking-hero-summary {
    height: 280px;
  }
}
@media (max-width: 768px) {
  .booking-hero-content {
    flex-direction: column;
  }

  .booking-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cal-day {
    min-height: 58px;
  }

  .booking-legal-box {
    width: 100%;
  }

  .booking-hero-text {
    flex: 1 1 232px;
    width: 100%;
  }
  .booking-hero-summary {
    width: 100%;
    height: 168px;
    flex: none;
    margin-bottom: 30px;
  }
}

@media (max-width: 427px) {
  .booking-hero-summary {
    height: 187px;
  }
}
@media (max-width: 390px) {
  .booking-hero-summary {
    height: 210px;
  }
}
@media (max-width: 358px) {
  .booking-hero-summary {
    height: 236px;
  }
}

@media (max-width: 341px) {
  .booking-hero-summary {
    height: 261px;
  }
}
