/* Main wrapper: left column (text) and right column (calendar + slots) */
#block-crmdoctor-appointmentcalendarblock {
  margin-top: 130px;
}
.appointment-calendar-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 80px;
}
.calendar-left {
  width: 30%;
}
.calendar-left h1.heading {
  font-size: 30px;
}
.timezone {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  display: inline-block;
  position: relative;
  width: 100%;
}
.calendar-right {
  background-color: var(--white-color);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border-radius: 18px;
  padding: 15px 25px 25px 25px;
  width: 70%;
}

/* Calendar and timeslots in one row */
.calendar-content {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.date-select-msg {
  text-align: center;
}

/* Calendar area */
#calendar-container {
  flex: 0 0 60%;
  border-right: 2px dashed #d5dfdf;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

/* Slots area */
#slot-container {
  flex: 0 0 40%;
}
#slot-container p {
  text-align: center;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

/* Calendar header (month navigation) */
.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  gap: 15px;
}

.calendar-header button {
  background: var(--green-color);
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 30px;
  width: 30px;
  height: 30px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-header button:hover {
  background: var(--blue-color);
}
.calendar-header button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.calendar-title {
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
}

.calendar-weekdays {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.weekday {
  font-weight: 500;
  width: 40px;
  height: 40px;
  font-family: "Poppins", sans-serif;
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
#calendar-container p {
  font-size: 14px;
}

/* Calendar days */
.day {
  font-family: "Poppins", sans-serif;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 35px;
  height: 35px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.day:hover {
  background: var(--blue-color);
  color: var(--white-color);
}
.day.active {
  background: var(--green-color);
  color: var(--blue-color);
  font-weight: bold;
}

.day.disabled {
  color: #ccc;
  pointer-events: none;
}
.day.empty:hover {
  background-color: transparent;
  pointer-events: none;
  cursor: none;
}
.day.empty {
  pointer-events: none;
}

/* Slots */
.slots {
  margin-top: 15px;
  gap: 5px;
  display: flex;
  flex-direction: column;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 15px;
}

.slot-btn {
  display: block;
  margin: 2px 0;
  padding: 14px 8px;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
  text-align: center;
  border-radius: 16px;
  transition: all 0.2s ease;
  width: 100%;
  color: var(--black-color);
  font-weight: 500;
  font-size: 16px;
}

.slot-btn:hover {
  background: var(--blue-color);
  color: var(--green-color);
  border-color: #ccc;
}

.slot-btn.active {
  background: var(--blue-color);
  color: var(--green-color);
  border-color: var(--green-color);
}
.slot-btn.booked {
  background-color: var(--gray-color-2);
  color: var(--gray-color-3);
  cursor: not-allowed;
}

#next-button {
  display: none;
  background-color: var(--green-color);
  color: var(--blue-color);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 15px;
  margin-right: 20px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  float: right;
}

#next-button:disabled {
  background-color: #b3d1f7; /* Light blue for disabled */
  cursor: not-allowed;
}

#next-button:hover:not(:disabled) {
  background-color: var(--blue-color);
  color: var(--green-color);
  transform: translateY(-2px);
}

