/* Shared calendar booking UI for system samples */
.book-layout {
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 22px 48px;
}

@media (min-width: 860px) {
  .book-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.cal-panel,
.slot-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 20px 18px 22px;
  box-shadow: 0 8px 22px rgba(20, 40, 60, 0.05);
}

.cal-panel h2,
.slot-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.cal-nav button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.cal-nav button:hover {
  background: #f5f7fa;
}

.cal-nav strong {
  font-size: 15px;
  font-weight: 800;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 11px;
  font-weight: 700;
  color: #7a8a9a;
  padding: 4px 0;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  color: #1a2a3a;
}

.cal-day:hover:not(:disabled):not(.is-empty) {
  background: rgba(0, 0, 0, 0.05);
}

.cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.cal-day:disabled {
  color: #c0c8d0;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: #d0d8e0;
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--cal-accent, #2a7a5c);
}

.cal-day.is-selected {
  background: var(--cal-accent, #2a7a5c);
  color: #fff;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: #6a7a8a;
}

.cal-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .slots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.slot {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.slot:hover:not(:disabled) {
  border-color: var(--cal-accent, #2a7a5c);
}

.slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot.is-selected {
  background: var(--cal-accent, #2a7a5c);
  border-color: var(--cal-accent, #2a7a5c);
  color: #fff;
}

.slot-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6a7a8a;
}

.book-form-card {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 8px 22px rgba(20, 40, 60, 0.05);
}

.book-form-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.book-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f7fa;
  font-size: 14px;
  font-weight: 650;
}

.book-form-card .form {
  display: grid;
  gap: 12px;
  max-width: 480px;
}

.book-form-card label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.book-form-card input,
.book-form-card select,
.book-form-card textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1a2a3a;
}

.book-form-card .btn {
  justify-self: start;
  margin-top: 4px;
}

.book-form-card .btn-primary {
  background: var(--cal-accent, #2a7a5c);
  color: #fff;
  border: none;
}

.book-form-card .form-note {
  font-size: 12px;
  color: #6a7a8a;
  margin: 4px 0 0;
}
