/* ============================================================
   ShvetSing — popup alegere zi + oră curs
   Refolosește variabilele din style.css (--color-primary,
   --bg-surface, --border-soft, --radius-*, --font-body etc.)
   ============================================================ */

.form-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.slot-selected{
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
  min-height: 16px;
}
.slot-selected.has-value{
  color: var(--color-secondary);
  font-weight: 600;
}

.form-note.is-error{ color: var(--color-accent); font-weight: 600; }

/* ---------- Popup overlay ---------- */
.slot-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(5,5,6,.75);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0;
}
.slot-modal-backdrop.open{ display: flex; }
body.slot-modal-lock{ overflow: hidden; }

@media (min-width: 640px){
  .slot-modal-backdrop{ align-items: center; padding: 20px; }
}

.slot-modal{
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: slotModalIn .25s ease;
}
@media (min-width: 640px){
  .slot-modal{ border-radius: var(--radius-lg); max-height: 80vh; }
}
@keyframes slotModalIn{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: translateY(0); }
}

.slot-modal-head{
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-soft);
  z-index: 1;
}
.slot-modal-head h3{ font-size: 16px; margin: 0; }
.slot-modal-close{
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-modal-close:hover{ border-color: var(--color-primary); color: var(--color-primary); }

.slot-modal-body{ padding: 18px 20px 24px; }

/* ---------- Calendar ---------- */
.bk-loading,
.bk-empty{
  font-size: .88rem;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 6px;
}

.bk-months{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.bk-month{ flex: 1 1 240px; min-width: 220px; }
.bk-month-label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bk-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bk-hdr{
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 0 6px;
}
.bk-day{
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.02);
  color: var(--text-body);
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.bk-day.bk-empty-cell{ background: transparent; border: none; }
.bk-day.bk-past,
.bk-day.bk-full{ opacity: .35; cursor: not-allowed; }
.bk-day.bk-avail{
  cursor: pointer;
  border-color: rgba(238,43,106,.4);
  color: #fff;
}
.bk-day.bk-avail:hover{
  border-color: var(--color-primary);
  background: rgba(238,43,106,.12);
  transform: translateY(-1px);
}
.bk-day.bk-selected{
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.bk-hours{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bk-hours-title{
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.bk-hour-chip{
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.02);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.bk-hour-chip:hover{ border-color: var(--color-primary); color: var(--color-primary); }
.bk-hour-chip.bk-chip-selected{
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: transparent;
  color: #fff;
}

@media (max-width: 480px){
  .slot-modal-body{ padding: 14px 14px 20px; }
  .bk-months{ gap: 26px; }
  .bk-month{ min-width: 100%; }
}
