/* Preserve the original form after replacing its WordPress submission service. */
.contacts-page .kaliforms-form-container {
    opacity: 1 !important;
}

.fortunex-form-status,
.fortunex-document-status {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #4d4d4d;
    color: #d7d7d7;
    background: #191f20;
    font-size: 15px;
    line-height: 1.5;
}

.fortunex-form-status p {
    margin: 0 0 12px;
}

.fortunex-compose-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fortunex-compose-link:hover {
    color: #1b9973;
}

.fortunex-compose-link:focus-visible {
    outline: 2px solid #1b9973;
    outline-offset: 4px;
}

/* Keep the original arrow, with a touch-friendly, floating control. */
#scroller,
#scroller.active {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #44b493;
    border-radius: 16px;
    background: #136f53;
    color: #fff;
    box-shadow: 0 6px 18px rgb(0 0 0 / 24%);
    cursor: pointer;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease,
        background-color 180ms ease, box-shadow 180ms ease;
}

#scroller.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#scroller svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

#scroller .svg-fill--scroller {
    fill: currentColor;
}

#scroller.active:focus {
    background: #136f53;
    border-color: #44b493;
}

#scroller.active:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (hover: hover) {
    #scroller.active:hover {
        background: #167e5f;
        border-color: #66d2af;
        box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
        transform: translateY(-3px);
    }
}

#scroller.active:active {
    background: #105e47;
    border-color: #44b493;
    transform: translateY(0);
}

.header {
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

.header a:focus-visible,
.header button:focus-visible,
footer a:focus-visible {
    outline: 2px solid #44b493;
    outline-offset: 4px;
}

@media (max-width: 575.98px) {
    #scroller,
    #scroller.active {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    #scroller,
    #scroller.active,
    #scroller.active:hover,
    .header,
    .header .header__menu {
        transition: none;
        transform: none;
    }
}
