/* ============================================
   BOOKING POPUP - COMPACT TWO-COLUMN LAYOUT
   Left: Dark (Calendar) | Right: White (Form)
   ============================================ */

/* Overlay */
.booking-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 200, 210, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.booking-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.booking-popup {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 800px; /* Increased from 720px for wider left col */
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.booking-popup-overlay.active .booking-popup {
  transform: scale(1);
}

/* Close Button */
.booking-close {
  position: absolute;
  top: 15px; /* Slight adjustment */
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05); /* Softer bg */
  border-radius: 50%;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-close:hover {
  background: #6166E4;
  color: #fff; /* White icon on hover */
  transform: rotate(90deg);
}

/* Body - Two Column */
.booking-body {
  display: grid;
  grid-template-columns: 320px 1fr; /* Widen left col to 320px */
}

/* Left Column - Dark */
.booking-left {
  background: #1a1a1a;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-section {
  margin: 0;
}

.booking-section h4 {
  color: #6166E4;
  font-size: 0.9em; /* Increased from 0.65em */
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px; /* More gap */
}

.booking-section h4 i {
  font-size: 1.1em; /* Increased from 0.9em */
}

/* Meeting Type - Minimal */
.meeting-types {
  display: flex;
  gap: 5px;
}

.meeting-type-option {
  flex: 1;
  cursor: pointer;
}


.meeting-type-option input {
  display: none;
}

.meeting-type-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 12px 10px; /* Increased padding */
  text-align: center;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.meeting-type-card i {
  font-size: 1.4rem; /* Increased Icon */
  color: #666;
  display: block;
  margin-bottom: 8px;
}

.meeting-type-card span {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem; /* Increased from 0.6em */
}

.meeting-type-option input:checked + .meeting-type-card {
  background: rgba(97, 102, 228, 0.2);
  border-color: #6166E4;
}

.meeting-type-option input:checked + .meeting-type-card i {
  color: #6166E4;
}

/* Calendar - COMPACT */
.booking-calendar {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 15px; /* Comfortable padding */
}

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

.calendar-header span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem; /* Matched to normal text size */
}

.calendar-nav {
  width: 32px; /* Larger targets */
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav:hover {
  background: #6166E4;
  color: #000;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  color: #a0a0a0;
  font-size: 0.8rem; /* readable weekdays */
  font-weight: 600;
  padding: 4px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1; /* Keep square */
  height: auto;
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 0.9rem; /* standard number size */
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(97, 102, 228, 0.3);
  color: #fff;
}

.calendar-day.selected {
  background: #6166E4;
  color: #000;
  font-weight: 700;
}

.calendar-day.today {
  border: 1px solid #6166E4;
}

.calendar-day.disabled {
  color: #333;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
}

/* Time Slots - Compact Grid */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #ccc;
  font-weight: 600;
  font-size: 0.85rem; /* Larger time text */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.time-slot:hover {
  border-color: #6166E4;
  background: rgba(97, 102, 228, 0.1);
  color: #fff;
}

.time-slot.selected {
  background: #6166E4;
  border-color: #6166E4;
  color: #000;
}

/* Logo Left Column Styling */
.logo-section {
  margin-bottom: 5px; /* Spacing halus */
  display: flex;
  justify-content: center; /* Center logo di panel kiri */
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-logo-img-left {
  max-height: 40px; /* Ukuran pas untuk sidebar */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Right Column - White */
.booking-right {
  padding: 35px 40px; /* Padding lebih lega untuk seimbangkan visual */
  display: flex;
  flex-direction: column;
  background: #fff;
  justify-content: center; /* Vertical center content */
}

/* Hapus .booking-logo-img lama di sini */

.booking-right h3 {
  color: #1a1a1a;
  font-family: 'Exo 2', sans-serif; /* Font Heading Tema */
  font-size: 1.5em; /* Lebih besar */
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.booking-right > p {
  color: #666;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em; /* Lebih terbaca */
  margin: 0 0 25px;
  line-height: 1.5;
}

/* Form Styling - Eye Catching & User Friendly */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Adjusted gap for balance */
  flex: 1;
  position: relative; /* Context for dropdown z-index */
}

/* Custom Dropdown Styling */
.custom-dropdown {
  position: relative;
  font-family: 'Exo 2', sans-serif;
  z-index: 100; /* Ensure stays on top */
}

.dropdown-trigger {
  background: #f0f4ff; /* Light bluish tint background */
  border: 2px solid #6166E4; /* Active look by default based on UI */
  border-radius: 50px; /* Fully rounded pill shape */
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(97, 102, 228, 0.15);
}

.dropdown-trigger:hover {
  background: #eef2ff;
  box-shadow: 0 6px 20px rgba(97, 102, 228, 0.2);
}

.dropdown-trigger span {
  font-weight: 700;
  color: #6166E4; /* Purple text */
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.dropdown-trigger i {
  color: #6166E4;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-trigger i {
  transform: rotate(180deg);
}

/* Dropdown Options */
.dropdown-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(97, 102, 228, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  max-height: 250px;
  overflow-y: auto;
}

.custom-dropdown.active .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option {
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  color: #6B7280;
  font-weight: 600;
  font-size: 0.85em;
  transition: all 0.2s;
  text-transform: uppercase;
}

.dropdown-option:hover,
.dropdown-option.selected {
  background: #6166E4;
  color: #fff;
}

/* Standard Inputs */
.booking-form input,
.booking-form textarea {
  background: #FAFAFA;
  border: 1px solid #E5E7EB;
  border-radius: 12px; /* Smooth rounded */
  padding: 14px 16px; /* Padding lebih besar */
  color: #1F2937;
  font-size: 0.95em; /* Font input lebih besar */
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: #6166E4; /* Ungu Tema */
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(97, 102, 228, 0.15); /* Focus Ring */
  transform: translateY(-1px);
}

.booking-form textarea {
  min-height: 80px; /* Textarea lebih tinggi */
  resize: vertical;
}

/* Summary Box */
.booking-summary {
  background: linear-gradient(135deg, rgba(97, 102, 228, 0.05), rgba(97, 102, 228, 0.1));
  border: 1px solid rgba(97, 102, 228, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-empty {
  color: #6B7280;
  font-size: 0.85em;
  font-style: italic;
}

.summary-content .date {
  font-weight: 700;
  color: #6166E4;
  font-size: 0.95em;
  font-family: 'Exo 2', sans-serif;
}

.summary-content .type {
  color: #4B5563;
  font-size: 0.85em;
  font-weight: 500;
}

/* Submit Button - Gradient Eye Catching */
.booking-submit {
  padding: 16px; /* Tombol lebih besar */
  border: none;
  background: linear-gradient(135deg, #6166E4 0%, #4F54C7 100%);
  color: #ffffff; /* Teks putih agar kontras */
  font-size: 1em;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(97, 102, 228, 0.3);
  letter-spacing: 0.5px;
}

.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #E5E7EB;
  color: #9CA3AF;
  box-shadow: none;
}

.booking-submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(97, 102, 228, 0.4);
  background: linear-gradient(135deg, #7075F0 0%, #5D62D6 100%);
}

/* Hide old elements */
.booking-header,
.booking-footer {
  display: none !important;
}

/* Responsive */
@media (max-width: 700px) {
  .booking-body {
    grid-template-columns: 1fr;
  }
  
  .booking-left {
    border-radius: 0;
  }
  
  .booking-popup {
    max-height: 90vh;
    overflow-y: auto;
  }
}
