/* ============================================================
   SYNTROPY — BOOKING MODAL
   A lightweight, no-backend calendar booking UI.
   The user picks a date and time; the modal generates a
   pre-filled email to ceo@syntropy-systems.com with the
   meeting details and a Zoom/Teams link placeholder.
   ============================================================ */

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 15, 12, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.booking-overlay.visible {
  display: flex;
  opacity: 1;
}

.booking-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(8, 36, 30, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 52px rgba(0, 212, 255, 0.08);
  padding: 36px 32px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.booking-overlay.visible .booking-modal {
  transform: scale(1);
}

.booking-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--ink-3, #94ACA4);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.booking-close:hover { color: var(--gold, #00D4FF); }

.booking-eyebrow {
  font-family: var(--font-mono, 'Orbitron', monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #00D4FF);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.booking-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #00D4FF));
}

.booking-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink, #FFFFFF);
  margin-bottom: 8px;
}

.booking-desc {
  font-size: 14px;
  color: var(--ink-2, #B4C6C0);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Calendar ── */
.booking-calendar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-month {
  font-family: var(--font-mono, 'Orbitron', monospace);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink, #FFFFFF);
}
.cal-nav {
  background: none;
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--gold, #00D4FF);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-nav:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--gold, #00D4FF);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-label {
  font-family: var(--font-mono, 'Orbitron', monospace);
  font-size: 8px;
  color: var(--ink-4, #94ACA4);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.1em;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-2, #B4C6C0);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.cal-day:hover:not(.disabled) {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}
.cal-day.disabled {
  color: var(--ink-4, #54706A);
  cursor: not-allowed;
  opacity: 0.4;
}
.cal-day.selected {
  background: var(--gold, #00D4FF);
  color: var(--void, #0D3D31);
  font-weight: 600;
}
.cal-day.today {
  border-color: rgba(0, 212, 255, 0.4);
}
.cal-day.empty {
  cursor: default;
}

/* ── Time slots ── */
.booking-times {
  margin-bottom: 20px;
}
.booking-times-label {
  font-family: var(--font-mono, 'Orbitron', monospace);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold, #00D4FF);
  margin-bottom: 10px;
}
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.time-slot {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2, #B4C6C0);
  cursor: pointer;
  transition: all 0.2s;
}
.time-slot:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
}
.time-slot.selected {
  background: var(--gold, #00D4FF);
  color: var(--void, #0D3D31);
  border-color: var(--gold, #00D4FF);
  font-weight: 600;
}

/* ── Platform selector ── */
.booking-platform {
  margin-bottom: 20px;
}
.booking-platform-label {
  font-family: var(--font-mono, 'Orbitron', monospace);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold, #00D4FF);
  margin-bottom: 10px;
}
.platform-options {
  display: flex;
  gap: 8px;
}
.platform-option {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.platform-option:hover {
  border-color: rgba(0, 212, 255, 0.3);
}
.platform-option.selected {
  border-color: var(--gold, #00D4FF);
  background: rgba(0, 212, 255, 0.08);
}
.platform-option i {
  font-size: 18px;
  color: var(--ink-2, #B4C6C0);
  margin-bottom: 4px;
  display: block;
}
.platform-option.selected i {
  color: var(--gold, #00D4FF);
}
.platform-option span {
  font-size: 11px;
  color: var(--ink-3, #94ACA4);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.05em;
}

/* ── Summary + confirm ── */
.booking-summary {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-2, #B4C6C0);
  line-height: 1.6;
}
.booking-summary strong {
  color: var(--gold, #00D4FF);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.booking-confirm {
  width: 100%;
  padding: 14px;
  background: var(--gold, #00D4FF);
  color: var(--void, #0D3D31);
  border: none;
  border-radius: 10px;
  font-family: var(--font-mono, 'Orbitron', monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.booking-confirm:hover {
  background: var(--gold-2, #00FFC2);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
}
.booking-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking-note {
  font-size: 11px;
  color: var(--ink-4, #94ACA4);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .booking-modal { padding: 24px 20px; }
  .platform-options { flex-direction: column; }
}
