/*Utils*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

.display-none {
  display: none;
}

.mar-b-24 {
  margin-bottom: 24px;
  display: block;
}

.booking-form {
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-radius: var(--rounded-lg);
  text-align: start;
  position: relative;
}

.booking-form-heading {
  font-size: 18px;
  text-align: center;
}

.booking-form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  width: 60%;
  margin: auto;
}

.booking-form-steps li {
  display: inline-flex;
  width: 100%;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.booking-form-steps li::before,
.booking-form-steps li::after {
  width: 50%;
  height: 2px;
  position: absolute;
  content: "";
  display: inline-block;
  top: 10px;
  background-color: var(--gray);
  z-index: 2;
}

.booking-form-steps li::before {
  left: 0;
}

.booking-form-steps li::after {
  right: 0;
}

.booking-form-steps li.step-finished::before,
.booking-form-steps li.step-finished::after,
.booking-form-steps li.step-current::before {
  background-color: var(--primary);
}

.booking-form-steps li.step-current::after {
  background-color: var(--gray);
}

.booking-form-steps li:first-child::before,
.booking-form-steps li:last-child::after {
  display: none;
}

.booking-form-steps li .step-content {
  position: relative;
  padding-top: 30px;
  font-size: 12px;
  font-weight: var(--font-semibold);
}

.booking-form-steps li .step-content::before,
.booking-form-steps li .step-content::after {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  content: "";
  display: inline-block;
  position: absolute;
  border: 2px solid var(--gray);
  background-color: white;
  z-index: 5;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
}

.booking-form-steps li .step-content::before {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.booking-form-steps li.step-finished .step-content::after {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%23FFF' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: center;
}

.booking-form-steps li.step-current .step-content::before {
  border-color: white;
}

.booking-form-steps li.step-current .step-content::after {
  width: 12px;
  height: 12px;
  border-color: var(--primary);
  background-color: var(--primary);
  top: 4px;
}

/* Form */

.form-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

@media (max-width: 575.98px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.form-item {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  width: 100%;
  flex-direction: column;
  text-align: start;
}

.form-item .form-select,
.form-item .form-input {
  padding: 0 0.75rem;
  line-height: 1.25;
  height: 58px;
  display: flex;
  font-size: 1rem;
  font-weight: 400;
  color: black;
  appearance: none;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.form-item .form-select:focus,
.form-item .form-input:focus {
  outline: none;
  box-shadow: none;
  border-color: #bbb;
}

.form-item .form-select[disabled],
.form-item .form-input[disabled] {
  background-color: #f4f4f4;
  opacity: 0.85;
  cursor: not-allowed;
}

.form-item .form-input::placeholder {
  opacity: 0;
}

.form-tel .form-input::placeholder {
  opacity: 1;
}

.form-item>label {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 2;
  /* height: calc(60px - 2rem); */
  padding: 1rem 0.75rem;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  display: flex;
  align-items: center;
}

.form-item .form-select,
/* .form-item .form-input:focus, */
.form-item .form-input:not(:placeholder-shown),
.form-tel .form-input {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
  height: calc(58px - 2.25rem);
}

.form-item .form-input:not(:placeholder-shown) {
  height: 58px;
  /* height: calc(58px - 2.3rem); */
}

.form-item .form-select {
  height: 58px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-item .form-select~label,
.form-item .form-input:focus~label,
.form-item .form-input:not(:placeholder-shown)~label,
.form-tel>label {
  color: rgba(0, 0, 0, 0.65);
  transform: scale(0.8) translateY(-0.6rem) translateX(0.15rem);
}

.form-item .input-icon {
  position: absolute;
  right: 16px;
  top: 20px;
  bottom: 0;
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.form-item .input-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--dark-gray);
}

/*Checkbox and radio*/
.calendar-check,
.calendar-radio {
  position: relative;
  margin-bottom: 16px;
}

.calendar-check-input,
.calendar-radio-input {
  display: none;
}

.calendar-check-label,
.calendar-radio-label {
  position: relative;
  padding-inline-start: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-check-label:hover,
.calendar-radio-label:hover {
  cursor: pointer;
}

.calendar-check-label::before,
.calendar-check-label::after,
.calendar-radio-label::before,
.calendar-radio-label::after {
  display: inline-block;
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}

.calendar-check-label::after,
.calendar-radio-label::after {
  display: none;
  border: none;
  background-color: transparent;
  border-radius: 0;
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: center;
}

.calendar-radio-label::before {
  border-radius: 100%;
}

.calendar-radio-label::after {
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3' clip-rule='evenodd'/></svg>");
  background-size: 50px;
}

.calendar-check-input:checked~.calendar-check-label::after,
.calendar-radio-input:checked~.calendar-radio-label::after {
  display: inline-block;
}

.calendar-check-input:checked~.calendar-check-label::before,
.calendar-radio-input:checked~.calendar-radio-label::before {
  background-color: var(--primary);
  border-color: var(--primary);
}

.calendar-check-input.is-invalid~.calendar-check-label,
.calendar-radio-input.is-invalid~.calendar-radio-label {
  color: red;
}

.calendar-check-input.is-invalid~.calendar-check-label::before,
.calendar-radio-input.is-invalid~.calendar-radio-label::before {
  border-color: red;
}

/*Phone Input*/
.iti,
.iti__tel-input {
  width: 100%;
}

.iti__selected-country {
  padding-top: 13px;
}

/*Separator*/
.separator {
  border-top: 1px solid #ddd;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
  margin: 32px 0;
}

.separator span {
  color: var(--dark-gray);
  padding: 5px 10px;
  background-color: white;
  margin-top: -3px;
}

.actions-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

@media (max-width: 575.98px) {
  .actions-container {
    flex-direction: column;
  }

  .actions-container button {
    width: 100% !important;
  }

  .btn-next {
    order: 1;
  }

  .btn-back {
    order: 2;
  }

  .btn-cancel {
    order: 3;
    margin-top: 24px;
  }
}

/*Button*/
.btn-calendar {
  display: flex;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--primary);
  color: white;
  border-radius: var(--rounded);
  border: 1px solid var(--primary);
  height: 45px;
  align-items: center;
  justify-content: center;
}

button:hover,
a:hover {
  cursor: pointer;
}

.btn-back {
  border-color: 1px solid var(--gray);
  color: var(--dark-gray);
  background-color: transparent;
}

.btn-dimmed {
  background-color: var(--light);
  color: var(--dark-gray);
}

.btn-cancel {
  border-color: red;
  color: red;
  background-color: transparent;
}

.btn-next {
  margin-inline-start: auto;
}

.btn-next:hover,
.btn-next:focus {
  opacity: 0.8;
}

.is-invalid {
  border-color: red !important;
}

.invalid-msg {
  font-size: 0.85rem;
  color: red;
  margin-top: 8px;
  display: none;
  text-align: start;
}

.is-invalid~.invalid-msg {
  display: block;
}

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

/*Datepicker*/
.datepicker-dropdown {
  padding: 16px;
}

.datepicker-dropdown .table-condensed {
  width: 100%;
  text-align: center;
  font-size: 12px;
}

.datepicker-switch {
  vertical-align: baseline;
  font-size: 14px;
}

thead .prev,
thead .next {
  display: flex;
  align-items: center;
  justify-content: center;
}

thead .next {
  margin-inline-start: auto;
}

thead .prev {
  margin-inline-end: auto;
}

.datepicker-dropdown .table-condensed .day {
  width: 30px;
  height: 30px;
}

.datepicker-dropdown .table-condensed .day:hover,
.datepicker-dropdown .table-condensed .day:focus,
thead .prev:hover,
thead .prev:focus,
thead .next:hover,
thead .next:focus {
  cursor: pointer;
}

.datepicker-dropdown .table-condensed .active {
  background-color: #333333;
  color: white;
}

.datepicker-dropdown .table-condensed .today {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  color: #333;
}

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
  color: lightgray !important;
  cursor: not-allowed;
}

.month,
.year {
  padding: 2px;
}

.month.focused,
.year.focused {
  font-weight: bold;
}

.datepicker-dropdown .table-condensed .year.active {
  border-radius: 3px;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 575.98px) {
  .booking-form {
    gap: 24px;
    padding-bottom: 30px;
  }

  .booking-form-steps {
    width: 95%;
  }
}

/* Dialog */
.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.dialog::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
  width: 500px;
  max-width: 100%;
  background-color: white;
  border-radius: 10px;
  z-index: 5;
}

