.webform-submission-form .messages--error{display: none;}
@media screen and (max-width: 480px) {
    form * {
        font-size: 22px !important;
        line-height: 1.2;
    }
}
input[name="visit_datetime[seats]"] ~ .form-item--error-message {
    display: none; /* Hide the nearest div element with class form-item--error-message */
}
[id^="appointment-wrapper"] {
  --wbooking-color-selected: #4d616f;
  --wbooking-color-light: #bde2ff;
  --wbooking-color-light-hover: #98b8d1;
  --wbooking-light-gray: lightgray;
  --wbooking-error: red;
}


[id^="appointment-wrapper"] {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  flex-direction: column;
  position: absolute;
  left: 231px;
  top: 42px;
  z-index: 2;
  box-shadow: 0px 2px 16px 0px rgba(26, 26, 26, .24);
  border-radius: 8px;
  padding: 16px;
  background: white;
  align-items: center;

  &.webform-booking-error {
    margin: unset;
    color: unset;
    background-color: #fff;
    border-color: transparent;
  }

  & [id^="month-select"] {
    width: 220px;
    min-height: 30px;
    border-radius: 0;
    border: 1px solid #999999;
    background-color: #f3f3f3;
    appearance: none;
    padding: 7px 11px;
    font-size: 14px;
    background-size: 15px auto;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-image: url(../img/select-expand.svg);
  }
  & .calendar-wrapper {
    min-width: 715px;
     & [id^="month-select"] {
      display: none;
    }
    & .description {
      margin-top: 10px;
      display: block !important;
      font-size: 13px !important;
    }
  }
  & [id^="calendar-container"] {
    & .week-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
    }
    & .calendar-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-gap: 10px;
      padding-bottom: 15px;

      & .calendar-day {
        font-size: 15px;
        color: var(--wbooking-light-gray);
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-align: center;
        justify-self: center;

        &.available {
          color: black;
          cursor: pointer;
          &:hover {
            background-color: var(--wbooking-color-light-hover);
          }
        }
        &.no-slots {
          background-color: var(--wbooking-light-gray);
          color: black;
        }
        &.active {
          color: white;
          background-color: var(--wbooking-color-selected);
        }
      }
    }
  }

  & [id^="slots-container"] {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 300px;
    gap: 5px;
    flex-direction: row;

    &.has-columns {
      flex-wrap: nowrap;
    }

    & .calendar-slot {
      padding: 5px 10px;
      border: 1px solid var(--wbooking-light-gray);
      text-align: center;
      &:hover {
        background-color: var(--wbooking-color-light);
      }
      &.available {
        cursor: pointer;
      }
      &.unavailable {
        background-color: var(--wbooking-light-gray);
      }
      &.selected {
        background-color: var(--wbooking-color-selected);
        color: white;
      }
    }

    & .calendar-column {
      & .calendar-slot {
        min-width: 80px;
        margin-bottom: 10px;
      }
    }
    &.highlight {
      border: 1px dashed var(--wbooking-error);
    }
  }
  & .webform-booking-calendar-wrapper {
    width: 100%;
  }
}
.webform-calendar-icon {
  position: absolute;
  left: 238px;
  top: 7px;
  z-index: 2;
  width: 16px;
  height: 16px;
  background-image: url(../img/calendar.svg);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

[id^="paypal-button-container"] {
  margin-top: 20px;
  max-width: 300px;
  width: 100%;
}

.webform-booking-error {
  margin: 1em 0;
  padding: 15px;
  border: 1px solid #e62600;
  border-radius: 4px;
  color: #a51b00;
  background-color: #f9e6e6;
}

.webform-submission-form details summary {
  background: transparent linear-gradient(180deg, #355bbc 0%, #203f8e 100%) 0%
    0% no-repeat;
  margin-bottom: 20px;
  font-size: 24px;
  color: white;
  line-height: 2;
  position: relative;
  border-radius: 8px;
  padding-left: 7px;
  &::marker {
    content: "";
  }
  &::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1.9rem;
    display: block;
    width: 1.9rem;
    height: 0.2rem;
    margin: auto;
    background: #fff;
    transform: translateY(-50%);
  }
  &::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1.9rem;
    display: block;
    width: 1.9rem;
    height: 0.2rem;
    margin: auto;
    background: #fff;
    transform: translateY(-50%) rotate(90deg);
    transition: 0.2s;
  }
  &[aria-expanded="true"]::after {
    transform: translateY(-50%);
  }
}

