.modal {
  z-index: 11111;
}

.modal-content {
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 43px;
  background-color: #359BD8;
  width: 97%;
  height: 100%;
  z-index: -1;
}

.modal-header-start {
  position: relative;
  /* height: 580px; */
}

.btn-close.position-relative {
  top: 23px;
  color: #484848;
  opacity: 1;
}

.modal-header-start::before {
  content: '';
  position: absolute;
  bottom: 114px;
  left: 86px;
  width: 284px;
  height: 284px;
  background: radial-gradient(circle at 50% 50%, rgba(147, 214, 255, 0.396) 0%, rgba(24, 25, 27, 0) 100%);
  background: radial-gradient(circle at 50% 50%, rgba(147, 214, 255, 0.396) 0%, rgba(24, 25, 27, 0) 89%);
  opacity: .5;
  backdrop-filter: blur(300px)
}


.modal-header.position-relative::before {
  content: '';
  position: absolute;
  top: -25px;
  right: -25px;
  width: 207px;
  height: 207px;
  background: radial-gradient(circle at 50% 50%, rgba(147, 214, 255, 0.396) 0%, rgba(24, 25, 27, 0) 100%);
  background: radial-gradient(circle at 50% 50%, rgba(147, 214, 255, 0.396) 0%, rgba(24, 25, 27, 0) 89%);
  opacity: .5;
  backdrop-filter: blur(300px);
}

.modal-content {
  border-radius: 0;
  background: #EFEFEF;
}

.modal-header .modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: Bold;
  font-size: 24px;
  color: #202B3A;
  box-shadow: 0px 8px 30px 0px #FFFFFF40;
  box-shadow: 0px 4px 8px 0px #FFFFFF0F;
}





.stepper-nav {
  gap: 5px;
  margin-top: 25px;
  margin-bottom: 50px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
}

.step-item.active {
  color: #fff;
}

.step-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #049D09;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 
.step-item.active .step-circle {
  border-color: #00FF47;
}

.step-dot {
  width: 6px;
  height: 6px;
  background-color: #00FF47;
  border-radius: 50%;
} */

.step-label {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.step-line {
  height: 1px;
  width: 115px;
  background-color: #999;
  margin-top: -28px;
}

.step-item.active+.step-line {
  background-color: #989898
}

#step1 #step1Indicator {
  align-items: end;
}

#step1 #step2Indicator {
  align-items: flex-start;
}

#step1 #step2Indicator .step-circle {
  background: #D9D9D9;
  border: none;
}

#step1Indicator .step-label {
  margin-right: -53px;
  color: #454545;
}

#step2Indicator .step-label {
  margin-left: -40px;
  color: #BABABA;
}

#step2 #step2Indicator .step-label {
  color: #454545;
}


#step2 .step-circle {
  background: #049D09;
}

#step2 #step1Indicator {
  align-items: end;
}

#step2 #step2Indicator {
  align-items: flex-start;
}

#step2 #step2Indicator .step-circle {
  background: transparent;
}



















/* .stepper-nav {
  display: flex;
  justify-content: center;  
} */

.stepper-step-connector {
  flex: 1;
  height: .125rem;
  background: #5755d7;
  transition: background-color 0.15s ease-in-out;
  width: 118px;
  margin: 0px 1rem;
}

.stepper-nav .step {
  /* width: 120px; */
  text-align: center;
  font-weight: 500;
  color: #999;
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.stepper-nav .active {
  color: #0d6efd;
}

.hidden {
  display: none;
}

.schedule-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.calendar {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
  background: #F9F9F9;
  border: 1px solid #B6C1CA !important;
  margin-bottom: 3rem;
  z-index: 1;
}

.calendar-container {
  display: flex;
  border-bottom: 1px solid #DCE0E5;
  font-family: 'Montserrat', sans-serif;
}

#monthLabel {
  color: #454545;
  font-weight: 500;
  font-size: 14px
}

