.cior-form-popup {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    opacity: 0;

    --global-theme-scrollbar-track-color: var(--gold);
    --global-theme-scrollbar-thumb-color: var(--black);
}

.cior-form-popup > .form {
    --popup-padding-block: 62px;
    --popup-max-height: 96vh;
    --popup-column-width: 264px;

    background-color: var(--gold);
    width: 100%;
    max-width: 1240px;
    max-height: var(--popup-max-height);
    overflow: auto;
    color: var(--white);
    margin-left: calc((100% - 1240px) / 2);
    padding-block: var(--popup-padding-block);
    padding-inline: clamp(20px, 10vw, 120px) clamp(20px, 10vw, 100px);
    position: relative;
}

.cior-form-popup > .form.saving::after {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1999;
    content: "";
    background-color: var(--black);
    opacity: 0.2;
    cursor: wait !important;
    left: 0;
    top: 0;
}

.cior-form-popup > .form > button[data-action="close"] {
    border: 0;
    background: transparent;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    right: 30px;
    top: 30px;
    color: var(--black);
    cursor: pointer;
    transition: color 0.3s ease-out;
}

.cior-form-popup > .form > button[data-action="close"] svg {
    width: 21px;
    height: 21px;
}

.cior-form-popup > .form > button[data-action="close"]:hover {
    color: var(--red);
}

.cior-form-popup > .form > .container {
    display: flex;
    gap: clamp(20px, 4.5vw, 60px);
    align-items: center;
    width: 100%;
}

.cior-form-popup > .form > .container > .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 67px;
    min-height: 500px;
}

.cior-form-popup > .form > .container > .title h2 {
    color: var(--red);
    font-style: italic;
    font-weight: 700;
    font-size: 56px;
    line-height: 67px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: rotate(-90deg);
    white-space: nowrap;
}

.cior-form-popup > .form > .container > .content {
    flex: 1 1 auto;
}

.cior-form-popup > .form > .container > .content > .page {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(20px, 4.5vw, 60px);
}

.cior-form-popup > .form > .container > .content > .page:not(.active) {
    display: none;
}

.cior-form-popup > .form > .container > .content > .page > .subtitle {
    padding-left: 20px;
    padding-block: 3px;
    border-left: solid 3px var(--blue);
    width: 215px;
    flex: 0 0 auto;
}