.webform-submission-form fieldset {
  padding-bottom: 20px;
  &.webform-type-webform-email-confirm {
    padding-bottom: unset !important;
    margin-top: unset;
    .fieldset-wrapper {
      margin-top: unset !important;
    }
  }
  &.flex-line {
    .fieldset-wrapper {
      .form-radios {
        display: flex;
        gap: 20px;
      }
    }
  }
  &[data-once="webform-radios-required"] {
    & legend {
      &::after {
        content: "*";
        position: relative;
        top: -6px;
        left: 5px;
        color: red;
      }
    }
  }
}

.webform-submission-form fieldset legend {
  font-size: 16px;
  font-weight: bold;
}
.webform-submission-form input[type="radio"] {
  appearance: auto;
}
.webform-submission-form .webform-booking-datetime {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  row-gap: 0;
  position: relative;
  & label {
    font-size: 18px;
    font-weight: bold;
    grid-column: span 1;
    &::after {
      content: "*";
      position: relative;
      top: -6px;
      left: 5px;
      color: red;
    }
  }
  & input {
    min-height: 30px;
    border-radius: 0;
    border: 1px solid #999999;
    appearance: none;
    padding: 7px 11px;
    font-size: 14px;
    width: 220px;
    background-color: #fff;
    outline: none;
    margin-bottom: 20px;
    padding-left: 25px;
    &::before {
      content: '';
      display: block;
    }
  }
  .form-item--error-message {
    grid-row: 2;
    grid-column: 2;
    margin-bottom: 15px;
  }
  & .js-form-item-visit-date-visit-duration {
    grid-column: 1 / -1;
    & select {
      width: 220px !important;
    }
  }
  & .description {
    display: none;
  }
}
.webform-submission-form .js-form-item-number-of-visitors select,
.webform-submission-form .js-form-item-visit-time-with-guide select {
    width: 220px !important;
}

/* Confirmation Page */
.webform-preview {
  & .webform-element {
    display: flex;
    gap: 20px;
    font-size: 16px;
    margin-bottom: 10px;
    & label {
      width: 25%;
      font-size: 16px;
      font-weight: bold;
    }
  }
  & h2 {
    margin-bottom: 20px;
    padding-bottom: 20px !important;
  }
  & details summary {
    margin-top: 20px;
  }
  & fieldset {
    padding: 0 !important;
    border: none !important
    ;
  }
}
/* Submission information */
.webform-submission-information .details-wrapper >div{
  display: flex;
  gap: 20px;
  font-size: 16px;
  margin-bottom: 10px;
}
.webform-submission-information .details-wrapper {
  margin-bottom: 30px;
}
.webform-button--previous {
  margin-bottom: 30px !important;
}
/* Cancel success message prompt */
[data-drupal-messages=""] .messages.messages--status {
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
}
@media screen and (max-width: 1000px) {
  .webform-submission-form .webform-booking-datetime {
    display: flex;
    flex-direction: column;
    & input {
      width: 100%;
    }
    & [id^="month-select"] {
      width: 100%;
    }
    & .calendar-wrapper {
      min-width: unset;
      width: 100%;
    }
    & .js-form-item-visit-date-visit-duration {
      & select {
        width: 100% !important;
      }
    }
  }
  .webform-submission-form .js-form-item-number-of-visitors select {
    width: 100% !important;
 }
  .webform-preview {
    & .webform-element {
      gap: 5px;
      flex-direction: column;
      margin-bottom: 15px;
      & label {
        width: 100%;
      }
    }
  }
  .webform-calendar-icon {
    left: 10px;
    top: 30px;
  }
  [id^="appointment-wrapper"] {
    left: 0;
    top: 70px;
    width: 100%;
  }
}
.hide {
  display: none !important;
}
.show {
  display: grid !important;
}
.red {
  color: red !important;
}
.font24 {
    font-size: 24px !important;
}
.webform-confirmation__message p {
    margin-top: 10px;
}

.booking-group-title {
  min-height: 48px;
  background: transparent linear-gradient(180deg, #355bbc 0%, #203f8e 100%) 0% 0% no-repeat;
  margin-bottom: 20px;
  color: white;
  position: relative;
  border-radius: 8px;
  padding-left: 7px;

  p:only-child {
    margin-bottom: 0 !important;
    font-size: 24px;
    line-height: 2;
  }
}

.webform-submission-form .seven-details__summary:hover,
.webform-submission-form .seven-details__summary:focus,
.webform-submission-form .seven-details[open] > .seven-details__summary {
  color: #fff;
}