/* booking-slot-picker.css
 *
 * Styling for the patient BookingSlotPicker widget ported from
 * medical-assessment's ScheduleSlotComponent. Visual goals:
 *
 * - Soft, calm card surface so the picker reads as a discrete step in
 *   the patient flow.
 * - Day grouping that uses a strong heading + a responsive grid of
 *   time buttons.
 * - Clear "selected" state on the chosen slot, with a confirm CTA at
 *   the bottom-right.
 *
 * All class names start with ``bsp-`` to keep the widget self-contained
 * and avoid colliding with the surrounding ACI patient page styles.
 */

.bsp-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}

.bsp-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bsp-title {
  font-size: 18px;
  font-weight: 600;
  color: #1c2b30;
  margin: 0;
}

.bsp-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #4a5a60;
  margin: 0;
}

.bsp-tz {
  font-size: 12px;
  color: #7a8a90;
  margin: 0;
}

.bsp-banner {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.bsp-banner--error {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #842029;
}

.bsp-banner--info {
  background: #fff4d6;
  border: 1px solid #f4dc8e;
  color: #6b5314;
}

/* Day dropdown + the selected day's times, stacked. Replaces the cramped
   left-hand day rail. */
.bsp-pick {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bsp-day-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 340px;
}

.bsp-day-field-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7a80;
}

.bsp-day-select-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.bsp-day-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 36px 10px 13px;
  border: 1px solid #d4dee2;
  border-radius: 10px;
  background: #ffffff;
  color: #1c2b30;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bsp-day-select:hover {
  border-color: #d06c52;
}

.bsp-day-select:focus {
  outline: none;
  border-color: #d06c52;
  box-shadow: 0 0 0 3px rgba(208, 108, 82, 0.16);
}

.bsp-day-select-caret {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7a80;
  font-size: 11px;
}

.bsp-times {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bsp-times-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2c3a40;
}

.bsp-time-grid {
  display: grid;
  /* Fixed-width compact cards (not stretched to fill the row), so a day with a
     couple of slots reads as a tidy set of chips rather than huge panels. */
  grid-template-columns: repeat(auto-fill, minmax(132px, 148px));
  gap: 8px;
  justify-content: start;
}

.bsp-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d4dee2;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #2c3a40;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.bsp-slot:hover {
  border-color: #d06c52;
  background: #f4f8f7;
}

.bsp-slot--selected {
  background: #d06c52;
  border-color: #d06c52;
  color: #ffffff;
}

.bsp-slot--selected:hover {
  background: #335f58;
  border-color: #335f58;
}

.bsp-slot-time {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bsp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.bsp-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.bsp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bsp-btn--primary {
  background: #d06c52;
  color: #ffffff;
  border-color: #d06c52;
}

.bsp-btn--primary:hover:not(:disabled) {
  background: #335f58;
  border-color: #335f58;
}

.bsp-btn--ghost {
  background: transparent;
  color: #4a5a60;
  border-color: transparent;
  text-decoration: underline;
}

.bsp-btn--ghost:hover:not(:disabled) {
  color: #1c2b30;
}
