body {position: relative;}
header.init:has( + #compare-header) {
    z-index: 3998;
}



h2 {
  font-size: 1.8rem;
  margin-bottom: 0rem;
}

#form_close_button {
    font-size: 1rem;
    color: var(--h-color);
    display: none;
}



body.mobile #form_close_button {
    display: inline-block;
}
#form {
    width: 600px;
    max-width: 940px;
    margin: 0 auto;
    position: relative;
}

body.mobile #form {
    width: 100%;
    padding: 1rem 1rem 0;
    top: 80px;
}

body.mobile .contact_form_footer {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
}

body.mobile #contact-button {
    display: block;
    z-index: 10001;
}

.form-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.contact_form_footer p {
  margin: 0.2rem 0;
  color: #fff;
}

.contact_form_footer {
  position: relative;
  bottom: auto;
  left: auto;
  margin: 1.25rem -2rem 0;
  padding: 1rem 2rem;
  width: auto;
  min-height: 1rem;
  text-align: left;
  z-index: 1;
  font-size: 1rem;
  color: #fff;
  background-color: var(--brand);
  border-radius: 0;
  flex-shrink: 0;
}

section.hs_form_section {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background-size: cover;
  background-position: center;
  overflow: visible !important;
}
form.hbspt-form {
  z-index: 2;
}

.hs_form {
  position: relative;
  background-color: white !important;
  border-radius: 2px;
  border: 1px solid var(--line, #d5e0e6);
  max-width: 600px;
  padding: 2rem 3rem;
  overflow: visible !important;
}

[data-hs-forms-root] {
  position: relative;
  z-index: 3;
}



#compare-header {
    --im-blue: var(--brand, #1f6f8b);
    --im-line: var(--line, #d5e0e6);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.55rem 1.35rem;
    position: sticky;
    top: 4.2rem;
    z-index: 1999;
    margin-bottom: 0;
    max-width: 100%;
    overflow: visible;
    background: #1179cf;
    border-bottom: 1px solid #1179cf;
    backdrop-filter: blur(8px);
    font-family: var(--font, "Source Sans 3", "Ubuntu", sans-serif);
}

/* Static SEO / no-JS fallback; replaced by investor.js for interactive users */
.compare-header-seo {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.compare-header-seo a {
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding: 0.2rem 0;
}

.compare-header-seo a:hover {
    color: #fff;
    text-decoration: none;
}

.compare-header-seo a[aria-current="page"] {
    color: #fff;
    border-bottom-color: #fff;
}

#compare-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background-color: #fff;
    border-bottom-color: var(--line, #d5e0e6);
    box-shadow: 0 8px 20px -12px rgba(22, 50, 71, 0.35);
    padding-bottom: 0.55rem;
}

#compare-header.scrolled .compare-nav-trigger,
#compare-header.scrolled .compare-header-seo a {
    color: var(--text, #3d5263);
}

#compare-header.scrolled .compare-nav-trigger:hover,
#compare-header.scrolled .compare-nav-group.is-open .compare-nav-trigger,
#compare-header.scrolled .compare-nav-group.is-current .compare-nav-trigger,
#compare-header.scrolled .compare-header-seo a:hover,
#compare-header.scrolled .compare-header-seo a[aria-current="page"] {
    color: var(--brand-deep, #145168);
    border-bottom-color: var(--accent, #2a9aad);
}

#compare-header.scrolled .compare-header-menu-bar {
    background: var(--brand, #1f6f8b);
}

header.init nav {
    position: static;
    z-index: auto;
    transform: none;
}

#contact-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0;
}

#contact-button button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    min-height: 2.2rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 0;
    background-color: var(--fm-cta-bg, #12ae5c);
    color: white;
    border: 1px solid var(--fm-cta-bg, #12ae5c);
    outline: 1px solid #fff;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
    cursor: pointer;
}
#contact-button button:hover {
    background-color: var(--fm-cta-bg-hover, #0e8f4b);
    border-color: var(--fm-cta-bg-hover, #0e8f4b);
    color: #fff;
}

#contact-button button span {
    display: block;
    line-height: 1.2;
}
#contact-button button span:nth-child(2) {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
#contact-button.active button span:nth-child(2) {
    opacity: 1;
}
#contact-button.active button span:nth-child(1) {
    opacity: 0;
}
#contact-button button span:nth-child(1) {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #contact-button button span:nth-child(2) {
        position: static;
        display: none;
        opacity: 1;
    }
    #contact-button.active button span:nth-child(2) {
        display: flex;
    }
    #contact-button.active button span:nth-child(1) {
        display: none;
        opacity: 1;
    }
}

#compare-header .compare-header-logo {
    grid-column: 1;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
}

#compare-header .compare-header-logo a {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 0;
}

#compare-header .compare-header-logo a:focus-visible {
    outline: 2px solid var(--im-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

#compare-header .compare-header-logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: min(18.75rem, 36vw);
    padding: 0;
}

#compare-header.scrolled .compare-header-logo,
#compare-header.scrolled .compare-header-logo a {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
}

#compare-header.scrolled .compare-header-logo img {
    width: auto;
    height: 36px;
    padding: 0;
}
.compare-header-nav {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    position: relative;
    line-height: 1.1;
}

.compare-nav-group {
    position: static;
}

.compare-nav-trigger {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    padding: 0.35rem 0.15rem;
    border-radius: 0;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease;
}

.compare-nav-trigger:hover,
.compare-nav-group.is-open .compare-nav-trigger,
.compare-nav-group.is-current .compare-nav-trigger {
    color: #fff;
    background-color: transparent;
    border-bottom-color: #fff;
}

