.form{
    border-radius: 3px;
    background-color: var(--main-blue);
    color: var(--white);
    padding: 80px 120px;
    display: grid;
    gap: 40px;
    width: 100%;
}
.form h2{
    color: var(--white);
}
.form .main-button{
    margin-left: auto;
    white-space: nowrap;
}
.form-rows{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
input,
textarea,
select,
.select2-container--default .select2-selection--multiple{
    background-color: var(--white);
    border-radius: 3px;
    border: none;
    color: var(--text-color);
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 24px;
}
textarea {
    resize: none;
}
#form-comment{
    min-height: 180px;
}
.select2-container--default .select2-selection--multiple{
    background-image: url(../img/ico/chevron-dwn.svg);
    background-position: 95%;
    background-repeat: no-repeat;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid black 0px;
    outline: 0;
}
label{
    font-size: 12px;
    text-align: left;
    display: grid;
    gap: 4px;
}
.iti--separate-dial-code.iti--show-flags .iti__selected-dial-code {
    color: var(--main-blue);
}
.iti__country{
    color: var(--text-color);
}
.iti__country.iti__highlight {
    color: var(--main-blue);
}



.popup {
    display: grid;
    position: fixed;
    top: -100vh;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 80px;
    border-radius: 3px;
    background: #DEE9F6;
    z-index: 9999;
    gap: 40px;
    transition: 1s;
}
.form-popup{
    max-width: 680px;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition-duration: 1s;
}
.form-popup img,
.form-popup .main-button{
    margin: 0 auto;
}
.popup.open{
    transform: translate(-50%, 110vh);
    transition-duration: 1s;
}
input.valid {
    border:  solid #05BB6F;
}

input {
    border: 2px solid transparent;
}


input.error {
    border-color:#D41C1C;
}

button:disabled {
    cursor: not-allowed;
}



.accept {
    grid-template-columns: 1fr 200px;
    gap: 90px;
    align-items: center;
}
#accept {
    grid-template-columns: 40px 1fr;
    gap: 24px;
    align-items: center;
}
.accept-checkbox__title {
    font-size: 16px;
}

/*input[type='checkbox'] {*/
/*    appearance: none;*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    outline: none;*/
/*    cursor: pointer;*/
/*    margin: 0;*/
/*}*/

/*input[type='checkbox']:checked{*/
/*    background: url('../img/ico/material-symbols_check-small.svg') center;*/
/*}*/
input[type='checkbox'] {

    appearance: none;

    -webkit-appearance: none;

    -moz-appearance: none;

    width: 20px;

    height: 20px;

    outline: none;

    cursor: pointer;

    position: relative;

}



input[type='checkbox']::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: url('../img/ico/material-symbols_check-small.svg') center;

    opacity: 0;

    pointer-events: none;

}



input[type='checkbox']:checked::before {

    opacity: 1;

}


.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0px;
    margin-left: 0px;
}
.select2-container .select2-selection--single {
    height: 100%;
    padding: 14px 16px;
}
.select2-container--default .select2-selection--single {
    border: 1px solid var(--white);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 50%;
    right: 5px;
    width: 20px;
    transform: translateY(-50%);
}
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-results__option--selectable {
    font-size: 16px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--main-yellow);
    color: white;
    font-size: 16px;
}

@media screen and (max-width: 1600px) {
    .form{
        padding: 60px 100px;
    }
}
@media screen and (max-width: 1420px) {
    .form{
        padding: 60px;
    }
    .popup {
        padding: 60px;
    }
    input,
    textarea,
    select,
    .select2-container--default .select2-selection--multiple,
    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
    .select2-container .select2-selection--single .select2-selection__rendered,
    .select2-results__option--selectable {
        font-size: 14px;
        line-height: 20px;
    }
}
@media screen and (max-width: 1200px) {

}

@media screen and (max-width: 992px) {
    .form-rows{
        gap: 16px;
    }
    .popup {
        padding: 40px;
        width: 90%;
    }
    .accept-checkbox__title {
        font-size: 14px;
    }
    .popup-container{
        max-height: 90%;
        overflow: scroll;
    }
}
@media screen and (max-width: 576px) {
    .form {
        padding: 20px;
    }
    .form-rows{
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .popup.open{
        transform: translate(-50%, 110vh);
        transition-duration: 1s;
    }
    .form{
        gap: 20px;
        margin-top: 24px;
    }
    .accept-checkbox__title {
        font-size: 12px;
    }
    #accept {
        grid-template-columns: 30px 1fr;
        gap: 16px;
    }
    input,
    textarea,
    select,
    .select2-container--default .select2-selection--multiple,
    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
    .select2-container .select2-selection--single .select2-selection__rendered,
    .select2-results__option--selectable {
        font-size: 12px;
        line-height: 18px;
    }

    /* .popup{
        position: absolute;
    } */

}


