/* Keep the separate online-booking widget from covering the contact dialog. */
body:has(#v5Booking:not([hidden])) .yButton,
body:has(.ig-form-popup[open]) .yButton {
  display: none !important;
}

.ig-contact-form .checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  line-height: 1.5;
  cursor: pointer;
}

.ig-contact-form .checkbox input[type="checkbox"] {
  position: static;
  align-self: start;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  margin-top: max(0px, calc((1.5em - 20px) / 2));
  padding: 0;
  transform: none;
  accent-color: #1e64a3;
  font: inherit;
}

.ig-contact-form .checkbox > span { min-width: 0; }
.ig-contact-form .checkbox a { display: inline; min-height: 0; }
.ig-contact-form .ig-field-error:not([hidden]) {
  display: block;
  margin: -8px 0 16px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
}
.ig-contact-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b42318;
  outline: 2px solid #b42318;
  outline-offset: 2px;
}
.ig-contact-form .ig-invalid-choice,
.ig-contact-form .ig-invalid-choice > span { color: #b42318; }
.ig-contact-form .ig-field-error[hidden] { display: none; }
.v5-booking-form.ig-contact-form .ig-field-error:not([hidden]) { margin: 0 0 8px; }

.ig-form-popup {
  box-sizing: border-box;
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 40px;
  border: 1px solid #d8e2ea;
  background: #fff;
  color: #17212b;
  overflow-y: auto;
  overscroll-behavior: contain;
  font: inherit;
}
.ig-form-popup::backdrop { background: rgb(23 33 43 / 55%); }
.ig-form-popup[data-kind="success"] { width: min(520px, calc(100% - 32px)); }
.ig-form-popup > h2 {
  margin: 0 32px 24px 0;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.ig-form-popup .ig-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526170;
  font-size: 30px;
  cursor: pointer;
}
.ig-popup-content { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.ig-popup-content h2, .ig-popup-content h3, .ig-popup-content h4 { margin: 24px 0 12px; font-size: 20px; line-height: 1.35; }
.ig-popup-content p, .ig-popup-content ul, .ig-popup-content ol { margin: 0 0 16px; }
.ig-popup-content ul, .ig-popup-content ol { padding-left: 24px; }
.ig-popup-content a { color: #1e64a3; text-decoration: underline; }
.ig-popup-done { margin-top: 24px; min-height: 44px; }
.ig-form-popup :focus-visible { outline: 2px solid #1e64a3; outline-offset: 3px; }
@media (max-width: 620px) {
  .ig-form-popup { padding: 28px 20px; }
  .ig-form-popup > h2 { font-size: 24px; }
  .ig-popup-done { width: 100%; }
}
