.frw-container {
    width: 100%;
}

.frw-container .frw-wrapper {
    width: 95%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#mainwrapper{
    display: flex;
    justify-content: center;
}

#mainform {
    visibility: hidden;
    width: 80%;
    padding: 20px !important;
}

#mainform a{
    color: #000000;
    text-decoration: underline;
}

#mainform .form-row {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    padding: 7px 0;
}

#mainform .form-row-title {
    /*margin: 0 0 10px 0;*/
    font-weight: 600;
    font-size: 14px;
    color: #595959;
    line-height: 2;
}

.form-row-title span {
    color: red;
    font-weight: 600;
}

#mainform .form-row-title label {
    /*display: flex;*/
    /*flex-wrap: wrap;*/
}

#mainform .row-multy {
    flex-direction: column;
    align-items: start;
}

#mainform .row-consent {
    justify-content: start;
    flex-wrap: nowrap;
}

#mainform .row-subblock {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#mainform .files .files-notify {
    font-size: 13px;
    color: #747474;
    font-style: italic;
    padding: 7px 0;
}

#mainform .files .files-error {
    padding: 7px 0;
}

#mainform .files li {
    margin: 0 0 0 15px;
    font-size: 13px;
    color: #ef9999;
}

#mainform .row-subblock input, #mainform .row-subblock select, #mainform .row-subblock textarea {
    margin: 5px 5px 2px 0;
}

#mainform .dynamic-row {
    /* border: 1px solid #e9e9e9; */
    border-radius: 4px;
    padding: 5px;
    margin: 10px 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    box-shadow: 0px 0px 3px 0px #414141;
}

#mainform .dynamic-row .first-block {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#mainform .dynamic-row .second-block {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#mainform .dynamic-row:last-child {
    margin: 0;
}

#mainform .dynamic-row:nth-child(2n-1) {
    /*background-color: #f5faff;*/
}

#mainform .dynamic-row .dynamic_number {
    width: 100%;
    text-align: start;
    font-size: 13px;
}

#mainform .row-subblock .dynamic-btn-block {
    margin: 10px 0 10px auto;
}

#mainform .row-subblock .dynamic-btnadd, #mainform .row-subblock .dynamic-btnremove {
    width: 35px;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid grey;
    background-color: #f5faff;
}

#mainform .row-subblock .dynamic-btnremove {
    background-color: #f8e1e1;
}

#mainform .row-subblock .dynamic-btnremove:hover {
    background-color: #fcc3c3;
    transition: 0.3s;
}

#mainform .row-subblock .dynamic-btnadd:hover {
    background-color: #cadcee;
    transition: 0.3s;
}

#mainform .row-subblock .dynamic-btnadd {
    margin: 0 5px;
}

#mainform .row-subblock select {
    height: 28px;
}

#mainform .row-subblock label {
    margin: 0 4px 0 0;
}

/* Поездки в другие страны + работа в других странах, военные операции */

#mainform .trip .first-block input:nth-child(1),
#mainform .work .first-block input:nth-child(1),
#mainform .trip .first-block input:nth-child(2),
#mainform .work .first-block input:nth-child(2),
#mainform .military .first-block input:nth-child(1) {
    flex: 1 0 160px;
}

#mainform .trip .second-block select:nth-child(1),
#mainform .trip .second-block select:nth-child(3),
#mainform .trip .second-block input:nth-child(2),
#mainform .trip .second-block input:nth-child(4),
#mainform .work .second-block select:nth-child(1),
#mainform .work .second-block select:nth-child(3),
#mainform .work .second-block input:nth-child(2),
#mainform .work .second-block input:nth-child(4),
#mainform .military .second-block select:nth-child(1),
#mainform .military .second-block select:nth-child(3),
#mainform .military .second-block input:nth-child(2),
#mainform .military .second-block input:nth-child(4) {
    flex: 0 0 110px;
}

/* Сведения о родственниках */

#mainform .relatives input {
    margin-left: 0;
}

#mainform .relatives .dynamic-row select:nth-child(2) {
    flex: 0 0 130px;
}

#mainform .relatives .dynamic-row input:nth-child(3),
#mainform .relatives .dynamic-row input:nth-child(4),
#mainform .relatives .dynamic-row input:nth-child(5) {
    flex: 1 0 25%;
    min-width: 160px;
}