#nextMonth,
#prevMonth {
  color: #777;
  font-size: 15px;
  border-color: #DCE0E5;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  position: relative;
}

#nextMonth:hover,
#prevMonth:hover {
  color: #fff;
  border-color: #359BD8;
  background: #359bd8;
}

.calendar .text-end.p-3 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  gap: 15px;
}


.calendar-left {
  flex: 1;
  padding: 20px;
  border-right: 1px solid #e0e0e0;
}

.calendar-right {
  width: 150px;
  overflow-y: auto;
  max-height: 300px;
}

.calendar-right .border {
  cursor: pointer;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 5px;
}

.calendar-grid div {
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
}

.calendar-grid .today-date {
  background: #359BD8;
  color: #FFFFFF;
  font-weight: 500;
}

#calendarGrid .text-center.rounded.selected-date {
  background: #359BD8;
  color: #FFFFFF;
}

#calendarGrid .text-center.rounded {
  color: #454545;
  font-size: 14px;
  font-weight: 500;
}

#calendarGrid .text-center.text-muted {
  color: #BABABA !important;
}

.calendar-grid .day-name {
  font-weight: bold;
  color: #666;
  cursor: default;
}

.calendar-container #timeSlots .normal-time {
  color: #636363;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.calendar-container #timeSlots .selected-time {
  background: #E0EDFF !important;
  border: 1px solid #00AADF !important;
  color: #636363 !important;
  font-size: 14px;
  font-weight: 500;
}

.calendar-grid .selected {
  background-color: #359bd8;
  color: white;
}

.cancel {
  background: #fff;
  color: #636363;
  border: 1px solid #DCE0E5;
  border-radius: 8px;
  padding: .4rem 2rem;
  font-size: 14px;
  font-weight: 500;
}

#toStep2 {
  background: #359BD8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem 2rem;
}

.time-option {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  margin: 4px;
  color: #555;
}

.time-option:hover {
  background-color: #e0f0ff;
}

.time-option.active {
  background-color: #359bd8;
  color: white;
  font-weight: 500;
}

.check-icon {
  font-size: 4rem;
  color: green;
}





.schedule-info {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #202B3A;
  line-height: 50px;
  margin-top: -38px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-flow: column;
}

#editDateTime {
  margin-left: 10px;
}

.schedule-info strong {
  /* color: #359BD8; */
  font-weight: 600;
  color: #202B3A;
  margin: 10px 0;
}

.schedule-info span {
  font-size: 14px;
  line-height: 25px;
  border: 1px solid #BABABA;
  padding: 10px;
  border-radius: 10px;
  font-weight: 500;
}


#detailsForm {
  background: #FFF3;
  z-index: 1;
}

#detailsForm button {
  background: #D6D6D6;
  color: #A4A4A4;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-weight: 600;
  font-family: 'Montserrat';
  font-size: 18px;
}

#detailsForm [type="submit"]:not(:disabled),
#detailsForm button:not(:disabled) {
  background: #359BD8;
  color: #fff;
}

#step1,
#step2 {
  margin-top: -35px;
}

.paragraph-style {
  width: 43%;
}

#step2 #backToStep1 {
  color: #484848;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  background-image: url('../images/icon/corner-up-leftb.svg');
  background-repeat: no-repeat;
  width: 100px;
}

#editDateTime {
  background-image: url('../images/icon/edit.svg');
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
}

#step3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  height: 540px;
}

#step3 .text-success {
  font-size: 9rem;
  color: #049D09 !important;
}

#step3 .text-success p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: #454545;
}

#step3 .consultation-message {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: #454545;
  position: relative;
}

#step3 #confirmDateTime {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 35px;
  padding-left: 360px;
  padding-right: 360px;
  width: 100%;
  color: #454545 !important;

}

#step3 .text-decoration-underline {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: #636363;
  font-weight: 500;
}




.custom-alert-popup {
  border-radius: 10px;
  padding: 20px;
}

