html.-no-scroll {
    overflow: hidden;
}

#popup {
    display: none;

    .popup__contact-form-policy {
        font-family: "Roboto";
        font-size: 20px;
        font-weight: 300;
        line-height: 28px;
        margin-top: 20px;
        margin-bottom: 20px;

        a {
            color: rgba(184, 93, 58, 1);
            text-decoration: underline;

            &:hover {
                text-decoration: none;
            }
        }

        label {
            align-self: center;
            display: flex;
            flex-direction: row;
            gap: 10px;
            font-family: "Roboto";
            font-size: 16px;
            font-weight: 300;
            line-height: 22px;

            a {
                color: rgba(184, 93, 58, 1);
                text-decoration: underline;

                &:hover {
                    text-decoration: none;
                }
            }
        }

        input[type="checkbox"] {
            width: 20px;
            height: 20px;
            min-width: 20px;
            min-height: 20px;
            box-sizing: border-box;
            border-radius: 4px;
            background-color: #fff;
            border: 1px solid rgba(184, 93, 58, 1);
            -webkit-appearance: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease-in-out;

            &:before {
                width: 15px;
                height: 15px;
                content: "";
                display: block;
                background-image: url("/static/images/icons/check.svg");
                background-position: center center;
                background-repeat: no-repeat;
                background-size: contain;
            }

            &:checked {
                background-color: rgba(184, 93, 58, 1);
            }
        }
    }

    .popup__overlay {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(67, 87, 122, 0.4);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 32px;
        overflow-y: auto;
    }

    .popup__popup {
        background: #fff;
        border-radius: 4px;
        box-sizing: border-box;
        padding: 26px;
        width: 100%;
        max-width: 800px;
        position: relative;
        transition: margin-top 0.1s cubic-bezier(0, 0.82, 0.55, 1), opacity 0.1s ease-out;
    }

    .popup__popup-close {
        width: 40px;
        height: 40px;
        background: no-repeat center center url("/static/images/icons/close.svg");
        background-size: cover;
        position: absolute;
        right: 20px;
        top: 20px;
        cursor: pointer;
    }

    .popup__popup-tabs {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        gap: 1px;
        margin: 40px 0 30px 0;
        padding: 0;
        justify-content: center;

        a {
            box-sizing: border-box;
            background: rgba(153, 180, 207, 1);
            display: block;
            padding: 8px 20px;
            color: rgba(255, 255, 255, 1);
            font-family: "Roboto";
            font-size: 20px;
            font-weight: 400;
            line-height: 36px;
            text-decoration: none;

            &.-active {
                background: rgba(173, 52, 8, 1);
            }

            
        }

        li {
            &:first-child a {
                border-top-left-radius: 5px;
                border-bottom-left-radius: 5px;
            }

            &:last-child a {
                border-top-right-radius: 5px;
                border-bottom-right-radius: 5px;
            }
        }
    }

    .popup__popup-content-body {
        padding: 0 40px;
        color: rgba(23, 32, 48, 1);
    }

    .popup__popup-content-title {
        color: rgba(184, 93, 58, 1);
        padding: 0 0 20px;
        text-align: center;
        border-bottom: 1px solid rgba(184, 93, 58, 1);
    }

    .popup__popup-content-footer {
        padding-top: 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .popup__form-field {
        max-width: 500px;
        margin: 0 auto;

        input, textarea {
            width: 100%;
            background: #fff;
        }

        input[type="text"] {
            outline: none;
            box-sizing: border-box;
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: 1px solid rgba(153, 180, 207, 1);
            color: rgba(23, 32, 48, 1);
            font-family: "Roboto";
            font-size: 24px;
            font-weight: 300;
            line-height: 36px;
            padding: 10px;
            max-width: 500px;
            display: block;
            width: 100%;

            &.-error {
                border-bottom: 1px solid rgba(255, 81, 81, 1);
                color: rgba(255, 81, 81, 1);
            }

            &::placeholder {
                color: rgba(23, 32, 48, 0.5);
                font-family: "Roboto";
                font-size: 24px;
                font-weight: 300;
                line-height: 36px;
            }
        }
    }

    .popup__form-field-error {
        color: rgba(255, 81, 81, 1);
        font-family: "Roboto";
        font-size: 16px;
        font-weight: 300;
        line-height: 22px;
        padding: 0 10px;
        margin-top: 12px;
        min-height: 22px;
        text-align: center;
    }

    .popup__popup-content {
        display: none; 

        .popup__popup-content-container {
            font-family: "Roboto";
            font-size: 20px;
            font-weight: 300;
            line-height: 28px;

            a {
                color: rgba(184, 93, 58, 1);
                text-decoration: underline;

                &:hover {
                    text-decoration: none;
                }
            }
        }

        &.-welcome {
            .popup__popup-content-container {
                text-align: center;
            }
        }

        &.-code {
            text-align: center;
        }
    }

    .popup__popup-content-wrapper {
        &.-welcome {
            .-welcome {
                display: block;
            }
        }

        &.-code {
            .-code {
                display: block;
            }
        }
    }

    .popup__code-form-field {
        display: flex;
        flex-direction: row;
        gap: 16px;
        margin-top: 50px;


        input {
            text-align: center;
            outline: none;
            box-sizing: border-box;
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: 1px solid rgba(153, 180, 207, 1);
            color: rgba(249, 116, 26, 1);
            font-family: "Roboto";
            font-size: 32px;
            font-weight: 700;
            line-height: 36px;
            padding: 10px;
            max-width: 500px;
            display: block;
            width: 100%;
            margin: 0 auto;
            -moz-appearance: textfield;
            background: #fff;

            &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }

            &[disabled] {
                opacity: 0.6;
                cursor: default;
            }
        }
    }

    .popup__code-form-field-error {
        color: rgba(255, 81, 81, 1);
        font-family: "Roboto";
        font-size: 16px;
        font-weight: 300;
        line-height: 22px;
        padding: 0 10px;
        margin-top: 12px;
        min-height: 22px;
        text-align: center;
        display: none;
    }

    .popup__code-form-note {
        color: rgba(23, 32, 48, 1);
        font-family: "Roboto";
        font-size: 20px;
        font-weight: 300;
        line-height: 28px;
        text-align: center;
        margin: 30px 0 40px 0;
    }
}

@media only screen and (max-width: 600px) {
    #popup {
        .popup__overlay {
            padding: 0;
            align-items: start;
        }

        .popup__popup-content-body {
            padding: 0;
        }
    }
}