/*
  LUNAARI — SimplyBook (BOOKING PAGE) Consolidated CSS
  Includes: Google Fonts load + Brand Tokens + Typography enforcement + Your existing styling
  Paste into SimplyBook → Custom CSS → Booking pages CSS
*/

/* ---------- Load Fonts (must be first) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Montserrat:wght@400;500;600;700&display=swap');

/* ---------- Brand Tokens (scoped for safety) ---------- */
#events, #eventForm {
  --lunaari-sand: #F2E9D8;        /* Desert Sand (locked system) */
  --lunaari-smoke: #D7D3C8;       /* Warm Smoke */
  --lunaari-white: #FFFFFF;       /* Moon White */
  --lunaari-charcoal: #1E1E1E;    /* Obsidian Charcoal */
  --lunaari-clay: #C46A3B;        /* Desert Clay */
  --lunaari-brown: #5C3B2E;       /* Mesquite Brown */
  --lunaari-red: #B0222A;         /* Fire Thread Red (micro use) */
  --lunaari-green: #3A5F2F;       /* Heritage Green (micro use) */

  --lunaari-radius: 10px;
  --lunaari-shadow: 0 8px 22px rgba(30, 30, 30, 0.10);
}

/* ---------- Global type + base surfaces ---------- */
#events, #eventForm, div.ui-widget-content, div.ui-widget-header {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--lunaari-charcoal);
}

#events, #eventForm {
  background: var(--lunaari-sand);
}

/* ---------- Font enforcement (helps beat theme overrides) ---------- */
#events,
#eventForm,
#events *,
#eventForm *,
div.ui-widget-content,
div.ui-widget-content *,
div.ui-widget-header,
div.ui-widget-header * {
  font-family: "Montserrat", Arial, sans-serif;
}

/* ---------- Headings ---------- */
#events h1, #events h2, #events h3,
#eventForm h1, #eventForm h2, #eventForm h3,
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--lunaari-charcoal);
  margin-bottom: 10px;
}

/* ---------- Event meta text ---------- */
#events p.duration, #events div.duration,
#events p.description, #events div.description {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(30, 30, 30, 0.86);
}

/* ---------- Selected event card ---------- */
#events .selectedEvent {
  background: var(--lunaari-white);
  border: 1px solid rgba(30, 30, 30, 0.10);
  border-left: 4px solid var(--lunaari-clay);
  border-radius: var(--lunaari-radius);
  box-shadow: var(--lunaari-shadow);
  padding: 14px 16px;
}

/* ---------- Buttons ---------- */
#events input.reserve_time_btn,
#eventForm #save_button {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Primary action */
#events input.reserve_time_btn,
#eventForm #save_button {
  background: var(--lunaari-charcoal);
  color: var(--lunaari-white);
  box-shadow: 0 6px 16px rgba(30, 30, 30, 0.18);
}

#events input.reserve_time_btn:hover,
#eventForm #save_button:hover {
  background: #141414;
  transform: translateY(-1px);
}

/* Secondary action */
#events input.select_another_btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.18);
  padding: 10px 16px;
  background: transparent;
  color: var(--lunaari-charcoal);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

#events input.select_another_btn:hover {
  background: rgba(30, 30, 30, 0.04);
  transform: translateY(-1px);
}

/* ---------- jQuery UI containers ---------- */
div.ui-widget-content {
  background: var(--lunaari-white);
  border: 1px solid rgba(30, 30, 30, 0.10);
  border-radius: var(--lunaari-radius);
  box-shadow: var(--lunaari-shadow);
}

div.ui-widget-header {
  background: var(--lunaari-smoke);
  border: 1px solid rgba(30, 30, 30, 0.10);
  border-radius: var(--lunaari-radius);
  color: var(--lunaari-charcoal);
}

/* ---------- Timeline table ---------- */
#timeline-container table.timeline {
  border-collapse: separate;
  border-spacing: 6px;
  width: 100%;
}

/* Time cells: consistent geometry */
#timeline-container table.timeline td {
  border-radius: 8px;
  border: 1px solid rgba(30, 30, 30, 0.10);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
}

/* Not worked time (unavailable) */
.timeline td.not_worked_time {
  background: rgba(215, 211, 200, 0.60);
  color: rgba(30, 30, 30, 0.55);
}

/* Free time (available) */
.timeline td.free_time {
  background: var(--lunaari-white);
  color: var(--lunaari-charcoal);
}

/* Selected time (user selection) */
.timeline td.selected_time {
  background: rgba(196, 106, 59, 0.16);
  border-color: rgba(196, 106, 59, 0.55);
  color: var(--lunaari-charcoal);
}

/* Reserved time (booked) */
.timeline td.reserved_time {
  background: rgba(30, 30, 30, 0.10);
  color: rgba(30, 30, 30, 0.65);
}

/* ---------- Focus micro-accent (heritage, subtle) ---------- */
#events input.reserve_time_btn:focus,
#eventForm #save_button:focus,
#events input.select_another_btn:focus {
  outline: 2px solid rgba(58, 95, 47, 0.35);
  outline-offset: 2px;
}

/* ---------- Loading indicator ---------- */
div#loading {
  background: rgba(255, 255, 255, 0.92);
  color: var(--lunaari-charcoal);
  border: 1px solid rgba(30, 30, 30, 0.10);
  border-radius: var(--lunaari-radius);
  box-shadow: var(--lunaari-shadow);
  padding: 10px 14px;
}

/* ---------- Start date labels ---------- */
#start_date-block-container .zend_form dt,
#start_date-block-container .zend_form dt b,
#start_date-block-container .zend_form dd label {
  font-family: "Montserrat", Arial, sans-serif;
  color: rgba(30, 30, 30, 0.85);
}

/* ---------- Required markers (red thread, micro) ---------- */
#start_date-block-container .zend_form dd label .required,
#eventForm .required,
#events .required {
  color: var(--lunaari-red);
}