.swal2-confirm {
  padding: 6px 20px;
  font-size: 14px;
  border-radius: 6px;
}

#alertModal {
  background: #00000070;
}

#alertModal .modal-content::before {
  display: none;
}

#alertModal .modal-content.text-center.p-4 {
  width: 529px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #EFEFEF;

}

#alertModal button {
  background: #359BD8;
  color: #EFEFEF;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat';
  font-weight: 500;
  font-size: 14px;
}

#alertModal p {
  color: #454545;
  box-shadow: 0px 8px 30px 0px #FFFFFF40;
  --webkit-box-shadow: 0px 8px 30px 0px #FFFFFF40;
  --moz-box-shadow: 0px 8px 30px 0px #FFFFFF40;
  font-size: 20px;
  font-family: 'Montserrat';
  font-weight: 500;
}


/* Alert message UI CSS*/
#errorModal {
  background: #00000075;
  z-index: 111111;
}
#errorModal .modal-dialog{
  width: 100%;
  display: grid;
  align-items: center;
  justify-content: center;
}

#errorModal .modal-content {
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 750px;
  max-width: 95%;
  border: none;
  background: #fff;
}
#errorModal .modal-body{
  margin: 0;
  padding: 0;
}

#errorModal .modal-header-custom {
  background-color: #359BD8;
  /* Blue bar */
  color: #fff;
  font-family: Montserrat;
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  padding: 20px;
}

#errorModal .modal-body h3 {
   font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    margin: 35px 0 16px 0;
}

#errorModal .modal-body p {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 16px;
line-height: 20px;
text-align: center;
color: #404040;
}

#errorModal .modal-body p span{  
font-weight: 600;
color: #359BD8;
}





#errorModal .error-link {
  color: #359BD8;
  font-weight: 500;
  text-decoration: underline;
}

#errorModal .error-link:hover {
  color: #359BD8;
}

#errorModal .btn-custom {
  background-color: #359BD8;
  border: none;
  padding: 0.5rem 2rem;
  font-size: 14px;
  border-radius: 8px;
  color: #EFEFEF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 16px;
  margin-bottom: 30px;
}

#errorModal .btn-custom:hover {
  background-color: #359BD8;
}



/**/

@media(max-width: 1366px) {
  .modal-dialog {
    width: 65%;
  }
  .modal-content::before{
        left: 38px;
  }

  .paragraph-style {
    width: 100%;
    font-size: 13px;
  }

  .stepper-nav {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .calendar-right {
    width: 110px;
  }

  .calendar-grid div {
    padding: 4px;
    font-size: 13px;
  }

  #nextMonth,
  #prevMonth {
    width: 24px;
    height: 24px;
    font-size: 11px;
    padding: 0;
    border-radius: 5px;
  }

  .calendar-container #timeSlots .normal-time {
    font-size: 11px;
    margin: 0 !important;
  }

  #monthLabel {
    font-size: 12px;
  }

  .calendar-grid div {
    padding: 4px;
  }

  .modal-header-start::before {
    left: 0;
    bottom: 0;
  }

  .calendar .text-end.p-3 {
    padding: 7px !important;
  }

  .cancel,
  #toStep2 {
    font-size: 11px;
  }

  #calendarGrid .text-center.rounded {
    font-size: 12px;
    line-height: 19px;
  }

  .schedule-info span {
    font-size: 11px;
    padding: 7px;
  }

  #editDateTime {
    width: 19px;
    height: 19px;
    background-size: 13px;
  }

  #detailsForm .form-group {
    padding: 15px !important;
  }

  .form-control {
    font-size: 13px;
    line-height: 18px;
    padding-left: 10px;
  }

  textarea {
    height: 80px;
  }

  #detailsForm button {
    padding: 10px 0;
    font-size: 14px;
  }

  #detailsForm .form-group p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  #step2 #backToStep1 {
    background-size: 18px;
    font-size: 13px;
  }

  #step3 .text-success {
    font-size: 4rem;
  }

  #step3 .consultation-message {
    font-size: 16px;
    margin-bottom: 10px;
  }

  #step3 #confirmDateTime {
    padding-left: 0;
    padding-right: 0;
  }

  #step3 .text-decoration-underline {
    font-size: 14px;
  }

  .btn-close.position-relative {
    top: 10px;
  }






}

