/* Styles for the contact page and location pages (loaded conditionally). */

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__field label,
.page-template-page-contact #tour-booking-form-step .childcarecrm-form__field--contact-pair label {
  display: block;
  margin-bottom: 8px;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__field--a2p-checkbox {
  padding-top: 15px;
  padding-bottom: 20px;
}

.page-template-page-contact .cadence-contact-page {
  padding-bottom: clamp(2.5rem, 1.8503rem + 2.7706vw, 4.625rem);
}

.page-template-page-contact .cadence-contact-page__article {
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
}

.page-template-page-contact .cadence-contact-page__layout {
  display: grid;
  gap: clamp(1rem, 0.2357rem + 3.2595vw, 3.5rem);
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__card {
  border: 1px solid rgba(116, 107, 66, 0.12);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(116, 107, 66, 0.08);
  overflow: hidden;
  background: #f5f2ea;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__media {
  border-radius: 24px;
  margin-bottom: 1rem;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item {
  font-size: 1.05rem;
}

.page-template-page-contact .cadence-contact-page__form-shell {
  border: 15px solid var(--wh-color-light-green);
  border-radius: 32px;
  padding: clamp(1rem, 0.541rem + 1.9565vw, 2.5rem);
}

.page-template-page-contact .cadence-contact-page__title {
  margin: 0 !important;
  color: #101010;
}

.page-template-page-contact .cadence-contact-page__subtitle {
  margin: 0.65rem 0 0;
}

.page-template-page-contact .cadence-contact-page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 1.1rem;
}

.page-template-page-contact .cadence-contact-page__tabs-prompt {
  flex: 1 0 100%;
  margin: 0;
  color: #2c2c2c;
  font-size: clamp(1rem, 0.9618rem + 0.163vw, 1.125rem);
  line-height: 1.2;
}

.page-template-page-contact .cadence-contact-page__tab {
  border: 0;
  background: transparent;
  padding: 0 0 0 1.55rem;
  position: relative;
  font-size: 1.85rem;
  font-size: clamp(1.05rem, 0.9927rem + 0.2446vw, 1.238rem);
  font-weight: 500;
  color: #1f1f1f;
  cursor: pointer;
}

.page-template-page-contact .cadence-contact-page__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  border: 1px solid #37352e;
  background: #efefef;
}

.page-template-page-contact .cadence-contact-page__tab.is-active::before,
.page-template-page-contact .cadence-contact-page__tab[aria-selected="true"]::before {
  background: #998a52;
  box-shadow: inset 0 0 0 2px #efefef;
}

.page-template-page-contact .cadence-contact-page__panes {
  margin-top: clamp(1rem, 0.6943rem + 1.3043vw, 2rem);
}

.page-template-page-contact .cadence-contact-page__pane {
  min-height: 300px;
}

.page-template-page-contact .cadence-contact-page__scheduler-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.page-template-page-contact .cadence-contact-page__school-pill {
  padding: 0.25rem 1.1rem;
  border-radius: 999px;
  background: #2f8d62;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.2;
}

.page-template-page-contact .cadence-contact-page__school-name {
  font-size: clamp(1.15rem, 1.0736rem + 0.3261vw, 1.4rem);
  color: #1d1d1d;
}

.page-template-page-contact .cadence-contact-page__school-logo {
  display: block;
  width: 128px;
  height: 100px;
  object-fit: contain;
}

.page-template-page-contact .cadence-contact-page__stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 60px 0px 60px 140px;
}

.page-template-page-contact .cadence-contact-page__step {
  position: relative;
  padding-top: 1.45rem;
  border-top: 1px solid #a4a198;
  color: #1f1f1f;
  font-size: clamp(1rem, 0.9618rem + 0.163vw, 1.125rem);
  line-height: 1.2;
  text-align: center;
}

.page-template-page-contact .cadence-contact-page__step::before {
  content: "";
  position: absolute;
  top: -0.59rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #d8d5cb;
}

.page-template-page-contact .cadence-contact-page__step--active {
  color: #1d1d1d;
  font-weight: 500;
}

.page-template-page-contact .cadence-contact-page__step--active::before {
  background: #998a52;
}

.page-template-page-contact .cadence-contact-page__scheduler-fallback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d6d2c5;
}

.page-template-page-contact .cadence-contact-page__scheduler-fallback p {
  margin: 0;
}

.page-template-page-contact .cadence-contact-page__scheduler-fallback p + p {
  margin-top: 0.75rem;
}

