/*DISABLE FORM WITH SPINNER - Nasko - 19/04/23*/
form.disabled { position: relative; }

form .mgLoader { display: none; }

form.disabled .mgLoader {
    position: absolute;
    inset: 0;
    background-color: #FFFFFF95;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    opacity: 0;
    transition: 700ms ease-in-out opacity; 
}
/*DISABLE FORM WITH SPINNER - END*/

/* *** */
form fieldset {
    border: 0 none;
    margin: 0;
    padding: 0;
}

form legend {
    /*display: block;*/
	padding: 8px 0;
    color: #555;
}
 
.public input[type=text], /* will only select text fields */
.public input[type=email], /* will only select email text fields */
.public input[type=password], /* will only select password fields */
.public input[type=tel], /* will only select password fields */
.public textarea,
.public select {
    font-family: sans-serif;
    font-size: 14px;
    line-height: 24px;
    margin: 0;
   
    
    background-color: #FFF;
    color: #000;

    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.public input[type=text], /* will only select text fields */
.public input[type=email], /* will only select email text fields */
.public input[type=password], /* will only select password fields */
.public input[type=tel] {
     padding: 4px 8px;
}

textarea {
    line-height: 18px;
    resize: vertical;
    padding: 8px;
}

/* remove dropdown arrow on IE from select */
select::-ms-expand {
    display: none;
}

select {
    background-image: url(../svg/arrow_down.svg);
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: right center;
    padding: 0 30px 0 6px;
}

input[type=text]:disabled,
input[type=password]:disabled,
textarea:disabled,
select:disabled {
    color: #333;
    background-color: #EEE;
}

.w100 input[type=text],
.w100 input[type=password],
.w100 input[type=email],
.w100 textarea,
.w100 select,
.w100 button,
.w100 {
    width: 100%;
    box-sizing: border-box;
}
.w50 { width: 50%;}

@media all and (max-width: 700px){ .w50 { width: 100%;} }

/*  Бутони */
.public button[type=submit],
.public a.submit {
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
    padding: 5px 20px 4px 20px ;
    display: inline-block;

    color: #FFF;
    background-color: #292254;
    border-radius: 5px;
    border: none;
    cursor: pointer;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;

    -webkit-appearance: none;
}

.public button[type=submit]:hover,
.public a.submit:hover {
    background-color: #6DCFF6;
    color: #292254;
}

a.submit.disabled {
    border: 1px solid #e5e5e5 !important;
    cursor: default !important;
    color: #e5e5e5;
    background: transparent;
}

.public button[type=submit]:disabled {
    background-color: #CCC;
    cursor: default;
}

a.apply {
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
    padding: 5px 20px;
    display: inline-block;

    color: #FFF;
    background-color: #292254;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    vertical-align: top;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;

    -webkit-appearance: none;
}

a.apply:hover {
    background-color: #6DCFF6;
    color: #292254;
}

select option { padding: 6px; }

/*CHECKBOX START*/
label.checkbox {
    padding: 5px 20px 5px 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: bottom;
    display: inline-block;
}

label.checkbox input { display: none; }

label.checkbox span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #292254;
    border-radius: 3px;
    content: ' ';
    vertical-align: bottom;
    margin-right: 6px;
    margin-left: -30px;
}

label.checkbox input:checked + span {
    position: relative;
    background-color: #292254;
    border-color: #292254;
}

label.checkbox input:checked + span::before {
    position: absolute;
    display: block;
    content: ' ';
    border-bottom: 2px solid #FFF;
    border-right: 2px solid #FFF;
    width: 3px;
    height: 6px;
    top: 3px;
    left: 6px;
    transform: rotate(45deg);
}

label.checkbox.disabled { color: #ccc; }

label.checkbox.disabled span { border-color: #ccc; }

label.checkbox.disabled input:checked + span {
    background-color: #ccc;
    border-color: #ccc;
}

label.checkbox.disabled:hover { cursor: not-allowed; }
/*CHECKBOX END*/


/*custom radio*/
label.radiocheck {
/*    line-height: 16px;*/
    padding: 5px 20px 5px 30px;
    vertical-align: bottom;
    display: inline-block;
}

label.radiocheck input { display: none;}

label.radiocheck span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #292254;
    border-radius: 50%;
    content: ' ';
    vertical-align: bottom;
    margin-left: -30px;
    margin-right: 10px;
}

label.radiocheck input:checked + span {
    position: relative;
    border-color: #292254;
}

label.radiocheck input:checked + span::before {
    position: absolute;
    display: block;
    content: ' ';
    background-color: #292254;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

/* custom radio END */

@media only screen and (-webkit-min-device-pixel-ratio: 1.5){
/*only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
    input, textarea, select {
        font-size: 18px !important;
        line-height: 28px !important;
        padding: 5px 10px !important;
        height: 38px !important;
    }*/

    /* select {
        background-image: url(../img/select/arrow1@2x.png);
    } */

}

/* For iPhone before 12 */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
    input
    textarea,
    select {
        font-size: 12px;
    }
}

/* For iPhone 12 and 13 */
@media only screen and (-webkit-min-device-pixel-ratio: 3) {
    input
    textarea,
    select {
        font-size: 12px;
    }
}

.public .iagree {
    display: flex;
    justify-content: space-between;
    align-items: center;
}