/*///////////////////////// 
    FORMS
/////////////////////////*/

fieldset{
    border: none;
    margin: 0;
    padding: 0;
}
.inline-text-field-container {
    display: flex;
    flex-direction: column;
}

.ds-text-field{
    display: inline-flex;
    position: relative;
    height: 56px;
    width: 100%;
    border-radius: 4px 4px 0 0;
    margin-bottom: 35px;
    box-sizing: border-box;
    overflow: hidden;
    background: white;
    overflow: visible;
}


/*//////////////////////////// 
    HELP/ERROR ELEMENTS 
////////////////////////////*/

.ds-text-field__input.field-error ~ label.ds-floating-label{
    color: var(--red-800)!important;
}

.ds-text-field .help{
    position: absolute;
    bottom: -13px;
    left: 15px;
    height: 10px;
    width: 100%;
    padding: 0 0 0 10px;
    font-size: 15px;
    color: var(--gray-800);
}
.ds-text-field .error{
    position: absolute;
    bottom: -13px;
    left: 15px;
    height: 10px;
    width: calc(100% - 15px);
    padding: 0 0 0 10px;
    font-size: 15px;
    color: var(--red-800);
    transition: all .2s ease-in-out;
}

.ds-text-field .help::after{
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-800);
}
.ds-text-field .error::after {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red-800);
}
.ds-text-field .error::before {
    content: '';
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    bottom: 22px;
    right: 15px;
    height: 30px;
    width: 30px;
    padding: 0 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--red-800);
    z-index: 100;
    pointer-events: none;
}

.ds-text-field > span.error{
    display: none;
}
.ds-text-field__input.field-error ~ span.error{
    display: block;
}

/*///////////////////////////*/


.ds-text-field.drk{
    background: var(--gray-100);
}
.ds-text-field__input{
    align-self: flex-end;
    width: inherit;
    height: 100%;
    padding: 20px 20px 0px;
    font-size: 1rem;
    text-decoration: inherit;
    text-transform: inherit;
    border-radius: 4px 4px 0 0;
    border: none;
    border-bottom: 1px solid;
    box-sizing: border-box;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    background: none;
    appearance: none;
}
.white > .ds-text-field__input:focus{
    outline: none;
    background: var(--gray-200);
    /* box-shadow: 0 0 22px -5px rgb(0 0 0 / 20%); */
}
.ds-text-field__input:focus{
    outline: none;
    background: #dcdcdc;
}
.ds-text-field:hover{
    background: #ebebeb;
    transition: all 100ms ease-in-out;
}
.ds-text-field{
    z-index: 0;
}
.ds-text-field__input ~ .ds-floating-label{
    left: 0;
    right: 0;
    top: 50%;
    width: inherit;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-800);
}
.ds-text-field__input:focus ~ .ds-floating-label,
.ds-text-field__input:valid ~ .ds-floating-label,
.ds-text-field__input.eas-has-value:disabled ~ .ds-floating-label {
    left: 0;
    right: 0;
    top: 30%;
    font-size: .875rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-700);
}
.ds-text-field__input:focus ~ .ds-floating-label.blue-label,
.ds-text-field__input:valid ~ .ds-floating-label.blue-label {
    left: 0;
    right: initial;
    top: 30%;
    font-size: .875rem;
    transform: translateY(-50%);
    pointer-events: none;
}
input.search-input-button{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
    padding: 0 20px;
    border: 0;
    cursor: pointer;
    background: transparent;
    font-size: 1rem;
}
button.search-input-button::after{
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 20px;
    height: 20px;
    /* background: url(../images/SVG/search-icon.svg) no-repeat; */
}

.ds-floating-label{
    text-decoration: inherit;
    text-transform: inherit;
    position: absolute;
    transform-origin: left top;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.15rem;
    text-align: left;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: text;
    overflow: hidden;
    padding-right: 16px;
    left: 0;
    right: initial;
    top: 50%;
}

.ds-text-field__input:focus ~ .ds-floating-label{
    left: 0;
    right: initial;
    top: 30%;
    font-size: .875rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-700);
}

.field-line-ripple {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: all 260ms cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    opacity: 0;
    z-index: 2;
}

/* Field-line-ripple colors */


