.main-wrapper {
    font-family: 'Roboto', sans-serif;
    padding: 30px 15px;
}

.block {
    border-radius: 10px;
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 10px;
}

    .block p {
        font-size: 14px;
        color: #5E5E5E;
        letter-spacing: 0.2px;
        line-height: 1.5;
    }

.block-image img {
    width: 100%;
    height: 230px;
    object-fit: scale-down;
    object-position: center;
    border-radius: 10px 10px 0 0;
}

.block-content {
    padding: 12px;
}

.block .block-maintitle {
    font-weight: normal;
    margin: 0 0 5px;
}

.block .block-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    color: #000000;
}

.footnote {
    position: relative;
}

    .footnote::after {
        content: '*';
        color: #E25241;
        margin-left: 5px;
    }

.block-form {
    margin-top: 15px;
}

.block-input__wrapper {
    margin-bottom: 10px;
}

.block-checkbox {
    display: block;
}

    /* для элемента input c type="radio" */
    .block-checkbox > input {
        position: absolute;
        z-index: -1;
        opacity: 0;
    }

    /* для элемента label связанного с .block-checkbox */
    .block-checkbox > span {
        display: inline-flex;
        align-items: center;
        user-select: none;
    }

        /* создание в label псевдоэлемента  before со следующими стилями */
        .block-checkbox > span::before {
            background-color: #fff;
            content: '';
            display: inline-block;
            width: 1em;
            height: 1em;
            flex-shrink: 0;
            flex-grow: 0;
            border: 1px solid #C3C3C3;
            border-radius: 50%;
            margin-right: 0.5em;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: 50% 50%;
        }

    .block-checkbox > input[type="checkbox"] + span::before {
        border-radius: 0;
    }

    /* стили для радиокнопки, находящейся в состоянии checked */
    .block-checkbox > input[type="radio"]:checked + span::before {
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e");
    }

    .block-checkbox > input[type="checkbox"]:checked + span::before {
        background-color: #fff;
        background-image: url("../img/done.svg");
    }

.input-field {
    width: 100%;
    position: relative
}

    .input-field input,
    .input-field textarea {
        background: #F8F8F8;
        padding: 15px;
        border-radius: 3px;
        border: 0;
        width: 100%;
        box-sizing: border-box;
        transition: all .3s ease;
        font-size: 14px;
    }

        .input-field input::placeholder,
        .input-field textarea::placeholder {
            color: #373636;
        }

    .input-field::after {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .input-field.success::after {
        content: url('../img/success.svg');
    }

    .input-field.error {
    }

        .input-field.error::after {
            content: url('../img/error.svg');
        }

.flex {
    display: flex;
}

.align-center {
    align-items: center
}

.block-form .nice-select {
    float: none;
    border: 0;
    background: #F8F8F8;
    padding: 15px;
    border-radius: 3px;
    line-height: normal;
    height: 48px;
}

    .block-form .nice-select:after {
        border-bottom: 1px solid #000;
        border-right: 1px solid #000;
        right: 16px;
    }

    .block-form .nice-select.open .list {
        width: 100%;
    }

    .block-form .nice-select .current {
        color: #373737;
        font-weight: 500;
        transition: all .3s ease;
    }

        .block-form .nice-select .current.active {
            color: #000;
        }

.block-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}



.block-circle {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all .3s ease;
}

    .block-circle:hover {
        filter: brightness(0.9);
    }

    .block-circle.selected {
        filter: brightness(0.8);
    }

.after-blocks {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

    .after-blocks button {
        width: 300px;
        padding: 15px;
        border-radius: 10px;
        border: 0;
        color: #fff;
        cursor: pointer;
    }

    .after-blocks p {
        margin: 0;
        text-align: center;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.18);
        line-height: 1.35;
        max-width: 560px
    }

.main-wrapper.blue {
    background-color: var(--blue-bg-color);
    padding: 30px 15px;
}

:root {
    --blue-bg-color: #E4F4FD;
    --blue-text-color: #1F5796;
    --pink-bg-color: #F1E6F4;
    --pink-text-color: #702A9C;
    --green-bg-color: #EAF4EA;
    --green-text-color: #457B3B;
    --yellow-bg-color: #F5F5F5;
    --yellow-text-color: #E78537;
    --black-bg-color: #262626;
    --black-text-color: #333333;
}

/*DEFAULT*/
.main-wrapper {
    background-color: #F5F5F5;
}

.block-maintitle {
    color: var(--blue-text-color);
}

.block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--blue-text-color);
}

.block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--blue-text-color);
}

.after-blocks button {
    background-color: var(--blue-text-color);
}

/*BLUE*/
.main-wrapper.blue {
    background-color: var(--blue-bg-color);
}

.blue .block-maintitle {
    color: var(--blue-text-color);
}

.blue .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--blue-text-color);
}

.blue .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--blue-text-color);
}

.blue .after-blocks button {
    background-color: var(--blue-text-color);
}

/*PINK*/
.main-wrapper.pink {
    background-color: var(--pink-bg-color);
}

.pink .block-maintitle {
    color: var(--pink-text-color);
}

.pink .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--pink-text-color);
}

.pink .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--pink-text-color);
}

.pink .after-blocks button {
    background-color: var(--pink-text-color);
}

/*GREEN*/
.main-wrapper.green {
    background-color: var(--green-bg-color);
}

.green .block-maintitle {
    color: var(--green-text-color);
}

.green .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--green-text-color);
}

.green .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--green-text-color);
}

.green .after-blocks button {
    background-color: var(--green-text-color);
}

/*YELLOW*/
.main-wrapper.yellow {
    background-color: var(--yellow-bg-color);
}

.yellow .block-maintitle {
    color: var(--yellow-text-color);
}

.yellow .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--yellow-text-color);
}

.yellow .block-circle {
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--yellow-text-color);
}

.yellow .after-blocks button {
    background-color: var(--yellow-text-color);
}

/*BLACK*/
.main-wrapper.black {
    color: #fff;
    background-color: var(--black-bg-color);
}

.black .block {
    background-color: var(--black-text-color);
}

    .black .block p {
        color: #A3A3A3;
    }

    .black .block .block-title {
        color: #FFF;
    }

.black .input-field input, .black .input-field textarea {
    background: #4A4A4A;
    color: #fff;
}

.black .after-blocks p {
    color: rgba(255, 255, 255, 0.18);
}

.input-field input:focus, .input-field textarea:focus {
    outline: none;
    border: 1px solid #4495EC;
}

.black .block-form .nice-select {
    background: #4A4A4A;
}

    .black .block-form .nice-select:after {
        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
        right: 16px;
    }

    .black .block-form .nice-select.open .list {
        background: #4A4A4A;
        color: #fff;
    }

.black .nice-select .option.focus, .black .nice-select .option.selected.focus, .black .nice-select .option:hover {
    background: #686767;
}

.black .block-form .nice-select .current.active {
    color: #fff;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

    .lds-dual-ring:after {
        content: " ";
        display: block;
        width: 50px;
        height: 50px;
        margin: 8px;
        border-radius: 50%;
        border: 6px solid pink;
        border-color: pink transparent pink transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }


.requiredempty {
    border: 1px solid red !important;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
