/* ==========================================
   INTERACTIVE CALENDAR
========================================== */

.ic-calendar {
  width: 100%;
  background: #f6f3e8;
  border: 4px solid #004c50;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

/* ==========================================
   HEADER
========================================== */

.ic-header {
  background: #efc54d;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 4px solid #004c50;
}

.ic-header h2 {
  margin: 0;
  color: #004c50;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.ic-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: #004c50;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.ic-prev {
  left: 30px;
}

.ic-next {
  right: 30px;
}

/* ==========================================
   WEEK DAYS
========================================== */

.ic-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #abc76a;
  border-bottom: 4px solid #004c50;
}

.ic-weekdays div {
  text-align: center;
  color: #004c50;
  font-size: 22px;
  font-weight: 500;
  padding: 12px;
}

/* ==========================================
   GRID
========================================== */

.ic-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.ic-day {
  min-height: 135px;
  border-right: 4px solid #004c50;
  border-bottom: 4px solid #004c50;
  background: #f6f3e8;
  position: relative;
  padding: 12px;
  overflow: hidden;
}

.ic-day:nth-child(7n) {
  border-right: none;
}

.ic-day.empty {
  background: #f6f3e8;
}

.ic-date {
  text-align: center;
  font-size: 16px;
  color: #004c50;
  margin-bottom: 8px;
}

/* ==========================================
   TODAY
========================================== */

.ic-day.today .ic-date {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #004c50;
  color: #ff8755;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  font-size: 28px;
  font-weight: 700;
}

/* ==========================================
   EVENTS
========================================== */

.ic-event {
  font-size: 13px;
  line-height: 1.15;
  color: #f47e4d;
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  word-break: break-word;
}

.ic-event:hover {
  opacity: 0.8;
}

/* ==========================================
   MODAL
========================================== */

#ic-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 999999;
}

.ic-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 90%;
  background: #efc54d;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.ic-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 34px;
  height: 34px;

  border: none;
  border-radius: 50%;

  background: #f8e39d;
  color: #333;

  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

#ic-modal-body h2 {
  margin-top: 0;
  text-align: center;
  color: #004c50;
  font-size: 28px;
}

#ic-modal-body h3 {
  text-align: center;
  font-size: 16px;
  color: #004c50;
}

#ic-modal-body p {
  color: #004c50;
  line-height: 1.6;
}

/* ==========================================
   WEEK VIEW
========================================== */

.ic-week-view {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.ic-week-column {
  min-height: 400px;
  border-right: 2px solid #004c50;
}

/* ==========================================
   DAY VIEW
========================================== */

.ic-day-view {
  padding: 30px;
}

.ic-day-view-event {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid #f47e4d;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {
  .ic-header {
    height: 65px;
  }

  .ic-header h2 {
    font-size: 32px;
  }

  .ic-weekdays div {
    font-size: 18px;
  }

  .ic-day {
    min-height: 110px;
    padding: 8px;
  }

  .ic-event {
    font-size: 11px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
  .ic-calendar {
    overflow-x: auto;
  }

  .ic-weekdays,
  .ic-grid {
    min-width: 900px;
  }

  .ic-header {
    height: 60px;
  }

  .ic-header h2 {
    font-size: 24px;
  }

  .ic-nav {
    font-size: 30px;
  }

  .ic-prev {
    left: 15px;
  }

  .ic-next {
    right: 15px;
  }

  .ic-day {
    min-height: 100px;
    padding: 6px;
  }

  .ic-date {
    font-size: 14px;
  }

  .ic-day.today .ic-date {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .ic-event {
    font-size: 10px;
    line-height: 1.2;
  }

  .ic-modal-content {
    width: 95%;
    padding: 20px;
  }

  #ic-modal-body h2 {
    font-size: 22px;
  }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {
  .ic-header h2 {
    font-size: 20px;
  }

  .ic-nav {
    font-size: 26px;
  }

  .ic-modal-content {
    padding: 15px;
  }

  #ic-modal-body h2 {
    font-size: 20px;
  }
}

/* ==========================================
   FIX MOBILE MONTH HEADER
========================================== */

.ic-scroll-area {
  width: 100%;
}

@media (max-width: 767px) {
  .ic-calendar {
    overflow: hidden;
  }

  .ic-scroll-area {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .ic-weekdays,
  .ic-grid {
    min-width: 900px;
  }

  .ic-header {
    position: relative;
    z-index: 20;
    overflow: visible;
  }

  .ic-header h2 {
    white-space: nowrap;
  }
}

/* ==========================================
   REMOVE ALL HOVER / ACTIVE EFFECTS
========================================== */

.ic-nav {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.ic-nav:hover,
.ic-nav:focus,
.ic-nav:active {
  color: #004c50 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.ic-event {
  -webkit-tap-highlight-color: transparent;
}

.ic-event:hover,
.ic-event:focus,
.ic-event:active {
  color: #f47e4d !important;
  opacity: 1 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.ic-close:hover,
.ic-close:focus,
.ic-close:active {
  background: #f8e39d !important;
  color: #333 !important;
  outline: none !important;
  box-shadow: none !important;
}

.ic-calendar *:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ===================================
   BOOKING MODAL
=================================== */

#ic-booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999999;
}

.ic-booking-content {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: 650px;
  max-width: 92%;

  background: #f6f3e8;

  border-radius: 18px;

  padding: 40px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

  border: 3px solid #004c50;
}

.ic-booking-content h2 {
  margin: 0 0 30px;

  color: #004c50;

  font-size: 42px;

  font-weight: 700;
}

.ic-booking-close {
  position: absolute;

  right: 20px;
  top: 15px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: #ffffff;

  color: #004c50;

  font-size: 24px;

  cursor: pointer;
}

.ic-form-group {
  margin-bottom: 20px;
}

.ic-form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 16px;

  color: #004c50;

  font-weight: 600;
}

.ic-form-group input {
  width: 100%;

  height: 55px;

  border: 2px solid #d8d8d8;

  border-radius: 12px;

  padding: 0 15px;

  font-size: 16px;

  background: #fff;
}

.ic-form-group input:focus {
  outline: none;

  border-color: #004c50;
}

/* ===================================
   BUTTON LIKE YOUR IMAGE
=================================== */

.ic-submit-booking {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 18px 28px;

  border: none;

  border-radius: 18px;

  background: #3e5830;

  color: #fff;

  font-size: 24px;

  font-weight: 700;

  cursor: pointer;
}

.ic-submit-booking:hover {
  opacity: 0.95;
}

.ic-book-btn {
  margin-top: 25px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 10px 20px;

  border: none;

  border-radius: 18px;

  background: #3e5830;

  color: #fff;

  font-size: 14px;

  font-weight: 700;s

  cursor: pointer;
}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 767px) {
  .ic-booking-content {
    width: 95%;

    padding: 25px;
  }

  .ic-booking-content h2 {
    font-size: 28px;
  }

  .ic-submit-booking,
  .ic-book-btn {
    width: 100%;

    font-size: 18px;
  }
}