.dialog-title {
  padding: 16px;
  background-color: #333;
  color: white;
  border-radius: 10px 10px 0 0;
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-title h4 {
  margin: 0;
}

.dialog-title .btn-close {
  width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
}

.dialog-title .btn-close svg {
  fill: white;
}

.dialog-description {
  padding: 24px 16px;
}

.dailog-error .dialog-title {
  background-color: red;
}

.dialog-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
}

/* Thank you */
.thanks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  background: #E9FFEA;
  padding: 16px;
  border-radius: 10px;
}

.thanks-container.failed {
  background-color: #FFE9E9;
}

.thanks-title {
  margin: 0;
  font-size: 20px;
}

.thanks-description {
  color: var(--dark-gray);
}

/*Loading*/
@-webkit-keyframes rotating

/* Safari and Chrome */
  {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.rotating {
  -webkit-animation: rotating .3s linear infinite;
  -moz-animation: rotating .3s linear infinite;
  -ms-animation: rotating .3s linear infinite;
  -o-animation: rotating .3s linear infinite;
  animation: rotating .3s linear infinite;
}

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/*Popup*/
.popup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, .5);
}

.popup-content {
  position: relative;
  width: 400px;
  max-width: 100%;
  background-color: white;
  border-radius: 12px;
  z-index: 100;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-content .popup-header,
.popup-content p {
  margin: 0 !important;
}

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.popup-footer button {
  margin: 0;
}

.btn-closer {
  border: 1px solid #777;
  color: #777;
  background-color: white;
}

.gcal-event-block,
.gcal-day-event-block {
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s, transform 0.3s;
}

@keyframes snapHighlight {
  0%   { transform: scale(1); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.gcal-event-block.highlighted-event,
.gcal-day-event-block.highlighted-event {
  box-shadow: 0 0 0 4px #ff9800aa;
  background: #ffebee;
  border-color: #ff9800;
  animation: snapHighlight 1.0s cubic-bezier(.68,-0.55,.27,1.55);
}