html {
    scroll-behavior: smooth;
}

/* Desktop scroll navigation */

.psn-wrapper {
    position: fixed;
    left: 28px;
    right: auto;
    top: 50%;
    z-index: 9999;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    transform: translateY(-50%);
}

.psn-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.psn-item {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: rgba(49, 163, 157, 0.45);
    cursor: pointer;
    transform-origin: left center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.psn-item:hover,
.psn-item.is-active {
    background: #31A39D;
    transform: scaleX(1.4);
}

.psn-panel {
    min-width: 170px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(18, 75, 72, 0.96);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    box-shadow: 0 18px 45px rgba(18, 75, 72, 0.28);
    backdrop-filter: blur(10px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.psn-wrapper:hover .psn-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.psn-label {
    max-width: 180px;
    margin-bottom: 5px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.psn-label:hover {
    background: rgba(49, 163, 157, 0.28);
    color: #ffffff;
}

.psn-label.is-active {
    background: #31A39D;
    color: #ffffff;
}

/* Mobile navigation */

.psn-mobile-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .psn-wrapper {
        display: none;
    }

    .psn-mobile-wrapper {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        pointer-events: none;
    }

    .psn-mobile-panel {
        width: 100%;
        max-width: 330px;
        max-height: calc(100vh - 110px);
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        overflow-y: auto;
        margin-bottom: 8px;
        padding: 9px;
        border-radius: 18px;
        background:
            radial-gradient(circle at top left, rgba(49, 163, 157, 0.2), transparent 46%),
            rgba(18, 75, 72, 0.97);
        color: #ffffff;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(14px);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
        pointer-events: auto;
    }

    .psn-mobile-wrapper.is-open .psn-mobile-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .psn-mobile-handle {
        width: 36px;
        height: 3px;
        margin: 0 auto 9px auto;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.42);
    }

    .psn-mobile-link {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 0 !important;
        border-radius: 11px !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        text-decoration: none !important;
        cursor: pointer;
        appearance: none !important;
        -webkit-appearance: none !important;
        transition: background 0.18s ease, transform 0.18s ease;
    }

    .psn-mobile-link:hover,
    .psn-mobile-link.is-active {
        background: rgba(49, 163, 157, 0.5) !important;
        color: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .psn-mobile-link:focus,
    .psn-mobile-link:focus-visible {
        outline: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .psn-mobile-link:active {
        transform: scale(0.98);
    }

    .psn-mobile-icon {
        width: 19px !important;
        height: 19px !important;
        min-width: 19px !important;
        flex: 0 0 19px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #ffffff !important;
        opacity: 0.95;
    }

    .psn-mobile-icon svg {
        width: 19px !important;
        height: 19px !important;
        fill: none !important;
        stroke: #ffffff !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .psn-mobile-text {
        display: block !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .psn-mobile-toggle {
        width: auto !important;
        min-width: 122px !important;
        height: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        margin: 0 auto !important;
        padding: 0 17px !important;
        border: 0 !important;
        border-radius: 999px !important;
        outline: none !important;
        background: linear-gradient(135deg, #31A39D, #124B48) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        text-align: center !important;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(18, 75, 72, 0.34) !important;
        pointer-events: auto;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .psn-mobile-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 13px 34px rgba(18, 75, 72, 0.42) !important;
    }

    .psn-mobile-toggle:active {
        transform: scale(0.97);
    }

    .psn-mobile-toggle:focus,
    .psn-mobile-toggle:focus-visible {
        outline: none !important;
        border: 0 !important;
    }

    .psn-mobile-toggle > span {
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }

    .psn-mobile-burger {
        width: 19px !important;
        height: 14px !important;
        flex: 0 0 19px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .psn-mobile-burger span {
        width: 19px !important;
        height: 2px !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
    }
}

/* reCAPTCHA v3 badge */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* reCAPTCHA note under form */

.recaptcha-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
}

.recaptcha-note a {
    color: rgba(49, 163, 157, 0.9);
    text-decoration: none;
}

.recaptcha-note a:hover {
    text-decoration: underline;
}