/* Forms */
input{
    margin: 0 0 8px;
    padding: 8px 16px;
    line-height: 1.5; /* 24px */
    border: none;
    border-radius: 0;
    background: #464646;
    width: 100%;
}
input:focus{
    outline: none;
}
::placeholder{
    color: #858585;
}

button{
    border-radius: 0;
}
button:disabled{
    cursor: not-allowed;
}

label{
    font-size: 0.75em; /* 12px */
    line-height: 2; /* 24px */
    color: #6F7170;
}

input{
    background: rgba(90,90,90,0.7);
    border: 1px solid transparent;
    color: #fff;
}

input.error{
    background: rgba(90,90,90,0.7);
    border: 1px solid #F04187;
}

input.filled-in{
    background: none;
    border-bottom: 1px solid #547aee;
}

input:focus{
    background: rgba(90,90,90,0.7);
    border-color: rgba(255,255,255,0.4);
}

textarea{
    display: block;
    width: 100%;
    height: 300px;
    padding: 8px 16px;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.4);
    background-color: rgba(90,90,90,0.7);
    color: #fff;
}
textarea.filled-in{
    background: none;
    border: none;
    border-bottom: 1px solid #547aee;
}

.form-buttons{
    display: flex;
    column-gap: 24px;
    margin: 32px 0 0;
}
.form-buttons .btn{
    flex: 1;
    padding: 8px 5px;
}

/* Custom Placeholder for different colored '*' */
.input-placeholder {
    position: relative;
}
.input-placeholder input {
    width: 100%;
    padding: 8px 16px;
}
.input-placeholder input:valid + .placeholder {
    display: none;
}
.placeholder {
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 8px 16px;
    font-size: 1em; /* 16px */
    line-height: 1.5; /* 24px */
    color: rgba(255,255,255,0);
}
.placeholder span {
    color: #547aee;
}

/* Custom Select */
.select-hidden {
    display: none;
    visibility: hidden;
    padding-right: 10px;
}
.select {
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-size: 0.875em; /* 14px */
    line-height: 1.71; /* 24px */
    color: #fff;
    width: 100%;
    height: 40px;
}
.select-styled {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(90,90,90,0.7);
    padding: 0 40px 0 16px;
    line-height: 2.5em; /* 40px */
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
    overflow: hidden;
}
.select-styled:after {
    content: "";
    width: 14px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 14px;
    background: url(../images/icons/chevron-down.svg) 50% 50% no-repeat;
    /*
    border: 7px solid transparent;
    border-color: #fff transparent transparent transparent;
    */
}
.select-styled:hover {

}
.select-styled:active, .select-styled.active {

}
.select-styled:active:after, .select-styled.active:after {
    /*
    top: 9px;
    border-color: transparent transparent #fff transparent;
    */
}
.select-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: rgba(90,90,90,0.7);
}
.select-options li {
    margin: 0;
    padding: 8px 16px;
    border-top: 1px solid rgba(255,255,255,0.3);
    -moz-transition: all 0.15s ease-in;
    -o-transition: all 0.15s ease-in;
    -webkit-transition: all 0.15s ease-in;
    transition: all 0.15s ease-in;
}
.select-options li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.select-options li:hover {

}
.select-options li[rel="hide"] {
    display: none;
}


