/**
 * RealEye Custom Inline Styles
 * Extracted from inline <style> blocks that were duplicated in every page.
 */

/* Form validation — highlight invalid fields */
.w-input.invalid {
  border: 1px solid #d40012;
}
.w-input.invalid ~ .error-message {
  display: block;
}

/* Disable pointer events on tab menus on mobile */
@media screen and (max-width: 768px) {
  .tab-menu,
  .tab-menu-right {
    pointer-events: none;
  }
}

/* Decorative squares background pattern */
.custom-bg-squares {
  --s: 30px;
  --c1: #1c1c1c;
  --c2: #1d2736;
  --_g:
    #0000 calc(-650%/13) calc(50%/13), var(--c1) 0 calc(100%/13),
    #0000 0 calc(150%/13), var(--c1) 0 calc(200%/13),
    #0000 0 calc(250%/13), var(--c1) 0 calc(300%/13);
  --_g0: repeating-linear-gradient( 45deg, var(--_g));
  --_g1: repeating-linear-gradient(-45deg, var(--_g));
  background:
    var(--_g0), var(--_g0) var(--s) var(--s),
    var(--_g1), var(--_g1) var(--s) var(--s) var(--c2) !important;
  background-size: calc(2 * var(--s)) calc(2 * var(--s)) !important;
}

/* Let tab-content images scale naturally instead of fixed height */
.tab-content-image {
  height: auto;
}

.tab-content-image-features,
.tab-content-image-features-no-shadow,
.tab-content-image-features-bigger {
  width: 100%;
  height: auto !important;
  max-width: none;
}

/* Match the full-bleed description frame on large feature-tab layouts. */
@media screen and (min-width: 1440px) {
  .description + .tab-content-image-features,
  .description + .tab-content-image-features-no-shadow,
  .description + .tab-content-image-features-bigger,
  .tab-content-wrapper.left._w--112 > .tab-content-image-features-no-shadow {
    width: 126%;
  }
}

/* Tab controls are buttons because they switch content instead of navigating. */
.w-tab-link {
  border: 0;
  font: inherit;
}

/* Touch-target a11y — minimum 48px hit area for blog link cards */
.link-block-5 {
  min-height: 48px;
}

/* Preserve intrinsic image proportions in the Webflow-derived UI. */
.image-26 {
  width: 16px !important;
  height: 16px !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  object-fit: contain;
  flex: 0 0 16px;
}

