.modal-rfi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 9999;
    overflow: auto;
    background-color: white;
    display: grid;
    grid-template-rows: 55px min-content auto;
}

aside .modal-rfi {
    display: none;
}

.modal-section-container {
    width: 100%;
    max-width: 995px;
    margin: 0 auto;
}

@media (max-width: 1019px) {
    .modal-section-container {
        padding: 0 15px;
    }
}

.modal-close-container {
    text-align: right;
}

.icon-modal-close {
    font-size: 24px;
    line-height: 50px !important;
    padding: 15px;
    margin-right: -15px;
    cursor: pointer;
}

.modal-section {
    padding: 70px 0;
    background-color: white;
}

.modal-section:nth-child(2) {
    padding-top: 36px;
    padding-bottom: 54px;
}

.modal-section:nth-child(even), .modal-section.even:nth-child(odd) {
    background-color: #F2F3F5;
    border-top: 1px solid #C4CAD3;
    border-bottom: 1px solid #C4CAD3;
}

.modal-section.odd:nth-child(even) {
    background-color: #FFFFFF;
    border-top: none;
    border-bottom: none;
}

@media (min-width: 1020px) {
    .modal-section.odd-md:nth-child(even) {
        background-color: #FFFFFF;
        border-top: none;
        border-bottom: none;
    }
}

.modal-inner-container {
    max-width: 790px;
}

.modal-title {
    font-size: 30px;
    line-height: 1.15;
    color: #2C2C2C;
    margin-bottom: 16px;
}

.modal-object-card {
    position: relative;
    height: 82px;
    margin-bottom: 20px;
    border: 1px solid #D1D1D6;
    background-color: #FFFFFF;
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.12);
    display: flex;
}

@media (max-width: 759px) {
    .modal-object-card {
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: flex-end;
    }
}

.modal-object-preview  {
    width: 90px;
    height: 80px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 4px;
}

.modal-object-preview img  {
    width: 50px;
    height: 50px;
    font-family: "object-fit:cover";
    object-fit: cover;
}

.modal-object-preview img.product-card-image, .modal-object-preview img.product-card-child-image  {
    width: 23px;
    height: 23px;
}

.modal-object-logo {
    width: 205px;
    height: 80px;
    padding: 15px 20px;
    line-height: 50px;
    text-align: center;
}

@media (max-width: 440px) {
    .modal-object-logo {
        width: 50%;
    }
}

.modal-object-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
}

.modal-object-name {
    padding: 10px 20px 10px 0;
    line-height: 1.4rem;
    display: flex;
    align-items: center;
}

@media (max-width: 759px) {
    .modal-object-name {
        width: calc(100% - 90px);
        max-height: calc(100% - 30px);
        align-items: unset;
        overflow: hidden;
        line-height: 1.15rem;
        font-size: 14px;
    }

    .modal-object-logo + .modal-object-name {
        width: calc(100% - 205px);
        height: 80px;
        max-height: unset;
        align-items: center;
    }

    .modal-object-logo + .modal-object-name + .modal-object-company-logo {
        display: none;
    }
}

@media (max-width: 440px) {
    .modal-object-logo + .modal-object-name {
        width: 50%;
    }
}

.modal-object-company-logo {
    margin: auto 20px auto auto;
    max-width: 160px;
    display: flex;
    flex-direction: row-reverse;
}

.modal-object-company-logo img {
    height: 30px;
    width: auto;
    margin: 0 10px;
}

@media (max-width: 759px) {
    .modal-object-company-logo {
        margin: unset;
        max-width: unset;
        height: 30px;
    }

    .modal-object-company-logo img {
        height: 20px;
        margin: 5px 10px;
    }
}

.modal-description {
    color: #646464;
    margin-bottom: 0;
}

