/* Animated IvyForms contact popup. */
.tss-contact-popup__trigger {
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(0, 103, 122, .14);
    border: 1px solid rgba(0, 103, 122, .24);
    border-radius: 999px;
    bottom: 24px;
    box-shadow: 0 10px 28px rgba(7, 58, 71, .12);
    color: #004e5e;
    cursor: pointer;
    display: inline-flex;
    font: 700 .9rem/1 var(--font-sans, sans-serif);
    gap: 10px;
    left: 50%;
    min-height: 52px;
    padding: 8px 20px 8px 9px;
    position: fixed;
    transform: translateX(-50%);
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
    z-index: 390;
}

.tss-contact-popup__trigger::before {
    animation: tss-contact-pulse 2.8s ease-out infinite;
    border: 2px solid #1c91a5;
    border-radius: inherit;
    content: "";
    inset: -1px;
    pointer-events: none;
    position: absolute;
}

.tss-contact-popup__trigger:hover {
    background: rgba(0, 103, 122, .88);
    box-shadow: 0 16px 38px rgba(7, 58, 71, .36);
    color: #fff;
    transform: translate(-50%, -2px);
}

.tss-contact-popup__trigger:focus-visible,
.tss-contact-popup__close:focus-visible {
    outline: 3px solid #e2bd56;
    outline-offset: 3px;
}

.tss-contact-popup__trigger-icon {
    align-items: center;
    background: rgba(255, 255, 255, .42);
    border-radius: 50%;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.tss-contact-popup__trigger-icon svg { height: 19px; width: 19px; }

.tss-contact-popup {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .28s ease, visibility 0s linear .28s;
    visibility: hidden;
    z-index: 10000;
}

.tss-contact-popup.is-open {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    visibility: visible;
}

.tss-contact-popup__backdrop {
    background: rgba(7, 32, 41, .68);
    inset: 0;
    position: absolute;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.tss-contact-popup__panel {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(3, 31, 38, .35);
    left: 50%;
    max-height: min(90vh, 820px);
    max-width: 680px;
    opacity: 0;
    overflow: auto;
    padding: clamp(26px, 4vw, 42px);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -46%) scale(.94);
    transition: opacity .28s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
    width: calc(100% - 36px);
}

.tss-contact-popup.is-open .tss-contact-popup__panel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tss-contact-popup__accent {
    background: linear-gradient(90deg, #00677a, #39a4b5, #d4af37);
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.tss-contact-popup__close {
    align-items: center;
    background: #eef6f7;
    border: 0;
    border-radius: 50%;
    color: #17404a;
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: background-color .2s ease, transform .2s ease;
    width: 42px;
    z-index: 2;
}

.tss-contact-popup__close:hover { background: #dcecee; transform: rotate(6deg); }
.tss-contact-popup__close svg { height: 20px; width: 20px; }

.tss-contact-popup__header { margin-bottom: 24px; padding-right: 48px; }
.tss-contact-popup__eyebrow {
    color: #00677a;
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin-bottom: 7px;
    text-transform: uppercase;
}
.tss-contact-popup__header h2 { color: #12343d; font-size: clamp(1.65rem, 4vw, 2.25rem); margin: 0 0 8px; }
.tss-contact-popup__header p { color: #51656a; font-size: .96rem; line-height: 1.6; margin: 0; }

.tss-contact-popup__form .ivyforms-form-wrapper,
.tss-contact-popup__form .ivyforms-skeleton { margin: 0 !important; max-width: none !important; }
.tss-contact-popup__form .ivyforms-form-title,
.tss-contact-popup__form [class*="ivyforms-form-title-"] { display: none !important; }
.tss-contact-popup__form .ivyforms-field,
.tss-contact-popup__form .ivyforms-form-item,
.tss-contact-popup__form .ivyforms-skeleton-field,
.tss-contact-popup__form .ivyforms-skeleton-button {
    opacity: 0;
    transform: translateY(12px);
}

.tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-field,
.tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-form-item,
.tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-skeleton-field,
.tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-skeleton-button {
    animation: tss-contact-field-in .38s ease forwards;
}

.tss-contact-popup.is-open .tss-contact-popup__form :is(.ivyforms-field, .ivyforms-form-item, .ivyforms-skeleton-field):nth-child(2) { animation-delay: .08s; }
.tss-contact-popup.is-open .tss-contact-popup__form :is(.ivyforms-field, .ivyforms-form-item, .ivyforms-skeleton-field):nth-child(3) { animation-delay: .13s; }
.tss-contact-popup.is-open .tss-contact-popup__form :is(.ivyforms-field, .ivyforms-form-item, .ivyforms-skeleton-field):nth-child(4) { animation-delay: .18s; }
.tss-contact-popup.is-open .tss-contact-popup__form :is(.ivyforms-field, .ivyforms-form-item, .ivyforms-skeleton-field):nth-child(5) { animation-delay: .23s; }
.tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-skeleton-button { animation-delay: .28s; }

.tss-contact-popup__privacy {
    align-items: center;
    color: #65777b;
    display: flex;
    font-size: .76rem;
    gap: 7px;
    justify-content: center;
    margin: 18px 0 0;
}
.tss-contact-popup__privacy svg { color: #00677a; height: 14px; width: 14px; }
body.tss-contact-popup-open { overflow: hidden; }

@keyframes tss-contact-pulse {
    0%, 35% { opacity: .55; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(1.16, 1.35); }
}
@keyframes tss-contact-field-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .tss-contact-popup__trigger {
        bottom: 16px;
        height: 52px;
        left: 50%;
        min-height: 52px;
        min-width: 52px;
        padding: 8px;
        width: 52px;
    }
    .tss-contact-popup__trigger > span:last-child:not(.tss-contact-popup__trigger-icon) { display: none; }
    .tss-contact-popup__panel {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        bottom: 0;
        left: 0;
        max-height: 91vh;
        padding: 30px 20px 24px;
        top: auto;
        transform: translateY(100%);
        width: 100%;
    }
    .tss-contact-popup.is-open .tss-contact-popup__panel { transform: translateY(0); }
    .tss-contact-popup__header { padding-right: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .tss-contact-popup,
    .tss-contact-popup__panel { transition-duration: .01ms; }
    .tss-contact-popup__trigger::before { animation: none; }
    .tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-field,
    .tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-form-item,
    .tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-skeleton-field,
    .tss-contact-popup.is-open .tss-contact-popup__form .ivyforms-skeleton-button {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
