@import url('https://fonts.googleapis.com/css2?family=Just+Me+Again+Down+Here&family=League+Gothic&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Montserrat';
  margin: 0 auto;
}

.title-page {
  color: #00a8df;
  margin-top: 32px;
  text-align: center;
}

.main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 32px;
}

#calendar {
  font-size: 700;
  font-size: 24px;
}

.calendar-and-time-container {
  display: flex;
  justify-content: space-evenly;
}

/*CALENDAR*/
.calendar-container {
  width: 55%;
  height: 100%;
}

.fc-day-selected {
  background-color: #00a8df !important;
  color: white !important;
}

.fc-past-day {
  background-color: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

.fc-non-schedule {
  background-color: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

.fc-day-selected {
  background-color: #e9ecef;
  border: 2px solid #0d6efd;
}

/*TIME SLOTS*/

.time-slots-container {
  width: 512px;
}

.time-slots-container {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 400px;
}

.color-hint {
  display: flex;
  justify-content: space-evenly;
}

.color-hint--container {
  display: flex;
  gap: 16px;
}

.coloh-hint__color--available {
  display: block;
  width: 24px;
  height: 24px;
  background-color: #00a8df;
}

.coloh-hint__color--unavailable {
  display: block;
  width: 24px;
  height: 24px;
  background-color: #cccccc;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.time-slot {
  padding: 8px;
  background: #00a8df;
  color: white;
  border: #00a8df 2px solid;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
}

.time-slot:hover,
.time-slot.selected {
  background: #ffffff;
  border: #00a8df 2px solid;
  color: #00a8df;
  transform: translateY(-8px);
}

.time-slots-naming {
  font-size: 24px;
  width: 512px;
  padding: 1rem;
  font-weight: 500;
  text-align: center;
}

.time-slot.disabled {
  background: #cccccc !important;
  border-color: #999999 !important;
  color: #666666 !important;
  cursor: not-allowed;
  transform: none !important;
}

.time-form-container {
  border: 2px #00a8df solid;
  padding: 16px;
  /* border-radius: 16px; */
}

/*FORM*/
.form-title {
  margin-bottom: 32px;
  margin-top: 16px;
  text-align: center;
  font-size: 32px;
}

.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.form-group-checkbox {
  font-size: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.form-group-checkbox input {
  transform: scale(1.25);
}

.form-group input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.back-button {
  padding: 16px 32px;
  background: black;
  color: #f0f0f0;
  border: #f0f0f0 2px solid;
  /* border-radius: 16px; */
  cursor: pointer;
  font-size: 18px;
  transition: 200ms;
}

.back-button:hover {
  background: #f0f0f0;
  color: black;
  border: black 2px solid;
  transition: 200ms ease-in-out;
}

.submit-button {
  padding: 16px 32px;
  background: #00a8df;
  color: white;
  border: #00a8df 2px solid;
  /* border-radius: 16px; */
  font-size: 18px;
  cursor: pointer;
  transition: 200ms ease-in-out;
}

.submit-button:hover {
  background: white;
  color: #00a8df;
  border: #00a8df 2px solid;
  transition: 200ms ease-in-out;
}

.input-form::placeholder {
  color: #ccc;
  opacity: 1;
}

.hint {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.input-with-prefix {
  display: flex;
  align-items: center;
}

.prefix {
  padding: 9px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.choose-hint {
  font-size: 24px;
  width: 512px;
  padding: 1rem;
  font-weight: 500;
  border: 2px #00a8df solid;
  text-align: center;
}

.error {
  color: red;
  margin-bottom: 15px;
}

.success {
  color: green;
  margin-bottom: 15px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 16px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.error-message {
  color: #d9534f;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.invalid {
  border-color: #d9534f !important;
}


.slot-past {
    font-size: 0.8em;
    color: #999;
}
.time-slot.disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}