/* =========================================================================
 * Enquiry pop-up, 2026-11-14 (inc/enquire.php, enquire.js).
 * The card, colours and type are the newsletter pop-up's (newsletter.css);
 * this file adds only what the longer form needs.
 * ========================================================================= */

/* The message box: same frame as the inputs, a few lines high. */
body .vw-nl .vw-enq__area textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 12px 18px;
  font: inherit;
  line-height: 1.45;
  color: var(--vw-nl-ink);
  background: transparent;
  border: 1px solid var(--vw-nl-ink);
  border-radius: 0;
  box-shadow: none;
  resize: vertical;
}

body .vw-nl .vw-enq__area textarea::placeholder { color: var(--vw-nl-ink); opacity: 0.8; }

body .vw-nl .vw-enq__area textarea:focus-visible {
  outline: 2px solid var(--vw-nl-ink);
  outline-offset: 2px;
}

/* The button in the same oxblood as the rest of the site. */
body .vw-nl.vw-nl--enquire { --vw-nl-button: #5B0601; }
body .vw-nl.vw-nl--enquire .vw-nl__button:hover { background: #3F0401; }
body .vw-nl.vw-nl--enquire .vw-nl__button[disabled] { opacity: 0.6; cursor: wait; }

body .vw-nl .vw-enq__status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* The field bots fill in: off screen, never seen or tabbed to. */
body .vw-nl .vw-enq__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body .vw-nl .vw-enq__thanks .vw-nl__title { margin-top: 0; }

/* newsletter.css gives the form display: flex, which would override the
 * hidden attribute when the thank-you takes its place. */
body .vw-nl.vw-nl--enquire [hidden] { display: none !important; }

/* The cartouche shape on the photograph, from this dialog's own clipPath. */
body .vw-nl.vw-nl--enquire .vw-nl__mat,
body .vw-nl.vw-nl--enquire .vw-nl__photo { clip-path: url(#vw-enq-shape); }

/* =========================================================================
 * Inline card, [vw_enquire_form] (FAQ, 2026-11-15). The same card as the
 * pop-up, sitting in the page.
 * ========================================================================= */
body .vw-nl.vw-nl--inline {
  display: block;
  width: min(880px, 100%);
  max-height: none;
  margin: 0 auto;
}
body .vw-nl.vw-nl--inline .vw-nl__card { box-shadow: 0 18px 48px rgba(30, 26, 16, 0.16); }
body .vw-nl.vw-nl--inline .vw-nl__mat,
body .vw-nl.vw-nl--inline .vw-nl__photo { clip-path: url(#vw-enq-inline-shape); }
/* Divi's text styles inside a section would otherwise reach the card. */
body .vw-nl.vw-nl--inline h2.vw-nl__title { padding: 0; }
body .vw-nl.vw-nl--inline p { padding-bottom: 0; }

/* =========================================================================
 * The form alone, [vw_enquire_fields] (2026-11-17): the enquire sections on
 * Photo stories, About and Kind words. The pop-up's fields and button on the
 * section's own damask ground, left-aligned under the section title. No card,
 * no cream panel, no shadow.
 * ========================================================================= */
body .vw-nl.vw-nl--fields {
  --vw-nl-ink: #2A2620;
  width: 100%;
  max-width: 560px;
  margin: 36px 0 0;
}
body .vw-nl.vw-nl--fields .vw-nl__body {
  display: block;
  padding: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
}
body .vw-nl.vw-nl--fields .vw-nl__field input,
body .vw-nl.vw-nl--fields .vw-enq__area textarea {
  background: rgba(246, 244, 236, 0.55);
  border-color: rgba(42, 38, 32, 0.55);
}
body .vw-nl.vw-nl--fields .vw-enq__area textarea { min-height: 130px; }
body .vw-nl.vw-nl--fields .vw-nl__small { margin-top: 6px; text-align: left; }
body .vw-nl.vw-nl--fields .vw-enq__thanks .vw-nl__text { margin-left: 0; max-width: 40ch; }
body .vw-nl.vw-nl--fields p { padding-bottom: 0; }

/* =========================================================================
 * The photograph on the left (2026-11-17, Jovan): a plain rectangle, no
 * cartouche, set on the blue cloth with space around it (not edge to edge).
 * Pop-up and the FAQ's inline card.
 * ========================================================================= */
body .vw-nl.vw-nl--enquire .vw-enq__art {
  display: grid;
  place-items: center;
  padding: 48px 40px;
}
body .vw-nl.vw-nl--enquire .vw-enq__photo {
  display: block;
  width: 84%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 60%;
  /* No drop shadow. A border like the old cartouche's mat, but square:
   * the cloth, darkened, around the photo, with the same thin embossed
   * edge (light below-right, dark above-left). */
  box-sizing: border-box;
  padding: 12px;
  background:
    linear-gradient(rgba(20, 30, 40, 0.16), rgba(20, 30, 40, 0.16)),
    var(--vw-nl-blue) url("img/texture-blue.jpg") center / 600px;
  box-shadow:
    1.5px 2px 0 rgba(255, 255, 255, 0.28),
    -1px -1.5px 1px rgba(20, 30, 40, 0.35);
}
@media (max-width: 640px) {
  body .vw-nl.vw-nl--enquire .vw-enq__art { padding: 24px 0; }
  body .vw-nl.vw-nl--enquire .vw-enq__photo { width: 38%; }
}

/* Phones and short screens (Jovan, 2026-11-20, iPhone): the pop-up was
 * taller than the screen and could not scroll, so the Send button sat
 * under Safari's bar. It now scrolls inside itself, and on phones the photo
 * band is shorter so most of the form is in view at once. */
@media (max-width: 640px), (max-height: 760px) {
  body .vw-nl:not(.vw-nl--inline) {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) {
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-enq__art { padding: 16px 0; }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-enq__photo { width: 26%; padding: 8px; }
}

/* Phones (Jovan, 2026-11-20): no photo; "Let's talk" and the intro sit on
 * the cloth band instead, the form follows on cream. The body is unwrapped
 * (display: contents) so its title and text can share the band's grid rows.
 * The cloth is darkened so the cream type reads on it. */
@media (max-width: 640px) {
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__card {
    position: relative;
    grid-template-columns: 1fr;
    background: var(--vw-nl-cream);
    padding-bottom: 26px;
  }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__body { display: contents; }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__body > * { grid-column: 1; padding-left: 24px; padding-right: 24px; }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-enq__art {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 0;
    background:
      linear-gradient(rgba(20, 30, 40, 0.42), rgba(20, 30, 40, 0.42)),
      var(--vw-nl-blue) url("img/texture-blue.jpg") center / 600px;
  }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-enq__photo { display: none; }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__body > .vw-nl__title {
    grid-row: 1;
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
    padding-top: 44px;
    padding-bottom: 12px;
    color: #F3EEDC;
  }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__body > .vw-nl__text {
    grid-row: 2;
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: none;
    text-align: center;
    padding-bottom: 32px;
    color: #F3EEDC;
  }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__body > form { grid-row: 3; padding-top: 28px; }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 0;
    color: #F3EEDC;
  }
}

/* After sending (phones): the intro is hidden, so the band goes too, the
 * close X turns ink and the thank-you gets room at the top. Its title and
 * text share class names with the intro, hence the ".vw-nl__body >" above. */
@media (max-width: 640px) {
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__card:has(.vw-enq__thanks:not([hidden])) .vw-enq__art { display: none; }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-nl__card:has(.vw-enq__thanks:not([hidden])) .vw-nl__close { color: var(--vw-nl-ink); }
  body .vw-nl.vw-nl--enquire:not(.vw-nl--inline) .vw-enq__thanks { padding-top: 56px; padding-bottom: 12px; text-align: center; }
}
