/* Guide pop-up: black card, site fonts (Saol Display headings, Cormorant text). */
.ptb.ptgp {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 9990;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 36px 32px;
  background: #000;
  color: #fff;
  font-family: var(--ptb-font-body);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.ptb.ptgp[hidden] { display: none !important; }
.ptb.ptgp.is-open { opacity: 1; transform: none; }

.ptb .ptgp__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: .75;
}
.ptb .ptgp__close:hover, .ptb .ptgp__close:focus-visible { opacity: 1; }
.ptb .ptgp__close:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

.ptb .ptgp__heading {
  margin: 6px 36px 16px 0;
  font-family: var(--ptb-font-heading);
  font-weight: 300;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}

.ptb .ptgp__text {
  margin: 0 0 20px;
  font-family: var(--ptb-font-body);
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .88);
}

.ptb .ptgp__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* Contact Form 7 markup inside the card */
.ptb .ptgp__form p { margin: 0; }
.ptb .ptgp__form br { display: none; }
.ptb .ptgp__form .form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ptb .ptgp__form .wpcf7-form-control-wrap { display: block; }
.ptb .ptgp__form .input,
.ptb .ptgp__form input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--ptb-font-body) !important;
  font-size: 16px;
}
.ptb .ptgp__form .input:focus,
.ptb .ptgp__form input[type="email"]:focus { outline: none; border-color: #fff; }
.ptb .ptgp__form .input::placeholder,
.ptb .ptgp__form input[type="email"]::placeholder { color: rgba(255, 255, 255, .6) !important; opacity: 1 !important; }
.ptb .ptgp__form .btn,
.ptb .ptgp__form input[type="submit"] {
  justify-self: start;
  height: 44px;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: var(--ptb-font-body) !important;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: none;
  cursor: pointer;
  transition: opacity .2s;
}
.ptb .ptgp__form .btn:hover,
.ptb .ptgp__form input[type="submit"]:hover { opacity: .85; }
.ptb .ptgp__form .form-grid > div:last-child,
.ptb .ptgp__form .form-grid > div:last-child > p { display: flex; align-items: center; gap: 12px; }
.ptb .ptgp__form .wpcf7-spinner { margin: 0; flex: none; }
.ptb .ptgp__form .wpcf7-not-valid-tip { margin-top: 6px; color: #f3b6b6; font-size: 15px; }
.ptb .ptgp__form .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-size: 16px;
}

/* Phones: full-width card along the bottom */
@media (max-width: 767px) {
  .ptb.ptgp {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 26px 22px 24px;
  }
  .ptb .ptgp__heading { font-size: 28px; }
  .ptb .ptgp__text { font-size: 15px; margin-bottom: 16px; }
  .ptb .ptgp__form .btn,
  .ptb .ptgp__form input[type="submit"] { justify-self: stretch; width: 100%; flex: 1; }
  .ptb .ptgp__form .form-grid > div:last-child > p { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ptb.ptgp { transition: none; transform: none; }
}

/* Editor: show the card in place */
.ptb.ptgp--preview {
  position: relative;
  right: auto;
  bottom: auto;
  margin: 0 0 24px auto;
  opacity: 1;
  transform: none;
  max-height: none;
}
.ptgp-editor-note {
  margin: 0 0 12px;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #757575;
}
