/* Calendar Modal Styles */
.calendar-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.calendar-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.calendar-modal__content {
  animation: slideUp 0.4s ease-out;
}

.calendar-modal__content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.calendar-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
}

.calendar-modal__title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

.calendar-modal__close {
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-color: #f5f5f5;
}

.calendar-modal__close:hover {
  background-color: #e0e0e0;
  color: #333;
  transform: rotate(90deg);
}

.calendar-modal__body {
  padding: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.calendar-container {
  flex: 1;
  min-width: 300px;
  padding-right: 0;
  border-right: 1px solid #f0f0f0;
  padding-right: 30px;
}

.form-container {
  flex: 1;
  min-width: 300px;
  padding-left: 0;
}

/* Calendar Styles */
.calendar {
  width: 100%;
  border-collapse: collapse;
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.calendar__month-year {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.calendar__nav {
  display: flex;
  gap: 12px;
}

.calendar__nav-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  background-color: #f5f5f5;
}

.calendar__nav-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  margin-bottom: 15px;
  color: #666;
}

.calendar__weekday {
  padding: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar__day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.calendar__day:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.calendar__day.today {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(1, 117, 194, 0.3);
}

.calendar__day.selected {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(1, 117, 194, 0.3);
  transform: scale(1.05);
}

.calendar__day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: transparent;
  transform: none;
  box-shadow: none;
}

.calendar__day.other-month {
  color: #bbb;
  opacity: 0.6;
}

/* Time Slots */
.time-slots {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.time-slots__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.time-slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.time-slot {
  padding: 12px 8px;
  text-align: center;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-slot:hover {
  background-color: #f5f9ff;
  border-color: #cce4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.time-slot.selected {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 117, 194, 0.3);
}

.time-slot.disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: #f9f9f9;
  border-color: #eee;
  transform: none;
  box-shadow: none;
}

/* Form Styles */
.form-container form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__group {
  margin-bottom: 0;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 15px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--primary-color);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 117, 194, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #aaa;
}

select.form__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.button {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(1, 117, 194, 0.2);
}

.button:hover {
  background-color: #0167ad;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(1, 117, 194, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-modal__body {
    flex-direction: column;
  }
  
  .calendar-container {
    padding-right: 0;
    padding-bottom: 30px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
  }
  
  .time-slots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .calendar-modal__content {
    width: 95%;
  }
  
  .calendar-modal__body {
    padding: 20px 15px;
  }
  
  .time-slots__grid {
    grid-template-columns: 1fr;
  }
  
  .calendar__day {
    height: 35px;
  }
}