.page-template-page-contact .cadence-contact-page__scheduler-debug {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #f0c8c8;
  background: #fff3f3;
  color: #6e1414;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.page-template-page-contact .cadence-contact-page__scheduler-fallback .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 12px;
  background: #2f333a;
  color: #fff;
  text-decoration: none;
}

.page-template-page-contact .cadence-contact-page__scheduler-fallback a:not(.wp-element-button) {
  color: #0e66d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-template-page-contact .cadence-contact-page__switch-tab {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--wh-color-green);
  text-decoration: underline;
  cursor: pointer;
}

.page-template-page-contact .gform_wrapper select {
  height: 48px;
  line-height: 46px;
  padding: 0 2.5rem 0 1rem !important;
}

.page-template-page-contact .childcarecrm-form__go-back-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.page-template-page-contact .childcarecrm-form__disclaimer {
  margin-top: 0.8rem;
  font-size: 0.96rem;
  line-height: 1.4;
}

.page-template-page-contact .childcarecrm-form__disclaimer a {
  color: inherit;
  text-decoration: underline;
}

.page-template-page-contact .gform_confirmation_wrapper,
.page-template-page-contact .gform_confirmation_message {
  margin: 0;
}

.page-template-page-contact .cadence-contact-page__search .ced-location-search-block {
  border-radius: 32px;
}