#mainform .relatives .dynamic-row input:nth-child(6),
#mainform .relatives .dynamic-row input:nth-child(7) {
    flex: 1 0 30%;
    min-width: 160px;
}

#mainform .relatives .dynamic-row input:nth-child(8) {
    flex: 1 0 10%;
    min-width: 10px;
}

#mainform .relatives .dynamic-row select:nth-child(9) {
    flex: 0 0 125px;
}

/* Место рождения */

#mainform .birthplace .row-subblock input:nth-child(1),
#mainform .education .row-subblock input:nth-child(2) {
    flex: 1 0 15%;
    min-width: 160px;
}

#mainform .birthplace .row-subblock input:nth-child(2),
#mainform .education .row-subblock input:nth-child(3) {
    flex: 1 0 35%;
    min-width: 160px;
}

#mainform .birthplace .row-subblock input:nth-child(3),
#mainform .education .row-subblock input:nth-child(4) {
    flex: 1 0 30%;
    min-width: 160px;
}

/* Адрес фактического проживания */

#mainform .address input:first-child, #mainform .factaddress input:first-child {
    flex: 1 0 24%;
    margin-left: 0;
}

#mainform .address input:nth-child(2), #mainform .factaddress input:nth-child(2) {
    flex: 1 0 64%;
}

#mainform .address input:nth-child(3), #mainform .factaddress input:nth-child(3) {
    flex: 1 0 30%;
}

#mainform .address input:nth-child(4), #mainform .factaddress input:nth-child(4) {
    flex: 1 0 30%;
}

/* ФИО */

#mainform .fio input:first-child {
    margin-left: 0;
}

#mainform .fio input {
    flex: 1 0 150px;
}

/*ФИО предыдущее*/

#mainform .previousfio input:first-child {
    margin-left: 0;
}

#mainform .previousfio input {
    flex: 1 0 150px;
}

/* Дата рождения */
#mainform .date input {
    flex: 0 0 150px;
}

/* Гражданство */
#mainform .citizen input:first-child {
    flex: 1 0 100%;
}

/* Второе гражданство */

#mainform .citizen_other .row-subblock input {
    flex: 1 0 250px;
}

#mainform .form-row-title {
    /*margin: 0 0 10px 0;*/
    font-weight: 600;
    font-size: 14px;
    color: #595959;
    line-height: 2;
}

.form-row-title span {
    color: red;
    font-weight: 600;
}

/* паспортные данные */

#mainform .passport input:nth-child(1) {
    flex: 1 0 20%;
    margin-left: 0;
    min-width: 110px;
}

#mainform .passport input:nth-child(2) {
    flex: 1 0 20%;
    margin-left: 0;
    min-width: 100px;
}

#mainform .passport input:nth-child(3) {
    flex: 1 0 20%;
    margin-left: 0;
    min-width: 110px;
}

#mainform .passport input:last-child {
    flex: 1 2 100%;
    margin-left: 0;
}

.contacts input, .contacts .iti{
    flex: 1 0 49%;
    margin-left: 0;
}

.job input {
    /*flex: 0 0 390px;*/
    margin-left: 0;
}

.frw-red-text {
    color: red;
}

.frw-title {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    margin: 0 0 15px 0;
    max-width: 100%;
}

.frw-title div:last-child {
    font-weight: bold;
}

#mainform {
    visibility: hidden;
}

.frw-wrapper {
    width: 90%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.frw-container form {
    width: 80%;
    padding: 20px !important;
}

@media (max-width: 768px) {
    #mainform {
        width: 100%;
        padding: 0 !important;
    }
}

.frw-container form input, .frw-container form textarea {
    padding: 6px 8px;
    border: 1px solid #ededed;
    /*min-width: 300px;*/
    width: 100%;
    font-size: 16px;
    border-radius: 4px;
}

.frw-container form textarea {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
}

#mainform select {
    padding: 4px 10px;
    border: 1px solid #ededed;
    min-width: 80px;
    font-size: 14px;
    border-radius: 4px;
}

.frw-container form input:not(input[type=checkbox]), .frw-container form textarea {
    box-shadow: 0px 0px 3px 0px #e1e1e1;
}

.frw-container form input[type=date] {
    font-size: 15px;
    max-width: 140px;
}

.frw-container form input::placeholder {
    font-size: 11px;
    text-transform: uppercase;
}

