html{
    overflow-x: hidden;
}
body {
  position: relative;
padding-top: 100px;
  margin:  0;
    font-family: "Space Grotesk Variable", "Space Grotesk", Arial, Helvetica, sans-serif;
}
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}
.label{
  margin: 0;
}
.bg {
  position: absolute;
  width: 100%;
  height: 100vh;
  left: 0;
  top: 0;
    background: url(../img/bg_booking.jpg) no-repeat center center;
    background-size: cover;
  z-index: 1;
}

.form-row-checkbox{
       flex-direction: initial !important;
       margin-top: 10px;
}
.selected-time{
    font-weight: 600;
}
.main-block {
  position: absolute;
  width: 1030px;
  height: 581px;
  top: 60px;
  z-index: 20;
  left: 50%;
transform: translateX(-50%);
}
#back-to-calendar {
    display: none;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    position: absolute;
    left: 0;
    top: 359px;
    border: 0;
    background: none;
    color: #9C90FC;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
#back-to-calendar.show {
    display: flex;
}
#back-to-calendar svg {
    margin-right: 5px;
}
.main-bg {
  width: 1030px;
  height: 521px;
  left: 0;
  top: 60px;
  background: #FFFFFF;
  box-shadow: 0px 0px 26.4px rgba(42, 62, 80, 0.06);
  border-radius: 20px;
  z-index: 21;
      margin: 20px 0;
}
.calendar-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 28px;
  gap: 29px;
  position: absolute;
  width: 618px;
  height: 441px;
  left: 316px;
  top: 100px;
  background: #FFFFFF;
  box-shadow: 0px 0px 26px rgba(42, 62, 80, 0.1);
  border-radius: 10px;
  z-index: 22;
}
.calendar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: 389px;
  height: auto;
}
.month-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 104px;
  width: 389px;
  height: 36px;
}
.arrow-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 59px;
  height: 36px;
  background: #fff;
  box-shadow: 0px -1px 9.6px rgba(19, 36, 54, 0.15);
  border-radius: 10px;
  cursor: pointer;
  border: none;
}
.arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.month-title {
  width: 63px;
  height: 23px;
  font-weight: 600;
  font-size: 18px;
  color: #49498E;
  display: flex;
  align-items: center;
  justify-content: center;
}
.days-row {
    display: flex
;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 389px;
    height: 40px;
    position: relative;
    top: 6px;
}
.day-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;
  color: #49498E;
  background: none;
}
.date-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 389px;
  height: 319px;
}
.date-row {
  display: flex;
  flex-direction: row;
  gap: 4px;
}
.date-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;
  color: #49498E;
  background: #E4E4FF;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.date-cell.selected {
  background: #9C90FC;
  color: #fff;
}
.date-cell.today {
  border: 2px solid #9C90FC;
}

