/* Wezan site additions on top of the captured theme/Formidable CSS. */

/* honeypot: present for bots, invisible and unreachable for people */
.wz-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* form-level error (session expired, rate limit, server error) */
.frm_forms .frm_error_style[hidden], .frm_forms .frm_error[hidden] { display: none !important; }
.frm_forms .frm_error_style { margin: 0 0 15px; padding: 10px 14px; border: 1px solid #f5c2c7; background: #fff5f5; color: #b42318; border-radius: 4px; }
.frm_forms .frm_message { padding: 16px 18px; border: 1px solid #c3e6cb; background: #f1fbf3; color: #1d6b35; border-radius: 4px; }
.frm_forms .frm_message:focus { outline: 2px solid #94b30d; outline-offset: 2px; }

.frm_forms button[disabled] { opacity: .7; cursor: progress; }


/* Intent enquiry dialog (service pages): hidden until opened by site.js */
.pum { display: none; }
.pum.pum-open {
  display: flex; position: fixed; inset: 0; z-index: 1999999999;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .6);
}
.pum-container {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px);
  overflow: auto; background: #fff; border-radius: 8px; padding: 28px 24px 24px;
}
/* The captured Popup Maker stylesheet still positions .pum-responsive containers (left:50%, negative margin-left,
   95%/40% width). The dialog is centred by the flex overlay above, so cancel those or the box shifts right and
   its edge is clipped (390px: right edge at 459px). Same specificity as the size variants; site.css loads last. */
.pum-container.pum-responsive,
.pum-container.pum-responsive[class*="pum-responsive-"] {
  left: auto; top: auto; margin: 0; width: 100%;
  /* Popup Maker also sets overflow:visible here, which beat the overflow:auto above: choosing an option that
     reveals extra fields made the form taller than the screen and it could not scroll. */
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);   /* mobile browsers: excludes the collapsing address bar */
}
/* Laptop/desktop: compact centred card, 40% of the viewport like the live Popup Maker "small" size. */
@media (min-width: 1024px) {
  .pum-container.pum-responsive,
  .pum-container.pum-responsive[class*="pum-responsive-"] { width: 40%; max-width: none; }
}
/* Tablet/desktop: once a branch reveals more fields, widen the card and tighten spacing so the whole form fits
   on screen without scrolling (two columns come from the .frm_half fields). */
@media (min-width: 768px) {
  .pum-container.pum-responsive.wz-expanded,
  .pum-container.pum-responsive[class*="pum-responsive-"].wz-expanded { width: 720px; max-width: calc(100vw - 32px); padding: 20px 24px 16px; }
  .pum-container.wz-expanded .frm_form_field { margin-bottom: 10px; }
  .pum-container.wz-expanded .frm_primary_label { margin-bottom: 4px; padding: 0; line-height: 1.2; }
  .pum-container.wz-expanded .with_frm_style .frm_form_field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
  .pum-container.wz-expanded .with_frm_style .frm_form_field select { height: 42px; }
  .pum-container.wz-expanded textarea { height: 64px; min-height: 0; }
  .pum-container.wz-expanded .frm_button_submit { height: 46px; padding-top: 0; padding-bottom: 0; }
}
/* reCAPTCHA v2 is a fixed 304px wide; inside the dialog on a 320px screen it overflows the card (also on live). */
@media (max-width: 340px) {
  .pum-container .wz-recaptcha { transform: scale(.77); transform-origin: 0 0; margin-bottom: -18px; }
}
/* Scroll lock while the dialog is open: same rules as Popup Maker on live (removes scroll, keeps 15px gutter) */
html.pum-open.pum-open-overlay { overflow: hidden; }
html.pum-open.pum-open-overlay.pum-open-scrollable body > :not([aria-modal=true]) { padding-right: 15px; }
.pum-close {
  position: absolute; top: 8px; right: 10px; background: none; border: 0;
  font-size: 20px; line-height: 1; padding: 6px; cursor: pointer;
}

/* Testimonials slider: Swiper sized the track to ~33 million px, so the card ran off-screen.
   Pin the track and slides to the column width (applies to live and local). */
#Testimonial .testi-card-area .swiper { width: 100% !important; min-width: 0; max-width: 100%; }
#Testimonial .testi-card-area .swiper-slide { width: 100% !important; flex-shrink: 0; }

/* Application form: native file input is hidden; the drop box opens the picker (matches live) */
#wz-app-dropzone { position: relative; }
#wz-app-dropzone .dz-hidden-input { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; visibility: hidden; }

