.send-references-popup .send-references-popup__content {
    width: min(644px, calc(100vw - 32px));
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 48px 56px 52px;
    border-radius: 18px;
    box-sizing: border-box;
}

.send-references-popup__close {
    position: absolute;
    top: 31px;
    right: 31px;
    display: flex;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-references-popup__title {
    margin: 0 0 20px;
    color: #1c1c1c;
    font-family: Onest, Inter, Arial, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
}

.send-references-popup__subtitle {
    /* max-width: 510px; */
    margin: 0 auto 20px;
    color: #1c1c1c;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
}

.send-references-form {
    display: flex;
    flex-direction: column;
}

.send-references-form__field {
    margin-bottom: 14px;
}

.send-references-form__field:nth-of-type(3) {
    margin-bottom: 20px;
}

.send-references-form__control {
    position: relative;
    display: block;
}

.send-references-form__input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 18px 12px 8px;
    border: 0;
    /* border-bottom: 2px solid #303030; */
    box-shadow: inset 0 -1.5px 0 0 #303030;
    border-radius: 0;
    background: transparent;
    color: #1c1c1c;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    box-sizing: border-box;
    outline: none;
}


.send-references-form__input:-webkit-autofill,
.send-references-form__input:-webkit-autofill:hover,
.send-references-form__input:-webkit-autofill:focus,
.send-references-form__input:autofill {
    /* box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: inset 0 -1.5px 0 0 #303030; */
    box-shadow:
        inset 0 -1.5px 0 0 #303030,
        inset 0 0 0 1000px #fff;
    -webkit-text-fill-color: #1c1c1c;
    caret-color: #1c1c1c;
}

.send-references-form__label {
    position: absolute;
    top: 18px;
    left: 12px;
    color: #a19f9f;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    pointer-events: none;
    transform-origin: left top;
    transition: top .2s ease, transform .2s ease, color .2s ease;
}

.send-references-form__input:focus+.send-references-form__label,
.send-references-form__input:-webkit-autofill+.send-references-form__label,
.send-references-form__input:autofill+.send-references-form__label,
.send-references-form__input:not(:placeholder-shown)+.send-references-form__label {
    top: 3px;
    color: #6e6e6e;
    transform: scale(.78);
}

.send-references-form__field.is-error .send-references-form__input {
    border-color: #c93b2b;
}

.send-references-form__upload {
    margin-bottom: 32px;
}