.ds-text-field:not(.ds-text-field--disabled) .ds-text-field__input:focus {
    border-bottom-color: rgba(0,0,0,.87);
}
.ds-text-field:not(.ds-text-field--disabled) .ds-text-field__input:focus~.field-line-ripple {
    opacity: 1;
    transform: scaleX(1);
}
.ds-text-field:not(.ds-text-field--disabled) .ds-text-field__input:focus~.field-line-ripple.blue {
    opacity: 1;
    transform: scaleX(1);
}
.ds-text-field:not(.ds-text-field--disabled) .ds-text-field__input:focus~.field-line-ripple.red {
    opacity: 1;
    transform: scaleX(1);
    background: var(--red-800);
}

/* INPUT - ERROR STATE */

.ds-text-field::after > .field-error{
    content: 'f06a';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    color: var(--red-800);
    z-index: 20;
    background: var(--red-100)!important;
}

.ds-text-field__input.ng-invalid.ng-touched ~ .field-line-ripple{
    background: var(--red-800)!important;
    opacity: 1;
    transform: scaleX(1);
}

.ds-text-field.field-error ~ .ds-text-field__input  {
    opacity: 1;
    transform: scaleX(1);
    background: var(--red-800);
}

/*////////////////////////// 
    DISABLED 
//////////////////////////*/

.ds-text-field.disabled > .ds-text-field__input:disabled ~ .field-line-ripple {
    display: none;
}

.ds-text-field__input:disabled ~ label.ds-floating-label > span {
    color: var(--gray-700);
    font-size: 15px;
}

.ds-text-field.disabled {
    background: var(--gray-300)!important;
}

.ds-text-field > .icon{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;

}


/* styling */
.ds-text-field:not(.ds-text-field--disabled) .ds-text-field__input {
    border-bottom-color: rgba(0,0,0,.42);
}

/* HOVER */
.ds-text-field:hover:not(.ds-text-field--disabled) .ds-text-field__input {
    border-bottom-color: rgba(0,0,0,.87);
}

/* DS TextArea */
.text-area-container{
    position: relative;
    width: 100%;
    height: auto;
    line-height: 0;
    z-index: 0;
}
.text-area-container textarea{
    position: relative;
    width: 100%;
    padding: 20px;
    text-align: left;
    border: 0;
    outline: none;
    border-bottom: 1px solid #000;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    background: white;
    transition: all .2s ease-in-out;
    z-index: 1;
}

.text-area-container input[type="text"], textarea:focus ~ .field-line-ripple{
    opacity: 1;
    transform: scaleX(1);
}

.text-area-container input[type="text"], textarea:focus.white{
    /* background: var(--gray-200)!important; */
}

.text-area-container textarea.gray{
    background: #f5f5f5;
}

.text-area-container input[type="text"], textarea:hover.gray{
    background: #ebebeb;
    outline: none;
}
.text-area-container input[type="text"], textarea:focus.gray{
    background: #dcdcdc;
    outline: none;
}

/*style label to give some more space*/
.radio-button > label {
    display: block;
    padding: 0 0 0 40px;
}

/*style and hide original checkbox*/
.radio-button > input {
    position: absolute;
    left: 0;
    top: 0;    
    height: 20px; 
    width: 20px;
    padding: 0;
    margin: 0;
    opacity: 0;
}

/*position new box*/
.radio-button > input + label::before {
    content: "";
    position: absolute;
    left: 10px;
    top: calc(50% - 9px);
    height: 17px;
    width: 17px;
    border: 2px solid var(--gray-500);
    border-radius: 50%;
    transition: all 0.1s ease-in-out;
}

