#form {
    overflow: hidden;
}

body.dark .form_block {
    background-image: url(../assets/paper_black.jpg);
    background-size: cover;
}

body.dark .form_block:before {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

body.dark .form_block:after {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

body.dark .petlya {
    opacity: 0.1;
}

body.dark .form_border:before {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

body.dark .block_email {
    background: linear-gradient(180deg, #252525 0%, #141414 100%);
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

body.dark .form_border:after {
    background: linear-gradient(180deg, #877751 0%, #69582A 63.5%, #8B7336 79%, #65562F 98.5%);
}

body.dark .section-emailtg {
    background: linear-gradient(180deg, #252525 0%, #141414 100%);
}

body.dark .block_email_border {
    background: #877751;
}

body.dark .step {
    color: #F5F5F5;
}

body.dark .form-group input {
    background: #454545;
    color: #E0E0E0;
}

body.dark input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    background: #BD9C49 !important;
}

body.dark input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
    background: #BD9C49 !important;
}

body.dark .red-text {
    background: linear-gradient(180deg, #BD9C49 0%, #E6B843 63.5%, #EECE7F 79%, #8C7845 98.5%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.form_block {
    background-image: url(../assets/white-paper.jpg);
    width: 100%;
    background-position: center;
    background-size: contain;
    box-shadow: 0px 2px 6px 2px #00000026;
    position: relative;
    z-index: 2;
}

.form_block:before {
    content: "";
    position: absolute;
    bottom: 23px;
    width: 100%;
    left: 0;
    height: 2px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.form_block:after {
    content: "";
    position: absolute;
    top: 19px;
    width: 100%;
    left: 0;
    height: 2px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.form_inblock {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
    flex-direction: column;
    padding: 112px 0 115px;
    gap: 48px;
}

.form_border {
    position: relative;
    width: 100%;
    height: 100%;
}

.form_border:before {
    content: "";
    position: absolute;
    bottom: 15px;
    width: 100%;
    left: 0;
    height: 4px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.form_border:after {
    content: "";
    position: absolute;
    top: 9px;
    width: 100%;
    left: 0;
    height: 6px;
    background: linear-gradient(270deg, #4D4336 0.05%, #714A27 63.49%, #8B6849 78.97%, #5E5548 98.45%);
}

.flag_reg {
    position: absolute;
    top: 12px;
    left: 40px;
    z-index: 2;
    display: block;
}

.form_text_block {
    width: fit-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 64px;
    text-align: center;
}

.registration {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    margin: 0 auto;
    padding: 0 64px;
}

.control-label {
    padding-left: 8px;
}

.bonuses {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.bonuses img {
    border-radius: 4px;
}

.form_title {
    text-align: center;
}

#signup-form {
    max-width: 491px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.block_email {
    max-width: 810px;
    background: linear-gradient(0deg, #FFFFFF, #FFFFFF);
    box-shadow: 0px 2px 6px 4px #00000026;
    border-radius: 30px;
    padding: 16px;
}

.block_email_border {
    background: linear-gradient(180deg, #4D4336 0%, #714A27 63.5%, #AA8E75 79%, #5E5548 98.5%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 3px;
}

.section-emailtg {
    background: linear-gradient(0deg, #FFFFFF, #FFFFFF);
    border-radius: 17px;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 45px;
}

.section-emailtg:after {
    content: "";
    position: absolute;
    bottom: 4px;
    height: calc(100% - 10px);
    left: 4px;
    border: 1px dotted #997759;
    border-radius: 16px;
    width: calc(100% - 10px);
    pointer-events: none;
}

.form-group {
    position: relative;
    width: 100%;
}

.select select {
    width: 100%;
    height: 56px;
    padding: 16px 32px;
    border-radius: 5px;
    background-color: var(--primary-white);
    box-shadow: #00000040 0px 2px 4px 0px inset;
    font-family: Evolventa;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: var(--grey-60);
}

.form-group input {
    font-family: Evolventa;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: var(--grey-60);
    width: 100%;
    height: 56px;
    padding: 16px 32px;
    border-radius: 5px;
    background-color: var(--primary-white);
    box-shadow: #00000040 0px 2px 4px 0px inset;
}

.input-button {
    position: absolute;
    right: 32px;
    top: 16px;
    font-size: 20px;
    cursor: pointer;
    color: var(--grey-70);
    transition: .2s linear;
}

.input-group {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.width-auto {
    border-radius: 5px;
    background-color: var(--primary-white);
    box-shadow: #00000040 0px 2px 4px 0px inset;
    height: 56px;
    width: 100px;
    text-align: center !important;
}

.recapcha_shadows {
    box-shadow: #00000040 0px 2px 4px 0px inset;
    border-radius: 5px;
}

#form-signup {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#form-signup__modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    position: absolute;
    top: 3px;
    left: 3px;
    display: inline-block;
    content: "";
    width: 12px;
    height: 12px;
    border: var(--primary-white) solid 2px;
    background: var(--red-70);
    border-radius: 3px;
}

input[type="checkbox"]::after,
input[type="radio"]::after {
    display: inline-block;
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid var(--grey-50);
    background: var(--primary-white);
    transition: .2s linear;
    border-radius: 3px;
}

input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
    background: var(--red-70);
}

.help-block {
    font-size: 14px;
    line-height: 16px;
}

.has-error .help-block {
    color: var(--red-70);
}

.checkbox {
    display: flex;
    flex-direction: row-reverse;
}

.checkbox label {
    font-family: Evolventa;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.001em;
    text-align: left;
    display: flex;
    gap: 5px;
    position: static;
    width: 100%;
    height: auto;
}

input[type="checkbox"] {
    width: 20px;
    height: 15px;
    min-width: 20px;
    border: none;
    background: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
}

.step {
    font-family: Jost;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--primary-black);
}

.red-text {
    color: var(--red-70);
}

.form_disclamer {
    font-family: Evolventa;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: var(--grey-80);
}

.email-tg {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 12px;
}

.align_center {
    display: flex;
    justify-content: center;
}

.pad-8 {
    padding-bottom: 8px;
}

.pad-13 {
    padding-bottom: 13px;
}

.pad-16 {
    padding-bottom: 16px;
}

.pad-32 {
    padding-bottom: 32px;
}

.pad-40 {
    padding-bottom: 40px;
}

.mar-40 {
    margin-bottom: 40px;
}

.pad-24 {
    padding-bottom: 24px;
}

.form_disclamer {
    padding-top: 40px;
}

.flag_reg_parent {
    position: relative;
}

.flag_reg_text {
    font-family: Colus;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
    color: var(--grey-10);
    height: 29px;
    width: 110px;
    position: absolute;
    transform: rotate(-90deg);
    top: 132px;
    left: 70px;
}

.petlya {
    display: block;
    position: absolute;
}

.petlyal {
    bottom: 61px;
    left: 23px;
}

.form_titlereg  {
    text-align: center;
}

.petlyar {
    bottom: 61px;
    right: 23px;
    transform: rotate(-90deg);
}

.petlyalt {
    top: 42px;
    left: 23px;
    transform: rotate(88deg);
}

.petlyart {
    top: 42px;
    right: 23px;
    transform: rotate(182deg);
}

@media (max-width: 1600px) {
    .flag_reg {
        display: none;
    }

    .petlya {
        display: none;
    }
}

@media (max-width: 1100px) {
    .registration {
        flex-direction: column-reverse;
    }

}

@media (max-width: 920px) {
    .form_text_block {
        padding: 0 32px;
    }

    .form_p {
        text-align: center;
    }

    .registration {
        padding: 0 32px;
    }

    .section-emailtg {
        padding: 22px;
    }

    .form_titlereg {
        text-align: left;
        font-size: 32px;
        line-height: 36px;
    }

    .noth3 {
        font-size: 28px;
        font-weight: 600;
        line-height: 36px;
    }

    .bonuses img {
        width: 48px;
        height: 48px;
    }

    .emailcheck {
        margin-top: 8px;
    }

    .registration {
        gap: 62px;
    }

    #signup-form {
        max-width: 100%;
        gap: 16px;
    }

    .align_center {
        justify-content: left;
    }
}

@media (max-width: 740px) {
    .email-tg {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 599px) {
    .form_text_block {
        padding: 0 16px;
    }

    .form_inblock {
        padding: 52px 0 50px;
        gap: 32px;
    }

    .form_p {
        font-size: 18px;
        font-weight: 400;
        line-height: 24px;
        text-align: center;
    }

    .registration {
        padding: 0 16px;
    }



    .form_titlereg {
        text-align: left;
        font-size: 20px;
        line-height: 36px;
        font-weight: 400;
    }

    .form_regtitle {
        font-size: 32px;
        font-weight: 400;
        line-height: 36px;
        text-align: center;
    }

    .pad-32 {
        padding-bottom: 16px;
    }

    .noth3 {
        font-size: 18px;
        font-weight: 600;
        line-height: 20px;
    }

    .form_send {
        font-size: 14px;
        line-height: 20px;
        text-align: left;
    }

    .bonuses img {
        width: 32px;
        height: 32px;
    }

    .bonuses {
        gap: 4px;
    }

    .emailcheck {
        margin-top: 0px;
    }

    .form_disclamer {
        font-size: 14px;
        line-height: 20px;
        padding: 24px 0 0;
    }

    .registration {
        gap: 52px;
    }

    .align_center {
        justify-content: center;
    }
}