.row-input input[type=checkbox] {
    margin: 0 10px 0 0;
}

.row-label {
    min-width: 230px;
    color: #444444;
    font-size: 15px;
    padding: 2px 0;
}


.row-label span {
    color: red;
    font-weight: 600;
    font-size: 18px;
}

.frw-consent {
    font-size: 13px;
    margin: 20px 0;
    padding: 10px 0;
}

.frw-consent a {
    text-decoration: underline;
}

.frw-consent-title {
    /*font-size: 13px;*/
}

#candidateFullName {
    display: inline-block;
    font-weight: 600;
}

#orgWhom {
    display: inline-block;
}

.frw-consent-body {
    max-width: 900px;
    font-size: 14px;
    line-height: 1.4;
}

.frw-consent-body p {
    padding: 10px 0 10px 5px;
}

.frw-input-notify {
    font-size: 13px;
    padding: 5px 0 10px 0;
    color: red;
}

.frw-btn-row {
    display: flex;
}

.frw-btn {
    display: block;
    text-align: center;
    max-width: 200px;
    min-width: 120px;
    margin: 10px 10px 10px 0;
    padding: 10px 20px;
    border: none;
    background-color: #ff7c00;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.frw-btn:hover {
    background-color: #2c3443;
    transition: background-color 0.3s;
}

.frw-notice {
    font-weight: 600;
}

.frw-check-alert-text {
    /*border-color: #ef9999 !important;*/
    box-shadow: 0px 0px 3px 0px #db6262 !important;
}

.frw-check-alert-checkbox {
    color: #ef9999 !important;
}

/* consent 2 */
table.frw {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    height: auto;
    overflow: scroll;
}

table.frw, table.frw td, table.frw th {
    border: 1px solid #595959;
    text-align: center;
}

table.frw td, table.frw th {
    padding: 3px;
    width: 30px;
    height: 35px;
}

table.frw th {
    background: #347c99;
    color: #fff;
    font-weight: normal;
}

.frw-result-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    font-size: 22px;
    color: #2c3443;
    text-align: center;
    height: 50%;
}

.frw-result-message div:first-child {
    font-weight: bold;
    padding: 20px;
}

.frw-result-message div:last-child {
    font-size: 18px;
}

.frw-result-message a {
    color: #186acb;
    cursor: pointer;
    transition: 0.3s;
}

.frw-result-message a:hover {
    color: #659dde;
}

.frw-result-message span {
    color: #186acb;
    cursor: pointer;
    transition: 0.3s;
}

.frw-result-message span:hover {
    color: #659dde;
}

.clr-red {
    text-decoration: underline red;
}

.content h1 {
    display: none;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid orange;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.popup .popup-message {
    font-size: 16px;
    color: white;
    padding: 20px 0;
    /*text-transform: lowercase;*/
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.typical__area .content h1 {
    display: none;
}


/*
RESPONSE START
*/
form .row-block {
    /*flex: 0 0 200px;*/
    width: 100%;
}

.form-text {
    display: block;
    padding: 15px 0;
}

/*
RESPONSE END
*/
.iti {
    margin: 5px 5px 2px 0;
    width: 100%;
}

.iti__flag {
    background-image: url("../img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("../img/flags@2x.png");
    }
}

/* LINK GENERATOR */
#mainform .row-subblock select.linkgen-select {
    width: 100%;
    height: 38px;
    margin: 0 10px 0 0;
}
#mainform .row-subblock input.linkgen-input{
    margin: 0 10px 5px 0;
    height: 38px;
    font-size: 15px;
}
#mainform .row-subblock.linkgen-row div:nth-child(1){
    flex: 1 1 59%;
    padding: 0 10px 0 0;
}
#mainform .row-subblock.linkgen-row{
    align-items: center;
}
#mainform .row-subblock.linkgen-row div:nth-child(1n+2){
    display: flex;
    justify-content: end;
    align-items: center;
    flex: 0 0 18%;
}

.linkgen-btn {
    border-radius: 4px;
    width: 130px;
    animation: 2s;
    margin: 4px 10px 10px 0;
    height: 38px;
}
.qr-btn{
    width: initial;
    min-width: 20px;
    min-height: 20px;
}

.linkgen-btn-animate, .linkgen-btn-animate:hover{
    background-color: #52d26e;
}