.form {
    background: #F0F4FF;
    padding: 85px 0 120px 0;
    overflow: hidden;
}

.form .container {
    width: 980px;
    max-width: 100%;
}

.form .ttl_2 {
    margin-bottom: 50px;
    text-align: center;
}

.form_wrap {
    width: 375px;
    max-width: 100%;
    flex-shrink: 0;
}

.form_wrap label {
    width: 100%;
    padding: 8px 16px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #CFD3D4;
    line-height: 0;
    position: relative;
    padding-top: 30px;
    transition: .3s all;
}

.input-phone .input-group .phone_wrap {
    padding-top: 28px;
    position: relative;
}

.form_wrap label span {
    color: #5E6366;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    position: absolute;
    top: 8px;
    transition: .3s all;
}

.form_wrap label .input-group-btn span:not(.caret){
    position: static;
}

.form_wrap label .input-group-btn .btn-cc {
    position: static;
}

.form_wrap label .input-group-btn .btn-flag {
    position: static;
}

.form_wrap label input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    color: #5E6366;
    font-size: 16px;
}

.form_wrap .focus:not([for='phone']) span {
    top: -10px;
    left: 10px;
    padding: 0 5px;
    background: #F0F4FF;
    font-size: 15px;
    font-weight: 300;
    line-height: 18.86px;
    text-align: left;
    color: #ABAFB1;
}
.form_wrap .focus{
    padding-bottom: 0;
    padding: 19px 16px;
}


.form_wrap .focus[for='phone'] .phone_wrap span {
    top: -10px;
    left: 10px;
    padding: 0 5px;
    background: #F0F4FF;
    font-size: 15px;
    font-weight: 300;
    line-height: 18.86px;
    text-align: left;
    color: #ABAFB1;
}
.form_wrap .focus[for='phone'] .phone_wrap{
    padding-bottom: 0;
    padding: 19px 16px;
}


.form_wrap label input:focus-visible {
    outline: none;
}

.form_wrap label input::placeholder {
    color: #ABAFB1;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.form_wrap label[for='phone'] {
    padding: 0;
    border: none;
}

.form_wrap #btn-country {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #CFD3D4;
    background: transparent;
    height: 58px;
    margin-right: 6px;
}

.form_wrap #btn-country:focus {
    outline: none;
}

.form_wrap .phone_wrap {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #CFD3D4;
    height: 58px;
}

.form_wrap .btn-cc {
    color: #ABAFB1;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.form_wrap .caret {
    border: none;
    background-image: url("../img/ArrowDown.svg");
    width: 16px;
    height: 16px;
    position: relative;
    top: -2px
}

.form_wrap .form-control {
    height: 24px;
    border: none;
    box-shadow: none;
}


.form_wrap .form-control input:focus {
    border: none;
}

.form_wrap label[for='textarea'] {
    display: flex;
    flex-direction: column;
    line-height: initial;
}

.form_wrap textarea {
    border: none;
    background: transparent;
    height: 100px;
    resize: none;
    position: relative;
    margin-left: -4px;
    color: #5E6366;
    font-size: 16px;
}

.form_wrap textarea::placeholder {
    color: #ABAFB1;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.form_wrap textarea:focus {
    outline: none;
}

.form_wrap label[for='checkbox'] {
    padding: 0;
    border: none;
    text-align: center;
    margin: 25px 0 50px 0;
}

.form_wrap #checkbox {
    display: none;
}

.form_wrap label[for='checkbox'] span {
    padding-left: 45px;
    color: #2B2F32;
    text-align: right;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: relative;
    cursor: pointer;
}


.form_wrap label[for='checkbox'] span:before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 24px;
    height: 24px;
    display: flex;
    padding: 2px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #6D7DCD;
}


.form_wrap label[for='checkbox'] input[type='checkbox']:checked + span:before {
    background-image: url("../img/chehck.svg");
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
}

.form_wrap .form_btn {
    padding: 15px 69px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 300px;
    background: #FFB800;
    color: #151515;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    border: none;
    display: block;
    margin: 0 auto;
    transition: .3s all;
}

.form_wrap .form_btn:hover {
    color: #fff;
    background-color: #5681EE;
}


.form figure img {
    width: 100%;
    height: 100%;
    position: relative;
    top: -50px;
    right: -100px;
    object-fit: cover;
}

#message-ok {
    position: absolute;
    transform: translate(10px, -40px);
    color: green;
}

