[data-registration-module] {
    --registration-font-family: GraphikRegular, Arial, sans-serif;
    font-family: var(--registration-font-family);
}
[data-registration-module], [data-registration-module] *, [data-registration-module] *::before, [data-registration-module] *::after {
    box-sizing: border-box;
}
[data-registration-module].wrapper {
    background: #901414;
    color: #fff;
}
:where([data-registration-module] > .block) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
[data-registration-module] .registration-slide-block {
    line-height: 1.5;
}
.registration-document.modal {
    font-family: GraphikRegular, Arial, sans-serif;
    line-height: 1.5;
    color: #1e1e1e;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}
.jquery-modal:has(.registration-document) {
    z-index: 1000;
}
.registration-document.modal a.close-modal {
    top: 14px;
    right: 20px;
}
.registration-document .modal-header {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
}
.registration-document p + p {
    margin-top: 16px;
}
/* Новая регистрация */
[data-registration-module] .registration-options-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;

    .registration-options__item {
        background-color: rgba(255,255,255,.1);
        padding: 50px 30px;
        border-radius: 3px;
        flex: 0 0 calc(50% - 5px);
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 25px;
        line-height: 40px;
        font-family: GraphikRegular,sans-serif;
        transition: all 0.3s ease-in-out 0s;

        &:hover {
            background-color: rgba(255, 255, 255, 0.26);
            cursor: pointer;
        }

        @media (max-width: 900px) {
            flex: 0 0 100%;
            font-size: 18px;
            line-height: 24px;
            padding: 30px 15px;
        }
    }
}



[data-registration-module] .registration-slide-block {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 805px;
    height: 100vh;
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 300;
    overflow-y: auto;       /* allows scrolling if content exceeds viewport */
    transition: transform 0.20s linear;
    transform: translateX(100%);   /* HIDDEN: placed COMPLETELY outside right border */
    will-change: transform;
    border-left: 1px solid rgba(0,0,0,0.05);
    overflow-y: hidden;
    color: #1E1E1E;
    padding: 40px 60px;
}

/* When panel is OPEN — slides into visible area (right edge aligns with viewport right) */
[data-registration-module] .registration-slide-block.open {
    transform: translateX(0);   /* fully visible, attached to right side */
}

/* Custom scrollbar for panel */
[data-registration-module] .registration-slide-block::-webkit-scrollbar {
    width: 6px;
}
[data-registration-module] .registration-slide-block::-webkit-scrollbar-track {
    background: #f1f1f1;
}
[data-registration-module] .registration-slide-block::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
[data-registration-module] .registration-slide-block
{
    transform: translateX(100%) translateZ(0);
}
[data-registration-module] .registration-slide-block.open {
    transform: translateX(0) translateZ(0);
    overflow-y: scroll;
}
[data-registration-module] .registration-slide-block__inner {
    margin-top: 60px;
}
[data-registration-module] .registration-slide-block__header span {
    white-space: pre-line;
    font-size: 21px;
    line-height: 26px;
    font-family: GraphikSemi,sans-serif;
}
[data-registration-module] .registration-slide-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}
[data-registration-module] #internalCloseBtn {
    position: absolute;
    cursor: pointer;
    top: -12.5px;
    right: -12.5px;
    display: block;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAA3hJREFUaAXlm8+K00Acx7MiCIJH/yw+gA9g25O49SL4AO3Bp1jw5NvktC+wF88qevK4BU97EmzxUBCEolK/n5gp3W6TTJPfpNPNF37MNsl85/vN/DaTmU6PknC4K+pniqeKJ3k8UnkvDxXJzzy+q/yaxxeVHxW/FNHjgRSeKt4rFoplzaAuHHDBGR2eS9G54reirsmienDCTRt7xwsp+KAoEmt9nLaGitZxrBbPFNaGfPloGw2t4JVamSt8xYW6Dg1oCYo3Yv+rCGViV160oMkcd8SYKnYV1Nb1aEOjCe6L5ZOiLfF120EjWhuBu3YIZt1NQmujnk5F4MgOpURzLfAwOBSTmzp3fpDxuI/pabxpqOoz2r2HLAb0GMbZKlNV5/Hg9XJypguryA7lPF5KMdTZQzHjqxNPhWhzIuAruOl1eNqKEx1tSh5rfbxdw7mOxCq4qS68ZTjKS1YVvilu559vWvFHhh4rZrdyZ69Vmpgdj8fJbDZLJpNJ0uv1cnr/gjrUhQMuI+ANjyuwftQ0bbL6Erp0mM/ny8Fg4M3LtdRxgMtKl3jwmIHVxYXChFy94/Rmpa/pTbNUhstKV+4Rr8lLQ9KlUvJKLyG8yvQ2s9SBy1Jb7jV5a0yapfF6apaZLjLLcWtd4sNrmJUMHyM+1xibTjH82Zh01TNlhsrOhdKTe00uAzZQmN6+KW+sDa/JD2PSVQ873m29yf+1Q9VDzfEYlHi1G5LKBBWZbtEsHbFwb1oYDwr1ZiF/2bnCSg1OBE/pfr9/bWx26UxJL3ONPISOLKUvQza0LZUxSKyjpdTGa/vDEr25rddbMM0Q3O6Lx3rqFvU+x6UrRKQY7tyrZecmD9FODy8uLizTmilwNj0kraNcAJhOp5aGVwsAGD5VmJBrWWbJSgWT9zrzWepQF47RaGSiKfeGx6Szi3gzmX/HHbihwBser4B9UJYpFBNX4R6vTn3VQnez0SymnrHQMsRYGTr1dSk34ljRqS/EMd2pLQ8YBp3a1PLfcqCpo8gtHkZFHKkTX6fs3MY0blKnth66rKCnU0VRGu37ONrQaA4eZDFtWAu2fXj9zjFkxTBOo8F7t926gTp/83Kyzzcy2kZD6xiqxTYnHLRFm3vHiRSwNSjkz3hoIzo8lCKWUlg/YtGs7tObunDAZfpDLbfEI15zsEIY3U/x/gHHc/G1zltnAgAAAABJRU5ErkJggg==');
}
body.registration-panel-open {
    overflow-y: hidden !important;
}

