/* css for the booking process */

:root {
  --brand-aqua: #73867e;
  --brand-gold: #b6b1a0;
  --booking-header-height: 73px; //Keep this in sync with the actual height
}
* {
  scroll-behavior: auto !important;
}

/*Section Headings*/
.section-heading {
  display: block;
  font-weight: bold;
  color: var(--brand-aqua);
  text-transform: uppercase;
}

/*SECTION DIVIDERS*/
.section-divider-and-spacing {
  border-top: 1px solid #73867e55;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/*Change Buttons (step4)*/
.change-button {
  display: inline-block;
  padding-left: 0.5em;
  padding-right: 0.5em;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  border: 1px solid var(--brand-aqua);
  border-radius: 0.4em;
  color: black;
}
.change-button::before {
  content: "✎ ";
}

/*ROUNDED CHECKBOXES & RADIO BUTTONS*/
.round-checkbox-label {
  display: block;
}
.round-checkbox-label :is(input[type="checkbox"], input[type="radio"]) {
  width: 41px; /* 44px minus the 3px of border */
  height: 41px;
  background-color: white;
  border-radius: 50%;
  vertical-align: middle;
  border: 1.5px solid var(--brand-aqua);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition-duration: 50ms;

  position: relative; /*Necessary for absolutely positioning ::before eleement*/
}
.round-checkbox-label
  :is(input[type="checkbox"], input[type="radio"]):not(
    :disabled,
    :checked
  ):hover {
  background-color: #73867e33;
}
.round-checkbox-label :is(input[type="checkbox"], input[type="radio"]):checked {
  background-color: var(--brand-aqua);
}

.round-checkbox-label :is(input[type="checkbox"], input[type="radio"])::before {
  display: block;
  top: 0px;
  left: 0px;

  height: 100%;
  width: 100%;

  vertical-align: middle;
  text-align: center;
  line-height: calc(40px - 3px); /*Remove border width*/

  color: var(--brand-aqua);

  font-weight: bold;
}
.round-checkbox-label
  :is(input[type="checkbox"], input[type="radio"]):checked::before {
  color: white;
}

.round-checkbox-label > div {
  min-height: 41px;
}
.round-checkbox-label input[type="checkbox"]:disabled + div {
  color: gray;
}
.round-checkbox-label input[type="checkbox"]:disabled {
  cursor: default;
}

/*Inputs*/
.invalid {
  box-shadow: 0px 0px 4px red;
}

/*TIMETABLE*/
.timetable-item {
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative; /*For absolutley positioning the radio over it*/
}

.cell-content {
  display: block;
  padding: 1rem;
  text-align: center;
  width: 100%;
  height: 100%;
  transition-duration: 150ms;
}
.timetable-heading {
  color: var(--brand-aqua);
  border: 2px solid var(--brand-aqua);
  background-color: #e6e8e7;
  font-weight: bold;
}
.active-timetable-heading {
  color: white;
  background-color: var(--brand-aqua);
  font-weight: bold;
}
.timetable-body-item {
  color: var(--brand-aqua);
  border: 2px solid var(--brand-aqua);
  margin-left: 8px;
  margin-right: 8px;
}
.timetable-body-item input {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.booking-timetable input:checked + .cell-content {
  background-color: var(--brand-aqua);
  color: white;
}
.timetable-column {
  margin-bottom: 24px;
}
.pagination-button-container {
  position: sticky;
  top: calc(
    var(--booking-header-height) + 24px
  ); /*No margin-top when inline, but when sticking keep 24px of margin*/
  margin-bottom: 56px;
  max-width: 100%;
}
.pagination-button-container::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.pagination-button {
  display: inline-block;
  width: 44px;
  height: 44px;
  background-color: var(--brand-aqua);
  border-radius: 50%;
  border: none;
}
.pagination-button .pagination-button-icon {
  color: white;
  font-weight: bold;
}

/*Form Collapse & Badges (step1)*/
.formCollapse .collapseBody {
  max-height: inherit;
}
.formCollapse.closed .collapseBody {
  max-height: 0;
  overflow: hidden;
}
.formCollapse .collapseToggle {
  display: block;
  width: 100%;
  padding: 0.3em;

  font-size: 1.5rem;

  transition: background-color;
  transition-duration: 150ms;

  color: white;
  background-color: var(--brand-aqua);
  border: 2px solid var(--brand-aqua);

  margin-bottom: 1rem;
  margin-top: 1rem;
}

.formCollapse.closed .collapseToggle {
  color: var(--brand-aqua);
  background-color: transparent;
}

.formCollapse.closed .collapseToggle:hover {
  background-color: #73867e33;
}

.formCollapse .selectionBadge {
  transform: scale(0.8);
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;

  margin-left: 8px;

  vertical-align: middle;
  text-align: center;
  line-height: 1em;

  font-size: inherit;

  box-shadow: 0px 0px 0px 0.2em var(--brand-aqua);
  background-color: var(--brand-aqua);
  color: white;
}

.formCollapse:not(.closed) .selectionBadge {
  color: var(--brand-aqua);

  box-shadow: 0px 0px 0px 0.2em white;
  background-color: white;
}

.formCollapse .selectionBadge:empty {
  display: none;
}

/* FOOTER */
.booking-footer {
  margin-top: 2em;
  position: sticky;
  bottom: 80px;
  border-top: 1px solid #eee;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(3px);
  padding: 1em;
  z-index: 10;
}
@media only screen and (min-width:768px) {
  .booking-footer {
    bottom: 0 !important;
  }
}
.booking-footer nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.booking-footer :is(a, button) {
  flex: 1;
  padding: 0.5em;
  text-align: center;
  transition: all;
  transition-duration: 200ms;
  border: 2px solid #73867e;
}
.booking-footer :is(a, button):hover:not([disabled]) {
  filter: brightness(1.15);
}
.booking-footer :is(a, button).primary {
  background-color: #73867e;
  color: #fff;
}
.booking-footer :is(a, button).secondary {
  background-color: white;
  color: #73867e;
}

/* Header */
.booking-header {
  margin-bottom: 2em;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #eee;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(3px);
  padding-block: 1em;
  z-index: 10;
  /*
   .page-header .header z-index is 20
   .on-the-fly-header .header z-index is 30
  */
}
.booking-header nav {
}
.booking-header ol {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  padding: 0;
  margin: 0;
}

.booking-header :is(a, span) {
  color: inherit;
  text-decoration: none;
}

.booking-header ol li {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold);
  font-weight: bold;
}
.booking-header ol li.active {
  background-color: var(--brand-gold);
  color: white;
}
.booking-header ol li.disabled {
  opacity: 0.4;
}
.booking-header ol li a {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}

/*Booking Graphic*/
.booking-graphic [data-option-value] {
  opacity: 0;
}

.booking-graphic [data-option-value].hovered {
  opacity: 0.6;
  animation: pulsating 1.2s infinite alternate linear;
}

.booking-graphic [data-option-value].active {
  opacity: 1;
}

@keyframes pulsating {
  0% {
    filter: brightness(1.2);
  }
  50% {
    filter: brightness(1.4);
  }
  100% {
    filter: brightness(1.2);
  }
}

/* For the phonePrefix select on step 3 */
select {
  appearance: none;
  -webkit-appearance: none;
}

/* For the Hydrafacial Checbox that looks like the Accordion Toggles */
.hydrafacial-checkbox {
  display: block;
  position: relative;
}

.hydrafacial-checkbox .visualToggle {
  pointer-events: none;
  touch-action: none;

  display: block;
  width: 100%;
  padding: 0.3em;
  font-size: 1.5rem;


  border: 2px solid var(--brand-aqua);
  background-color: white;
  color: var(--brand-aqua);
  text-align: center;

  transition: all;
  transition-duration: 200ms;
}

.hydrafacial-checkbox input:not(:checked):hover ~ .visualToggle {
  background-color: #73867e33;
}

.hydrafacial-checkbox input:checked ~ .visualToggle {
  background-color: var(--brand-aqua);
  color: white;
}

.hydrafacial-checkbox input {
  appearance: none;
  opacity: 0;
  position: absolute;
  inset: 0;
}