.tsb-calendar-wrap,
.tsb-form-wrap {
  color: #f5efe6;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.96), rgba(13, 16, 25, 0.94));
  border: 1px solid rgba(191, 145, 81, 0.28);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 28px;
}

.tsb-calendar-head h3,
.tsb-form-wrap h2 {
  margin: 0 0 12px;
  color: #fff7ec;
  font-size: 2rem;
  letter-spacing: 0.03em;
}

.tsb-calendar-note,
.tsb-term,
.tsb-callout {
  color: rgba(255, 247, 236, 0.88);
  font-size: 1rem;
}

.tsb-callout {
  margin: 8px 0 18px;
  line-height: 1.55;
}


.tsb-grid-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.tsb-grid-toolbar,
.tsb-slot-grid,
.tsb-day-column,
.tsb-day-head,
.tsb-day-body,
.tsb-slot {
  box-sizing: border-box;
}

.tsb-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tsb-grid-title {
  color: #fff7ec;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.tsb-range-note {
  margin: 0 0 18px;
  color: rgba(255, 247, 236, 0.78);
  font-size: 0.95rem;
  text-align: center;
}

.tsb-nav-btn,
.tsb-btn {
  appearance: none;
  border: 1px solid rgba(191, 145, 81, 0.55);
  background: linear-gradient(180deg, rgba(111, 84, 51, 0.9), rgba(81, 58, 34, 0.9));
  color: #fff6ea;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.tsb-nav-btn:hover,
.tsb-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 190, 120, 0.9);
}

.tsb-slot-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tsb-day-column {
  min-width: 0;
}

.tsb-day-head {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff7ec;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: lowercase;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsb-day-body {
  display: grid;
  gap: 8px;
}

.tsb-slot {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  color: #fff7ec;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  justify-content: flex-start;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.tsb-slot:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(230, 190, 120, 0.9);
}

.tsb-slot:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tsb-slot__indicator {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  flex: 0 0 24px;
}

.tsb-slot__label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.tsb-slot--available .tsb-slot__indicator {
  border-color: #c7a06a;
  box-shadow: inset 0 0 0 4px rgba(199, 160, 106, 0.18);
}

.tsb-slot--busy {
  color: rgba(255, 247, 236, 0.78);
}

.tsb-slot--busy .tsb-slot__label {
  text-decoration: line-through;
}

.tsb-slot--selected {
  border-color: #f0c78b !important;
  background: rgba(191, 145, 81, 0.24) !important;
  box-shadow: 0 0 0 2px rgba(240, 199, 139, 0.18);
}

.tsb-slot--selected .tsb-slot__indicator {
  border-color: #f0c78b;
  background: radial-gradient(circle, #f0c78b 0 45%, transparent 48%);
}

.tsb-day-empty,
.tsb-loading,
.tsb-error,
.tsb-success {
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff7ec;
}

.tsb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: rgba(255, 247, 236, 0.88);
}

.tsb-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tsb-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.tsb-dot-available { background: #c7a06a; }
.tsb-dot-busy { background: #8f8f8f; }

.tsb-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.tsb-form p {
  margin: 0;
}

.tsb-form label {
  display: block;
  color: #fff7ec;
  font-weight: 600;
}

.tsb-form input,
.tsb-form textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff7ec;
  padding: 12px 14px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .tsb-nav-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .tsb-slot-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .tsb-day-head,
  .tsb-slot {
    font-size: 0.92rem;
  }
}

@media (max-width: 900px) {
  .tsb-grid-toolbar {
    flex-direction: column;
  }

  .tsb-slot-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .tsb-calendar-wrap,
  .tsb-form-wrap {
    padding: 20px;
    border-radius: 20px;
  }

  .tsb-slot-grid {
    grid-template-columns: 1fr;
  }
}


.tsb-term--payment {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1px solid #f0c36d;
}


.tsb-consent{margin:14px 0 0;}
.tsb-consent label{display:flex;align-items:flex-start;gap:10px;line-height:1.5;}
.tsb-consent input[type="checkbox"]{margin-top:3px;flex:0 0 auto;}
.tsb-consent a{text-decoration:underline;}