@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================
   HEADER INTRO
   ========================================== */

.esa-header-intro {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  font-family: "Elms Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.esa-header-intro h1 {
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(129,22,28,0.6);
}

.esa-header-intro .esa-subtitle {
  font-size: 18px;
  color: #a3a3a3;
  margin-top: 10px;
  letter-spacing: 1px;
}

.esa-divider {
  width: 200px;
  height: 4px;
  margin: 22px auto;
  background: #81161C;
  box-shadow: 0 0 10px rgba(129,22,28,0.9);
  border-radius: 2px;
}

/* ==========================================
   MAANDKALENDER
   ========================================== */

.esa-calendar-wrapper {
  max-width: 900px;
  margin: 0 auto 40px;
  font-family: Arial, sans-serif;
  color: #fff;
}

.esa-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.esa-month-label {
  font-size: 20px;
  font-weight: bold;
}

.esa-nav-btn {
  background: #111;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #81161C;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(255,255,255,0.2);
  transition: 0.3s;
}

.esa-nav-btn:hover {
  background: #81161C;
  transform: translateY(-1px);
}

.esa-month-table {
  width: 100%;
  border-collapse: collapse;
  background: #000;
  border: 2px solid #333;
  box-shadow: 0 4px 10px rgba(255,255,255,.2);
  border-radius: 12px;
  overflow: hidden;
}

.esa-month-table th,
.esa-month-table td {
  width: 14.28%;
  text-align: center;
  padding: 12px;
  border: 1px solid #222;
}

.esa-month-table th {
  background: #81161C;
  text-transform: uppercase;
  font-size: 13px;
}

.esa-day-empty {
  background: #050505;
}

/* Dagblok */
.esa-day {
  position: relative;
  cursor: pointer;
  background: #000;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.esa-day-number {
  font-size: 16px;
  font-weight: bold;
  display: block;
}

/* ==========================================
   DAG STATUS KLEUREN (NIEUWE CRIMSON)
   ========================================== */

/* Vrij = crimson rood */
.esa-day-free {
  color: #dc143c;
}

/* Deels vol = geel */
.esa-day-partial {
  color: #ffd966;
}

/* Volledig vol = donkerrood */
.esa-day-full {
  color: #5a0000 !important;
  background: #150000 !important;
  cursor: not-allowed;
}

/* Labels (VOL / DEELS) */
.esa-day-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
}

.esa-tag-full {
  background: #5a0000;
  color: #fff;
}

.esa-tag-partial {
  background: #222;
  color: #ffd966;
}

/* ==========================================
   HOVER & SELECTED DAY
   ========================================== */

/* Hover op klikbare dag */
.esa-day:hover:not(.esa-day-full) {
  background: #2a2a2a !important;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(255,255,255,0.15);
}

/* Geselecteerde dag */
.esa-day-selected {
  background: #1a1a1a !important;
  border: 1px solid #dc143c !important;
  box-shadow: 0 0 6px rgba(220,20,60,0.4);
}

/* ==========================================
   TIJDSLOTEN (NIEUWE CRIMSON)
   ========================================== */

#esa-timeslots-wrapper {
  margin-top: 20px;
}

#esa-selected-date-title {
  font-size: 18px;
  margin-bottom: 10px;
}

#esa-timeslots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.esa-time-slot {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  min-width: 150px;
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}

/* Vrij tijdslot = crimson */
.esa-time-slot-free {
  border-color: #dc143c;
  color: #dc143c;
}

/* Hover vrij slot */
.esa-time-slot-free:hover {
  background: #300000;
  transform: translateY(-1px);
}

/* Geboekt slot */
.esa-time-slot-booked {
  border-color: #5a0000;
  background: #5a0000;
  color: #fff;
  cursor: not-allowed;
}

/* ==========================================
   POPUP FORM
   ========================================== */

#esa-popup {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.85);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease-in-out;
  z-index: 999999 !important;
}

#esa-popup.show {
  opacity: 1;
  pointer-events: all;
}

.esa-popup-inner {
  position: relative;
  background: #000;
  padding: 28px 32px;
  width: 420px;
  max-width: 95%;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(255,0,0,0.25);
  color: #fff;
  font-family: Arial, sans-serif;
}

#esa-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.esa-popup-inner label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.esa-popup-inner input[type="text"],
.esa-popup-inner input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  background: #111;
  border: 1px solid #81161C;
  color: #fff;
  border-radius: 10px;
  margin-top: 4px;
}

.esa-popup-inner input[type="submit"] {
  background: #81161C;
  color: #fff;
  padding: 12px 10px;
  margin-top: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  border: none;
  width: 100%;
}

.esa-popup-inner input[type="submit"]:hover {
  background: #a11f26;
}

/* ==========================================
   BOODSCHAPPEN
   ========================================== */

.esa-message {
  text-align: center;
  margin: 20px auto;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.esa-message.error {
  color: #ff5555;
}

.esa-message.success {
  color: #dc143c;
}

/* ==========================================
   USER BOOKINGS
   ========================================== */

.esa-bookings {
  max-width: 700px;
  margin: 30px auto;
  font-family: Arial, sans-serif;
  color: #fff;
}

.esa-booking-card {
  background: #050505;
  border-radius: 10px;
  border: 1px solid #333;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.esa-cancel-btn {
  background: #81161C;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  cursor: pointer;
}

.esa-cancel-btn:hover {
  background: #a11f26;
}

/* ==========================================
   FOOTER INFO
   ========================================== */

.esa-footer-info {
  text-align: center;
  margin: 35px auto 10px;
  font-size: 14px;
  color: #777;
}

.esa-footer-info span {
  color: #81161C;
  font-weight: bold;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 700px) {
  .esa-month-table th,
  .esa-month-table td {
    padding: 8px;
  }
  .esa-booking-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .esa-popup-inner {
    width: 95vw;
  }
}
/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden !important;
}