.hero-image {
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.uui-logos01_logo {
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

.uui-logos01_component {
  flex-wrap: nowrap;
}

/* Trial: keep the hero's trusted-by logos monochrome without affecting other logo groups. */
.re-section-logos .uui-logos01_logo {
  filter: grayscale(1);
}

.uui-logos01_wrapper {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
}

.uui-logos01_wrapper > a {
  display: flex;
  width: 100%;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .uui-logos01_component {
    flex-wrap: wrap;
  }

  .uui-logos01_wrapper {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.uui-layout02_image-2 {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

/* Homepage reviews ticker — compact white cards moving across the page. */
.reviews-ticker-wrapper {
  padding: 16px 24px;
  background: #fff;
  border: 0;
  overflow: hidden;
}

.reviews-ticker {
  width: min(100%, 1180px);
  margin: 0 auto;
  overflow: hidden;
}

.reviews-ticker-track {
  align-items: stretch;
  gap: 20px;
  animation-duration: 80s;
}

.review-item {
  box-sizing: border-box;
  display: grid;
  width: clamp(280px, 31vw, 360px);
  padding: 18px 20px 19px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "author stars"
    "quote quote";
  align-items: start;
  gap: 12px 16px;
  white-space: normal;
  background: #fff;
  border: 1px solid #e6e8eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 6px 24px -8px rgba(0, 0, 0, 0.06);
}

.review-stars {
  grid-area: stars;
  justify-self: end;
  color: #f5a623;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
}

.review-text {
  grid-area: quote;
  align-self: start;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}

.review-author {
  grid-area: author;
  min-width: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #16181d;
}

@media screen and (max-width: 767px) {
  .reviews-ticker-wrapper {
    padding: 12px 16px;
  }

  .reviews-ticker-track {
    gap: 12px;
  }

  .review-item {
    width: min(82vw, 330px);
    min-height: 148px;
    padding: 16px 18px 17px;
    gap: 11px 12px;
  }
}

/* Keep the ticker cards readable without adding extra vertical chrome. */
.review-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The quote is the only content below the metadata row. */
.review-text {
  margin: 0;
}

/* Do not reintroduce the former stacked-card spacing on small screens. */
@media screen and (max-width: 767px) {
  .review-text {
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-ticker-track {
    animation: none;
    transform: none;
  }
}

img[src*="Survey_logos"] {
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

/* Homepage blog cards use square thumbnails at every responsive width. */
.recent-blog {
  background-image: url('../images/lp-features-spec-bg-trs.webp');
  background-position: 50%;
  background-size: auto;
}

.recent-blog .image-21 {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e6e8eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 6px 24px -8px rgba(0, 0, 0, 0.06);
}

.hero-title-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 8px;
  white-space: nowrap;
}

.hero-title-row .heading-6 {
  font-size: 24px;
  margin: 0;
  white-space: nowrap;
}

.hero-title-row .heading-6 strong {
  font-size: inherit;
}

.hero-laurels {
  flex: 0 0 auto;
  height: 28px;
  object-fit: contain;
  width: 39px;
}

.uui-navbar08_menu-button {
  border: 0;
  font: inherit;
}

@media screen and (max-width: 767px) {
  .hero-title-row {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-title-row .heading-6 {
    font-size: 20px;
    line-height: 26px;
  }

  .hero-laurels {
    height: 17px;
    width: 23px;
  }
}

/* Native replacements for Webflow's mobile navigation and sliders. */
@media screen and (max-width: 991px) {
  .uui-navbar08_component {
    position: sticky;
  }

  .uui-navbar08_component .uui-navbar08_menu.w--open {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px);
    justify-content: flex-start;
    top: 100%;
    left: 0;
    max-height: calc(100vh - 52px);
    min-height: 0;
    overflow-y: auto;
    padding: 24px 16px 32px;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  .uui-navbar08_component .uui-navbar08_menu-left {
    align-items: flex-start;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 100%;
  }

  .uui-navbar08_component .uui-navbar08_menu-right {
    align-items: flex-end;
    align-self: stretch;
    flex-direction: column;
    height: auto;
    margin: 32px 0 0;
    padding: 0;
    width: 100%;
  }

  .uui-navbar08_component .uui-navbar08_button-wrapper {
    align-items: stretch;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: 112px;
  }
}

.w-slider-mask {
  width: 100%;
  touch-action: pan-y;
}

.w-slider-dot {
  appearance: none;
  background-color: rgba(255, 255, 255, .4);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.w-slider-nav.w-round .w-slider-dot {
  border-radius: 100%;
}

.w-slider-nav.w-shadow .w-slider-dot {
  box-shadow: 0 0 3px rgba(51, 51, 51, .4);
}

.w-slider-dot:focus-visible,
.w-slider-arrow-left:focus-visible,
.w-slider-arrow-right:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

img.image-15[src*="nmsba-logo"] {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

/* Restore the EU funding badge hidden in the exported Webflow stylesheet. */
.eu-funds {
  display: block !important;
}

.eu-funds-wrapper {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: fit-content;
  max-width: 100%;
  transition: opacity 180ms ease, transform 180ms ease;
}

.eu-funds-wrapper.is-collapsed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.eu-funds .image-12 {
  display: block;
  width: 450px;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

/* Native FAQ accordion replacement for the removed Webflow runtime. */
.faq-content-wrapper {
  height: auto;
  transition: height 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-block.is-open .accordion-icon_vertical-line {
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.faq-block:not(.is-open) .accordion-icon_vertical-line {
  opacity: 1;
  transform: scaleY(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.faq-head-block:focus-visible {
  outline: 2px solid #777;
  outline-offset: 3px;
}

/* Keep the page fixed while any app modal is active. */
html.has-modal-open,
body.has-modal-open {
  overflow: hidden;
}

.video-modal,
.demo-modal,
.modal-video,
.qr-modal {
  position: fixed;
}

/* Keep the demo study feature lists compact. */
#demo-modal .demo-modal-content.w-richtext li {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-content-wrapper,
  .faq-block .accordion-icon_vertical-line {
    transition: none;
  }
}