.modal-flexbox {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-flex-left {
    font-size: 20px;
    color: #2C2C2C;
    font-weight: bold;
    flex-basis: 150px;
    flex-shrink: 0;
    margin-bottom: 30px;
}


@media (max-width: 559px) {
    .modal-flexbox {
        display: block;
    }
}

.modal-flex-left small {
    display: block;
    color: #ADADAD;
    font-weight: normal;
}

.modal-flex-right {
    flex-basis: 585px;
}

.modal-label {
    font-size: 14px;
    color: #272B3C;
    display: block;
    margin-bottom: 7px;
}

.modal-not-required {
    color: #ADADAD;
}

.modal-label .modal-not-required {
    margin-left: 4px;
}

.modal-flex-right input, .modal-flex-right .modal-textarea, .modal-flex-right .custom-select {
    width: 100%;
    height: 60px;
    margin-bottom: 50px;
    margin-left: 0;
    padding: 20px;
    font-size: 16px;
    line-height: 20px;
    background: #FFFFFF;
    border: 1px solid #D1D1D6;
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.12);
    border-radius: 3px;
}

@media (max-width: 759px) {
    .modal-flex-right .custom-select {
        display: block;
    }
}

.modal-flex-right input:focus, .modal-flex-right .modal-textarea:focus-within, .modal-flex-right .custom-select:focus-within {
    border: 2px solid #00B6FF;
    padding: 19px;
    outline: none;
}

.modal-flex-right .attachment-button:focus-within {
    outline: 2px solid #00B6FF;
    outline-offset: -1px;
}

.modal-flex-right .custom-select .select-selected {
    padding: 0;
}

.select-selected[hint="true"] {
    color: #00B6FF;
}

.modal-company-name {
    position: relative;
}

.modal-flex-right .select-items {
    padding: 16px;
    border: 2px solid #00B6FF;
    border-top: none;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.12);
    line-height: 20px;
    left: -2px;
    right: -2px;
}

.modal-flex-right .select-items div {
    padding: 4px;
}

.modal-flex-right .select-selected:after {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    top: 20px;
    right: 20px;
    width: unset;
    height: unset;
    border: none;
    font-size: 30px;
    color: #475361;
    content: "\e5cf";
}

.modal-flex-right .select-selected.select-arrow-active:after {
    content: "\e5ce";
}

.modal-company-name a {
    position: absolute;
    top: 18px;
    right: 15px;
}

.modal-company-name input {
    padding-right: 65px;
}

.modal-flex-right .modal-textarea {
    position: relative;
    height: unset;
}

.modal-textarea textarea {
    width: 100%;
    border: none;
}

.modal-textarea textarea:focus {
    outline: none;
}

.modal-textarea-button {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.attachment-buttons {
    position: unset;
}

.attachment-button {
    background-color: rgba(242,243,245,0.3);
    color: #646464;
    padding: 5px 10px;
    border: 1px solid #E9EBEE;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-right: 5px;
}

.modal-flex-right .attachment-button span {
    font-size: inherit;
    padding: 0;
}

.attachment-button input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 10px);
    margin-top: 10px;
    opacity: 0;
    font-size: 0;
    margin-bottom: 0;
}

.modal-flex-right .attachment-button .icon-attachment {
    font-size: 15px;
    margin-right: 5px;
}

.modal-flex-right .icon-attachment:before {
    content: "\e2bc";
}

.modal-textarea-button input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 10px);
    margin-top: 10px;
    opacity: 0;
    font-size: 0;
}

.attachment-button input[type="file"] {
    height: 100%;
    margin-top: 0;
}

.modal-textarea-button .uploaded-file {
    background-color: rgba(0,182,255,.1);
    color: #00B6FF;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-right: 5px;
    margin-top: 5px;
}

.uploaded-file .icon-close {
    padding-left: 10px;
    cursor: pointer;
    background-image: none;
}

.modal-flex-right .custom-checkboxes label {
    display: flex;
    align-items: center;
    color: #000000;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 20px;
    width: 100%;
}

.modal-flex-right .custom-checkboxes label div:first-letter {
    text-transform: capitalize;
}