/* Keyboard focus: the captured theme and Formidable remove outlines; this restores a visible ring for keyboard users only. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid #684DF4 !important; outline-offset: 2px !important;
}
/* on the violet top strip and the navy menu bar the violet ring needs a lighter colour */
.header-top :focus-visible, .menu-area :focus-visible, .th-mobile-menu :focus-visible, .th-menu-area :focus-visible,
footer :focus-visible, .footer-wrapper :focus-visible { outline-color: #fff !important; }
.pum-container:focus { outline: none; }   /* focus is moved here programmatically when the dialog opens */

/* Reduced motion: the theme's only rule here (animation-play-state: play) does nothing.
   Keep fades and state changes; drop travel, scaling and endless loops. */
@media (prefers-reduced-motion: reduce) {
  /* decorative loops (ripples, spins, floating shapes) play once and rest instead of repeating */
  *, *::before, *::after { animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  /* logo marquee: hold still instead of scrolling */
  .marquee-wrapper .marquee .marquee-group { animation: none !important; }
  /* entrance animations keep the fade but lose the movement */
  @keyframes fadeInUp { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fadeInDown { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fadeInLeft { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fadeInRight { from { opacity: 0; } to { opacity: 1; } }
  @keyframes zoomIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideinup { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideindown { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideinleft { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideinright { from { opacity: 0; } to { opacity: 1; } }
}

/* WCAG AA: slate body text was 4.4:1 on white; this is 5.4:1 and still reads as the same slate. */
:root { --body-color: #656a79; }

/* Images carry width/height attributes (prevents layout shift). Zero specificity: it only stops the attribute
   height from distorting images that max-width shrinks, and loses to every existing height rule. */
:where(img[width][height]) { height: auto; }

/* Form fields: the theme gives inputs 56px, but Formidable's reset misses type=text (a Popup Maker prefix breaks
   its selector), so Name rendered at 56px beside 39px email/phone/select. One height for every single-line field. */
.with_frm_style .frm_form_field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
.with_frm_style .frm_form_field select {
  height: 56px;
  max-height: none;   /* Formidable caps the non-text fields at 39px */
}


/* Font Awesome subset: the pages use ~30 icons, so these tiny files (~8 KB total) cover them. They are declared after the full fonts in fontawesome.min.css and win for these codepoints; the full fonts (0.3-0.4 MB each) are only downloaded if a glyph outside this set is ever rendered. Rebuild with tools/build_fa_subset.py when adding new icons. */
@font-face{font-family:"Font Awesome 6 Pro";font-style:normal;font-weight:900;font-display:block;src:url(/assets/site/fonts/fa-solid-900-subset.woff2) format("woff2");unicode-range:U+2B,U+E28B,U+F00C,U+F00D,U+F054,U+F058,U+F060,U+F061,U+F062,U+F067,U+F068,U+F06A,U+F078,U+F07A,U+F095,U+F0A9,U+F0C1,U+F0C9,U+F0E0,U+F0E1,U+F105,U+F107,U+F10D,U+F10E,U+F111,U+F14A,U+F324,U+F39E,U+F3C5,U+F59F,U+F649}
@font-face{font-family:"Font Awesome 6 Pro";font-style:normal;font-weight:400;font-display:block;src:url(/assets/site/fonts/fa-regular-400-subset.woff2) format("woff2");unicode-range:U+2B,U+E28B,U+F00C,U+F00D,U+F054,U+F058,U+F060,U+F061,U+F062,U+F067,U+F068,U+F06A,U+F078,U+F07A,U+F095,U+F0A9,U+F0C1,U+F0C9,U+F0E0,U+F0E1,U+F105,U+F107,U+F10D,U+F10E,U+F111,U+F14A,U+F324,U+F39E,U+F3C5,U+F59F,U+F649}
@font-face{font-family:"Font Awesome 6 Pro";font-style:normal;font-weight:300;font-display:block;src:url(/assets/site/fonts/fa-light-300-subset.woff2) format("woff2");unicode-range:U+2B,U+E28B,U+F00C,U+F00D,U+F054,U+F058,U+F060,U+F061,U+F062,U+F067,U+F068,U+F06A,U+F078,U+F07A,U+F095,U+F0A9,U+F0C1,U+F0C9,U+F0E0,U+F0E1,U+F105,U+F107,U+F10D,U+F10E,U+F111,U+F14A,U+F324,U+F39E,U+F3C5,U+F59F,U+F649}
@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(/assets/site/fonts/fa-brands-400-subset.woff2) format("woff2");unicode-range:U+2B,U+E28B,U+F00C,U+F00D,U+F054,U+F058,U+F060,U+F061,U+F062,U+F067,U+F068,U+F06A,U+F078,U+F07A,U+F095,U+F0A9,U+F0C1,U+F0C9,U+F0E0,U+F0E1,U+F105,U+F107,U+F10D,U+F10E,U+F111,U+F14A,U+F324,U+F39E,U+F3C5,U+F59F,U+F649}
