﻿.eid-form {
    width: 100%;
}

.eid-form--fieldset {
    margin-bottom: 15px;
    // @include align-items(flex-end);
}

.eid-form--field {
    label

{
    display: block;
    height: auto;
    min-height: 15px;
    line-height: 15px;
    font-weight: 500;
    font-size: 12px;
    color: rgba($primary, 0.7);
    margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
    display: block;
    width: 100%;
    font-weight: 500;
    font-size: 13px;
    padding: 0 20px;
    padding: 0px 20px;
    height: 45px;
    line-height: 45px;
    background: #FAFAFA;
    box-shadow: 0 0 0 1px $primary-trasparent;
    color: $primary;
    border-radius: 2px;
    background: #FAFAFA;
    &:focus

{
    outline: none;
    border-color: #263864;
    box-shadow: 0 0 0 1px #263864;
}

&::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: rgba($primary, 0.7);
}

&:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: rgba($primary, 0.7);
}

&::-ms-input-placeholder { /* Microsoft Edge */
    color: rgba($primary, 0.7);
}

}

textarea {
    height: auto;
    line-height: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: none;
}

select {
    -moz-appearance: none; /* Firefox */
    -webkit-appearance: none; /* Safari and Chrome */
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.840559 1.91895C0.609137 1.68752 0.609137 1.31231 0.840559 1.08089C1.05094 0.87051 1.38016 0.851384 1.61215 1.02352L1.67861 1.08089L6.00033 5.40234L10.322 1.08089C10.5324 0.87051 10.8616 0.851384 11.0936 1.02352L11.1601 1.08089C11.3705 1.29128 11.3896 1.62049 11.2175 1.85248L11.1601 1.91895L6.41935 6.65969C6.20897 6.87007 5.87975 6.88919 5.64776 6.71706L5.5813 6.65969L0.840559 1.91895Z' fill='%23212121'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 18px;
}

&.required {
    label

{
    position: relative;
    &:after

{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 3px;
    display: inline-block;
    background: rgba(185, 45, 58, 1);
    margin-left: 5px;
    margin-bottom: 1px;
}

}
}

.password-field {
    position: relative;
    span

{
    position: absolute;
    font-size: 24px;
    top: 11px;
    right: 11px;
    font-family: 'um';
    color: darken($primary, 10%);
    &:before

{
    content: "\e921";
}

&.shown {
    &:before

{
    content: "\e922";
}

}

&:hover {
    cursor: pointer;
}

}
}
}

.eid-form--checkbox {
    label

{
    position: relative;
    height: auto;
    .check

{
    position: absolute;
    left: 0;
    top: 3px;
    &:hover

{
    cursor: pointer;
    &:before

{
    color: #777;
}

}

&:before {
    display: block;
    font-family: 'um';
    content: "\e91c";
    color: #B9B9B9;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
}

}

.text {
    padding-left: 32px;
    color: var(--primary);
    padding-top: 2px;
    a

{
    color: var(--primary);
}

}
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    &:checked

{
    height: 30px;
    width: 30px;
    ~ .check

{
    &:before

{
    content: "\e91d";
    color: $primary;
}

}
}
}
}

.eid-form--fileinput {
    overflow: hidden;
    input [type="file"]

{
    opacity: 0;
    position: absolute;
    left: -5000px;
}

.fileinput--files {
    display: none;
}

&.selected {
    background-color: #E5FFFA;
    &:hover

{
    background-color: #E5FFFA !important;
    .eid-icon-attachment

{
    color: #31C5AA !important;
}

}

.eid-icon-attachment {
    color: #31C5AA;
}

.fileinput--text {
    display: none;
}

.fileinput--files {
    display: block;
}

&.valid {
}

}

.fileinput--files {
    margin: -5px 0;
    @extend .flex-flex;
    > div

{
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    color: $primary;
    position: relative;
    padding-right: 30px;
    line-height: 20px;
    text-align: left;
    max-width: 190px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    + div

{
    border-top: 1px dashed rgba(38, 57, 101, 0.3);
}

span {
    position: absolute;
    right: 0;
    font-size: 14px;
    top: 3px;
    color: var(--brand-red);
    font-family: 'um' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    &:before

{
    content: "\e906";
}

&:hover {
    cursor: pointer;
}

}
}
}
}

.eid-form--error {
    font-size: 12px;
    color: $brand-red;
    font-weight: 500;
    list-style: none;
    margin-top: 5px;
}

.eid-form--note {
    font-style: italic;
    color: #605F5F;
    font-size: 10px;
    font-weight: 500;
    line-height: 13px;
    text-align: right;
    .eid-form--note-required

{
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    display: inline-block;
    background: rgba(185, 45, 58, 1);
    margin-left: 5px;
    margin-right: 5px;
    vertical-align: middle;
}

}

.eid-form--blocking {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.89);
    padding: 50px;
    .eid-form--blocking-text

{
    position: absolute;
    width: 100%;
    bottom: 60px;
}

.eid-form--loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}
}