/* Select 2 */
.select2-container{
    /*width: 100% !important;*/
    margin: 0 0 8px;
}
.select2-container--default .select2-selection--single,
.select2-container--default.item-selected.select2-container--open .select2-selection--single{
    border-radius: 0;
    border: none;
    background: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    background-color: rgba(90,90,90,0.5);
    height: auto;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: rgba(255,255,255,0.8);
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    padding: 8px 16px;
    font-size: 0.875em; /* 14px */
    line-height: 1.71; /* 24px */
    color: rgba(255,255,255,0.8);
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    width: 28px;
    height: 100%;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b{
    width: 14px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 14px;
    left: auto;
    margin: 0;
    border: none;
    background: url(../images/icons/chevron-down.svg) 50% 50% no-repeat;
    opacity: 0.8;
}

.select2-container--default.select2-container--open .select2-selection--single{
    background-color: rgba(90,90,90,0.7);
    color: #fff;
}

.select2-container--default.item-selected .select2-selection--single{
    background: none;
    border-bottom: 1px solid #547aee;
    color: #fff;
}

.select2-dropdown{
    background-color: #515151; /*rgba(255,255,255,0.3);*/
    border-radius: 0;
    border: none;
}
.select2-search--dropdown{
    display: none;
}
.select2-container--default .select2-results__option--selectable{
    padding: 8px 16px;
    font-size: 0.875em; /* 14px */
    line-height: 1.71; /* 24px */
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    background: none;
    position: relative;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background: none;
}
.select2-container--default .select2-results__option--selected:after{
    content: '';
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 18px;
    /*background: url(../images/icons/check-green.svg) 50% 50% no-repeat;*/
    background-image: url("data:image/svg+xml,%0A%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 11.2L1.7999 6.99998L0.399902 8.39998L5.9999 14L17.9999 1.99998L16.5999 0.599976L5.9999 11.2Z' fill='%23547aee'/%3E%3C/svg%3E%0A");
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.select2-container--default .select2-results__option--selectable.select2-results__option--highlighted{
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

/* Search Form */
.search-form-wrapper{
    margin-bottom: 36px;
}
.search-form-wrapper .search-icon{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #547aee url(../images/search.svg) 50% 50% no-repeat;
    margin: 4px auto 40px;
}
.search-form-wrapper form{
    position: relative;
}
.search-form-wrapper input{
    width: 100%;
    border: none;
    background: rgba(90,90,90,0.7);
    color: #ccc; /*#6F7170;*/
    width: calc(100% - 50px);
    margin: 0;
}
.search-form-wrapper ::placeholder{
    color: #ccc; /*#6F7170;*/
}
.search-form-wrapper input:focus{
    border: none;
    color: #6F7170;
}
.search-form-wrapper button svg{
    margin: 11px auto;
}
.search-form-wrapper:focus-within input,
.search-form-wrapper.focus-within input{
    background: #fff;
    /*width: calc(100% - 40px);*/
}
.search-form-wrapper button{
    /*display: none;*/
    border-radius: 50%;
}
#sidebar .search-form-wrapper button:hover,
#sidebar .search-form-wrapper button:focus,
#sidebar .search-form-wrapper button:focus-visible{
    background-color: #fff;
    outline: none;
}

.search-form-wrapper:focus-within button,
.search-form-wrapper.focus-within button{
    /*display: flex;*/
}

.single-line-form{
    position: relative;
}
button.form-submit-inline{
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #547aee;
    border: none;
    outline: none;
    align-items: center;
    cursor: pointer;
}

.large-input input{
    font-size: 1.5em; /* 24px */
    line-height: 1.25; /* 30px */
    padding: 17px 24px;
}

.large-input button.form-submit-inline{
    width: 64px;
    height: 64px;
}


body.admin-bar .select2-dropdown--below{
    top: 32px;
}

/* Clearable text inputs */
.clearable{
  position: relative;
  /*display: inline-block;*/
}
.clearable input[type=text]{
  /*padding-right: 24px;
  width: 100%;*/
  box-sizing: border-box;
}
.clearable__clear{
  display: none;
  position: absolute;
  right:0; top:0;
  padding: 0 0.5em;
  font-style: normal;
  font-size: 1.2em;
  line-height: 1;
  user-select: none;
  cursor: pointer;
}
.clearable input::-ms-clear {  /* Remove IE default X */
  display: none;
}

.clearable.clear .clearable__clear{
    display: block;
}


.single-line-form.large-input .clearable__clear {
    top: -0.25em; /* -4px */
    font-size: 2.625em; /* 42px */
}