#form {
    width: 100%;
}

#form-canvas {
    width: 100%;
    background: url('/expert2026/buy/img/form.jpg') bottom left no-repeat;
    background-size: cover;
}

#form-wrapper {}

#fields {
    width: 80%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100px;
    box-sizing: border-box;
    padding: 0 3%;
}

#form-wrapper .title-block {
    display: block;
    padding: calc(var(--point-width)/7) 0;
    padding-bottom: 0;
}

#form-wrapper .under-title-block {
    width: 100%;
    text-align: center;
    padding-top: calc(var(--point-width)/10);
    padding-bottom: calc(var(--point-width)/10);
    font-size: var(--howto-txt-desk);
}

#your-chance{
    padding-bottom: calc(var(--point-width)/10)!important;
    margin-top:0px!important;

}

.title-block-brown {
    color: #52381c;
}

#fields-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#fields-bottom input[type="text"],
#fields-bottom input[type="tel"],
#fields-bottom input[type="email"] {
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding: 0 12px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    font-size: var(--howto-txt-desk);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--gray-color);
    background: #fff;
    background-image: none;
    -webkit-appearance: none;
    appearance: none;
}

#fields-bottom input::placeholder {
    color: var(--gray-color);
    text-transform: none;
    opacity: 1;
}

#fields-bottom input:hover,
#fields-bottom input:focus {
    margin: 0;
    border: 0;
    outline: none;
    background: #fff;
}

#fio,
#phone,
#email,
#region,
#link {
    width: 100%;
}

#fields-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 2%;
}

#fields-bottom .form-field {
    width: 30%;
}

#agreement {
    margin-top: calc(var(--point-width)/7);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 20px;
}

#form #agreement input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin: 0;
    margin-top: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 4px;
    background-color: #fff;
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70% 70%;
    display: block;
    flex-shrink: 0;
    overflow: visible;
    cursor: pointer;
    line-height: normal;
    color: inherit;
    box-sizing: border-box;
}

#form #agreement input[type="checkbox"]:checked {
    background-color: #52381c;
    border-color: #52381c;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

#agreement label,
#agreement span {
    font-size: var(--howto-txt-desk);
    line-height: 1.2;
    color: #fff;
    margin-left: 20px;
    cursor: pointer;
}

#submit-wrapper {
    margin-top: calc(var(--point-width)/7);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#submit {
    width: calc(var(--point-width)*1.7);
    height: calc(var(--point-width)/4);
    text-align: center;
    font-size: calc(var(--howto-txt-desk)*1.5);
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #52381c;
    border-radius: calc(var(--point-width)/2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#fields input.is-invalid {
    outline: 2px solid #ff8a8a;
}

#form .invalid-tooltip {
    position: static;
    display: block;
    padding: 4px 0 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #ffb4b4;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    max-width: 100%;
    opacity: 1;
}

#agreement .invalid-tooltip {
    padding-top: 8px;
}

#sign {
    display: flex;
    justify-content: center;
}

#bottom-text {
    padding-bottom: calc(var(--point-width)/6) !important;
}

#bottom-text a {
    color: #fff;
    text-decoration: underline;
}

@media (min-width: 641px) {
    #form .line-white {
        margin: calc(var(--point-width)/5) auto;
    }
}

@media (max-width: 640px) {

    #form-canvas {
        background-size: auto 100%;
    }

    #fields-top {
        flex-direction: column;
    }

    #fields-bottom {
        flex-direction: column;
    }

    #fields-bottom input[type="text"],
    #fields-bottom input[type="tel"],
    #fields-bottom input[type="email"] {
        height: 40px;
        line-height: 40px;
    }

    #phone,
    #region,
    #email {
        width: 100%;
    }

    #fields-bottom .form-field {
        width: 100%;
    }

    #fields-bottom .form-field + .form-field {
        margin-top: calc(var(--point-width)/7);
    }

    #fio {
        width: 100%;
    }

    #form .line-white {
        margin: calc(var(--point-width)/3) auto;
    }


    .under-title-block {
        margin-top: calc(var(--point-width)/7);
        padding-bottom: 0 !important;
    }


}