/************************** NDI__volunteer_FORM_STYLES **************************/
#ndi_new_volunteer_form {
	margin-top: 1rem;
    width: 100%;
    padding: 50px;
    background: #0084cf;
}
#ndi_new_volunteer_form form{
	direction:rtl;
}
#ndi_new_volunteer_form form input[type=text] {
	padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.25rem;
}
#ndi_new_volunteer_form form select {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.25rem;
    height: 3.5rem;
}
#ndi_new_volunteer_form form .checkbox_holder {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: 0;
}


/* для элемента input c type="checkbox" */
.custom-checkbox {
	position: absolute;
	z-index: -1;
	opacity: 0;
	width: auto;
}

/* для элемента label, связанного с .custom-checkbox */
.custom-checkbox+label {
	display: inline-flex;
	align-items: center;
	user-select: none;
	color:#fff;
	font-size: 1.25em;
}

/* создание в label псевдоэлемента before со следующими стилями */
.custom-checkbox+label::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 0.25em;
    margin-left: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    background: #fff;
}

/* стили при наведении курсора на checkbox */
.custom-checkbox:not(:disabled):not(:checked)+label:hover::before {
  border-color: #b3d7ff;
}

/* стили для активного чекбокса (при нажатии на него) */
.custom-checkbox:not(:disabled):active+label::before {
  background-color: #b3d7ff;
  border-color: #b3d7ff;
}

/* стили для чекбокса, находящегося в фокусе */
.custom-checkbox:focus+label::before {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.custom-checkbox:focus:not(:checked)+label::before {
  border-color: #80bdff;
}

/* стили для чекбокса, находящегося в состоянии checked */
.custom-checkbox:checked+label::before {
  border-color: #0b76ef;
  background-color: #0b76ef;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* стили для чекбокса, находящегося в состоянии disabled */
.custom-checkbox:disabled+label::before {
  background-color: #e9ecef;
}


#ndi_new_volunteer_form form input.error{
	background:#f33;
	color:#fff;
}
#ndi_new_volunteer_form form label.error{
	color:#f33;
}
form select.error {
	border: 1px solid #f00;
}
.checkbox_holder .form-group {
	margin-bottom: 0.5rem;
}
@media (max-width: 1599px) and (min-width: 1200px){
/* для элемента label, связанного с .custom-checkbox */
.custom-checkbox+label {
	font-size: 1em;
}
@media (max-width: 767px){
	#ndi_new_volunteer_form {
		width:100%;
		padding: 30px 15px;
	}
}
@media (max-width: 600px){
	#ndi_new_volunteer_form form input[type=text] {
		padding: 5px;
		margin-bottom: 10px;
		border-radius: 3px;
		font-weight: 500;
		font-size: 1rem;
	}
	#ndi_new_volunteer_form form select {
		padding: 5px;
		margin-bottom: 10px;
		border-radius: 3px;
		font-weight: 500;
		font-size: 1rem;
		height: auto;
	}
}