.compare-nav-trigger:focus-visible {
    outline: 2px solid var(--im-blue);
    outline-offset: 2px;
}

.compare-nav-panel {
    position: absolute;
    top: calc(100% - 0.15rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    width: min(34rem, calc(100vw - 2rem));
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--line, #d5e0e6);
    border-radius: 2px;
    box-shadow: 0 8px 20px -12px rgba(22, 50, 71, 0.28);
}

.compare-nav-panel[hidden] {
    display: none;
}

.compare-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: 2px;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.compare-nav-link:visited,
.compare-nav-link:link {
    color: var(--text);
    text-decoration: none;
}

.compare-nav-link:hover,
.compare-nav-link.is-active {
    background-color: var(--bg, #eef4f6);
    color: var(--brand-deep, #145168);
    text-decoration: none;
    box-shadow: inset 3px 0 0 var(--accent, #2a9aad);
}

.compare-nav-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
}

.compare-nav-logo {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.05rem;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.compare-nav-text {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.85;
}

.compare-nav-link:hover .compare-nav-text,
.compare-nav-link.is-active .compare-nav-text {
    opacity: 0.95;
}

@media (max-width: 1268px) {
    .compare-nav-trigger {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 1100px) {
    #compare-header {
        gap: 0.6rem 1rem;
        padding-inline: 1rem;
    }

    #compare-header .compare-header-logo img {
        height: 40px;
    }
}

#form {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 167px;
    height: auto;
    max-height: calc(100vh - 180px);
    right: 0;
    padding: 2rem 2rem 0;
    z-index: 2000;
    background-color: white;
    border-radius: 2px 0 0 2px;
    box-shadow: var(--shadow-soft, 0 8px 20px -12px rgba(22, 50, 71, 0.28));
    border-right: 2px solid var(--accent, #2a9aad);
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
}
#compare-header.scrolled + #form.active {
    top: calc(4.2rem + 4.7rem);
}

#form.active {
    border-right: 2px solid var(--accent, #2a9aad);
}

.form-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
    max-width: 28ch;
}

.form-result h3 {
    margin: 0;
}

.form-result p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    #form {
        will-change: auto;
    }
}

#form .input {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 0;
}
#form label {
    font-size: 0.8rem;
    color: #616161;
}

#form label:has(+ :focus-visible) {
    color: var(--h-color);
}
#form input {
    border: 0;
    border-bottom: 1px solid #e9e9e9;
}
#form input:focus-visible {
    outline: none;
    border-bottom: 1px solid var(--h-color);
}
#form input[type="datetime-local"] {
    font-size: 0.95em;
}
#form button {
    border-color: var(--h-color);
    color: var(--h-color);
    transition: all 0.3s;
}
#form button:hover {
    background-color: var(--h-color);
    color: white;
}

.req {
    color: red;
    font-size: inherit;
}
legend {
    font-size: 0.8rem;
    font-weight: normal;
    color: #616161;
    margin-top: 1rem;
}

/* —— Mobile InvestorMap subnav: hamburger + single column —— */
.compare-header-menu {
    display: none;
    appearance: none;
    border: 1px solid var(--im-line, #d5d5d5);
    background: #fff;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.55rem;
    margin: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    border-radius: 0;
    border-color: transparent;
    z-index: 2;
}

.compare-header-menu:focus-visible {
    outline: 2px solid var(--im-blue);
    outline-offset: 2px;
}

.compare-header-menu-bar {
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#compare-header.is-nav-open .compare-header-menu-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

#compare-header.is-nav-open .compare-header-menu-bar:nth-child(2) {
    opacity: 0;
}

#compare-header.is-nav-open .compare-header-menu-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 900px) {
    #compare-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.5rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 0.55rem 0.75rem;
        background-color: #f9f9f9;
        background-image: none;
        margin-bottom: 0;
        overflow: visible;
    }

    #compare-header.scrolled {
        padding-bottom: 0.55rem;
    }

    #compare-header .compare-header-logo {
        display: none;
    }

    .compare-header-seo {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        padding: 0.35rem 0;
        font-size: 0.95rem;
    }

    .compare-header-menu {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        background: transparent;
    }

    .compare-header-menu-bar {
        background: #163247;
    }

    #contact-button {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
        justify-content: flex-end;
        min-width: 0;
    }

    #contact-button a.im-header-cta {
        font-size: 0.72rem;
        min-width: 0;
        max-width: 10.5rem;
        padding: 0.4rem 0.55rem;
        line-height: 1.15;
        white-space: normal;
        text-align: center;
    }

    .compare-header-nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0 0.25rem;
        margin: 0;
    }

    #compare-header.is-nav-open .compare-header-nav {
        display: flex;
    }

    .compare-nav-group {
        width: 100%;
        min-width: 0;
    }

    .compare-nav-trigger {
        width: 100%;
        text-align: left;
        padding: 0.8rem 0.85rem;
        font-size: 0.95rem;
        border-radius: 0;
    }

    .compare-nav-panel {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        width: 100%;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0.15rem 0 0.35rem;
        gap: 0.15rem;
    }

    .compare-nav-link {
        padding: 0.7rem 0.85rem;
        min-width: 0;
    }

    .compare-nav-label {
        font-size: 0.95rem;
    }

    .compare-nav-text {
        font-size: 0.8rem;
    }

    #compare-header.scrolled + #form.active,
    form#form {
        top: calc(4.2rem + 3.6rem);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 1rem 1rem 0;
        max-height: calc(100vh - 4.2rem - 3.6rem);
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    #compare-header.scrolled + #form.active,
    form#form {
        top: calc(4.2rem + 3.6rem);
    }
}
