/* ---- shared (admin) ---- */
body { background: #f7f7fb; font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif; }
.navbar-brand { font-weight: 600; }
main { min-height: 70vh; }
.card { border: 1px solid #e5e7ef; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
footer { border-top: 1px solid #e5e7ef; background: #fff; }

/* ====================================================================
   PUBLIC BOOKING PAGE — Calendly-style
   ==================================================================== */
.book-body {
  background: #f4f5f7;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  margin: 0;
  min-height: 100vh;
}

.book-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px;
  transition: max-width .2s;
}
.book-wrap:has(.book-card.has-slots) { max-width: 1060px; }

.book-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.08);
  overflow: hidden;
  border: 1px solid #e5e7ef;
}
.book-card.has-slots {
  grid-template-columns: 280px 1fr 220px;
}

/* ---- LEFT (host profile) ---- */
.book-left {
  padding: 28px 28px 24px;
  border-right: 1px solid #eceef2;
  background: #fff;
}
.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0069ff;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0069ff, #3aa0ff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px;
  margin-bottom: 14px;
}
.avatar-img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  display: block;
}
.type-desc { font-style: italic; }
.bio { margin-top: 18px; border-top: 1px solid #eceef2; padding-top: 16px; }
.host-name {
  font-size: 14px;
  color: #4a4a68;
  margin-bottom: 6px;
}
.event-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #0a1a3b;
}
.meta {
  display: flex; align-items: center; gap: 8px;
  color: #4a4a68;
  font-size: 14px;
  margin-bottom: 10px;
}
.meta svg { color: #7a7a94; }
.desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #3a3a55;
  white-space: pre-wrap;
}

/* ---- CENTER (calendar / form) ---- */
.book-right {
  padding: 28px 28px 28px;
  min-height: 500px;
}
.cal-col { max-width: 420px; margin: 0 auto; }

/* ---- SLOTS COLUMN (right) ---- */
.book-slots {
  padding: 60px 20px 28px;
  border-left: 1px solid #eceef2;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
.panel-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #0a1a3b;
}

/* Meeting type chooser (step 1) */
.type-list { display: flex; flex-direction: column; gap: 10px; }
.type-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.type-item:hover { border-color: #0069ff; background: #f5faff; }
.type-name { font-weight: 600; color: #0a1a3b; font-size: 15px; }
.type-sub  { color: #6b6b85; font-size: 13px; margin-top: 3px; }
.chev { color: #9a9ab0; font-size: 22px; }

/* Calendar header */
.cal-head {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
}
.cal-label { font-weight: 600; font-size: 15px; color: #0a1a3b; }
.nav-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #4a4a68;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: background .15s;
}
.nav-btn:hover { background: #eef1f7; }

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 16px;
}
.dow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .6px;
  color: #6b6b85;
  padding: 4px 0 6px;
}
.cell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: #c4c6d4;
  text-decoration: none;
}
.cell.empty { visibility: hidden; }
.cell.available {
  color: #0069ff;
  font-weight: 600;
  background: #e7f0ff;
  cursor: pointer;
  transition: all .15s;
}
.cell.available:hover { background: #0069ff; color: #fff; }
.cell.picked { background: #0069ff !important; color: #fff !important; }
.cell.disabled { color: #c4c6d4; cursor: default; }
.cell.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* Time slots column */
.slots-head {
  font-weight: 600;
  color: #0a1a3b;
  margin-bottom: 14px;
  font-size: 15px;
}
.slots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.slot {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid #b8d4ff;
  border-radius: 6px;
  color: #0069ff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .15s;
  background: #fff;
}
.slot:hover { background: #0069ff; color: #fff; border-color: #0069ff; }

/* Timezone selector — compact Calendly style */
.tz-row {
  margin-top: 22px;
}
.tz-row .tz-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3b;
  margin-bottom: 6px;
}
.tz-row .tz-label svg { display: none; }
.tz-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4a68;
  font-size: 13px;
}
.tz-pill svg { color: #6b6b85; }
.tz-select {
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #4a4a68;
  font-family: inherit;
  padding: 2px 4px;
  cursor: pointer;
  max-width: 240px;
}
.tz-select:hover { color: #0069ff; }
.tz-select:focus { outline: none; }

/* Step 3 — form */
.summary {
  background: #f4f7fb;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3b;
  margin-bottom: 14px;
}
.form input, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d8dbe6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: #0069ff;
  box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.15);
}
.req { color: #d93025; font-weight: 400; }

.btn-primary {
  display: inline-block;
  background: #0069ff;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: #0055d4; color: #fff; }

/* Success */
.success { text-align: center; padding: 30px 10px; }
.success .check {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: #0069ff;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.success h2 { margin: 0 0 8px; font-size: 22px; color: #0a1a3b; }
.success .btn-primary { margin-top: 18px; }

/* Helpers */
.muted { color: #6b6b85; }
.small { font-size: 13px; }
.alert-err {
  background: #fdecea;
  color: #b3261e;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* Footer */
.book-footer {
  text-align: center;
  color: #6b6b85;
  font-size: 12px;
  margin-top: 22px;
}
.book-footer strong { color: #0069ff; }

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .book-wrap, .book-wrap:has(.book-card.has-slots) { padding: 16px 12px; max-width: 100%; }
  .book-card, .book-card.has-slots { grid-template-columns: 1fr; }
  .book-left { border-right: 0; border-bottom: 1px solid #eceef2; padding: 22px; }
  .book-right { padding: 22px; min-height: auto; }
  .book-slots {
    border-left: 0; border-top: 1px solid #eceef2;
    padding: 20px 22px; min-height: auto;
  }
  .event-title { font-size: 19px; }
}