@media (max-width: 1000px) {
    [data-registration-module] .registration-slide-block {
        max-width: unset;
        padding: 40px 20px;
    }
    [data-registration-module] .registration-slide-block__header span {
        margin-right: 50px;
    }
}

[data-registration-module] .registration-slide-block {

    .regform-subheader {
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .regform-inputs-wrapper {

        display: flex;
        flex-wrap: wrap;
        gap: 15px;

        .regform-inputs-item {
            width: 100%;
        }

        .registration-participant-patronymic-checkbox-wrapper {
            display: flex;
            align-items: baseline;

            > div {
                margin-top: 40px;

                @media (max-width: 600px) {
                    margin-top: 0;
                }
            }
        }

        .regform-input-descr {
            color: #6e6e6e;
            margin-bottom: 10px;
            font-size: 14px;
            line-height: 19px;
        }
        input, textarea {
            height: 51px;
            border: 1px solid rgb(203, 203, 204);
            background-color: rgb(245, 245, 245);
            padding: 12px 16px;
            width: 100%;
            font-size: 14px;

            &:focus {
                border-color: #df2028;
                outline: none;
                box-shadow: none;
            }

            &:disabled {
                background-color: #e1e1e4;
                border-color: #939598;
            }
        }

        textarea {
            resize: vertical;
        }

        &.-two-columns {

            .regform-inputs-item {
                flex: 0 0 calc(50% - 8px);

                @media (max-width: 600px) {
                    flex: 0 0 100%;
                }
            }
        }
    }

    .regform-specific-inputs__selectors {
        display: flex;
        font-size: 14px;
        gap: 40px;

        @media (max-width: 600px) {
            flex-wrap: wrap;
            gap: 15px;
        }

        .regform-input-type-selectors:hover {
            cursor: pointer;

            &:before {
                border-color: #df2028;
                background-color: rgb(245, 245, 245);
            }
        }
        .regform-input-type-selectors {
            position: relative;
            padding-left: 35px;

            &.-selected:before {
                border-color: #df2028;
                background: radial-gradient(circle, #df2028 40%, transparent 45%);
            }

            @media (max-width: 600px) {
                flex: 0 0 100%;
            }
        }
        .regform-input-type-selectors:before {
            content: "";
            border: 1px solid #ccc;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            margin-right: 10px;
            position: absolute;
            left: 0;
            display: block;
            transition: all 0.3s ease-in-out 0s;
            background-color: #fff;
        }
    }

    .regform-specific-inputs {
        margin-top: 35px;
    }
    .regform-specific-inputs__types {
        margin-top: 35px;
    }
    .regform-inputs-wrapper + .regform-inputs-wrapper {
        margin-top: 15px;
    }

    .radio-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: sans-serif;
        font-size: 14px;
        cursor: pointer;
        margin-right: 15px;
    }

    .radio-label input[type="radio"] {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px !important;;
        margin: 0;
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        transition: all 0.3s ease-in-out 0s;
        background-color: #fff;
        border: 1px solid #ccc;

        &:hover {
            background-color: rgb(245, 245, 245);
            border-color: #df2028;
        }
    }

    .radio-label input[type="radio"]:checked {
        background: radial-gradient(circle, #df2028 40%, transparent 45%);
        border-color: #df2028;
    }

    .regform-complete-registration__buttons__sendform {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 137px;
        min-height: 53px;
        padding: 16px 20px;
        background-color: #ed171f;
        border: 0;
        border-radius: 0;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        line-height: 21px;
        text-decoration: none;
        transition: all ease-in-out .3s;
        cursor: pointer;

        &:hover {
            background-color: #C61D23;
        }
    }

    .regform-complete-registration__buttons {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 32px;
        margin-top: 32px;
        padding-top: 40px;
        border-top: 1px solid #dedee3;

        @media (max-width: 600px) {
            margin-top: 30px;
        }
    }
    .regform-complete-registration__buttons__cancel {

        text-decoration: underline;
        color: #ed171f;
        font-size: 18px;
        font-weight: 700;
        line-height: 21px;
        cursor: pointer;

        &:hover {
            color: #C61D23;
        }
    }
    .checkbox-label {
        display: inline-flex;
        justify-content: space-between;
        gap: 8px;
        font-family: sans-serif;
        font-size: 14px;
        cursor: pointer;

        @media (max-width: 1000px) {
            align-items: baseline;
        }
    }

    .checkbox-label input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px !important;;
        margin: 0;
        transition: all 0.3s ease-in-out 0s;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        outline: none;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;

        @media (max-width: 1000px) {
            flex-shrink: 0;
            top: 7px;
        }

        &:hover {
            background-color: #df2028;
            background-color: rgb(245, 245, 245);
        }
    }

    .checkbox-label input[type="checkbox"]:checked {
        border-color: #df2028;
    }

    .checkbox-label input[type="checkbox"]:checked::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 1px;
        width: 7px;
        height: 12px;
        border: solid black;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
    .regform-inputs-terms {
        margin-top: 25px;
        margin-bottom: 25px;

        span {
            text-decoration: underline;
            color: #df2028;
        }
        .checkbox-label {
            margin-top: 8px;
        }
    }
    .regform-price-wrapper {

        border-top: 2px solid #ccc;
        padding-top: 15px;

        .regform-price__header {
            font-size: 21px;
            line-height: 26px;
            font-family: GraphikSemi,sans-serif;
            margin-bottom: 5px;
        }
    }

    .reg-terms-privacy-data-processing-terms-wrapper {
        margin-left: 28px;
    }

    .reg-terms-privacy-data-processing-terms__descr {
        font-family: sans-serif;
        font-size: 14px;
    }

    .reg-terms-privacy-data-processing-terms__subheader {
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        font-family: sans-serif;
        font-size: 14px;
    }

    .reg-terms-privacy-data-processing-terms__additional-terms-wrapper {
        margin-top: 10px;
    }

    .input-required__error-message {
        color: #df2028;
        font-size: 14px;
        margin-top: 5px;
    }

    input[type="text"].input-error,
    input[type="checkbox"].input-error,
    input[type="radio"].input-error,
    textarea.input-error {
        border-color: #fc5055;
        background-color: #ffe4e5;
    }
}

/* Keep the new panel independent of the main landing's registration styles. */
[data-registration-module] .registration-slide-block label.regform-input-descr {
    display: block;
}
[data-registration-module] .registration-slide-block [hidden] {
    display: none !important;
}
[data-registration-module] .registration-slide-block .reg-terms-privacy-data-processing-terms-wrapper {
    color: inherit;
    opacity: 1;
    line-height: 1.5;
}
[data-registration-module] .registration-slide-block .regform-inputs-wrapper input[type="email"],
[data-registration-module] .registration-slide-block .regform-inputs-wrapper input[type="tel"] {
    height: 51px;
    border: 1px solid #cbcbcc;
    background: #f5f5f5;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
}
[data-registration-module] .registration-slide-block input.input-error {
    border-color: #fc5055 !important;
    background-color: #ffe4e5 !important;
}
[data-registration-module] .registration-slide-block .reg-terms-privacy-data-processing-terms__radio_wrapper .radio-label {
    color: inherit;
}
[data-registration-module] .registration-slide-block .reg-terms-privacy-data-processing-terms__radio_wrapper input[type="radio"] {
    border-color: #ccc;
}
[data-registration-module] .registration-slide-block .reg-terms-privacy-data-processing-terms__radio_wrapper input[type="radio"]:checked {
    border-color: #df2028;
    background: radial-gradient(circle, #df2028 40%, transparent 45%);
}
[data-registration-module] .registration-slide-block [role="button"]:focus-visible,
[data-registration-module] .registration-options__item:focus-visible {
    outline: 2px solid #df2028;
    outline-offset: 4px;
}
[data-registration-module] .registration-slide-block .regform-complete-registration__buttons__sendform[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
}