#next-button:active:not(:disabled) {
  transform: translateY(0);
}
.app-form-content {
  width: 100%;
}
.timezone label {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.timezone:after {
  content: "";
  box-sizing: border-box;
  height: 10px;
  width: 10px;
  border-style: solid;
  border-color: var(--blue-color);
  border-width: 0px 2px 2px 0px;
  transform: rotate(45deg);
  transition: border-width 150ms ease-in-out;
  display: block;
  position: absolute;
  right: 16px;
  top: 46px;
  pointer-events: none;
}
.timezone.focus::after {
  transform: rotate(226deg);
  top: 51px;
}
.timezone select {
  background-color: #d5dfdf;
  padding: 9px 40px 9px 17px;
  border-radius: 20px;
  -webkit-appearance: none;
  font-size: 14px;
  text-align: left;
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
  width: 100%;
}
.form-item-appointment-title {
  font-weight: 500;
  font-size: 22px;
  font-family: "Poppins", sans-serif;
}
.appointment-info {
  margin-top: 0px;
  margin-bottom: 0px;
}
.appointment-info p {
  color: var(--green-color);
  font-weight: 600;
}
.appointment-info p span {
  color: var(--blue-color);
  font-weight: normal;
  font-size: 14px;
}
.appointment-form .form-wrapper {
  gap: 30px;
}
.appointment-form .form-item {
  padding-top: 10px;
  position: relative;
  margin-bottom: 0px;
}
.appointment-form .form-item input {
  padding: 5px 4px;
  width: 100%;
  color: var(--black-color);
  border-bottom: 1px solid #d3d2d2;
  background: transparent;
  outline: none;
  font-size: 15px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  resize: none;
}
.appointment-form .form-item input + label:after {
  content: "*";
  color: red;
}
.appointment-form .form-item input:focus {
  box-shadow: 0 1px 0 0 white;
  border-bottom: 1px solid var(--blue-color);
}
.appointment-form .form-item input + label {
  left: 0;
  top: 17px;
  position: absolute;
  margin-bottom: 0px;
  transform: translateY(0%);
  pointer-events: none;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -ms-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.appointment-form .form-item input:focus ~ label,
.appointment-form .form-item textarea:focus ~ label {
  top: 0px;
  left: 0;
  font-size: 0.7rem;
}

.appointment-form .form-wrapper .js-form-type-select {
  border-bottom: 1px solid #d3d2d2;
  display: flex;
  flex-direction: column;
  padding: 10px 0px 5px 0px;
}
.appointment-form .form-item-service-type-app {
  border-bottom: 1px solid #d3d2d2;
  padding: 10px 0px 5px 0px;
  position: relative;
}
.appointment-form .form-wrapper label,
.appointment-form .form-item-service-type-app label {
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  position: absolute;
  top: 9px;
  padding: 0 0px;
  font-size: 0.95rem;
  pointer-events: none;
  transition: 0.3s ease;
}
.appointment-form .form-item-service-type-app select,
.appointment-form .form-wrapper select {
  margin-bottom: 0px;
  font-size: 15px;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}
.appointment-form .form-wrapper select {
  margin-top: 0px;
}
.appointment-form .js-form-type-select label.custom-label,
.appointment-form .js-form-type-select label {
  display: none;
}
.appointment-form .btn-styl {
  margin-left: 0;
}
.appointment-form .form-wrapper .js-form-type-select .form-error-message,
.appointment-form .form-item-service-type-app .form-error-message {
  bottom: -18px;
}
.app-form-content .form-error-message {
  font-size: 10px;
}
.form-error-message em.placeholder {
  display: none;
}
.appointment-form .captcha {
  margin-top: 20px;
  position: relative;
}
.appointment-form .captcha .form-error-message {
  bottom: -16px;
}

.appointment-confirmation {
  background-color: #fff;
  /* box-shadow: 1px 4px 16px -2px rgba(0, 0, 0, 0.2);
  max-width: 800px; */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin: 0px auto;
  width: 100%;
}

.appointment-confirmation .form-check {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding-left: 0px;
  flex-direction: column;
  align-items: center;
}
.appointment-confirmation .form-check span {
  color: var(--green-color);
  font-size: 25px;
  font-weight: 500;
}
.appointment-confirmation .form-check span i {
  font-size: 35px;
}
.appointment-confirmation p {
  line-height: 33px;
  margin-bottom: 0px;
  margin-top: 30px;
  font-size: 18px;
}
.appointment-confirmation p span {
  display: block;
  font-size: 23px;
  font-weight: 600;
}

.appointment-confirmation svg {
  display: block;
  height: 8vw;
  width: 8vw;
  color: var(--green-color);
  /* SVG path use currentColor to inherit this */
}

.appointment-confirmation .circle {
  stroke-dasharray: 75;
  stroke-dashoffset: 75;
  -webkit-animation: draw 1s forwards;
  animation: draw 1s forwards;
}

.appointment-confirmation .tick {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  -webkit-animation: draw 1s forwards 1s;
  animation: draw 1s forwards 1s;
}

@-webkit-keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Responsive behavior */
@media (max-width: 900px) {
  .appointment-calendar-wrapper {
    flex-direction: column;
  }
  .calendar-left {
    width: 70%;
  }
  .calendar-right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .appointment-calendar-wrapper {
    flex-direction: column;
  }

  .calendar-content {
    flex-direction: column;
  }

  #calendar-container,
  #slot-container {
    flex: 0 0 100%;
  }

  .calendar-left {
    width: 100%;
  }
  .timezone select {
    font-size: 12px;
  }
  .timezone::after {
    right: 24px;
  }
  .calendar-right {
    width: 100%;
    padding: 15px;
  }
  #calendar-container {
    border-right: none;
    padding-right: 0;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .calendar-grid {
    gap: 10px;
  }
  .weekday {
    text-align: center;
  }
  #slot-container {
    width: 100%;
  }
  .slots {
    max-height: none;
    flex-direction: row;
    padding-right: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .slot-btn {
    width: 32%;
  }
  .appointment-form .form-wrapper {
    flex-direction: column;
    gap: 0px;
  }
  .form-submit {
    margin-left: 0px;
  }
  .appointment-confirmation svg {
    width: 100px;
    height: 100px;
  }
  .appointment-confirmation p {
    line-height: 25px;
    font-size: 16px;
  }
  .appointment-confirmation .form-check span {
    font-size: 17px;
  }
  .btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 430px) {
  .calendar-grid {
    gap: 18px;
  }
  #calendar-container p {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .calendar-grid {
    gap: 13px;
  }
  #calendar-container p {
    font-size: 14px;
  }
  .appointment-form .form-submit {
    margin: 23px 4px 20px;
  }
}

@media (max-width: 360px) {
  .calendar-grid {
    gap: 8px;
  }
  #calendar-container p {
    font-size: 14px;
  }
  .slot-btn {
    padding: 14px 12px;
  }
  .appointment-form .form-submit {
    margin: 23px 2px 20px;
  }
}
