/* HS Booking Calendar v4 — Frontend | hanssilver.com */
.hs-wrap *, .hs-wrap *::before, .hs-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.hs-wrap {
  --hp:    #eb589d;
  --hpd:   #c03a7e;
  --hps:   rgba(235,88,157,0.09);
  --hpb:   rgba(235,88,157,0.22);
  --hbg:   #fdf5fb;
  --hcard: #ffffff;
  --htx:   #18181b;
  --hmu:   #71717a;
  --hbl:   #ede8f2;
  --hbt:   #ffffff;
  --hht:   #ffffff;
  --hok:   #16a34a;

  font-family: 'Poppins', sans-serif;
  max-width: 980px;
  margin: 0 auto;
  background: var(--hcard);
  border: 1px solid var(--hpb);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

/* HEAD */
.hs-head {
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--hp), var(--hpd));
}
.hs-head-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--hht);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.hs-head-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* BODY GRID */
.hs-body {
  display: grid;
  grid-template-columns: 1fr 350px;
}
@media (max-width: 700px) { .hs-body { grid-template-columns: 1fr; } }

/* LEFT */
.hs-cal-col {
  padding: 24px;
  background: var(--hbg);
  border-right: 1px solid var(--hbl);
}
.hs-avail-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hp);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hs-avail-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--hp);
  border-radius: 50%;
}

/* FULLCALENDAR */
#hs-cal .fc { font-family: 'Poppins', sans-serif !important; }
#hs-cal .fc-toolbar-title { font-size: 14px !important; font-weight: 600 !important; color: var(--htx) !important; }
#hs-cal .fc-button {
  background: var(--hcard) !important;
  border: 1px solid var(--hpb) !important;
  color: var(--hp) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  padding: 5px 11px !important;
  font-weight: 500 !important;
  font-family: 'Poppins', sans-serif !important;
  transition: all .15s !important;
}
#hs-cal .fc-button:hover { background: var(--hp) !important; color: #fff !important; border-color: var(--hp) !important; }
#hs-cal .fc-col-header-cell-cushion { color: var(--hmu) !important; font-size: 10px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
#hs-cal .fc-daygrid-day-number { color: var(--htx) !important; font-size: 12px !important; font-weight: 500 !important; }
#hs-cal .fc-day-today { background: var(--hps) !important; }
#hs-cal .fc-day-today .fc-daygrid-day-number { color: var(--hp) !important; font-weight: 700 !important; }
#hs-cal .fc-day-past .fc-daygrid-day-number { color: #d4d4d8 !important; }
#hs-cal .fc-scrollgrid { border: none !important; }
#hs-cal .fc-scrollgrid td, #hs-cal .fc-scrollgrid th { border-color: var(--hbl) !important; }
#hs-cal .fc-daygrid-day { border-color: var(--hbl) !important; }
#hs-cal .hs-avail .fc-daygrid-day-frame { background: var(--hps); cursor: pointer; }
#hs-cal .hs-avail:hover .fc-daygrid-day-frame { background: rgba(235,88,157,0.15); }
#hs-cal .hs-avail .fc-daygrid-day-number { color: var(--hp) !important; font-weight: 700 !important; }
#hs-cal .hs-sel .fc-daygrid-day-frame { background: var(--hp) !important; border-radius: 8px; }
#hs-cal .hs-sel .fc-daygrid-day-number { color: #fff !important; }

/* RIGHT */
.hs-right-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: 620px;
}
.hs-right-col::-webkit-scrollbar { width: 3px; }
.hs-right-col::-webkit-scrollbar-thumb { background: var(--hpb); border-radius: 3px; }

/* PROMPT */
.hs-prompt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  text-align: center;
  color: var(--hmu);
}
.hs-prompt-icon {
  width: 56px; height: 56px;
  background: var(--hps);
  border: 1px solid var(--hpb);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--hp);
}
.hs-prompt p { font-size: 13px; line-height: 1.65; max-width: 210px; color: var(--hmu); }

/* SLOTS */
.hs-chosen-date {
  background: var(--hbg);
  border: 1px solid var(--hpb);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp);
  margin-bottom: 16px;
}
.hs-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--hmu);
  font-weight: 600;
  margin-bottom: 10px;
}
.hs-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.hs-slot {
  background: var(--hbg);
  border: 1.5px solid var(--hpb);
  border-radius: 10px;
  padding: 11px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--htx);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}