/*radio pseudo element styles*/
.radio-button > input + label::after {
    content: "";
    position: absolute;
    left: 16px;
    top: calc(50% - 3px);
    height: 9px;
    width: 9px;
    
    background: #1960ff;
    border-radius: 50%;
    
    transform-origin: center;
    transform: scale(.5);
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

/*reveal check for 'on' state*/
.radio-button > input:checked + label::after {
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
}
.radio-button > input:checked + label::before {
    content: "";
    border: 2px solid var(--gray-400);
    background: var(--gray-400);
}
.radio-button > input:checked + label{
    cursor: default;
}

/* focus styles - For Windows high contrast mode. */
/*input:focus + label::before {
    box-shadow: 0 0 0 3px transparent; 
    outline: 3px solid transparent; 
}
*/

/* //////////////////////// 
    SELECT OPTION 
/////////////////////////*/


select{
    appearance: none;
    -webkit-appearence: none;
    -moz-appearance: none;
}
.ds-select-field{
    display: inline-flex;
    position: relative;
    height: 56px;
    
    font-size: 16px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 35px;
    box-sizing: border-box;
    overflow: hidden;
    background: white;
    width: 100%;
    padding: 20px 20px 0 20px;
    color: black;
    margin: 0;
    border: 0;
    outline: none;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.select-container.chevron::before{
    content: '\f078';
    position: absolute;
    top: 23px;
    right: 20px;
    font-family: 'font awesome 5 pro';
    font-weight: 800;
    pointer-events: none;
    z-index: 100;
}

.select-container.chevron::before > select:active{
    content: '\f078';
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: 'font awesome 5 pro';
    transform: rotate(180deg);
    pointer-events: none;
}

/* select > option:first-of-type{
    display: none;
} */

select:invalid  ~ .ds-floating-label{
    left: 0;
    right: initial;
    top: 50%;
    width: 100%;
    padding: 0 20px;
    font-size: 1em;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-700);
}

select:valid ~ .ds-floating-label{
    left: 0;
    right: initial;
    top: 30%;
    width: 100%;
    padding: 0 20px;
    font-size: .875rem;
    transform: translateY(-30%);
    pointer-events: none;
    color: var(--gray-700);
}
select:focus ~ .ds-floating-label{
    left: 0;
    right: initial;
    top: 30%;
    width: 100%;
    padding: 0 20px;
    font-size: .875rem;
    transform: translateY(-30%);
    pointer-events: none;
    color: var(--gray-700);
}
/* left: 0;
right: 0;
top: 50%;
width: inherit;
padding: 0 20px;
transform: translateY(-50%);
pointer-events: none;
color: var(--gray-800); */
/* select:focus ~ .ds-floating-label{
    left: 0;
    right: initial;
    top: 30%;
    font-size: .875rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-700);
} */

/* select option:first ~ .ds-floating-label{
    left: 0;
    right: initial;
    top: 30%;
    font-size: 1em;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-700);
} */

/* .select-container.chevron::after{
    content: '\f078';
    position: absolute;
    top: 23px;
    right: 20px;
    font-family: 'font awesome 5 pro';
    font-weight: 800;
    pointer-events: none;
}
.select-container.chevron::after > select:focus.ds-select-field{
    content: '\f078';
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: 'font awesome 5 pro';
    transform: rotate(180deg);
    pointer-events: none;
} */





select:focus.ds-select-field{
    background: #dfdfdf;
}
select:focus.ds-select-field:hover{
    background: #dfdfdf;
}
select::-ms-expand {
    display: none;
}

.ds-select-field.drk{
    background: var(--gray-100);
}
.ds-select-field:hover.drk{
    background: #ebebeb;
    transition: all 100ms ease-in-out;
}

.select-container{
    position: relative;
}
.select-container .error{
    position: absolute;
    bottom: -13px;
    left: 15px;
    height: 10px;
    width: calc(100% - 15px);
    padding: 0 0 0 10px;
    font-size: 15px;
    color: var(--red-800);
    transition: all .2s ease-in-out;
}

select.ds-select-field .option{
    background: var(--gray-200);
}


/*//////////////////////////////// 
    Radio with Background 
////////////////////////////////*/

.container.radio-button.radio-bg {
    position: relative;
    height: 45px;
    width: max-content;
}
.container.radio-button.radio-bg > input{
    position: absolute;
    left: 0;
    top: 0;
    height: 20px;
    width: 20px;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.container.radio-button.radio-bg > label{
    width: max-content;
    cursor: pointer;
    transition: all .2s ease-in-out;
}
.container.radio-button.radio-bg > input + label{
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 40px;
    border-radius: 6px;
}
.container.radio-button.radio-bg > input:checked + label.click-white{
    background: white!important;
    cursor: default;
}


/* //////////////////////// 
    CHECKBOX
/////////////////////////*/

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
  }

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #757575;
  }
.checkbox-container:hover > span.checkmark {
    background-color: transparent;
    border: 2px solid var(--blue-800);
  }

.checkbox-container:hover  > span.checkmark{
    background-color: transparent;
    border: 2px solid var(--red-800);
  }
  
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--red-800);
    border: 2px solid var(--red-800);
  }
.checkbox-container input:focus ~ .checkbox{
      outline: 2px solid gray;
  }


.checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
  }
  
.checkbox-container .checkmark:after {
    left: 2px;
    top: 3px;
    width: 13px;
    height: 15px;
    background: url(/designsys/src/assets/images/SVG/check-white.svg) no-repeat;
  }

.checkbox-container input:focus + label::before{
    box-shadow: 0 0 0 3px #ffbf47;  
    outline: 3px solid transparent;
}



@media screen and (max-width: 512px) { 

    .inline-text-field-container{
        gap: 0 !important;
    }

}