.form-wrapper.popup form .form-input {
    position: relative;
}

.form-wrapper.popup form .form-input .inputfile {
    position: absolute;
    display: block;
    width: 100%;
    opacity: 0;
    z-index: 10;
}

.form-wrapper.popup form .form-input .inputfile.custom {
    opacity: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    top: 0;
    z-index: 9;
}

.inputfile.custom svg {
    margin-right: 8px;
    text-decoration: none;
    min-width: 24px;
    max-width: 24px;
}

.inputfile.custom .text {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--lightblue);
    text-decoration: underline;
    text-underline-offset: 5px;
    display: flex;
}

.inputfile.custom .text.small {
    font-size: 10px;
    text-decoration: none;
    width: 100%;
    margin-top: 4px;
}


.file-list {
    padding-top: 42px;
    display: flex;
    flex-wrap: wrap;
}

.file-item {
    display: flex;
    flex-direction: column;

}

.file-name {
    padding: 8px;
    border: 1px solid var(--lightblue);
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.file-remove {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--lightblue);
    font-weight: bold;
    margin-left: 12px;
}

.file-icon {
    display: flex;
    align-items: center;
    margin-right: 2px;
}

.file-name span {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 12px;
}

.file-item.error .file-name {
    border-color: var(--accent);
}

.file-item.error .file-name span {
    color: var(--accent);
}

.file-item.error .file-remove {
    cursor: pointer;
}

.file-item.error .file-icon svg path {
    fill: var(--accent);
}

.file-item.error .file-remove svg path {
    stroke: var(--accent);
}

.file-error-message {
    padding-left: 8px;
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 12px;
    color: var(--accent);

}

.file-limit {
    font-family: var(--solomon);
    color: var(--lightblue);
    font-weight: 400;
    font-size: 12px;
}

.form-wrapper.popup form {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 794px;
    background: #FFFFFF;;
    border-radius: 30px;
    padding: 60px;
    z-index: 11;
}

.form-wrapper.popup.image form {
    background: var(--bg2);
}

.form-wrapper.popup.image form {
    flex-direction: row;
    max-width: 1100px;
}

.form-wrapper.popup form .modal__close {
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border: none;
    transition: all 0.3s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 1;
    z-index: 2;
}

.form-wrapper.popup.image form .form-image-background {
    width: 100%;
    min-width: 178px;
    max-width: 411px;
    background-color: var(--blue);
    margin: -60px 60px -60px -60px;
    border-radius: 30px 0 0 30px;
    position: relative;
    overflow: hidden;
}

.form-wrapper.popup.image form .form-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
    background-repeat: no-repeat;
    background-size: 125%;
    background-position-x: right;
    background-position-y: bottom;
    height: 100%;
    border-radius: 0 0 0 30px;
    z-index: 2;
}

.form-wrapper.popup.image form .form-image-background::after {
    content: "";
    display: block;
    background-color: #3C4171;
    padding-bottom: 100%;
    position: absolute;
    bottom: -3%;
    right: 8%;
    border-radius: 50%;
    width: 145%;
    height: 50%;
    z-index: 1;
}

.form-wrapper.popup.image form .form-content {
    /*width: 100%;
    min-width: 178px;
    max-width: 529px;*/
}

.form-wrapper.popup form .form-header {
    width: 100%;
    padding: 0;
    margin-bottom: 50px;
}

.form-wrapper.popup form .form-header .form-ttl {
    font-family: var(--solomon);
    font-weight: 500;
    font-size: 56px;
    line-height: 61.6px;
    text-align: center;
    padding-bottom: 16px;
    color: var(--blue);
}

.form-wrapper.popup form .form-header .form-description {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 18px;
    line-height: 23px;
    text-align: center;
    color: var(--blue);
    opacity: .7;
}

.form-wrapper.popup form .form-table {
    width: 100%;
}

.form-wrapper.popup form .form-inputs input.inputtext,
.form-wrapper.popup form .form-inputs textarea {
    width: 100%;
    border-bottom: 1px solid #1E235380;
    padding-bottom: 12px;
    outline: none;
    transition: 0.4s;
}

.form-wrapper.popup form .form-inputs input.inputtext:hover,
.form-wrapper.popup form .form-inputs textarea:hover {
    border-color: #1E2353;
    color: #1E2353;
}

.form-wrapper.popup form .placeholder {
    display: none;
}

.form-wrapper.popup form .form-input {
    padding-bottom: 32px;
}

.form-wrapper.popup form #captcha-container {
    margin-bottom: 32px;
}


.form-wrapper.popup form .form-table .bottom-btn input[type="submit"] {
    transition: 0.4s;
    font-size: 20px;
    line-height: 24.2px;
    text-align: center;
    font-family: var(--solomon);
    font-weight: 600;
    color: #FFFFFF;
    padding: 24px 50px;
    background: #FD0805;
    border: 1px solid #FD0805;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.form-wrapper.popup.image form .form-table .bottom-btn input[type="submit"] {
    width: 100%;
}

.form-wrapper.popup form .form-table .bottom-btn input[type="submit"]:hover {
    color: #FD0805;
    background: transparent;
}