.send-references-form__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.send-references-form__dropzone {
    display: flex;
    min-height: 158px;
    padding: 12px 16px 16px;
    border: 2px dashed #e2e2e2;
    border-radius: 16px;
    background: #fbfbfb;
    color: #6e6e6e;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.send-references-form__dropzone.is-dragover,
.send-references-form__dropzone:hover {
    border-color: #4a6345;
    background: #f8faf7;
}

.send-references-form__upload.is-error .send-references-form__dropzone {
    border-color: #c93b2b;
}

.send-references-form__dropzone-icon {
    display: flex;
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
}

.send-references-form__dropzone-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.send-references-form__dropzone-title {
    /* max-width: 390px; */
    margin-bottom: 8px;
    color: #6e6e6e;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
}

.send-references-form__dropzone-note {
    margin-bottom: 12px;
    color: #6e6e6e;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
}

.send-references-form__choose {
    display: flex;
    width: 160px;
    height: 32px;
    padding: 8px;
    border: 2px solid #4a6345;
    border-radius: 12px;
    color: #4a6345;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.send-references-form__files {
    display: flex;
    min-height: 0;
    margin-top: 8px;
    gap: 7px;
    flex-wrap: wrap;
}

.send-references-form__files:empty {
    display: none;
}

.send-references-form__file {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 6px;
    background: #f5f5f5;
    overflow: hidden;
}

.send-references-form__file-preview {
    display: flex;
    width: 100%;
    height: 67px;
    background: #e1e1e1;
    color: #8a8a8a;
    align-items: center;
    justify-content: center;
}

.send-references-form__file-preview>img:not(.send-references-form__file-pdf) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.send-references-form__file-pdf {
    display: block;
    width: 35px;
    height: 43px;
}

.send-references-form__file-icon {
    display: flex;
    width: 35px;
    height: 43px;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-family: Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.send-references-form__file-name {
    display: block;
    height: 23px;
    padding: 6px 10px;
    overflow: hidden;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    background: #f7f7f7;
    color: #1c1c1c;
    font-family: Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.send-references-form__file-size {
    display: none;
}

.send-references-form__file-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    display: flex;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 40px;
    background: rgba(255, 255, 255, .6);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.send-references-form__file-remove:hover,
.send-references-form__file-remove:focus-visible {
    background: rgba(255, 255, 255, .9);
    transform: scale(1.05);
}

.send-references-form__submit {
    display: flex;
    width: 100%;
    height: 56px;
    margin: 0 0 22px;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: #4a6345;
    color: #f7f7f7;
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.send-references-form__submit:hover,
.send-references-form__submit:focus-visible {
    background: #40583c;
}

.send-references-form__submit:active {
    transform: translateY(1px);
}

.send-references-form__submit:disabled {
    opacity: .65;
    cursor: default;
}

.send-references-form__agree {
    margin-bottom: 16px;
}

.send-references-form__checkbox {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    color: #6e6e6e;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    cursor: pointer;
    align-items: start;
}

.send-references-form__checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.send-references-form__checkbox-custom {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    border: 2px solid #8d8d8d;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.send-references-form__checkbox-custom::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    width: 7px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: rotate(45deg) scale(.6);
    transition: opacity .18s ease, transform .18s ease;
}

.send-references-form__checkbox input:checked+.send-references-form__checkbox-custom {
    border-color: #4a6345;
    background: #4a6345;
    transform: scale(1.03);
}

.send-references-form__checkbox input:checked+.send-references-form__checkbox-custom::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.send-references-form__checkbox input:focus-visible+.send-references-form__checkbox-custom {
    outline: 2px solid rgba(74, 99, 69, .35);
    outline-offset: 3px;
}

.send-references-form__checkbox-text a {
    color: #4a6345;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.send-references-form__captcha {
    display: flex;
    min-height: 102px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.send-references-form__error--captcha {
    display: block;
    margin: 0 0 8px;
    text-align: center;
}

.send-references-form__server-error {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff1ee;
    color: #c93b2b;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-line;
}

.send-references-form__error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #c93b2b;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.25;
}

.send-references-form__field:not(.is-error) .send-references-form__error,
.send-references-form__upload:not(.is-error)>.send-references-form__error,
.send-references-form__agree:not(.is-error)>.send-references-form__error,
.send-references-form__captcha:not(.is-error)>.send-references-form__error {
    display: none;
}

@media (max-width: 639px) {
    .send-references-popup .send-references-popup__content {
        padding: 44px 24px 40px;
    }

    .send-references-popup__title {
        font-size: 22px;
        font-weight: 400;
    }

    .send-references-popup__subtitle {
        font-size: 14px;
        font-weight: 300;
    }

    .send-references-form__files {
        gap: 8px;
    }

    .send-references-form__checkbox {
        gap: 12px;
    }

    .send-references-popup .send-references-popup__content {
        padding: 32px 16px 24px 16px;
    }

    .send-references-form__input {
        box-shadow: inset 0 -1px 0 0 #303030;
    }


    .send-references-form__input:-webkit-autofill,
    .send-references-form__input:-webkit-autofill:hover,
    .send-references-form__input:-webkit-autofill:focus,
    .send-references-form__input:autofill {
        /* box-shadow: inset 0 -1px 0 0 #303030; */

        box-shadow:
            inset 0 -1px 0 0 #303030,
            inset 0 0 0 1000px #fff;
    }

    .send-references-form__submit {
        font-size: 16px;
        font-weight: 400;
    }

    .send-references-form__checkbox {
        font-size: 13px;
    }

    .send-references-form__dropzone-title {
        display: none;
    }

    .send-references-form__file {
        width: 62px;
        height: 62px;
    }

    .send-references-form__files {
        gap: 4.5px;
    }

    .send-references-popup .send-references-popup__content {
        width: 100%;
    }

    .send-references-form__file-name {
        height: 17px;
        padding: 4px 2px;
    }

    .send-references-form__file-preview {
        height: 45px;
    }

}

@media (min-width: 640px) and (max-width: 1279px) {

    .send-references-popup__title {
        font-size: 24px;
    }

    .send-references-popup__subtitle {
        margin: 0 auto 14px;
        line-height: 131%;
    }

    .send-references-popup .send-references-popup__content {
        padding: 40px 28px 28px 28px;
    }

    .send-references-form__file {
        width: 90px;
        height: 90px;
    }

    .send-references-form__files {
        gap: 8.5px;
    }

    .send-references-form__input {
        box-shadow: inset 0 -1px 0 0 #303030;
    }

    .send-references-form__input:-webkit-autofill,
    .send-references-form__input:-webkit-autofill:hover,
    .send-references-form__input:-webkit-autofill:focus,
    .send-references-form__input:autofill {
        /* box-shadow: inset 0 -1px 0 0 #303030; */
        box-shadow:
            inset 0 -1px 0 0 #303030,
            inset 0 0 0 1000px #fff;
    }

    .send-references-form__dropzone-title {
        font-size: 14px;
    }

    .send-references-form__submit {
        font-size: 16px;
        font-weight: 400;
    }

}

@media (min-width: 1280px) and (max-width: 1919px) {

    .send-references-popup__title {
        font-size: 32px;
    }

    .send-references-form__dropzone-title {
        font-size: 14px;
    }

}