@media (max-width: 1100px) {
  .page-template-page-contact .cadence-contact-page__layout {
    grid-template-columns: 1fr;
  }

  .page-template-page-contact .cadence-contact-page__school {
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .page-template-page-contact .cadence-contact-page__scheduler-header {
    position: relative !important;
    align-items: center;
  }

  .page-template-page-contact .cadence-contact-page__article {
    width: calc(100% - 16px);
  }

  .page-template-page-contact .cadence-contact-page__form-shell {
    border-width: 8px;
    border-radius: 24px;
    padding: 0.9rem;
  }

  .page-template-page-contact .cadence-contact-page__title,
  .page-template-page-contact .cadence-contact-page__subtitle {
    text-align: center;
  }

  .page-template-page-contact .cadence-contact-page__tabs {
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .page-template-page-contact .cadence-contact-page__tabs-prompt {
    text-align: center;
  }

  .page-template-page-contact .cadence-contact-page__stepper {
    gap: 0.4rem;
  }

  .page-template-page-contact .cadence-contact-page__step {
    font-size: 0.95rem;
  }
}

/* Contact page visual alignment to Schedule Tour comps. */
.page-template-page-contact .cadence-contact-page__layout {
  gap: clamp(1rem, 0.6176rem + 1.6304vw, 2.25rem);
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__card {
  background: #efede7;
  border: 1px solid rgba(116, 107, 66, 0.14);
  border-radius: 34px;
  box-shadow: none;
  padding: 14px;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__media {
  aspect-ratio: 4 / 5.2;
  border-radius: 28px;
  margin-bottom: 1.15rem;
  overflow: hidden;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__reviews {
  margin-bottom: 0.9rem;
}

.page-template-page-contact .cadence-contact-page__school .reviewpush-aggregate-stars {
  color: #988a4f;
}

.page-template-page-contact .cadence-contact-page__school .reviewpush-aggregate-rating,
.page-template-page-contact .cadence-contact-page__school .reviewpush-aggregate-reviews,
.page-template-page-contact .cadence-contact-page__school .cd-total-review {
  font-size: 16px;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__meta {
  margin-bottom: 0.95rem;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item {
  font-size: clamp(1rem, 0.9618rem + 0.163vw, 1.125rem);
  line-height: 1.25;
  margin: 0;
  padding-left: 1.55rem;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item::before {
  left: 0;
  top: 0.16em;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item--address::before {
  -webkit-mask-image: var(--wh-icon-map-pin);
  mask-image: var(--wh-icon-map-pin);
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item--phone::before {
  -webkit-mask-image: var(--wh-icon-phone);
  mask-image: var(--wh-icon-phone);
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item--hours::before {
  -webkit-mask-image: var(--wh-icon-clock);
  mask-image: var(--wh-icon-clock);
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__item--ages::before {
  -webkit-mask-image: var(--wh-icon-baby);
  mask-image: var(--wh-icon-baby);
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__actions {
  gap: 0.65rem;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__actions .wp-element-button {
  border-radius: 0;
  min-height: 60px;
  font-size: clamp(1.3rem, 1.2236rem + 0.3261vw, 1.55rem);
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__actions .wp-element-button:not(.is-style-outline) {
  background: #373c44;
  color: #fff;
}

.page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__actions .is-style-outline {
  border: 1px solid #2f8d62;
  color: #2f8d62;
}

.page-template-page-contact .cadence-contact-page__form-shell {
  border-radius: 34px;
  border-width: 13px;
  padding: clamp(1.25rem, 0.5232rem + 3.1008vw, 3.625rem);
}

.page-template-page-contact .cadence-contact-page__tabs {
  margin-top: 1.25rem;
}

.page-template-page-contact .cadence-contact-page__tabs-prompt {
  margin-bottom: 0.1rem;
}

.page-template-page-contact .cadence-contact-page__tab {
  font-size: clamp(1.2rem, 1.1618rem + 0.163vw, 1.325rem);
}

.page-template-page-contact .cadence-contact-page__scheduler-header {
  gap: 0.58rem;
  position: absolute;
}

.page-template-page-contact .cadence-contact-page__school-name {
  font-size: clamp(1.25rem, 1.1736rem + 0.3261vw, 1.5rem);
  line-height: 1.2;
}

.page-template-page-contact .cadence-contact-page__step {
  border-top-color: #bdbab1;
  padding-top: 1.35rem;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc {
  color: #141414;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc th,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc td {
  border: 0;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-toolbar {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-toolbar h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

@media(min-width: 575px) {
  .page-template-page-contact .cadence-contact-page__scheduler-form .fc-toolbar h2 {  
    width: 0;
    height: 0;
    overflow: hidden;
  }
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-right,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-button-group {
  display: inline-flex;
  gap: 0.55rem;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-button {
  align-items: center;
  background: #2f8d62;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-header {
  color: #202020;
  font-size: clamp(0.95rem, 0.8736rem + 0.3261vw, 1.2rem);
  font-weight: 500;
  padding-bottom: 0.35rem;
  text-align: center;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-header.fc-disabled-day {
  color: #7e7b73;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-top,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-number {
  display: none;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-container,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-scroller {
  height: auto !important;
  overflow: visible !important;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-content-skeleton {
  padding-top: 0.15rem;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-content-skeleton > table,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-content-skeleton > table > tbody {
  table-layout: fixed;
  width: 100%;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-content-skeleton > table td,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc th {
  width: 14.2857%;
}

@media(max-width: 575px) {
  .page-template-page-contact .cadence-contact-page__scheduler-form .fc-content-skeleton > table td,
  .page-template-page-contact .cadence-contact-page__scheduler-form .fc th {
    width: 100% !important;
    display: block;
  }

  .page-template-page-contact .cadence-contact-page__scheduler-form .fc th {
    padding-bottom: 10px;
    font-weight: 700;
  }
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event {
  background: transparent;
  border: 1px solid #77b39a;
  border-radius: 999px;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0.2rem 0;
  max-width: none;
  min-height: 32px;
  text-align: center;
  width: 94%;
  margin-left: auto;
  margin-right: auto;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event:hover,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event:focus-visible {
  background: #e3f2eb;
  border-color: #2f8d62;
  color: #14553a;
  text-decoration: none;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event:hover .fc-time,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event:focus-visible .fc-time {
  color: #14553a;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event .fc-content {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event .fc-time {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-event-container {
  padding: 0.14rem 0;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event .fc-title {
  display: none;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .available-tour-time.selected-tour-time,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event.selected-tour-time {
  background: #2f8d62;
  border-color: #2f8d62;
  color: #fff;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .available-tour-time.selected-tour-time:hover,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event.selected-tour-time:hover,
.page-template-page-contact .cadence-contact-page__scheduler-form .available-tour-time.selected-tour-time:focus-visible,
.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event.selected-tour-time:focus-visible {
  background: #2a7f58;
  border-color: #2a7f58;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event.selected-tour-time .fc-time {
  color: #fff;
}

.page-template-page-contact .cadence-contact-page__scheduler-form .fc-icon {
  font-size: 0;
}

.page-template-page-contact #tour-booking-form-step {
  margin-top: 0.15rem;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__field-special {
  display: none !important;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__pst-type-display,
.page-template-page-contact #tour-booking-form-step .chosenTimeDisplay {
  display: inline-block;
  font-size: 16px;
}

.page-template-page-contact #tour-booking-form-step .chosenTimeDisplay {
  margin-left: .2em;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__errors {
  margin: 0.2rem 0 0.35rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2b7b7;
  border-radius: 12px;
  background: #fff4f4;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__back-button {
  background-color: var(--wh-color-green);
  border: 1px solid var(--wh-color-green);
  color: #fff;
  appearance: none;
  padding: 5px 10px;
  border-radius: 35px;
  font-size: 16px;
  line-height: 1em;
  margin-left: 10px;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__back-button:hover {
  background-color: transparent;
  color: var(--wh-color-green);
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.8rem;
  margin-top: 20px;
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group > .childcarecrm-form__field {
  margin: 0;
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group > .childcarecrm-form__field .childcarecrm-form__control {
  width: 100%;
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group > .childcarecrm-form__field:nth-of-type(3) {
  grid-column: 1;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__disclaimer {
  margin-top: 0.5rem;
  color: #1f1f1f;
  font-size: 0.9rem;
  line-height: 1.28;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__disclaimer > div:first-child {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__disclaimer input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 0;
  border: 1px solid #b9b9b2;
  margin-top: 0.1rem;
  padding: 0;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__disclaimer p {
  margin: 0.35rem 0 0;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__contact-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__field--contact-pair {
  margin: 0;
}

.page-template-page-contact #tour-booking-form-step .a2p-container,
.page-template-page-contact #tour-booking-form-step .a2p-container .col-md-offset-1.col-md-10 {
  margin: 0;
  padding: 0;
}

.page-template-page-contact #tour-booking-form-step .a2p-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.page-template-page-contact #tour-booking-form-step #a2p-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border-radius: 2px;
  border: 1px solid #b9b9b2;
  background: #fff;
  margin: 0.2rem 0 0;
  padding: 0 !important;
  box-shadow: none;
  flex: 0 0 auto;
}

.page-template-page-contact #tour-booking-form-step #a2p-checkbox:checked {
  background: #2f8d62;
  border-color: #2f8d62;
  box-shadow: inset 0 0 0 2px #fff;
}

.page-template-page-contact #tour-booking-form-step .a2p-checkbox-label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.page-template-page-contact #tour-booking-form-step .a2p-terms {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child {
  counter-increment: cadence-tour-child;
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin-top: 1rem;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(47, 141, 98, 0.18);
  border-radius: 28px;
  background: #f8f5ef;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child[style*='display: none'] {
  display: none !important;
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group {
  counter-reset: cadence-tour-child;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child::before {
  content: 'Child ' counter(cadence-tour-child);
  grid-column: 1 / -1;
  display: block;
  margin-bottom: 0.1rem;
  color: #2f8d62;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth {
  margin: 0;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min-content minmax(0, 1fr) min-content minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth > div > span {
  color: #767676;
  font-size: 1.15rem;
  line-height: 1;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth select {
  width: 100%;
  min-width: 0;
}

@media(max-width: 500px) {
  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth select {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    background: #fff var(--wh-icon-down-triangle) no-repeat right 0.4rem center / 0.6rem !important;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth select.childcarecrm-form__date-month {
    padding: 0.6rem 1rem 0.6rem 0.4rem !important;
    text-align: center;
  }
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--add {
  justify-self: start;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--add button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  min-width: 170px;
  border-radius: 999px;
  border: 0;
  background: #2f8d62;
  color: #fff;
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: clamp(0.98rem, 0.9418rem + 0.163vw, 1.105rem);
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--add button::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--remove {
  display: none !important;
  justify-self: start;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child:has([data-key*='[childInfo2]']) .childcarecrm-form__tour-child-toggle--remove {
  display: block !important;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--remove button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 141, 98, 0.28);
  background: #fff;
  color: #245f44;
  font-size: 0.95rem;
  font-weight: 600;
}

.page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--remove button::before {
  content: '\2212';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(47, 141, 98, 0.1);
  color: currentColor;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group > .childcarecrm-form__field-textarea {
  grid-column: 1 / -1;
  margin-top: 1rem
}

.page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group > .childcarecrm-form__field-textarea textarea {
  min-height: 170px;
  border-radius: 32px;
}

.page-template-page-contact .childcarecrm-form__footer {
  display: flex;
  justify-content: center;
  margin: 1.1rem 0 0 !important;
}

.page-template-page-contact #childcarecrm-form__submit-button {
  min-width: 146px;
  min-height: 52px;
  border-radius: 999px;
  border: 0;
  background: #2f8d62;
  color: #fff;
  padding: 0 1.35rem;
  font-size: clamp(1.02rem, 0.9818rem + 0.163vw, 1.145rem);
}

.page-template-page-contact .flatpickr-calendar {
  display: none !important;
}

.page-template-page-contact .flatpickr-calendar.open,
.page-template-page-contact .flatpickr-calendar.inline {
  display: block !important;
}

@media (max-width: 1100px) {
  .page-template-page-contact .cadence-contact-page__layout {
    grid-template-columns: 1fr;
  }

  .page-template-page-contact .cadence-contact-page__school {
    max-width: 480px;
  }

  .page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-template-page-contact .cadence-contact-page__school {
    max-width: none;
  }

  .page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__card {
    border-radius: 30px;
    padding: 12px;
  }

  .page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__media {
    border-radius: 24px;
  }

  .page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__list {
    gap: 0.7rem 0.8rem;
  }

  .page-template-page-contact .cadence-contact-page__school .ced-dynamic-school__actions .wp-element-button {
    min-height: 56px;
  }

  .page-template-page-contact .cadence-contact-page__form-shell {
    border-radius: 28px;
    border-width: 10px;
    padding: 1.05rem;
  }

  .page-template-page-contact .cadence-contact-page__subtitle {
    margin-top: 0.6rem;
  }

  .page-template-page-contact .cadence-contact-page__tabs {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .page-template-page-contact .cadence-contact-page__tab {
    font-size: 1.7rem;
    font-size: clamp(1rem, 0.9236rem + 0.3261vw, 1.25rem);
  }

  .page-template-page-contact .cadence-contact-page__school-name {
    font-size: clamp(1.02rem, 0.9436rem + 0.3261vw, 1.27rem);
  }

  .page-template-page-contact .cadence-contact-page__stepper {
    gap: 0.3rem;
    margin: 1rem 0 1.15rem;
  }

  .page-template-page-contact .cadence-contact-page__step {
    font-size: 0.95rem;
    padding-top: 0.95rem;
  }

  .page-template-page-contact .cadence-contact-page__step::before {
    top: -0.5rem;
  }

  .page-template-page-contact .cadence-contact-page__scheduler-form .fc-toolbar {
    gap: 0.65rem;
  }

  .page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-header {
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
  }

  .page-template-page-contact .cadence-contact-page__scheduler-form .fc-button {
    height: 34px;
    min-width: 34px;
  }

  .page-template-page-contact .cadence-contact-page__scheduler-form .fc-day-grid-event .fc-time {
    font-size: 14px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .page-template-page-contact #tour-booking-form-step {
    margin-top: 0;
  }

  .page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group {
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__contact-row,
  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child {
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child {
    padding: 0.9rem 0.9rem 0.85rem;
    border-radius: 22px;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__group--tour-child::before {
    margin-bottom: 0;
    font-size: 0.74rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__field,
  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__field--contact-pair {
    margin: 0;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__field label {
    margin-bottom: 0.28rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__field .childcarecrm-form__control {
    min-height: 42px;
    padding: 0.45rem 0rem;
    font-size: 0.96rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__disclaimer {
    margin-top: 0.45rem;
    font-size: 0.83rem;
    line-height: 1.28;
  }

  .page-template-page-contact #tour-booking-form-step .a2p-checkbox-container {
    gap: 0.45rem;
    margin-top: 0.4rem;
  }

  .page-template-page-contact #tour-booking-form-step #a2p-checkbox {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    margin-top: 0.18rem;
  }

  .page-template-page-contact #tour-booking-form-step .a2p-checkbox-label,
  .page-template-page-contact #tour-booking-form-step .a2p-terms {
    font-size: 0.83rem;
    line-height: 1.25;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__disclaimer input[type='checkbox'] {
    width: 15px;
    height: 15px;
    min-width: 15px;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__date-of-birth > div {
    gap: 0.35rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--add {
    min-width: 0;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--add button {
    min-height: 44px;
    min-width: 128px;
    padding: 0 0.95rem;
    font-size: 0.95rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--add button::before,
  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--remove button::before {
    width: 1.05rem;
    height: 1.05rem;
  }

  .page-template-page-contact #tour-booking-form-step .childcarecrm-form__tour-child-toggle--remove button {
    min-height: 40px;
    padding: 0 0.9rem;
    font-size: 0.9rem;
  }

  .page-template-page-contact #tour-booking-form-step > .childcarecrm-form__group > .childcarecrm-form__field-textarea textarea {
    min-height: 110px;
    border-radius: 22px;
  }

  .page-template-page-contact .childcarecrm-form__footer {
    margin-top: 0.95rem !important;
  }

  .page-template-page-contact #childcarecrm-form__submit-button {
    min-height: 44px;
    min-width: 94px;
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}

.cadence-contact-page__scheduler-holder {
  display: flex;
}

@media (max-width: 767px) {
  .cadence-contact-page__stepper {
    padding: 20px 0px !important;
  }
}