.date-cell.inactive {
  background: #D0D0F7 !important;
  color: #A0A0B0 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 0.7;
}
.date-cell.empty {
  background: transparent !important;
  color: transparent !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none !important;
  opacity: 1;
}
.time-list {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 200px;
  height: 369px;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #D0D0F7;
  border-radius: 10px;
  padding: 0;
  gap: 0;
  overflow-x: hidden;
  /* Hide scrollbar for Chrome, Safari, Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.time-list::-webkit-scrollbar {
  display: none;
}
.time-slot {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 8px;
  width: 200px;
  height: 40px;
  border-bottom: 2px solid #D0D0F7;
  font-weight: 400;
  font-size: 16px;
  color: #49498E;
  cursor: pointer;
  background: none;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
  overflow: hidden;
}
.time-slot:hover {
  background-color: #e0dbfa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.time-slot.selected {
  color: white;
  font-weight: bold;
  box-shadow: 0 6px 12px rgba(156, 144, 252, 0.4);
}
.time-slot.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #9c90fc;
  animation: loading-progress 1.2s linear forwards;
  z-index: -1;
}
@keyframes loading-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: absolute;
  width: 259px;
  height: 148px;
  left: 36px;
  top: 199px;
  z-index: 23;
}
.info-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #49498E;
}
.info-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}
.heading {
  position: absolute;
  width: 259px;
  height: 37px;
  left: 36px;
  top: 130px;
  font-weight: 600;
  font-size: 18px;
  color: #49498E;
  z-index: 24;
  display: flex;
  align-items: flex-end;
}
.divider {
  position: absolute;
  width: 259px;
  height: 2px;
  left: 36px;
  top: 172px;
  background: rgba(156, 144, 252, 0.7);
  box-shadow: 0px 0px 26.7px rgba(19, 36, 54, 0.1);
  border-radius: 10px;
  z-index: 25;
}
.logo {
  position: absolute;
  width: 120px;
  height: 23px;
  left: 36px;
  top: 102px;
  z-index: 26;
  font-weight: bold;
  color: #49498E;
  font-size: 22px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}
.booking-form {
    display: none;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 356px;
    top: 100px;
    width: 408px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 26px rgba(42, 62, 80, 0.1);
    z-index: 30;
    padding: 33px 28px 18px 31px;
    align-items: flex-start;
    justify-content: center;
}
.booking-form .form-submit{
    margin: 0 auto 0;
    width: 182px;

}
.booking-form.active {
  display: flex;
}
.booking-form textarea{
    height: 95px;
}
.form-title {
  font-size: 22px;
  font-weight: 600;
  color: #49498E;
  margin-bottom: 12px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.form-label {
  font-size: 16px;
  color: #49498E;
  font-weight: 500;
      padding-left: 8px;
}
.form-input {
  resize: none;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  background: #F2F2F2;
  transition: border 0.2s;
   border: 1px solid #F2F2F2;
}

.form-input:focus {
  outline: none;
  border: 1px solid #9C90FC;
}
.form-submit {
  margin-top: 18px;
  padding: 12px 32px;
  background: #9C90FC;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover {
  background: #49498E;
}

.form_act .main-bg{
        width: 860px;
        height: 550px;
       transition: all 0.3s ease;
}
.today{
          width: 50px!important;
        height: 50px!important;
}


@media (min-width: 993px) and (max-width: 1100px) {
.main-bg {
    width: 900px;
}
.calendar-block{
  width: 508px;
}
.date-cell{
  width: 42px;
    height: 42px;
}
.days-row{
  width: 319px;
}
.calendar{
  width: 309px;
}
.month-row {
    gap: 92px;
    width: 100%;
    height: 36px;
}
.time-slot{
  width: 100%;
}
.today{
          width: 40px!important;
        height: 40px!important;
}

}

@media (min-width: 769px) and (max-width: 992px) {
  .bg,.form_act .main-bg{
width: 100%;
  }
  html, body {
    font-size: 15px;
    min-width: 0;
    width: 100vw;
  }
  .main-block,
  .main-bg {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    left: 0;
top: 90px;
    padding: 4px 0;
  }
  .calendar-block{
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    left: 0;
top: 420px;
        padding: 4px 0 20px 0;
               flex-direction: inherit;
               justify-content: center;
  }
    .booking-form{
    min-width: 0;
    max-width: 100vw;
    left: 0;
top: 420px;
        padding: 20px 0 20px 0;
        flex-direction: column;
        width: 100%;
  }
  .form-row{
    width: 80%;
    justify-content: center;
    margin: 0 auto;
  }
  .month-row {
    gap: 30px;
    width: auto;
    height: 36px;
    margin: 20px auto;
}
  .calendar{
    padding: 0;
    margin: 0 0 0 20px!important;
  }
  .calendar,
  .date-grid,
  .days-row {
    width: 50vw;
    min-width: 0;
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .date-row{
    justify-content: center;
  }
  .date-grid{
    height: auto;
  }
  .time-slot{
    width: 100%;
     height: 18px;
  }
  .arrow-btn{
        width: 44px;
    height: 26px;
  }
  .day-cell,
  .date-cell {
    width: 40px;
    height: 40px;
    font-size: 0.95em;
    padding: 2px;
  }
  .today{
    width: 38px!important;
    height: 38px!important;
  }
  

  .form-title,
  .form-label,
  .form-input,
  .form-submit {
    font-size: 1em;
  }

}



@media (max-width: 768px) {
  .bg{
width: 100%;
  }
  html, body {
    font-size: 15px;
    min-width: 0;
    width: 100vw;
    height: auto;
  }
  .main-block,
  .main-bg {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
top: 90px;
    padding: 4px 0;
  }
  .calendar-block{
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    left: 0;
top: 370px;
        padding: 4px 0 20px 0;
        flex-direction: column;
  }
    .booking-form{
    min-width: 0;
    max-width: 100vw;
    left: 0;
top: 420px;
        padding: 4px 0 20px 0;
        flex-direction: column;
        width: 100%;
  }
  .form-row{
    width: 80%;
    justify-content: center;
    margin: 0 auto;
  }
  .month-row {
    gap: 30px;
    width: auto;
    height: 36px;
    margin: 20px auto;
}
  .calendar,
  .date-grid,
  .days-row {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
            margin: 0 auto;
        display: flex
;
        justify-content: center;
  }
  .date-row{
    justify-content: center;
  }
  .date-grid{
    height: auto;
  }
  .time-slot{
        width: 100%;
        height: 10px;
        padding: 10px 0;
  }
  .arrow-btn{
        width: 44px;
    height: 26px;
  }
  .day-cell,
  .date-cell {
    width: 28px;
    height: 18px;
    font-size: 0.95em;
    padding: 2px;
  }
  .form-title,
  .form-label,
  .form-input,
  .form-submit {
    font-size: 1em;
  }
  .day-cell, .date-cell{
    width: 26px!important;
    height: 26px!important;
  }
  .label{
            margin: 0 0 0 10px;
  }
}

/* Custom notification styles */
.custom-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 16px;
  max-width: 80%;
  text-align: center;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.custom-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.custom-notification.error {
  background-color: #f44336;
}

.custom-notification.warning {
  background-color: #ff9800;
}

.form-row-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-row-checkbox label {
    font-size: 11px;
    color: #49498e;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.form-row-checkbox label a {
    color: #9C90FC;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-row-checkbox label a:hover {
    color: #7d6efc;
}

.form-row-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  background: #9C90FC;
  accent-color: #9C90FC;
}