.modal-flex-right input[type='checkbox'].checkboxes-custom ~ .check-toggle {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #D1D1D6;
    border-radius: 3px;
    background-color: #FFFFFF;
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.12);
    cursor: pointer;
}

.modal-flex-right input[type='checkbox'].checkboxes-custom:checked ~ .check-toggle {
    background-color: #00B6FF;
}

.modal-flex-right .checkbox {
    font-size: 14px;
    margin-bottom: 50px;
}

.modal-checkbox label {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 20px;
    color: #646464;
}

.modal-checkbox a {
    margin-left: 32px;
    text-decoration: underline;
}

.checkbox label::before {
    height: 20px;
    width: 20px;
    left: 0;
    top: 0;
    background: #FFFFFF;
    border: 1px solid #D3D6DB;
    box-shadow: 0 3px 5px 0 rgba(44,44,44,0.13);
    border-radius: 2px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.second-page .modal-buttons {
    margin-top: 40px;
    margin-bottom: 60px;
}

.button-modal {
    font-size: 20px;
    width: 100%;
    max-width: 380px;
    height: 60px;
    cursor: pointer;
}

.button-modal-rfi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 5px 15px;
    border: 1px solid #00B6FF;
    border-radius: 4px;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
    background-color: #00B6FF;
}

.button-modal-rfi.disabled {
    border: 1px solid #646464;
    background-color: #646464;
    cursor: unset;
}

.button-modal-cancel {
    width: 175px;
    max-width: 30%;
    height: 60px;
    margin-right: 30px;
    background: rgba(242,243,245,0.5);
    border: 1px solid #ADADAD;
    color: #646464;
}

.modal-rfi input[validation-error="true"], .modal-rfi input[type="checkbox"][validation-error="true"] ~ label::before, .modal-rfi .custom-select[validation-error="true"] {
    border-color: #FF001F;
}

.validation-error-message {
    color: #FF001F;
    font-size: 14px;
}

.modal-flex-right .validation-error-message {
    margin-top: -43px;
    margin-bottom: 24px;
}

aside .modal-flex-right .validation-error-message {
    margin-top: -13px;
}

.modal-flex-right .modal-textarea .validation-error-message, .modal-flex-right .modal-checkbox .validation-error-message {
    margin-top: 7px;
    margin-bottom: unset;
}

.contact-container > div, .contact-container > label {
    background: #FFFFFF;
    border: 1px solid #D1D1D6;
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.12);
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    position: relative;
}

@media (max-width: 759px) {
    .contact-container > div, .contact-container > label {
        padding: 20px;
    }
}

.contact-container input[type='radio'].check-custom ~ .check-toggle {
    width: 28px;
    height: 28px;
    margin: auto 40px auto 15px;
}

@media (max-width: 759px) {
    .contact-container input[type='radio'].check-custom ~ .check-toggle {
        margin: auto 20px auto 0;
    }
}

.contact-container input[type='radio'].check-custom ~ .check-toggle:after {
    width: 14px;
    height: 14px;
}

.contact-container .contact-person {
    align-items: center;
}

.contact-container .contact-person-avatar {
    border-radius: unset;
    margin: auto 40px auto 0;
    width: 120px;
    height: 120px;
}

@media (max-width: 759px) {
    .contact-container .contact-person-avatar {
        width: 80px;
        height: 80px;
        margin-right: 20px;
    }
}

.contact-container label .contact-person-avatar {
    width: 60px;
    height: 60px;
    margin-right: 30px;
}

@media (max-width: 759px) {
    .contact-container label .contact-person-avatar {
        margin-right: 20px;
    }
}

.contact-container .contact-person-name {
    font-size: 18px;
    margin-bottom: 6px;
}

.contact-container .contact-person-details {
    font-size: 13px;
    color: #818894;
    margin-bottom: 6px;
}

.contact-container label .contact-person-details {
    margin-bottom: 0;
}

.contact-container .contact-person-details div {
    display: inline;
}

.contact-container .contact-person-details div:not(:last-child):after {
    content: ', ';
}

