/* John Haskew — safari enquiry modal.
   Paired with john-enquiry.js. Kept self-contained (its own jh-enq-* namespace)
   so it can be dropped onto any page that carries a [data-jh-enquire] trigger
   without touching that page's own stylesheet. */

/* No trigger styling lives here any more. The trigger used to be its own green
   'Enquire' pill; since 2026-07-21 it IS the mail icon in the safari action row,
   so it takes the shared .jh-safari-action--icon chrome from john-safaris-clean.css
   and this file is purely the modal. Any other page can still open the form by
   carrying a [data-jh-enquire] element and styling it however it likes. */

.jh-enq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 16px;
  overflow-y: auto;
  background: rgba(12, 14, 13, 0.62);
  backdrop-filter: saturate(120%) blur(3px);
}

.jh-enq {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  color: #26312c;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  padding: 26px 26px 22px;
}

.jh-enq__head { position: relative; margin: 0 0 18px; }

.jh-enq__title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.jh-enq__sub {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6d7a72;
}

.jh-enq__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8b968f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.jh-enq__close:hover { background: #f1f4f2; color: #26312c; }

.jh-enq__field { display: block; margin: 0 0 13px; }

.jh-enq__label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6d7a72;
}

.jh-enq__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: #26312c;
  background: #fbfcfb;
  border: 1px solid #dde3df;
  border-radius: 7px;
  resize: vertical;
}
.jh-enq__input:focus {
  outline: none;
  border-color: #9aa8a0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(154, 168, 160, 0.18);
}

/* Honeypot: reachable to a bot that reads the DOM, invisible to a human.
   display:none is skipped by some bots, so move it out of view instead. */
.jh-enq__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jh-enq__submit {
  width: 100%;
  margin: 4px 0 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #26312c;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.jh-enq__submit:hover { background: #35443c; }
.jh-enq__submit:disabled { opacity: 0.6; cursor: default; }

.jh-enq__error {
  margin: 0 0 12px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.45;
  color: #8c2f24;
  background: #fdf1ef;
  border: 1px solid #f2d2cc;
  border-radius: 7px;
}

.jh-enq__alt {
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #8b968f;
}

.jh-enq__done { text-align: center; padding: 8px 0 0; }
.jh-enq__done .jh-enq__sub { margin: 8px 0 20px; }

@media (max-width: 480px) {
  .jh-enq-backdrop { padding: 0; }
  .jh-enq { max-width: none; min-height: 100vh; border-radius: 0; padding-top: 34px; }
}
