:is(a[data-fancybox][href="#popup"], a[data-fancybox][href="#consultation"], a[href="#consultation-booking"]):focus-visible,
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="64"], [value="1778"])) :is(input, button):focus-visible {
  outline: 2px solid #002d56;
  outline-offset: 3px;
}

.appointment-consent .wpcf7-list-item {
  margin: 0;
}

.appointment-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}

:is(#consultation form.wpcf7-form, form.wpcf7-form) .appointment-consent input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  accent-color: #2576b7;
}

.appointment-consent a {
  color: #075ca1;
  text-decoration: underline;
}

form.wpcf7-form .wpcf7-submit.button:disabled {
  background: #c2c2c2;
  cursor: default;
}

@media (max-width: 768px) {
  .appointment-form-in-view :is(#callme-back, #sp-up) {
    visibility: hidden;
  }

  .appointment-consent label {
    min-height: 44px;
  }

  :is(a[data-fancybox][href="#popup"], a[data-fancybox][href="#consultation"], a[href="#consultation-booking"]):not(#callme-back),
  form.wpcf7-form:has(input[name="_wpcf7"]:is([value="64"], [value="1778"])) .button {
    box-sizing: border-box;
    min-height: 44px;
    height: auto;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  :is(a[data-fancybox][href="#popup"], a[data-fancybox][href="#consultation"], a[href="#consultation-booking"]) > span,
  form.wpcf7-form:has(input[name="_wpcf7"]:is([value="64"], [value="1778"])) .button > span {
    font-size: 16px;
    line-height: 1.25;
  }

  :is(#consultation form.wpcf7-form, form.wpcf7-form:has(input[name="_wpcf7"][value="64"])) input:is([type="text"], [type="tel"], [type="email"]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.25;
  }

  :is(#consultation form.wpcf7-form, form.wpcf7-form:has(input[name="_wpcf7"][value="64"])) input::placeholder {
    font-size: inherit;
    line-height: inherit;
  }

  #popup.fancybox-content,
  #consultation.fancybox-content {
    width: min(100%, 659px);
  }

  :is(#popup, #consultation) .fancybox-close-small {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .header-top .header-wrapper {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 4px;
  }

  .header-top .phone-wrapper {
    height: auto;
  }

  .header-top .header-button {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
  }

  .header-top .header-button .button {
    width: min(100%, 360px);
  }

  .header .header-top,
  .header.fxd-header .header-top {
    height: 104px;
  }

  main.giller-main,
  main.giller-article {
    padding-top: 104px;
  }

  .header .header-bottom {
    top: 104px;
    height: calc(100% - 104px);
    overflow-y: auto;
  }

  .consultation-page #consultation-price,
  .consultation-page #consultation-booking {
    scroll-margin-top: 114px;
  }
}