.cior-form-popup > .form > .container > .content > .page > .subtitle h3 {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .subtitle .dots {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.cior-form-popup > .form > .container > .content > .page > .subtitle .dots > i {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--white);
}

.cior-form-popup > .form > .container > .content > .page:nth-child(1) > .subtitle > h3:first-child::after {
    content: " 1";
}

.cior-form-popup > .form > .container > .content > .page:nth-child(2) > .subtitle > h3:first-child::after {
    content: " 2";
}

.cior-form-popup > .form > .container > .content > .page:nth-child(3) > .subtitle > h3:first-child::after {
    content: " 3";
}

.cior-form-popup > .form > .container > .content > .page:nth-child(4) > .subtitle > h3:first-child::after {
    content: " 4";
}

.cior-form-popup > .form > .container > .content > .page:nth-child(5) > .subtitle > h3:first-child::after {
    content: " 5";
}

.cior-form-popup > .form > .container > .content > .page:nth-child(6) > .subtitle > h3:first-child::after {
    content: " 6";
}

.cior-form-popup > .form > .container > .content > .page > .subtitle > .dots > i:nth-child(1),
.cior-form-popup > .form > .container > .content > .page:nth-child(n+2) > .subtitle > .dots > i:nth-child(2),
.cior-form-popup > .form > .container > .content > .page:nth-child(n+3) > .subtitle > .dots > i:nth-child(3),
.cior-form-popup > .form > .container > .content > .page:nth-child(n+4) > .subtitle > .dots > i:nth-child(4),
.cior-form-popup > .form > .container > .content > .page:nth-child(n+5) > .subtitle > .dots > i:nth-child(5),
.cior-form-popup > .form > .container > .content > .page:nth-child(n+6) > .subtitle > .dots > i:nth-child(6) {
    background: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .inputs {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    max-height: calc(var(--popup-max-height) - (var(--popup-padding-block) * 2));
    overflow-y: auto;
    padding-right: 20px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row {
    display: flex;
    gap: 60px;
    width: 100%;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child {
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
    flex-direction: row;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child button {
    height: 56px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 0;
    color: var(--white);
    background: var(--red);
    flex: 1 1 auto;
    transition: background-color 0.3s ease-out;
    cursor: pointer;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child button:hover {
    background: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child button[data-action="prev-page"] {
    width: 56px;
    flex: 0 0 auto;
    background: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page:nth-child(1) > .inputs > .row:last-child button[data-action="prev-page"],
.cior-form-popup > .form > .container > .content > .page:last-child > .inputs > .row:last-child button[data-action="next-page"] svg {
    display: none;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child button[data-action="prev-page"]:hover {
    background: var(--red);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child button[data-action="prev-page"] svg {
    transform: rotate(180deg);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: var(--popup-column-width);
    transition: color 0.3s ease-out;
    cursor: pointer;
    justify-content: flex-end;
    position: relative;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:not(.second-checkbox):last-child label.checkbox {
    width: 100%;
    align-items: center;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row:last-child label.checkbox span.title a {
    color: var(--white);
    text-decoration: underline;
    text-transform: uppercase;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox {
    justify-content: center;
    cursor: default;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox span.title {
    position: relative;
    padding-left: 36px;
    cursor: pointer;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox input[type="checkbox"] {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox span.title::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: solid 6px var(--white);
    background-color: var(--white);
    box-shadow: 0 0 0 2px var(--white);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease-out, border-width 0.3s linear;
    margin: 2px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox input[type="checkbox"]:checked + span.title::before {
    background-color: var(--red);
    border-width: 3px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox span:hover.title::before,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox input[type="checkbox"]:checked + span:hover.title::before {
    background-color: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox input[type="checkbox"]:not(:checked) + span:hover.title::before {
    border-width: 6px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label > span.title {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label > span.title > i {
    font-style: italic;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label > span.title:first-child {
    margin-bottom: 5px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.required > span[data-required]::after {
    content: "*";
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.required.error > span[data-required]::after {
    content: "* " attr(data-required);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.error {
    color: var(--red);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="text"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="number"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="date"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label select,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label textarea {
    border: solid var(--white) 2px;
    background: var(--white);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--black);
    transition: border-color 0.3s ease-out;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="number"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="date"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="text"] {
    padding: 10px 20px;
    height: 56px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="number"]::placeholder,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="date"]::placeholder,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="text"]::placeholder {
    color: rgba(32, 32, 30, 0.4);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-end;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label ul.ui-autocomplete {
    background-color: white;
    z-index: 2;
    position: absolute;
    max-height: 100px;
    overflow-x: auto;
    color: var(--black);
    width: calc(100% - 1px);
    border: solid 2px var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label ul.ui-autocomplete > li {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-indent: 10px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label ul.ui-autocomplete .ui-state-active {
    background-color: var(--gold);
    color: var(--white);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple span.title {
    width: 100%;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple input[type="number"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple input[type="date"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple input[type="text"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple select {
    min-width: 20px;
    flex: 1 1 auto;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label input[type="date"] {
    text-transform: uppercase;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.date:not(.multiple) input[type="date"] {
    width: 100%;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.date {
    gap: 0 10px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.date input {
    width: calc(50% - 10px);
    padding-inline: 2px;
    text-align: center;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.date input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.date input.from::-webkit-calendar-picker-indicator {
    width: calc(50% - 9px);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.date input.to::-webkit-calendar-picker-indicator {
    width: calc(50% - 9px);
    left: calc(50% + 5px);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.phone {
    gap: 0 10px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.phone input.area {
    width: 83px;
    flex: 0 0 auto;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.multiple.phone input.number {
    width: 50px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-end;
    align-items: center;
    gap: 5px 30px;
    cursor: default;
    justify-content: space-between;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload > span.title {
    margin-bottom: 0;
    width: 100%;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload [data-action="upload"] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex: 0 0 auto;
    width: var(--popup-column-width);
    height: 56px;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--gold);
    border: 1px solid var(--white);
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.3s ease-out, border-color 0.3s ease-out;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload [data-action="upload"]:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload span.file {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--black);
    display: flex;
    gap: 30px;
    width: var(--popup-column-width);
    min-height: 56px;
    align-items: center;
    transition: color 0.3s ease-out;
    overflow-wrap: anywhere;
    cursor: pointer;
    justify-content: space-between;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload span.file:hover {
    color: var(--red);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload span.file::after {
    content: url("../images/icons/remove_file.svg");
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload span.file:hover::after {
    content: url("../images/icons/remove_file2.svg");
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label select {
    padding: 10px 20px;
    height: 56px;
    cursor: pointer;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label select option {
    cursor: pointer;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label select.placeholder {
    color: rgba(32, 32, 30, 0.4);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label select.placeholder option {
    color: var(--black);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label textarea {
    padding: 5px;
    height: 97px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:hover input[type="text"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:hover input[type="number"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:hover input[type="date"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:hover select,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:hover textarea,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:focus-within input,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:focus-within select,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label:focus-within textarea {
    border-color: var(--blue);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.error input[type="text"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.error input[type="number"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.error input[type="date"],
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.error select,
.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.error textarea {
    border-color: var(--red);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row label.checkbox.error span.title::before {
    box-shadow: 0 0 0 2px var(--red);
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row[data-visible-block] {
    border-left: solid 3px var(--blue);
    padding-left: 20px;
}

.cior-form-popup > .form > .container > .content > .page > .inputs > .row[data-visible-block]:nth-child(odd) {
    margin-top: -15px;
    padding-top: 15px;
}

.mr-5 {
    margin-right: 5px;
}

@media all and (max-width: 1240px) {
    .cior-form-popup > .form {
        margin-left: 0;
        padding-inline: clamp(20px, 5vw, 120px) clamp(20px, 5vw, 100px);
    }

    .cior-form-popup > .form > .container,
    .cior-form-popup > .form > .container > .content > .page,
    .cior-form-popup > .form > .container > .content > .page > .inputs > .row {
        gap: clamp(20px, 3vw, 60px);
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs > .row label.upload {
        gap: 5px;
    }
}

@media all and (max-width: 1100px) {

    .cior-form-popup > .form {
        --popup-column-width: 250px;
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs > .row.second-checkbox:last-child label.checkbox {
        width: 100%;
    }

}

@media all and (max-width: 1000px) {
    .cior-form-popup > .form > .container > .content > .page > .subtitle {
        width: 200px;
    }

    .cior-form-popup > .form {
        margin-left: 0;
        padding-inline: 5px;
    }

    .cior-form-popup > .form > .container,
    .cior-form-popup > .form > .container > .content > .page,
    .cior-form-popup > .form > .container > .content > .page > .inputs > .row {
        gap: 10px;
    }

    .cior-form-popup > .form {
        --popup-column-width: 200px;
    }
}

@media all and (max-width: 800px) {
    .cior-form-popup > .form {
        height: 100%;
        max-height: none;
        padding: 0;
    }

    .cior-form-popup > .form {
        --popup-column-width: 100%;
    }

    .cior-form-popup > .form > .container {
        display: block;
    }

    .cior-form-popup > .form > .container > .title {
        width: 100%;
        display: block;
        min-height: auto !important;
    }

    .cior-form-popup > .form > .container > .title h2 {
        transform: none;
        font-size: 38px;
        line-height: 38px;
        margin-top: 45px;
        padding-inline: 20px 55px;
        white-space: normal;
    }

    .cior-form-popup > .form > button[data-action="close"] {
        color: var(--white);
        right: 20px;
        top: 47px;
    }

    .cior-form-popup > .form > .container > .content {
        padding-inline: 20px;
        padding-block: 34px;
    }

    .cior-form-popup > .form > .container > .content > .page {
        display: block;
    }

    .cior-form-popup > .form > .container > .content > .page > .subtitle {
        width: 100%;
        margin-bottom: 14px;
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs {
        display: block;
        max-height: initial;
        padding-right: 0;
        overflow: visible;
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs > .row {
        margin-top: 20px;
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs > .row:not(.second-checkbox):last-child label.checkbox {
        align-items: initial;
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs > .row[data-visible-block]:nth-child(odd) {
        padding-top: 25px;
    }
}

@media all and (max-width: 600px) {
    .cior-form-popup > .form > .container > .content > .page > .inputs > .row {
        flex-direction: column;
    }

    .cior-form-popup > .form > .container > .content > .page > .inputs > .row {
        gap: 20px;
    }

}
