/* booking.css – Ravanyar Booking page styles */

/* Override .page-head__motif positioning for the booking page */
.page-head__motif {
  top: -30px; left: -40px;
  width: 200px;
}

/* Filters bar */
.filters {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: end;
}
.filters__field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1; }
.filters__field label { font-size: 0.8rem; color: var(--ink-mute); font-weight: 500; }
.filters__field select, .filters__field input {
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink);
}
.filters__count { color: var(--ink-mute); font-size: 0.9rem; }

/* Counselor list */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) { .booking-layout { grid-template-columns: 1fr; } }

.counselors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.c-card:hover { border-color: var(--sage-2); box-shadow: var(--shadow); }
.c-card.is-selected { border-color: var(--sage-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-2) 22%, transparent); }

.c-card__avatar {
  width: 96px; height: 96px;
  border-radius: 24px;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  position: relative;
  overflow: hidden;
}
.c-card__avatar::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
}
.c-card__badge {
  position: absolute;
  bottom: 6px; left: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #4ea76b;
  border: 2px solid var(--bg-card);
  z-index: 1;
}
.c-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.c-card__name { font-weight: 700; font-size: 1.15rem; }
.c-card__cred { color: var(--ink-mute); font-size: 0.9rem; }
.c-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.c-card__meta { display: flex; gap: 16px; color: var(--ink-2); font-size: 0.88rem; margin-top: 8px; flex-wrap: wrap; }
.c-card__meta-item { display: flex; align-items: center; gap: 6px; }
.c-card__bio { color: var(--ink-mute); font-size: 0.92rem; line-height: 1.8; }

.c-card__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: end;
  text-align: left;
  min-width: 140px;
}
.c-card__rate { font-weight: 800; font-size: 1.2rem; color: var(--sage-3); }
.c-card__rate small { font-weight: 400; color: var(--ink-mute); font-size: 0.8rem; }
.c-card__avail-pill {
  background: color-mix(in srgb, #4ea76b 18%, transparent);
  color: #2e6b40;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.c-card__rating { color: var(--ink-2); font-size: 0.88rem; display:flex; align-items:center; gap:4px; }
@media (max-width: 720px) {
  .c-card { grid-template-columns: 72px 1fr; gap: 14px; padding: 18px; }
  .c-card__avatar { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 18px; }
  .c-card__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
}

/* Booking sidebar */
.booking-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.booking-side__hdr { display: flex; gap: 14px; align-items: center; }
.booking-side__avatar {
  width: 56px; height: 56px; border-radius: 16px;
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
}
.booking-side__step { color: var(--ink-mute); font-size: 0.82rem; }
.booking-side__stepname { font-weight: 700; font-size: 1.05rem; }

.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.steps span {
  height: 4px;
  flex: 1;
  background: var(--bg-deep);
  border-radius: 999px;
  transition: background 0.2s;
}
.steps span.is-active, .steps span.is-done { background: var(--sage-3); }

.tz-chip {
  background: color-mix(in srgb, var(--sage-1) 30%, transparent);
  color: var(--sage-3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Date strip */
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.date-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
  color: var(--ink);
}
.date-cell:hover { border-color: var(--sage-2); }
.date-cell.is-selected {
  background: var(--sage-3);
  color: var(--bg);
  border-color: var(--sage-3);
}
.date-cell.is-disabled { opacity: 0.35; cursor: not-allowed; }
.date-cell__day { font-size: 0.72rem; color: inherit; opacity: 0.7; }
.date-cell__num { font-weight: 700; font-size: 1.05rem; margin-top: 2px; }

/* Time slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.15s;
}
.slot:hover { border-color: var(--sage-2); }
.slot.is-selected {
  background: var(--sage-3);
  color: var(--bg);
  border-color: var(--sage-3);
}
.slot.is-disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.summary {
  background: color-mix(in srgb, var(--sage-1) 22%, var(--bg-warm));
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}
.summary div { display: flex; justify-content: space-between; }
.summary strong { color: var(--ink); }

/* Empty state for booking sidebar */
.booking-side__empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--ink-mute);
}
.booking-side__empty svg { margin: 0 auto 12px; color: var(--sage-2); opacity: 0.6; }

/* Success */
.success-card {
  text-align: center;
  padding: 8px 0;
}
.success-card .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, #4ea76b 22%, transparent);
  color: #2e6b40;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  animation: pop 0.5s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