.hs-slot:hover { border-color: var(--hp); color: var(--hp); background: var(--hps); }
.hs-slot.on { background: var(--hp) !important; border-color: var(--hp) !important; color: var(--hbt) !important; }
.hs-slot.off { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.hs-no-slots, .hs-loading-msg { text-align: center; font-size: 12px; color: var(--hmu); padding: 18px 0; }

/* FORM */
.hs-summary {
  background: var(--hbg);
  border: 1px solid var(--hpb);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Fields */
.hs-fgroup { margin-bottom: 14px; }
.hs-flabel {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--htx);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hs-flabel-q {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--htx);
  line-height: 1.6;
  margin-bottom: 10px;
}
.hs-req { color: var(--hp); }

.hs-input {
  width: 100%;
  background: var(--hbg);
  border: 1.5px solid var(--hpb);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--htx);
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.hs-input:focus {
  border-color: var(--hp);
  box-shadow: 0 0 0 3px var(--hps);
  background: var(--hcard);
}
.hs-input::placeholder { color: #c4c4cc; }
.hs-textarea { resize: vertical; min-height: 76px; }
.hs-select { cursor: pointer; }

/* Radio / Checkbox */
.hs-radio-grp { display: flex; flex-direction: column; gap: 7px; }
.hs-radio-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border: 1.5px solid var(--hpb);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-size: 12.5px;
  color: var(--htx);
  font-weight: 400;
  background: var(--hbg);
  user-select: none;
  position: relative;
}
.hs-radio-opt:hover { border-color: var(--hp); background: var(--hps); }
.hs-radio-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.hs-mark {
  width: 16px; height: 16px;
  border: 2px solid var(--hpb);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.hs-mark::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--hp);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .15s;
}
.hs-check-mark { border-radius: 4px !important; }
.hs-check-mark::after { border-radius: 2px !important; }
.hs-radio-opt.on { border-color: var(--hp); background: var(--hps); }
.hs-radio-opt.on .hs-mark { border-color: var(--hp); }
.hs-radio-opt.on .hs-mark::after { transform: scale(1); }

/* Error */
.hs-err {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.22);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Submit */
.hs-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--hp), var(--hpd));
  color: var(--hbt);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 16px var(--hps);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hs-submit:hover { opacity: .91; transform: translateY(-1px); }
.hs-submit:active { transform: none; }
.hs-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hs-privacy-note { text-align: center; font-size: 11px; color: var(--hmu); margin-top: 10px !important; }

/* Spinner */
.hs-spin-wrap { display: flex; align-items: center; gap: 7px; }
.hs-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hsspin .7s linear infinite;
  display: inline-block;
}
@keyframes hsspin { to { transform: rotate(360deg); } }

/* Success */
.hs-success {
  padding: 60px 32px;
  text-align: center;
  border-top: 1px solid var(--hbl);
}
.hs-success-icon { color: var(--hp); display: flex; justify-content: center; margin-bottom: 16px; }
.hs-success h3 { font-size: 22px; font-weight: 700; color: var(--htx); margin-bottom: 10px; }
.hs-success p  { font-size: 14px; color: var(--hmu); line-height: 1.7; }


/* ══════════════════════════════════════════
   CALENDAR BOOKING COUNT BADGES
══════════════════════════════════════════ */

/* Give each day cell enough height for the badge */
#hs-cal .fc-daygrid-day-frame { min-height: 58px !important; position: relative; }

/* Keep the default day number but style it */
#hs-cal .fc-daygrid-day-number { font-family:'Poppins',sans-serif !important; font-size:12px !important; font-weight:500 !important; padding:4px 6px !important; }

/* The booking count badge rendered via eventContent */
.hs-cal-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--hp);
  color: #fff;
  border-radius: 20px;
  padding: 2px 7px 2px 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}
.hs-cal-uico { flex-shrink: 0; opacity: .9; }

/* FullCalendar event wrapper inside day grid — make it sit at bottom */
#hs-cal .fc-daygrid-event-harness {
  position: absolute !important;
  bottom: 4px !important;
  left: 4px !important;
  right: auto !important;
  top: auto !important;
  z-index: 3;
}
#hs-cal .fc-daygrid-event {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#hs-cal .fc-event-main { padding: 0 !important; }

/* Free-day checkmark dot — injected via JS */
.hs-cal-free {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 16px; height: 16px;
  background: var(--hp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

/* Available day number highlight */
#hs-cal .hs-avail .fc-daygrid-day-number { color: var(--hp) !important; font-weight: 700 !important; }

/* Selected day */
#hs-cal .hs-sel .fc-daygrid-day-frame { background: var(--hp) !important; border-radius: 8px; }
#hs-cal .hs-sel .fc-daygrid-day-number { color: #fff !important; }
#hs-cal .hs-sel .hs-cal-count { background: rgba(255,255,255,0.28); color: #fff; }
#hs-cal .hs-sel .hs-cal-free  { background: rgba(255,255,255,0.28); }
