.closecontainer {
  text-align: center;
  margin: 0;
}

/* The Modal (background) */
#order-modal-slots,
#order-modal-client-info,
#appointment-modal-slots,
#appointment-modal-client-info {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  padding-top: 0;
}

/* The Close Button (x) */
.close {
  position: relative;
  top: 0;
  left: 0;
  color: var(--milk);
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

/* Modal Content/Box */
#order-modal-slots .modal-content,
#order-modal-client-info .modal-content,
#appointment-modal-slots .modal-content,
#appointment-modal-client-info .modal-content{
  position: relative;
  margin: 5% auto 15% auto;
  background: #0b1821;
  box-shadow: 0px 4px 40px rgba(173, 228, 255, 0.3);
  border-radius: 40px;
  width: 100%;
  max-width: 1260px;
  padding: 20px 40px;
  /* Could be more or less, depending on screen size */
  top: 20%;
}

.modal-content__header h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  color: #ffffff;
}

.modal-content__wrapper {
  display: flex;
  flex-direction: row;
}

/* MODAL SLOTS  */
.modal-content__wrapper .slots {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: flex-start;
}

.modal-content__wrapper .slots__time {
  background-color: var(--main-bg-color);
  border: 1px solid #008dd2;
  border-radius: 50px;
  width: 71px;
  height: 40px;
  line-height: 35px;
  margin: 4px;
  text-align: center;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
}

.modal-content__wrapper .slots__time.active {
  background: var(--milk) !important;
  border: 1px solid #008dd2 !important;
  border-radius: 50px !important;
  color: #000 !important;
}

/* MODAL CLIENT INFO  */
#order-modal-client-info .modal-content__wrapper,
#appointment-modal-client-info .modal-content__wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.fullname,
.contacts,
.complaint {
  flex: 30%;
  min-width: 300px;
}

.fullname__last-name,
.fullname__first-name,
.fullname__patronymic,
.contacts__email,
.contacts__phone,
.complaint__wrapper {
  position: relative;
  margin-bottom: 15px;
}

.modal-content__wrapper .fullname input,
.modal-content__wrapper .contacts input,
.modal-content__wrapper .complaint input {
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--cst-blue);
  padding: 20px 0 4px 0;
  width: 100%;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
  caret-color: white;
}

.modal-content__wrapper .fullname input:focus,
.modal-content__wrapper .contacts input:focus,
.modal-content__wrapper .complaint input:focus {
  outline: transparent;
  caret-color: white;
}

/* LABEL ======================================= */
label {
  color: rgb(228, 225, 225);
  opacity: 0.4;
  font-size: 20px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 0;
  bottom: 3px;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

/* active state */
input:focus ~ label,
input:valid ~ label,
select:valid ~ label {
  top: 0;
  font-size: 14px;
  color: rgb(204, 202, 202);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out";
  -webkit-transition-delay: 9999s;
  -webkit-transition: background-color 9999s ease-out;
  -webkit-text-fill-color: #fff !important;
}

/* MODAL NAVIGATION */

.modal-content__navigation {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(244, 228, 252, 0.1);
}

.modal-content__navigation__buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.modal-content__navigation button {
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  min-width: 230px;
  min-height: 40px;
  padding: 8px 0;
}

.modal-content__navigation .errors,
#alerts {
  display: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  display: flex;
  align-items: center;
  color: #e06966;
}

.modal-content__navigation .errors p,
#alerts p {
  margin-top: auto;
}

/* DATEPICKER */
.datepicker-inline {
  width: 358px;
}

.booking-datepicker {
  padding: 0 20px 10px 0 !important;
  border-radius: 10px;
  box-sizing: border-box;
  color: #fff !important;
  font-size: 16px;
  letter-spacing: 1px;
}

.table-condensed {
  border-collapse: unset;
  border-spacing: 6px;
}

.table-condensed .datepicker-switch {
  text-align: center;
  text-transform: uppercase;
  color: var(--cst-blue);
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
}

.table-condensed .next,
.table-condensed .prev {
  font-size: 30px !important;
}

.table-condensed .datepicker-switch:hover,
.table-condensed .next:hover,
.table-condensed .prev:hover {
  background-color: transparent !important;
}

.table-condensed thead tr:nth-child(3) th {
  color: var(--cst-blue) !important;
  font-weight: bold;
  width: 40px !important;
  height: 40px !important;
}

.table-condensed .day {
  color: #fff;
  background: var(--main-bg-color) !important;
  border: 1px solid var(--cst-blue) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
}

.table-condensed .old-day,
.table-condensed .next-day,
.table-condensed .disabled-date,
.table-condensed .disabled,
.table-condensed .new.day {
  opacity: 0.3 !important;
}

.table-condensed .active {
  background: var(--milk) !important;
  border: 1px solid #008dd2 !important;
  border-radius: 50px !important;
  color: #000 !important;
}

.table-condensed .month,
.table-condensed .year {
  border-radius: 4px !important;
  border: 1px solid #008dd2 !important;
}

.table-condensed .month:hover,
.table-condensed .year:hover {
  background-color: transparent;
}

.table-condensed .month.focused,
.table-condensed .year.focused {
  background-color: #183242 !important;
}

.table-condensed .month.active,
.table-condensed .year.active {
  background-color: var(--milk) !important;
}

@media (max-width: 1440px) {
  #order-modal-slots,
  #order-modal-client-info,
  #appointment-modal-slots, 
  #appointment-modal-client-info {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  #order-modal-slots .modal-content,
  #order-modal-client-info .modal-content,
  #appointment-modal-slots .modal-content,
  #appointment-modal-client-info .modal-content  {
    padding: 10px 10px;
  }

  #order-modal-slots .modal-content__wrapper,
  #appointment-modal-slots .modal-content__wrapper {
    flex-direction: column;
  }

  .modal-content__navigation {
    flex-direction: column;
  }
}

@media (max-width: 550px) {
  .modal-content__navigation button {
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    min-width: 136px;
    min-height: 40px;
    padding: 8px 0;
  }
}

@media (max-width: 425px) {
  #order-modal-slots,
  #order-modal-client-info,
  #appointment-modal-slots, 
  #appointment-modal-client-info {
    padding: 0 5px;
  }

  #order-modal-slots .modal-content__header h3,
  #order-modal-client-info .modal-content__header h3,
  #appoitment-modal-slots .modal-content__header h3,
  #appoitment-modal-client-info .modal-content__header h3 {
    font-size: 16px;
    line-height: 19px;
  }

  .table-condensed thead tr:nth-child(3) th {
    width: 35px !important;
    height: 35px !important;
  }

  .table-condensed .day {
    width: 35px !important;
    height: 35px !important;
  }
  .fullname,
  .contacts,
  .complaint {
    min-width: 100%;
  }

  .modal-content__navigation__buttons button {
    font-size: 14px;
    line-height: 18px;
  }

  .datepicker-inline {
    width: 295px;
  }
  
  .booking-datepicker {
    padding: 0 10px 10px 0 !important;
  }
}
