:root {
  --bg-page: #f0f0f0;
  --bg-card: #ffffff;
  --text-main: #000000;
  --text-muted: #cccccc;
  --accent-pink: #fff5f5;
  --accent-gold: #c09d2e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calendar-card {
  background: var(--bg-card);
  width: 100%;
  border-radius: 40px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.calendar-title {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 8px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.calendar-controls {
  margin-bottom: 30px;
  position: relative;
}

.month-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.month-nav::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.month-item {
  padding: 8px 20px;
  background: #f8f8f8;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  color: #666;
}

.month-item:hover {
  background: #eee;
}

.month-item.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.day:nth-child(7n+1) .day-inner {
  background-color: var(--accent-pink);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day:nth-child(7n+1) {
  color: #ff4d4d;
}

.day.past {
  color: var(--text-muted);
}

.day.today {
  font-weight: 700;
  color: #000;
}

.day.today .day-inner {
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-inner {
  z-index: 1;
}

.selected-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.time-slots-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
}

.time-slots-container::-webkit-scrollbar {
  width: 6px;
}

.time-slots-container::-webkit-scrollbar-track {
  background: #f9f9f9;
}

.time-slots-container::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.time-slot {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.time-slot:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.time-slot.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.time-slot.past {
  color: #ccc;
  cursor: not-allowed;
  border-color: #eee;
}

.time-slot.past:hover {
  border-color: #eee;
  color: #ccc;
}


.time-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.ampm-toggle {
  display: flex;
  border: 1px solid #000;
  border-radius: 4px;
  overflow: hidden;
  height: 32px;
}

.ampm-btn {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
}

.ampm-btn.active {
  background: #000;
  color: #fff;
}

.confirm-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}

.booking-appointment {
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.07);
  background-color: transparent;
  padding: 50px 40px;
  border-radius: 12px;
}

.confirm-btn:hover {
  opacity: 0.9;
}

.booking-appointment form .form-control {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #eee;
}

.booking-appointment form textarea.form-control {
  resize: none;
}

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

  .calendar-card {
    padding: 20px;
  }

  .calendar-title {
    font-size: 24px;
    letter-spacing: 4px;
  }
}

.error-msg {
  color: #c02121;
  font-size: 15px;
  font-weight: 500;
  display: none;
}
