@import url('https://fonts.cdnfonts.com/css/myriad-pro?styles=947,949,948,20533,946,945,952,953,950,951');

/*GENERAL*/
.comperia-agent-modal{
    position: absolute;
    top: 0;
    left: 0;
    /*transform: translate(-50%, -50%);*/
    max-width: 750px;
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 300;
    font-size: 19px;
    overflow: hidden;
    border: 1px solid #fce1e1;
    border-radius: 3px;
    width: 100%;
}

.comperia-agent-modal .wrapper {
    margin: 0 15px;
    width: unset;
}
.comperia-agent-modal .font-weight-bold {
    font-weight: bold;
}
/*STYLE FOR TABLET AND HIGHER*/
@media screen and (min-width: 768px) {
    .comperia-agent-modal {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .comperia-agent-modal .wrapper {
        margin: 0 25px;
    }

    .comperia-agent-modal .modal-footer .doc-wrapper {
        display: flex;
        justify-content: center;
    }

    .comperia-agent-modal .modal-footer .doc-wrapper .modal-footer-button {
        margin: 10px 10px;
    }
}

/*END GENERAL*/

/*HEADER*/
.comperia-agent-modal .modal-header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    border: 0 !important;
    padding: 0;
}

.mobile-header {
    width: 100%;
}
.desktop-header {
    display: none;
}

.modal-header__logo {
    max-height: 35px;
}

.comperia-agent-modal .modal-header .close {
    width: 32px;
    height: 32px;
    opacity: 0.3;
}
.comperia-agent-modal .modal-header .close:hover {
    opacity: 1;
    cursor: pointer;
}
.comperia-agent-modal .modal-header .close:before,
.comperia-agent-modal .modal-header .close:after {
    position: absolute;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
}
.comperia-agent-modal .modal-header .close:before {
    transform: rotate(45deg);
}
.comperia-agent-modal .modal-header .close:after {
    transform: rotate(-45deg);
}

/*STYLE FOR TABLET AND HIGHER*/
@media screen and (min-width: 768px) {
    .mobile-header {
        display: none !important;
    }
    .desktop-header {
        display: flex;
    }
}

/*END HEADER*/

/*body*/
.comperia-agent-modal .modal-body {
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
}

.modal-display-info {
    width: 100%;
}

.modal-display-info {
    background-color: #fff;
    height: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-around;
}
/*STYLE FOR TABLET AND HIGHER*/
@media screen and (min-width: 768px) {
    .modal-display-info {
        width: 50%;
        height: 100%;
    }
}

/*INFO SECTION*/
.modal-info {
    background-color: #fff;
    color: #000;
    padding: 30px 0;
    font-size: 16px;
    width: 100%;

}

.modal-info > .wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    height: 100%;
}

.modal-info-box {
    display: flex;
    width: 100%;
    /*justify-content: space-between;*/
}

.modal-info-box__text {
    margin: 0;
    padding-left: 15px;
}
/*STYLE FOR TABLET AND HIGHER*/
@media screen and (min-width: 768px) {
    .modal-info {
        width: 40%;
    }
}
/*END OF INFO SECTION*/

/*PERSONAL DATA*/
.modal-personal-data {
    background-color: #f6fafd;
    color: #000;
    padding: 15px 0;
    font-size: 16px;
    width: 100%;
}

.modal-personal-data > .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.modal-personal-data__column {
    width: 100%;
}
.modal-personal-data__row {
    display: flex;
    padding: 5px 0;
    margin-bottom: 5px;
    flex-direction: column;
    gap: 3px;
}

.modal-personal-data__row > .data,
.modal-personal-data__row > .data-value{
    width: 50%;
    display: flex;
    align-items: center;
}

.data-value.-has-warning {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center !important;
    position: relative;
}
.input-warning {
    font-size: 10px;
    color: red;
    margin: 2px 0;
    display: none;
    position: absolute;
    bottom: -15px;
}
.data-value > label {
    width: 100%;
}
.data-value > label > input {
    width: 100%;
    max-height: 20px;
    font-size: 14px;
    padding: 5px 0 5px 5px;
}
.data-value > label > select {
    width: 100%;
    max-height: 20px;
    font-size: 14px;
    width: inherit;
}

input.has-error {
    border: 1px solid red;
}
input.has-error::placeholder {
    color: red;
}
input.readonly-input {
    padding: 0;
}
.modal-personal-data__row > .data {
    font-weight: bold;
}
.modal-personal-data__row > .data-value {
    width: 100%;
    /*justify-content: center;*/
}

/*STYLE FOR TABLET AND HIGHER*/
@media screen and (min-width: 768px) {
    .modal-personal-data {
        width: 60%;
    }
    .modal-personal-data__row > .data-value {
        /*width: 100% !important;*/
        justify-content: flex-start;
        margin-left: 15px;
    }
    .modal-personal-data > .wrapper {
        display: flex;
        flex-direction: row;
    }
    .modal-personal-data__row {
        flex-direction: row;
    }
    .input-warning {
        bottom: -10px;
    }
}
/*END OF PERSONAL DATA*/

/*FOOTER*/
.comperia-agent-modal .modal-footer {
    background-color: #fff;
    display: block;
    padding: 0;
    border: 0;
}
.comperia-agent-modal .modal-footer-button   {
    display: block;
    width: 244px;
    height: 59px;
    margin: 10px auto;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    background-color: #599e33;
}

.comperia-agent-modal .modal-dark-grey-button {
    background-color: #666666;
    display: none;
}

.modal-footer-button:hover {
    cursor: pointer;
}
/*END FOOTER*/

/* NOWE STYLE*/
.modal-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: unset !important;
    border: 0 !important;
}

.readonly-input {
    border: none;
    background-color: inherit;
    font-size: 14px;
    outline: none;
}

.modal-result-agreements {
    font-size: 13px;
    margin-top: auto;
}
.modal-result-agreements label {
    display: inline;
}

#comfinoInvitationForm.submitted input:invalid,
    #comfinoInvitationForm.submitted select:invalid{
    border: none;
    outline: 2px solid #FF0000;
}

#comfinoInvitationForm .inputCalendar {
    width: 85px;
    margin-right: 5px;
}

#comfinoInvitationForm.submitted .modal-result-agreements input:invalid ~ label {
    color: #FF0000;
}

/* CUSTOM */
.curtain#comfinoApplicationModalCurtain {
    z-index: 7;
}
.curtain .comperia-agent-modal {
    margin: auto;
    padding: 0;
    text-align: left;
}

