/* "When I'm free" strip at the top of the homepage booking form
   (js/free-strip.js). Scoped under .fs-box so page form rules can't reach it. */

.fs-box {
  --fs-gold: #d4af37;
  --fs-gold-soft: #f3e6bd;
  --fs-sage: #7C9885;
  --fs-sage-soft: #dfe8e1;
  --fs-cream: #FAF7F2;
  --fs-line: #E5E2DD;
  --fs-text: #181c28;
  --fs-muted: #6b6b6b;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--fs-line);
  border-radius: 14px;
  background: var(--fs-cream);
  color: var(--fs-text);
  text-align: left;
}

.fs-box .fs-head { margin-bottom: 0.75rem; }
.fs-box .fs-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fs-text);
}
.fs-box .fs-sub,
.fs-box .fs-empty {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--fs-muted);
}

.fs-box .fs-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 22rem;
  overflow-y: auto;
}

.fs-box .fs-row {
  display: grid;
  grid-template-columns: 4rem repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}
.fs-box .fs-row--head {
  position: sticky;
  top: 0;
  background: var(--fs-cream);
  z-index: 1;
  padding-bottom: 2px;
}

.fs-box .fs-day {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.fs-box .fs-colhead {
  font-size: 0.72rem;
  color: var(--fs-muted);
  text-align: center;
  white-space: nowrap;
}

.fs-box .fs-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}
.fs-box button.fs-cell { cursor: pointer; }
.fs-box .fs-cell--free {
  background: var(--fs-sage-soft);
  border-color: var(--fs-sage);
  color: #2f4a37;
}
.fs-box .fs-cell--few {
  background: var(--fs-gold-soft);
  border-color: var(--fs-gold);
  color: #6b5413;
}
.fs-box .fs-cell--busy {
  background: #efebe4;
  border-color: var(--fs-line);
  color: #6f695f;
  font-weight: 500;
}
.fs-box button.fs-cell:hover { filter: brightness(0.96); }
.fs-box button.fs-cell:focus-visible {
  outline: 2px solid var(--fs-text);
  outline-offset: 2px;
}
.fs-box .fs-cell--picked {
  background: var(--fs-text);
  border-color: var(--fs-text);
  color: #fff;
}

.fs-box .fs-key {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--fs-muted);
}
.fs-box .fs-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  vertical-align: -1px;
}
.fs-box .fs-dot--free { background: var(--fs-sage-soft); border: 1px solid var(--fs-sage); }
.fs-box .fs-dot--few { background: var(--fs-gold-soft); border: 1px solid var(--fs-gold); margin-left: 0.5rem; }
.fs-box .fs-dot--busy { background: #efebe4; border: 1px solid var(--fs-line); margin-left: 0.5rem; }

@media (max-width: 480px) {
  .fs-box { padding: 0.75rem 0.6rem; }
  .fs-box .fs-grid { max-height: none; overflow: visible; }
  .fs-box .fs-row { grid-template-columns: 3rem repeat(5, minmax(0, 1fr)); gap: 3px; }
  .fs-box .fs-day { font-size: 0.75rem; }
  .fs-box .fs-colhead { font-size: 0.68rem; }
  .fs-box .fs-cell { font-size: 0.68rem; border-radius: 6px; }
}

/* Brief highlight on the form row a tap just filled (outside .fs-box). */
.booking-datetime-row.fs-just-filled {
  outline: 2px solid #7C9885;
  outline-offset: 4px;
  border-radius: 8px;
  transition: outline-color 0.3s ease;
}
