/* =============================================
   Essons AI Concierge - Booking System Styles
   ============================================= */

.eac-bk {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
}

.eac-bk-header {
  text-align: center;
  margin-bottom: 36px;
}

.eac-bk-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.eac-bk-subtitle {
  color: #6c757d;
  font-size: 15px;
  margin: 0;
}

.eac-bk-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Calendar */
.eac-bk-calendar-wrap {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
}

.eac-bk-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.eac-bk-month-label {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.eac-bk-nav-btn {
  background: #f0f2f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #1a1a2e;
}

.eac-bk-nav-btn:hover {
  background: #1a1a2e;
  color: #fff;
}

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

.eac-bk-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  padding: 8px 0;
}

.eac-bk-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.eac-bk-day:hover:not(.disabled):not(.empty) {
  background: #e8ecf1;
}

.eac-bk-day.empty {
  cursor: default;
}

.eac-bk-day.disabled {
  color: #ced4da;
  cursor: not-allowed;
  text-decoration: line-through;
}

.eac-bk-day.today {
  border: 2px solid #e94560;
  font-weight: 600;
}

.eac-bk-day.selected {
  background: #1a1a2e;
  color: #fff;
}

.eac-bk-day.has-bookings::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e94560;
}

.eac-bk-day.fully-booked {
  background: #fee2e2;
  color: #b91c1c;
  cursor: not-allowed;
}

/* Time Slots */
.eac-bk-slots-wrap h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}

.eac-bk-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.eac-bk-slot {
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.eac-bk-slot:hover:not(.unavailable) {
  border-color: #1a1a2e;
  background: #f0f2f5;
}

.eac-bk-slot.selected {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

.eac-bk-slot.unavailable {
  background: #f8f9fa;
  color: #ced4da;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Form */
.eac-bk-form h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.eac-bk-selected-info {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  gap: 16px;
}

.eac-bk-field {
  margin-bottom: 14px;
}

.eac-bk-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.eac-bk-input,
.eac-bk-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.eac-bk-input:focus,
.eac-bk-textarea:focus {
  border-color: #1a1a2e;
  outline: none;
}

.eac-bk-textarea {
  min-height: 60px;
  resize: vertical;
}

.eac-bk-submit {
  width: 100%;
  padding: 12px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.eac-bk-submit:hover {
  background: #e94560;
}

.eac-bk-change {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 13px;
  color: #6c757d;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.eac-bk-change:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
}

/* Success */
.eac-bk-success {
  text-align: center;
  padding: 40px 20px;
}

.eac-bk-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2ecc71;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.eac-bk-success h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.eac-bk-success p {
  color: #6c757d;
  font-size: 14px;
}

.eac-bk-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
  transition: background 0.2s;
}

.eac-bk-btn:hover {
  background: #e94560;
  color: #fff;
}

/* Responsive */
@media (max-width: 700px) {
  .eac-bk-layout {
    grid-template-columns: 1fr;
  }
}

/* Dark mode */
[data-theme="dark"] .eac-bk { color: #e0e0e0; }
[data-theme="dark"] .eac-bk-header h2 { color: #e0e0e0; }
[data-theme="dark"] .eac-bk-calendar-wrap { background: #1e1e2f; border-color: #3a3a4d; }
[data-theme="dark"] .eac-bk-day:hover:not(.disabled):not(.empty) { background: #2a2a3d; }
[data-theme="dark"] .eac-bk-slot { border-color: #3a3a4d; }
[data-theme="dark"] .eac-bk-slot:hover:not(.unavailable) { background: #2a2a3d; }
[data-theme="dark"] .eac-bk-input, [data-theme="dark"] .eac-bk-textarea { background: #2a2a3d; border-color: #3a3a4d; color: #e0e0e0; }
[data-theme="dark"] .eac-bk-selected-info { background: #2a2a3d; }