@media(max-width: 1199px) {
  .paragraph-style {
    width: 62%;
  }

  #step3 #confirmDateTime {
    padding-left: 200px;
    padding-right: 200px;
  }

  .modal-header.position-relative::before {
    width: 150px;
    height: 150px;
  }

}

@media(max-width: 1150px) {
  .modal-header-start::before {
    bottom: 0;
    left: 0;
    opacity: .3;
  }
}

@media(max-width: 1100px) {
  .modal-dialog {
    width: 65%;
  }

  .modal-header.position-relative {
    padding: 0;
    padding-top: 15px;
  }

  .btn-close.position-relative {
    top: -8px;
    font-size: 12px;
  }

  .modal-header .modal-title,
  .schedule-info strong {
    font-size: 18px;
  }

  .paragraph-style {
    font-size: 13px;
  }

  .stepper-nav {
    margin-top: 0;
    margin-bottom: 15px;
  }

  .modal-content::before {
    left: 36px;
  }

  .step-label {
    font-size: 11px;
  }

  #nextMonth,
  #prevMonth {
    width: 24px;
    height: 24px;
    font-size: 11px;
    padding: 0;
    border-radius: 5px;
  }

  #step1,
  #step2,
  #step3 {
    height: 450px;
    overflow-y: auto;
  }

  #calendarGrid .text-center.rounded {
    font-size: 12px;
    line-height: 19px;
  }

  .calendar-grid div {
    padding: 4px;
    font-size: 13px;
  }

  .calendar-right {
    width: 120px;
  }

  .calendar-container #timeSlots .normal-time {
    font-size: 11px;
    margin: 0 !important;
  }

  #monthLabel {
    font-size: 12px;
  }

  .cancel,
  #toStep2 {
    font-size: 11px;
  }

  .calendar .text-end.p-3 {
    padding: 7px !important;
  }

  .schedule-info strong {
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .schedule-info {
    line-height: 1.2;
  }

  .schedule-info span {
    font-size: 11px;
    padding: 7px;
  }

  #editDateTime {
    width: 19px;
    height: 19px;
    background-size: 13px;
  }

  #detailsForm .form-group {
    padding: 15px !important;
  }

  .form-control {
    font-size: 13px;
    line-height: 18px;
    padding-left: 10px;
  }

  textarea {
    height: 80px;
  }

  #detailsForm button {
    padding: 10px 0;
    font-size: 14px;
  }

  #detailsForm .form-group p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  #step2 #backToStep1 {
    background-size: 18px;
    font-size: 13px;
  }

  #step3 .text-success {
    font-size: 4rem;
  }

  #step3 .consultation-message {
    font-size: 16px;
    margin-bottom: 10px;
  }

  #step3 #confirmDateTime {
    padding-left: 0;
    padding-right: 0;
  }

  #step3 .text-decoration-underline {
    font-size: 14px;
  }

  .modal-header-start::before {
    width: 220px;
    height: 220px;
  }


}

