html.pswp-popup-open,
body.pswp-popup-open {
    overflow: hidden;
}

.pswp-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: "Courier New", Courier, monospace;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.pswp-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.pswp-popup[hidden],
.pswp-toast[hidden] {
    display: none !important;
}

.pswp-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 18, 0.68);
    backdrop-filter: blur(1.5px);
}

.pswp-popup__dialog {
    position: relative;
    z-index: 2;
    width: min(640px, calc(100vw - 32px));
    background: #f5f5f5;
    border-radius: 14px;
    padding: 28px 34px 40px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.pswp-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #393939;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.pswp-popup__title {
    margin: 4px 0 18px;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #3d3d3d;
}

.pswp-popup__subtitle {
    margin: 0 auto 30px;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.55;
    color: #575757;
}

.pswp-popup__form {
    max-width: 530px;
    margin: 0 auto;
}

.pswp-popup__row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.pswp-popup__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.pswp-popup__input {
    display: block;
    width: 100%;
    height: 44px;
    border: 1px solid #8f96a1;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #ffffff;
    padding: 0 46px 0 14px;
    font-size: 16px;
    color: #3f3f3f;
    outline: none;
    box-shadow: none;
    font-family: "Courier New", Courier, monospace;
}

.pswp-popup__input::placeholder {
    color: #b8b8b8;
}

.pswp-popup__input:focus {
    border-color: #757c86;
}

.pswp-popup__icon {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #c9cdd4;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.pswp-popup__icon svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
    display: block;
}

.pswp-popup__submit {
    height: 44px;
    min-width: 218px;
    padding: 0 22px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #1d1b1c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-family: "Courier New", Courier, monospace;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.pswp-popup__submit:hover {
    transform: translateY(-1px);
}

.pswp-popup__submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.pswp-popup__message {
    margin: 12px 0 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    color: #b42318;
}


.pswp-popup__turnstile-wrap {
    margin: 14px auto 0;
    display: flex;
    justify-content: center;
}

.pswp-popup__honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pswp-toast {
    --pswp-toast-duration: 4500ms;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    padding: 20px;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
    font-family: "Courier New", Courier, monospace;
    pointer-events: none;
}

.pswp-toast.is-visible {
    opacity: 1;
    visibility: visible;
}

.pswp-toast__dialog {
    position: relative;
    overflow: hidden;
    width: min(420px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid rgba(29, 27, 28, 0.12);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.26s ease, transform 0.26s ease;
    pointer-events: auto;
}

.pswp-toast.is-visible .pswp-toast__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pswp-toast__icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #edf7ef;
    display: grid;
    place-items: center;
}

.pswp-toast__icon svg {
    width: 24px;
    height: 24px;
    fill: #1f7a35;
    display: block;
}

.pswp-toast__text {
    margin: 0;
    color: #2f2f2f;
    font-size: 14px;
    line-height: 1.55;
}

.pswp-toast__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: rgba(29, 27, 28, 0.08);
}

.pswp-toast__progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #1d1b1c;
    transform-origin: left center;
    animation: pswpToastProgress var(--pswp-toast-duration) linear forwards;
}

.pswp-toast:not(.is-visible) .pswp-toast__progress::after {
    animation: none;
    transform: scaleX(1);
}

@keyframes pswpToastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 640px) {
    .pswp-popup__dialog {
        padding: 24px 18px 24px;
        width: min(96vw, 640px);
    }

    .pswp-popup__title {
        font-size: 28px;
        margin-top: 8px;
    }

    .pswp-popup__subtitle {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .pswp-popup__row {
        flex-direction: column;
        gap: 10px;
    }

    .pswp-popup__input {
        border-right: 1px solid #8f96a1;
        border-radius: 10px;
    }

    .pswp-popup__submit {
        width: 100%;
        min-width: 0;
        border-radius: 10px;
    }

    .pswp-toast {
        bottom: 18px;
        width: min(92vw, 420px);
    }
}
