<html><head><style id="bcio-static-review-enhancements">
.bcio-static-map-placeholder{position:relative;min-height:450px;border:1px solid rgba(32,31,27,.14);background:linear-gradient(135deg,#f3ede5 0%,#e9dfd1 100%);overflow:hidden}
.bcio-static-map-placeholder::before{content:'';position:absolute;inset:0;background:
linear-gradient(90deg, rgba(179,152,88,.12) 0 1px, transparent 1px) 0 0/32px 32px,
linear-gradient(rgba(179,152,88,.12) 0 1px, transparent 1px) 0 0/32px 32px;
opacity:.55}
.bcio-static-map-placeholder::after{content:'';position:absolute;inset:12% 10%;border:2px solid rgba(179,152,88,.15);border-radius:999px}
.bcio-static-map-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;height:100%;padding:36px;color:#201f1b}
.bcio-static-map-kicker{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:#807f7f;margin-bottom:10px}
.bcio-static-map-title{font-size:30px;line-height:1.1;font-weight:600;margin:0 0 12px}
.bcio-static-map-copy{max-width:28rem;font-size:16px;line-height:1.65;margin:0 0 18px;color:#4d5151}
.bcio-static-map-link{display:inline-flex;align-items:center;gap:.5rem;padding:12px 18px;border-radius:999px;background:#b39858;color:#fff;text-decoration:none;font-weight:600}
.bcio-static-map-link:hover,.bcio-static-map-link:focus{background:#201f1b;color:#fff}
.bcio-static-review-form-note,.bcio-static-review-form-success{margin:18px 0 0;padding:14px 16px;border-radius:16px;font-size:14px;line-height:1.6}
.bcio-static-review-form-note{border:1px solid rgba(179,152,88,.28);background:rgba(179,152,88,.1);color:#4d5151}
.bcio-static-review-form-note strong{display:block;margin-bottom:4px;color:#201f1b}
.bcio-static-review-form-success{border:1px solid rgba(19,97,46,.22);background:rgba(19,97,46,.09);color:#1f3d29}
.bcio-static-review-form-success strong{display:block;margin-bottom:4px;color:#13612e}
.bcio-static-review-form-sent .ff-btn-submit,.bcio-static-review-form-sent button[type="submit"],.bcio-static-review-form-sent input[type="submit"]{opacity:.72}
html.bcio-static-review-popup-open,body.bcio-static-review-popup-open{overflow:hidden}
.kadence-conversion-wrap[aria-hidden="true"]{pointer-events:none}
.kadence-conversion-wrap.kc-visible,.kadence-conversion-wrap.bcio-static-review-popup-active{pointer-events:auto}
</style></head><body><script id="bcio-static-review-enhancements-script">
(() => {
  const NOTE_HTML = '<strong>Demo Form</strong>This demo form is shown for layout and interaction review only. When the site goes live, it will connect to your email inbox or CRM.';
  const SUCCESS_HTML = '<strong>Thank you for your message.</strong>This demo does not send real submissions yet. When the site goes live, this form will hook into your email inbox or CRM.';
  let progressConfigCache = null;
  let popupConfigCache = null;
  let popupCloseTimer = null;

  function getProgressConfigMap() {
    if (progressConfigCache) {
      return progressConfigCache;
    }

    const rawItems = window.kadence_blocks_progress_bars?.items;
    if (!rawItems) {
      progressConfigCache = {};
      return progressConfigCache;
    }

    try {
      progressConfigCache = typeof rawItems === 'string' ? JSON.parse(rawItems) : rawItems;
    } catch (_error) {
      progressConfigCache = {};
    }

    return progressConfigCache || {};
  }

  function resolveProgressConfig(bar) {
    if (!bar) {
      return null;
    }

    const configMap = getProgressConfigMap();
    const token = Array.from(bar.classList || []).find((className) => className.startsWith('kb-progress-bar-') && className !== 'kb-progress-bar');
    if (!token) {
      return null;
    }

    const uniqueId = token.replace(/^kb-progress-bar-/, '');
    return configMap[uniqueId] || null;
  }

  function animateStaticReviewStars(bar) {
    if (!bar || bar.dataset.bcioStaticReviewStarsReady === 'true') {
      return;
    }

    const fillPath = bar.querySelectorAll('path')?.[1];
    if (!fillPath) {
      return;
    }

    const config = resolveProgressConfig(bar);
    const progressReal = Number(config?.progress_real || 0);
    const progressMax = Number(config?.progress_max || 0);
    const ratio = progressMax > 0 ? Math.max(0, Math.min(1, progressReal / progressMax)) : 0;
    const targetOffset = String(Math.max(0, (1 - ratio) * 100));

    fillPath.style.strokeDasharray = '100, 100';
    fillPath.style.transition = 'stroke-dashoffset 1200ms ease';
    fillPath.style.strokeDashoffset = '100';
    bar.dataset.bcioStaticReviewStarsReady = 'true';

    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        fillPath.style.strokeDashoffset = targetOffset;
      });
    });
  }

  function prepareStaticReviewStars() {
    const bars = Array.from(document.querySelectorAll('.kb-progress-bar-container.kb-progress-bar-type-line-mask .kb-progress-bar'));
    if (!bars.length) {
      return;
    }

    if (!('IntersectionObserver' in window)) {
      bars.forEach(animateStaticReviewStars);
      return;
    }

    const observer = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) {
          continue;
        }

        animateStaticReviewStars(entry.target);
        observer.unobserve(entry.target);
      }
    }, {
      threshold: 0.25,
      rootMargin: '0px 0px -10% 0px'
    });

    for (const bar of bars) {
      observer.observe(bar);
    }
  }

  function buildStaticReviewGalleryLabel(image) {
    const existingAlt = String(image?.getAttribute('alt') || '').trim();
    if (existingAlt) {
      return 'Open image in lightbox: ' + existingAlt;
    }

    const index = image?.closest?.('.kadence-blocks-gallery-item')?.parentElement
      ? Array.from(image.closest('.kadence-blocks-gallery-item').parentElement.children).indexOf(image.closest('.kadence-blocks-gallery-item')) + 1
      : 0;

    return index > 0 ? 'Display lightbox image: ' + index : 'Open image in lightbox';
  }

  function repairStaticReviewGalleryLinks() {
    const figures = Array.from(document.querySelectorAll('.kb-gallery-figure'));
    let lightboxIndex = 0;
    for (const figure of figures) {
      let anchor = figure.querySelector('a.kb-gallery-item-link');
      const image = figure.querySelector('img[data-light-image], img[data-full-image], img[src]');
      const imageShell = figure.querySelector('.kb-gal-image-radius');
      const href = String(
        image?.getAttribute('data-light-image') ||
        image?.getAttribute('data-full-image') ||
        image?.getAttribute('src') ||
        ''
      ).trim();

      if (!anchor) {
        if (!image || !imageShell || !href) {
          continue;
        }

        anchor = document.createElement('a');
        anchor.className = 'kb-gallery-item-link';
        anchor.href = href;
        anchor.setAttribute('role', 'button');
        anchor.setAttribute('aria-haspopup', 'dialog');
        anchor.setAttribute('aria-label', buildStaticReviewGalleryLabel(image));

        imageShell.parentNode?.insertBefore(anchor, imageShell);
        anchor.appendChild(imageShell);
        figure.classList.add('kb-gallery-item-has-link');
      }

      anchor.dataset.bcioLightboxIndex = String(lightboxIndex);
      anchor.dataset.gallery = 'bcio-static-review';
      if (href && !anchor.getAttribute('href')) {
        anchor.setAttribute('href', href);
      }
      if (image) {
        anchor.dataset.type = 'image';
        anchor.dataset.alt = String(image.getAttribute('alt') || '').trim();
        anchor.setAttribute('aria-label', buildStaticReviewGalleryLabel(image));

        if (String(image.getAttribute('loading') || '').toLowerCase() === 'lazy') {
          image.setAttribute('loading', 'eager');
        }

        const sizes = String(image.getAttribute('sizes') || '').trim();
        if (/^autos*,/i.test(sizes)) {
          image.setAttribute('sizes', sizes.replace(/^autos*,s*/i, ''));
        }
      }
      lightboxIndex += 1;
    }
  }

  function resetStaticReviewLightboxChrome() {
    document.querySelectorAll('.glightbox-container').forEach((node) => node.remove());
    document.body.classList.remove('glightbox-open');
  }

  function isStaticReviewLightboxOpen() {
    return document.body.classList.contains('glightbox-open') || Boolean(document.querySelector('.glightbox-container'));
  }

  function getStaticReviewLightboxElements() {
    return Array.from(document.querySelectorAll('.kb-gallery-figure a.kb-gallery-item-link'))
      .map((anchor) => {
        const href = String(anchor.getAttribute('href') || '').trim();
        if (!href) {
          return null;
        }

        return {
          href,
          type: 'image',
          title: '',
          description: '',
          alt: String(anchor.dataset.alt || '').trim(),
        };
      })
      .filter(Boolean);
  }

  function initStaticReviewLightbox(forceRebuild = false) {
    if (typeof window.GLightbox !== 'function') {
      return false;
    }

    const elements = getStaticReviewLightboxElements();
    if (!elements.length) {
      return false;
    }

    if (window.__bcioStaticReviewLightbox && !forceRebuild) {
      if (isStaticReviewLightboxOpen()) {
        return true;
      }

      if (typeof window.__bcioStaticReviewLightbox.setElements === 'function') {
        try {
          window.__bcioStaticReviewLightbox.setElements(elements);
          return true;
        } catch (_error) {
          // Fall through to a clean rebuild.
        }
      }
    }

    if (window.__bcioStaticReviewLightbox && typeof window.__bcioStaticReviewLightbox.destroy === 'function') {
      try {
        window.__bcioStaticReviewLightbox.destroy();
      } catch (_error) {
        // Ignore stale instance teardown issues.
      }
    }

    resetStaticReviewLightboxChrome();
    window.__bcioStaticReviewLightbox = window.GLightbox({
      elements,
      loop: true,
      touchNavigation: true,
      closeButton: true,
      openEffect: 'fade',
      closeEffect: 'fade'
    });

    return true;
  }

  function moveStaticReviewLightboxFocus() {
    const closeButton = document.querySelector('.glightbox-container .gclose');
    if (closeButton && typeof closeButton.focus === 'function') {
      closeButton.focus({ preventScroll: true });
      return;
    }

    const currentImage = document.querySelector('.glightbox-container .gslide.current img');
    if (currentImage && typeof currentImage.focus === 'function') {
      currentImage.setAttribute('tabindex', '-1');
      currentImage.focus({ preventScroll: true });
    }
  }

  function openStaticReviewLightboxAt(index, trigger = null) {
    if (!window.__bcioStaticReviewLightbox && !initStaticReviewLightbox()) {
      return;
    }

    if (trigger && typeof trigger.blur === 'function') {
      trigger.blur();
    }

    resetStaticReviewLightboxChrome();
    window.__bcioStaticReviewLightbox.openAt(Math.max(0, index));

    setTimeout(() => {
      const currentSlide = document.querySelector('.glightbox-container .gslide.current');
      if (currentSlide) {
        return;
      }

      const fallbackSlide = document.querySelectorAll('.glightbox-container .gslide')[Math.max(0, index)];
      if (fallbackSlide) {
        fallbackSlide.classList.add('current');
        fallbackSlide.style.opacity = '1';
      }

      moveStaticReviewLightboxFocus();
    }, 60);
  }

  function runStaticReviewLightboxPass(forceRebuild = false) {
    repairStaticReviewGalleryLinks();
    initStaticReviewLightbox(forceRebuild);
    bindStaticReviewLightboxTriggers();
  }

  function bindStaticReviewLightboxTriggers() {
    const anchors = Array.from(document.querySelectorAll('.kb-gallery-figure a.kb-gallery-item-link'));
    for (const anchor of anchors) {
      if (anchor.dataset.bcioLightboxBound === 'true') {
        continue;
      }

      anchor.dataset.bcioLightboxBound = 'true';
      anchor.addEventListener('click', (event) => {
        event.preventDefault();
        event.stopImmediatePropagation();
        const targetIndex = Number(anchor.dataset.bcioLightboxIndex || 0);
        openStaticReviewLightboxAt(targetIndex, anchor);
      }, true);
    }
  }

  function prepareStaticReviewLightbox() {
    runStaticReviewLightboxPass();

    setTimeout(() => {
      if (isStaticReviewLightboxOpen()) {
        return;
      }
      runStaticReviewLightboxPass();
    }, 350);

    setTimeout(() => {
      if (isStaticReviewLightboxOpen()) {
        return;
      }
      runStaticReviewLightboxPass();
    }, 1200);
  }

  function normalizeStaticReviewPopupToken(value) {
    return String(value || '')
      .trim()
      .toLowerCase()
      .replace(/[^a-z0-9]+/g, '');
  }

  function getStaticReviewPopupConfigMap() {
    if (popupConfigCache) {
      return popupConfigCache;
    }

    const rawItems = window.kadenceConversionsConfig?.items;
    if (!rawItems) {
      popupConfigCache = {};
      return popupConfigCache;
    }

    try {
      popupConfigCache = typeof rawItems === 'string' ? JSON.parse(rawItems) : rawItems;
    } catch (_error) {
      popupConfigCache = {};
    }

    return popupConfigCache || {};
  }

  function getStaticReviewPopupElements() {
    return Array.from(document.querySelectorAll('.kadence-conversion-wrap.kadence-conversion-popup'));
  }

  function getStaticReviewPopupAliases() {
    return {
      requestavailability: ['plancharter'],
      planyourcharter: ['plancharter'],
      bookyourcharter: ['_7a862700', 'sendinquiry'],
      sendinquiry: ['_7a862700', 'sendinquiry'],
      requestacall: ['callback'],
      captaincontact: ['callback']
    };
  }

  function getStaticReviewPopupMeta(popup) {
    if (!popup) {
      return null;
    }

    const configMap = getStaticReviewPopupConfigMap();
    const id = String(popup.id || '').trim();
    const postIdMatch = id.match(/kadence-conversion-(d+)/i);
    const postId = postIdMatch ? String(postIdMatch[1]) : '';
    const config = postId ? configMap[postId] || null : null;
    const title = String(
      popup.querySelector('h1, h2, h3, h4, h5, h6')?.textContent ||
      config?.post_title ||
      ''
    ).trim();
    const classTokens = Array.from(popup.classList || [])
      .filter((token) => token.startsWith('kc-') && ![
        'kc-align-center',
        'kc-align-left',
        'kc-align-right',
        'kc-valign-center',
        'kc-valign-top',
        'kc-valign-bottom',
        'kc-height-auto',
        'kc-height-full',
        'kc-animate-in-fadeup',
        'kc-animate-out-fadeout',
        'kc-close-align-right',
        'kc-close-align-left',
        'kc-close-align-center',
        'kc-close-v-align-top',
        'kc-close-v-align-bottom',
        'kc-close-position-outside',
        'kc-close-position-inside',
        'kc-close-position-screen',
        'kc-visible',
        'kc-closing-visible'
      ].includes(token));

    const tokens = new Set();
    for (const token of classTokens) {
      tokens.add(normalizeStaticReviewPopupToken(token.replace(/^kc-/, '')));
    }
    if (config?.unique_id) {
      tokens.add(normalizeStaticReviewPopupToken(config.unique_id));
    }
    if (title) {
      tokens.add(normalizeStaticReviewPopupToken(title));
    }
    if (postId) {
      tokens.add(normalizeStaticReviewPopupToken(postId));
    }

    return {
      popup,
      id,
      postId,
      title,
      tokens: Array.from(tokens).filter(Boolean)
    };
  }

  function findStaticReviewPopupByToken(rawToken) {
    const token = normalizeStaticReviewPopupToken(rawToken);
    if (!token) {
      return null;
    }

    const aliases = getStaticReviewPopupAliases();
    const targetTokens = [token, ...(aliases[token] || [])].map(normalizeStaticReviewPopupToken).filter(Boolean);

    for (const popup of getStaticReviewPopupElements()) {
      const meta = getStaticReviewPopupMeta(popup);
      if (!meta) {
        continue;
      }

      for (const candidate of targetTokens) {
        if (meta.tokens.some((popupToken) => popupToken === candidate || popupToken.includes(candidate) || candidate.includes(popupToken))) {
          return popup;
        }
      }
    }

    return null;
  }

  function resolveStaticReviewPopupTarget(trigger) {
    if (!trigger || trigger.closest('.kb-gallery-figure')) {
      return null;
    }

    const ariaControls = String(trigger.getAttribute?.('aria-controls') || '').trim();
    if (ariaControls.startsWith('#kadence-conversion-')) {
      const popup = document.querySelector(ariaControls);
      if (popup) {
        return popup;
      }
    }

    const href = String(trigger.getAttribute?.('href') || '').trim();
    if (href.startsWith('#')) {
      const exactMatch = document.getElementById(href.slice(1));
      if (exactMatch?.classList?.contains('kadence-conversion-wrap')) {
        return exactMatch;
      }

      const tokenMatch = findStaticReviewPopupByToken(href.slice(1));
      if (tokenMatch) {
        return tokenMatch;
      }
    }

    if (trigger.matches?.('.kb-button, .button, [role="button"]')) {
      const textMatch = findStaticReviewPopupByToken(trigger.textContent || '');
      if (textMatch) {
        return textMatch;
      }
    }

    return null;
  }

  function closeStaticReviewPopup(popup, options = {}) {
    if (!popup) {
      return;
    }

    const { restoreFocus = true, immediate = false } = options;
    const triggerId = popup.dataset.bcioTriggerId;
    const trigger = triggerId ? document.querySelector('[data-bcio-popup-trigger-id="' + triggerId + '"]') : null;

    popup.classList.remove('kc-visible');
    popup.classList.remove('bcio-static-review-popup-active');
    popup.setAttribute('aria-hidden', 'true');

    if (immediate) {
      popup.classList.remove('kc-closing-visible');
    } else {
      popup.classList.add('kc-closing-visible');
      clearTimeout(popupCloseTimer);
      popupCloseTimer = window.setTimeout(() => {
        popup.classList.remove('kc-closing-visible');
      }, 420);
    }

    if (!getStaticReviewPopupElements().some((item) => item !== popup && item.classList.contains('kc-visible'))) {
      document.documentElement.classList.remove('bcio-static-review-popup-open');
      document.body.classList.remove('bcio-static-review-popup-open');
    }

    if (restoreFocus && trigger && typeof trigger.focus === 'function') {
      window.setTimeout(() => {
        trigger.focus({ preventScroll: true });
      }, 60);
    }
  }

  function closeAllStaticReviewPopups(options = {}) {
    for (const popup of getStaticReviewPopupElements()) {
      if (popup.classList.contains('kc-visible') || popup.classList.contains('bcio-static-review-popup-active') || popup.classList.contains('kc-closing-visible')) {
        closeStaticReviewPopup(popup, options);
      } else {
        popup.setAttribute('aria-hidden', 'true');
      }
    }
  }

  function openStaticReviewPopup(popup, trigger = null) {
    if (!popup) {
      return false;
    }

    closeAllStaticReviewPopups({ restoreFocus: false, immediate: true });

    if (trigger) {
      if (!trigger.dataset.bcioPopupTriggerId) {
        trigger.dataset.bcioPopupTriggerId = 'bcio-popup-trigger-' + Math.random().toString(36).slice(2, 10);
      }
      popup.dataset.bcioTriggerId = trigger.dataset.bcioPopupTriggerId;
      if (typeof trigger.blur === 'function') {
        trigger.blur();
      }
    }

    popup.classList.remove('kc-closing-visible');
    popup.classList.add('kc-visible');
    popup.classList.add('bcio-static-review-popup-active');
    popup.setAttribute('aria-hidden', 'false');
    document.documentElement.classList.add('bcio-static-review-popup-open');
    document.body.classList.add('bcio-static-review-popup-open');

    window.setTimeout(() => {
      const focusTarget = popup.querySelector(
        'input:not([type="hidden"]), select, textarea, button, [href], [tabindex]:not([tabindex="-1"])'
      );
      if (focusTarget && typeof focusTarget.focus === 'function') {
        focusTarget.focus({ preventScroll: true });
      }
    }, 60);

    return true;
  }

  function bindStaticReviewPopups() {
    if (document.body.dataset.bcioStaticReviewPopupBound === 'true') {
      return;
    }

    document.body.dataset.bcioStaticReviewPopupBound = 'true';

    for (const popup of getStaticReviewPopupElements()) {
      popup.setAttribute('aria-hidden', popup.classList.contains('kc-visible') ? 'false' : 'true');
    }

    document.addEventListener('click', (event) => {
      const closeButton = event.target.closest?.('.kadence-conversions-close');
      if (closeButton) {
        const popup = closeButton.closest('.kadence-conversion-wrap');
        if (popup) {
          event.preventDefault();
          event.stopImmediatePropagation();
          closeStaticReviewPopup(popup);
          return;
        }
      }

      const overlay = event.target.classList?.contains('kadence-conversion-overlay')
        ? event.target
        : null;
      if (overlay) {
        const popup = overlay.closest('.kadence-conversion-wrap');
        if (popup) {
          event.preventDefault();
          event.stopImmediatePropagation();
          closeStaticReviewPopup(popup);
          return;
        }
      }

      const trigger = event.target.closest?.('a, button, [role="button"], .kb-button, .button');
      const popup = resolveStaticReviewPopupTarget(trigger);
      if (!popup) {
        return;
      }

      event.preventDefault();
      event.stopImmediatePropagation();
      openStaticReviewPopup(popup, trigger);
    }, true);

    document.addEventListener('keydown', (event) => {
      if (event.key !== 'Escape') {
        return;
      }

      const popup = getStaticReviewPopupElements().find((item) => item.classList.contains('kc-visible'));
      if (!popup) {
        return;
      }

      event.preventDefault();
      closeStaticReviewPopup(popup);
    }, true);
  }

  function isReviewForm(form) {
    if (!form) {
      return false;
    }

    const action = String(form.getAttribute('action') || '').trim();
    const method = String(form.getAttribute('method') || 'get').toLowerCase();
    if (action === '/_bcio-review-auth' || action.endsWith('/_bcio-review-auth')) {
      return false;
    }
    if (form.matches('[role="search"], .search-form, #searchform')) {
      return false;
    }

    return method === 'post' || form.classList.contains('frm-fluent-form') || Boolean(form.closest('.fluentform'));
  }

  function getSubmitButton(form) {
    return form.querySelector('button[type="submit"], input[type="submit"]');
  }

  function ensureFormNote(form) {
    if (form.querySelector('.bcio-static-review-form-note')) {
      return;
    }

    const note = document.createElement('div');
    note.className = 'bcio-static-review-form-note';
    note.setAttribute('role', 'note');
    note.innerHTML = NOTE_HTML;

    const submitWrapper = form.querySelector('.ff_submit_btn_wrapper');
    if (submitWrapper && submitWrapper.parentNode) {
      submitWrapper.parentNode.insertBefore(note, submitWrapper);
      return;
    }

    form.appendChild(note);
  }

  function showReviewSuccess(form) {
    let success = form.querySelector('.bcio-static-review-form-success');
    if (!success) {
      success = document.createElement('div');
      success.className = 'bcio-static-review-form-success';
      success.setAttribute('role', 'status');
      success.setAttribute('aria-live', 'polite');
      success.innerHTML = SUCCESS_HTML;
      form.appendChild(success);
    }

    form.classList.add('bcio-static-review-form-sent');
    success.hidden = false;

    const submit = getSubmitButton(form);
    if (!submit) {
      return;
    }

    if (!submit.dataset.originalLabel) {
      submit.dataset.originalLabel = submit.tagName === 'INPUT'
        ? String(submit.value || '')
        : String(submit.textContent || '');
    }

    if (submit.tagName === 'INPUT') {
      submit.value = 'Review Sent';
    } else {
      submit.textContent = 'Review Sent';
    }
  }

  function prepareForms() {
    const forms = Array.from(document.querySelectorAll('form')).filter(isReviewForm);
    for (const form of forms) {
      form.dataset.bcioStaticReviewForm = 'true';
      form.setAttribute('novalidate', 'novalidate');

      form.querySelectorAll('.flatpickr-calendar').forEach((node) => node.remove());

      form.querySelectorAll('.choices').forEach((wrapper) => {
        const select = wrapper.querySelector('select');
        if (!select || !wrapper.parentNode) {
          return;
        }

        select.hidden = false;
        select.removeAttribute('hidden');
        select.removeAttribute('tabindex');
        select.removeAttribute('data-choice');
        wrapper.parentNode.insertBefore(select, wrapper);
        wrapper.remove();
      });

      form.querySelectorAll('input.flatpickr-input, input[data-type-datepicker]').forEach((input) => {
        input.classList.remove('flatpickr-input');
        input.removeAttribute('readonly');
        if (!input.getAttribute('placeholder')) {
          input.setAttribute('placeholder', 'Preferred charter date');
        }
      });

      ensureFormNote(form);
    }
  }

  function bootStaticReviewEnhancements() {
    prepareForms();
    prepareStaticReviewLightbox();
    prepareStaticReviewStars();
    bindStaticReviewPopups();
  }

  document.addEventListener('submit', (event) => {
    const form = event.target instanceof HTMLFormElement ? event.target : event.target?.closest?.('form');
    if (!form || form.dataset.bcioStaticReviewForm !== 'true') {
      return;
    }

    event.preventDefault();
    event.stopImmediatePropagation();
    showReviewSuccess(form);
  }, true);

  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', bootStaticReviewEnhancements, { once: true });
  } else {
    bootStaticReviewEnhancements();
  }
})();
</script><script>(function(){function c(){var b=a.contentDocument||(a.contentWindow&&a.contentWindow.document);if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a4206b685d6f351e',t:'MTc5MDU3NDA5MQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body></html>