@media(max-width: 991px) {
  .modal-header-start::before {
    display: none;
  }

  .modal-header.position-relative::before {
    opacity: 0.2;
    border-radius: 50%;
  }

  .paragraph-style {
    width: 100%;
  }

  #step3 #confirmDateTime {
    padding-left: 0;
    padding-right: 0;
  }

  .modal-dialog {
    width: 100%;
  }

  #step1,
  #step2,
  #step3 {
    height: 100%;
  }

  #errorModal .modal-content{
    width: 550px;
  }

  #errorModal .modal-header-custom{
    font-size: 22px;
    padding: 10px;
  }
  #errorModal .modal-body h3{
    font-size: 18px;
    margin: 15px 0 10px 0;
  }
  #errorModal .modal-body p{
    font-size: 14px;
    margin-bottom: 0;
  }
  #errorModal .btn-custom{
    margin-bottom: 0;
  }
}
@media(max-width: 650px) {
#errorModal .modal-dialog{
  margin: 0;
  display: flex;
}
#errorModal .modal-content{
  width: 97%;
  max-width: 100%;
  height: auto;
}


}
@media(max-width: 540px) {
#alertModal .modal-dialog{
width: 97%;
}
#alertModal p{
  margin-bottom: 0 !important;
}

}
@media(max-width: 500px) {
  .modal-header-start::before {
    display: block;
  }

  .modal-content {
    height: 100vh;
  }

  .modal-header .modal-title {
    font-size: 16px;
    margin-top: 1rem;
  }

  .modal-header-start p {
    font-size: 14px;
  }

  .modal-header.position-relative::before {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: .2;
    display: none;
  }

  .calendar-container {
    flex-flow: column;
  }

  .calendar-right {
    width: 100%;
    max-height: 75px;
    display: flex;
    flex-flow: column;
    align-items: center;
  }

  .calendar-container #timeSlots .normal-time {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-content::before {
    display: none;
  }

  .modal-dialog.modal-dialog-centered.modal-lg.modal-xl {
    padding: 0;
    margin: 0;
  }

  .modal-header.border-0 {
    margin-top: 1rem;
  }

  .schedule-info {
    margin-top: 0;
  }

  .schedule-info span {
    padding: 10px 40px;
    display: flex;
  }

  #detailsForm {
    width: 100%;
    height: 40vh;
  }

  #detailsForm .form-group.mb-3.p-5 {
    padding: 1rem 1.5rem !important;
  }

  .modal-header-start::before {
    display: none;
  }

  #detailsForm textarea {
    height: 100px !important;
  }

  #step3 {
    height: 100%;
  }

  #step3 h5 {
    color: #202B3A;
  }

  #step3 .text-success {
    font-size: 5rem;
    margin: 2rem auto !important;
  }

  #step3 p {
    color: #454545;
    font-size: 1rem;
    font-weight: 600;
  }

  #confirmDateTime {
    color: #454545 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 1rem 5rem;
    line-height: 35px;
    margin-bottom: 2rem;
  }

  #step3 p.text-decoration-underline {
    color: #636363;
    font-size: 14px;
    font-weight: 500;
  }

  .editdatetime {
    display: flex;
    align-items: flex-end;
    flex-flow: column-reverse;
  }

  #editDateTime {
    margin-bottom: 10px;
  }

  .schedule-info strong {
    margin-bottom: 0;
  }

  .paragraph-style {
    width: 100%;
  }

  .btn-close.position-relative {
    top: -18px;
  }

}


@media(max-width: 420px) {
  #confirmDateTime {
    padding: 1rem 3rem;
  }
  #errorModal .modal-header-custom {
    font-size: 18px;
    padding: 5px;
  }

  #errorModal .modal-body h3 {
    font-size: 16px;
  }

  #errorModal .btn-custom{
    margin: 0;
  }





}

@media(max-width: 370px) {
  #confirmDateTime {
    padding: 1rem;
  }

  .schedule-info span {
    padding: 10px 40px;
    font-size: 12px;
  }

  .modal-header-start p {
    font-size: 12px;
  }

  .modal-header .modal-title {
    margin-top: 0;
  }

  .modal-header.border-0 {
    padding-left: 0;
    padding-right: 0;
  }

  .modal-content {
    padding: 10px;
  }

  .btn-close.position-relative {
    margin-right: 0;
    right: 10px;
    top: -7px;
  }

  #detailsForm .form-group p {
    color: #202B3A;
    font-weight: 500;
  }

  #detailsForm button {
    padding: 6px 0;
  }

  #step3 #confirmDateTime {
    padding-left: 20px;
    padding-right: 20px;
  }

}