.contact-container .contact-person-contacts {
    display: none;
}

.contact-container .contact-person-emails,
.contact-container .contact-person-phones {
    display: block;
}

.contact-container label .contact-person-emails, .contact-container label .contact-person-phones {
    display: none !important;
}

.contact-container .contact-person-emails div,
.contact-container .contact-person-phones div {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 24px;
}

.contact-container .contact-person-emails div:before, .contact-container .contact-person-phones div:before {
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;;
    font-size: 22px;
    color: #D1D1D6;
    margin-right: 10px;
    vertical-align: bottom;
}

.contact-container .contact-person-emails div:before {
    content: "\e908";
}

.contact-container .contact-person-phones div:before {
    content: "\e907";
}

.contact-container .contact-person-company {
    display: block;
    height: 30px;
    width: auto;
    margin: 0 0 0 auto;
}

@media (max-width: 759px) {
    .contact-container .contact-person-company {
        height: 20px;
    }
}

.modal-company-contact {
    padding: 0 20px;
}

.modal-section.modal-feedback:nth-child(even) {
    border-top: 1px solid #C4CAD3;
}

.modal-feedback .modal-section-container {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

.modal-feedback-image {
    margin-bottom: 65px;
}

.modal-feedback-image:after {
    content: '\2714';
    color: #272B3C;
    font-weight: bold;
    font-size: 60px;
    line-height: 79px;
}

.error-image:after {
    content: '\2717';
    color: #FF001F;
}

.bad-request-image:after {
    content: '\26A0';
    color: #FF001F;
    font-weight: normal;
}

.modal-feedback h3 {
    font-size: 36px;
    color: #272B3C;
    margin-bottom: 30px;
}

.modal-feedback p {
    font-size: 20px;
    color: #7E7E7E;
    margin-bottom: 40px;
}

.modal-feedback-button {
    font-weight: bold;
    font-size: 20px;
    width: 183px;
    height: 60px;
    margin-bottom: 380px;
}

@media (max-width: 499px) {
    .modal-feedback-image {
        margin-bottom: 50px;
    }

    .modal-feedback-image:after {
        font-size: 50px;
        line-height: 66px;
    }

    .modal-feedback h3 {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .modal-feedback p {
        font-size: 18px;
        margin-bottom: 36px;
    }

    .modal-feedback-button {
        font-size: 18px;
        width: 162px;
        height: 54px;
        margin-bottom: 340px;
    }
}

@media (max-width: 399px) {
    .modal-feedback-image {
        margin-bottom: 40px;
    }

    .modal-feedback-image:after {
        font-size: 40px;
        line-height: 53px;
    }

    .modal-feedback h3 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .modal-feedback p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .modal-feedback-button {
        font-size: 16px;
        width: 144px;
        height: 48px;
        margin-bottom: 240px;
    }
}

aside .modal-rfi {
    position: relative;
    z-index: auto;
    grid-template-rows: auto;
    margin: -10px;
    padding: 10px;
}

aside .modal-rfi .modal-section {
    padding: 0 !important;
    border: 0 !important;
    background: #FFFFFF;
}

aside .modal-rfi .modal-flex-left {
    display: none;
}

aside .modal-rfi .modal-flex-right input, aside .modal-rfi .modal-flex-right .modal-textarea, aside .modal-rfi .modal-flex-right .custom-select {
    height: 40px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 15px;
}

aside .modal-rfi .modal-flex-right .select-selected:after {
    top: 10px;
    right: 10px;
    font-size: 20px;
}

aside .modal-rfi .modal-flex-right .modal-textarea {
    height: unset;
}

aside .modal-rfi .modal-flex-right .button-modal-rfi {
    height: 50px;
    background-color: #FF001F;
    border: 1px solid #FF001F;
    justify-content: space-between;
    font-size: 19px;
}

aside .modal-rfi .modal-flex-right .button-modal-rfi:after {
    content: '\e5c8';
    font-size: 20px;
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.check-toggle + .company-contact-person {
    width: 100%;
}
