/* ==========================================================================
   Contact us — interaction layer for the Elementor-native page template
   (figma-templates/redesign/build-contact.mjs; Figma 1:2702 desktop, 11:1912 mobile).
   Loaded on that page only (body.nw-contact, see functions.php).

   Layout, typography, colours and spacing are Elementor settings. This file adds the
   phone layout Elementor can't express (the photo band holds only the details; the form
   card sits below it on the surface colour), the map card, the upload field and link
   states. Shared form styling and the FAQ accordion: components.css.
   ========================================================================== */

/* Details list: links keep the white text, underline on hover. */
.nw-contact .nw-contact-details a:hover .elementor-icon-list-text { text-decoration: underline; }
.nw-contact .nw-contact-hero__info p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Map (carried over from the old contact page) as a rounded card. */
.nw-contact .nw-contact-map .elementor-custom-embed { overflow: hidden; border-radius: 12px; }
.nw-contact .nw-contact-map iframe { display: block; filter: saturate(0.85); }

/* Photo / drawings upload: a dashed drop-style field in place of the bare file input. */
.nw-contact .nw-contact-form .elementor-upload-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px dashed var(--nw-line-strong);
  border-radius: 4px;
  background: var(--nw-white);
  color: var(--nw-body);
  font: 400 14px/1.5 var(--nw-font-body);
  cursor: pointer;
}
.nw-contact .nw-contact-form .elementor-upload-field:hover,
.nw-contact .nw-contact-form .elementor-upload-field:focus { border-color: var(--nw-navy-600); outline: 0; }
.nw-contact .nw-contact-form .elementor-upload-field::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--nw-line-strong);
  border-radius: 99px;
  background: var(--nw-surface);
  color: var(--nw-ink);
  font: 500 13px/1.4 var(--nw-font-body);
  cursor: pointer;
}

/* Phones (Figma 11:1912): the photo + scrim sit behind the details only; the section
   itself turns to the surface colour so the form card reads as its own band. */
@media (max-width: 767px) {
  /* !important on both: Elementor's own background rule (element id + :not()) outweighs this. */
  .nw-contact .e-con.nw-contact-hero { background-image: none !important; background-color: var(--nw-surface) !important; }
  .nw-contact .e-con.nw-contact-hero::before { display: none; }
  .nw-contact .e-con.nw-contact-hero__info {
    background:
      linear-gradient(180deg, rgba(5, 15, 36, 0.65) 0%, rgba(5, 15, 36, 0.85) 100%),
      url(../images/book/hero-mobile.webp) center / cover no-repeat;
  }
}
