:root {
  --triangle-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill="#666" d="M4.5,5.5l10,0l-5,9l-5,-9Z"/></svg>') no-repeat 50% 50%;
  --triangle-select: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill="black" opacity="0.3" d="M4.5,5.5l10,0l-5,9l-5,-9Z"/></svg>') no-repeat 50% 50%;
  --check-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8.294 16.998c-0.435 0-0.847-0.203-1.111-0.553l-3.573-4.721c-0.465-0.613-0.344-1.486 0.27-1.951 0.615-0.467 1.488-0.344 1.953 0.27l2.351 3.104 5.911-9.492c0.407-0.652 1.267-0.852 1.921-0.445s0.854 1.266 0.446 1.92l-6.984 11.21c-0.242 0.391-0.661 0.635-1.12 0.656-0.022 0.002-0.042 0.002-0.064 0.002z"/></svg>') no-repeat 50% 50%;
  --search-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M17.545 15.467l-3.779-3.779c0.57-0.935 0.898-2.035 0.898-3.21 0-3.417-2.961-6.377-6.378-6.377s-6.186 2.769-6.186 6.186c0 3.416 2.961 6.377 6.377 6.377 1.137 0 2.2-0.309 3.115-0.844l3.799 3.801c0.372 0.371 0.975 0.371 1.346 0l0.943-0.943c0.371-0.371 0.236-0.84-0.135-1.211zM4.004 8.287c0-2.366 1.917-4.283 4.282-4.283s4.474 2.107 4.474 4.474c0 2.365-1.918 4.283-4.283 4.283s-4.473-2.109-4.473-4.474z"/></svg>') no-repeat 50% 50%;
  --icon-background-color: #000;
  --background-color-base: #fff;
  --border-color: #d9d9d9;
  --background-color: #fff;
  --search-background: hsl(210, 9%, 96%);
  --text-color: #000;
  --field-padding: 5px 2.5em 5px 8px;
  --field-height: 30px;
/*  --option-hover: #f5f3ec;*/
  --option-hover: #efefef;
  --option-selected: #dfdfdf;
}

#forms_wrap select {
  font-size: 1em;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  text-align: left;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text-color);
  font-size: 1em;
	position: relative;
	padding: var(--field-padding);
  min-height: var(--field-height);
	overflow: hidden;
	text-overflow: ellipsis;
	border: 1px solid var(--border-color);
  border-radius: 3px;
  line-height: 1.5;
  box-sizing: border-box;
  background: #fff var(--triangle-select);
  background-position: 99% 50%;
  background-size: 15px;
}

#forms_wrap .egrp {
  clear: both;
  padding: 5px 0 10px;
}
#forms_wrap .egrp label {
  float: none;
  clear:both;
  display: block;
  margin: 0 0 5px 0;
  font-weight: bold;
  font-size: 13px;
}

#forms_wrap .egrp input[type="checkbox"] {
  display: none;
}

#forms_wrap .egrp input[type="checkbox"] + label {
  float: none;
  font-size: 13px;
  font-weight: normal;
  margin: 0;
  position: relative;
  display: inline-block;
  padding: 0 15px 0 25px;
  cursor: pointer;
}

#forms_wrap .egrp input[type="checkbox"] + label:before {
  content: "";
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 3px;
  left: 0;
  top: auto;
}


#forms_wrap .egrp input[type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  display: block;
  width: 5px;
  height: 10px;
  background: transparent;
  border: 2px solid #d73600;
  border-width: 0 2px 2px 0;
  border-radius: 0px;
  left: 6px;
  top: 1px;
  transform: rotate(40deg);
  filter: drop-shadow(0px 1px 1px #0006);
}


#forms_wrap .frow {
  display: flex;
  margin: 10px 0 15px -20px;
}

#forms_wrap .rgroup2 {
  display: flex;
  margin: 10px 0 15px 1px;
  justify-content: flex-start;
}

#forms_wrap .frow .rgroup2 {
  margin: 10px 0 15px 21px;
}

#forms_wrap .rgroup2 input[type="radio"] {
  display: none;
}

#forms_wrap .rgroup2 input[type="radio"] + label {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  font-size: 12px;
  padding: 6px 14px;
  height: auto;
  line-height: 1.3;
  border: 1px solid #bbb;
  margin: 0 0 0 -1px;
/*  display: flex;*/
  flex: 0 auto;
  align-items: center;
  text-align: center;
  cursor: pointer;
}


#forms_wrap .rgroup2 label:first-of-type {
  border-radius: 4px 0 0 4px !important;
}

#forms_wrap .rgroup2 label:last-of-type {
  border-radius: 0 4px 4px 0 !important;
}

#forms_wrap .rgroup2 input[type="radio"]:checked + label {
/*  border-color: #c30;
  border-radius: 4px !important;
  border-width: 2px !important;*/
  z-index: 10;
}

#forms_wrap .rgroup2 input[type="radio"]:checked + label:after {
    content: "";
    display: block;
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    pointer-events: none;
    background: transparent;
    border: 2px solid #c30;
    border-radius: 4px;
    top: -2px;
    left: -2px;
    box-sizing: border-box;
    z-index: 10;
}