.form-wrapper.popup form .bottom-btn {
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.form-wrapper.popup.image form .bottom-btn {
    flex-direction: column;
}

.form-wrapper.popup form .bottom-btn .checkbox {
    padding-left: 24px;
    display: flex;
}

.checkbox-wrapper-4 {
    display: flex;
}

.checkbox-wrapper-4 * {
    box-sizing: border-box;
}

.checkbox-wrapper-4 .cbx {

}

.checkbox-wrapper-4 .cbx:not(:last-child) {
    margin-right: 6px;
    display: flex;
}

.checkbox-wrapper-4 .cbx:hover {
}



.checkbox-wrapper-4 .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-4 .cbx span:last-child {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    color: var(--lightblue);
}

.checkbox-wrapper-4 .cbx:hover span:first-child {
    border-color: #545454;
}

.checkbox-wrapper-4 .inp-cbx {
    appearance: none;
    cursor: pointer;
    position: relative;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 4px;
    transform: scale(1);
    border: 1px solid var(--blue);
    margin-right: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 1px rgba(0, 16, 75, 0.05);
}

.checkbox-wrapper-4 .inp-cbx:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    animation: wave-4 0.4s ease;
}

.checkbox-wrapper-4 .inp-cbx:checked::after {
    content: "";
    position: absolute;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    animation: wave-4 0.4s ease;
    transform: rotate(45deg) translateY(-20%) translateX(-10%);
    width: 45%;
    height: 70%;
    top: 2px;
    left: 4px;
}


.form-wrapper.popup .confirm {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
    color: var(--lightblue);
}

.form-wrapper.popup .confirm a {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
    color: var(--deepblue);
    text-decoration: none;
    border-bottom: 1px solid var(--deepblue);
    transition: all .3s;
}

.form-wrapper.popup .confirm a:hover {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.error-fld {
    margin: 0 0 16px;
    color: red;
}

@media all and (max-width: 1150px) {
    .form-wrapper.popup.image form .form-image-background::after {
        height: 40%;
    }
}

@media all and (max-width: 1024px) {
    .form-wrapper.popup form {
        flex-direction: column;
        padding: 40px;
    }

    .form-wrapper.popup form .modal__close {
        width: 20px;
        height: 20px;
    }

    .form-wrapper.popup.image form .form-image-background {
        margin: -40px 40px -40px -40px;
    }

    .form-wrapper.popup.image form .form-image-background::after {
        bottom: -1%;
        height: 30%;
    }

    .form-wrapper.popup form .form-header {
        margin-bottom: 24px;
    }

    .form-wrapper.popup form .form-header .form-ttl {
        font-size: 28px;
        line-height: 32px;
    }

    .form-wrapper.popup form .form-header .form-description {
        font-size: 16px;
        line-height: 20px;
    }

    .form-wrapper.popup form .form-input {
        padding-bottom: 16px;
    }

    .form-wrapper.popup form #captcha-container {
        margin-bottom: 16px;
    }
    
    .checkbox-wrapper-4 .cbx span:first-child {
        width: 15px;
        height: 15px;
        min-width: 15px;
    }
    
    .checkbox-wrapper-4 .cbx span:first-child svg {
        top: 2px;
        left: 1px;
    }

    .form-wrapper.popup form .bottom-btn {
        padding-top: 24px;
    }

    .form-wrapper.popup form .form-table .bottom-btn input[type="submit"] {
        font-size: 16px;
        padding: 10px 30px;
    }
}

@media all and (max-width: 768px) {

    .form-wrapper.popup.image form .form-image-background {
        display: none;
    }

    .form-wrapper.popup form .form-header {
        margin-top: 16px;
    }

    .checkbox-wrapper-4 .cbx {
        width: 100%;
        display: inline-block;
    }

    .form-wrapper.popup form .bottom-btn {
        flex-direction: column;
    }

    .form-wrapper.popup form .bottom-btn .confirm {
        width: 100%;
        margin: 24px 0 0;
        padding: 0;
    }

}

@media all and (max-width: 640px) {
    .form-wrapper.popup form {
        padding: 30px;
    }

    .form-wrapper.popup form .form-header .form-ttl {
        font-size: 24px;
        line-height: 24px;
    }

    .form-wrapper.popup form .form-input {
        padding-bottom: 12px;
    }

    .file-list {
        padding-top: 60px;
    }

    .form-wrapper.popup form .bottom-btn {
        padding-top: 12px;
    }

    .form-wrapper.popup form .bottom-btn .confirm {
        margin: 12px 0 0;
    }

    .form-wrapper.popup .confirm, .form-wrapper.popup .confirm a {
        font-size: 12px;
    }
}

@media all and (max-width: 480px) {
    .form-wrapper.popup form {
        padding: 25px;
    }
    .form-wrapper.popup form .modal__close {
        width: 16px;
        height: 16px;
        top: 25px;
        right: 25px;
    }
    .form-wrapper.popup form .form-header .form-ttl {
        font-size: 20px;
        line-height: 24px;
    }

    .form-wrapper.popup form .form-header .form-description,
    .form-wrapper.popup form .form-input,
    .inputfile.custom .text,
    .checkbox-wrapper-4 .cbx span:last-child,
    .form-wrapper.popup form .bottom-btn .confirm,
    .form-wrapper.popup .confirm a {
        font-size: 12px;
        line-height: 16px;
    }

    .file-list {
        padding-top: 42px;
    }

}

@media all and (max-width: 360px) {
    .file-list {
        padding-top: 60px;
    }
}

@-moz-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-webkit-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-o-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

