/*
    Input
*/

.f-input {
    height: 40px;
    padding: 0 12px;
    border-radius: 3px;
    border: solid 1px #d6dbdf;
    background-color: #ffffff;
    color: #495057;
    font-size: 14px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.f-input::placeholder {
    letter-spacing: 0.5px;
    color: #bdbdbd;
}

.f-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.f-input::-webkit-input-placeholder {
    letter-spacing: 0.5px;
    color: #bdbdbd;
}
.f-input::-moz-placeholder {
    letter-spacing: 0.5px;
    color: #bdbdbd;
}
.f-input:-ms-input-placeholder {
    letter-spacing: 0.5px;
    color: #bdbdbd;
}
.f-input:-moz-placeholder {
    letter-spacing: 0.5px;
    color: #bdbdbd;
}
.f-input[type="checkbox"] {
    vertical-align: middle;
}

.field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: right;
}

.field .t-label, .multi .t-label {
    min-width: 120px;
    font-size: 14px;
    font-weight: 500;
}
.multi .field .t-label {
    min-width: initial;
}

.field .f-input {
    line-height: 40px;
    flex-grow: 1;
    width: 100%;
}

.multi {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.multi .field {
    margin-right: 15px;
}

.multi .field:last-child {
    margin-right: 0;
}

.multi .field .t-label {
    width: 30px;
}

.multi .field .f-input {
    width: 0;
}

@media (max-width: 768px) {
    .field {
        flex-direction: column;
        align-items: flex-start;
    }
    .field .f-input, .multi .field .f-input {
        width: 100%;
    }
}

select {
    background: #ffffff;
    font-size: 14px;
    border-radius: 2px;
    border: solid 1px #d6dbdf;
    height: 44px;
    -moz-appearance:none; /* Firefox */
    -webkit-appearance:none; /* Safari and Chrome */
    appearance:none;
    background-position-y: 52%;
    background-position-x: 95%;
    background-position-x: calc(100% - 11px);
    background-image: url("/img/arrow-dropdown.svg");
    background-repeat:  no-repeat;
}
select::-ms-expand {
    display: none;
}

select:disabled {
    background: #f2f2f2;
    border: solid 1px #d6dbdf;
    color: #B9B9B9;
    border-radius: 2px;
}

input:disabled {
    background: #f2f2f2;
    border: solid 1px #d6dbdf;
    color: #B9B9B9;
    border-radius: 2px;
}

/*
    Validations
*/

.was-validated .f-input:valid,
.was-validated .f-input:invalid {
/*    padding-right: 38px;*/
    background-repeat: no-repeat;
    background-position: center right 10px;
    background-size: 18px 18px;
}
.was-validated .f-input:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}
.was-validated .f-input:invalid {
    border-color: #dc3545;
    background-image: url("/icons/attention.svg");
}

/*
    Styling for company list
*/

#autoComplete_results_list {
    border-color: #e3e3e3;
    border-width: 1px 0;
    border-radius: 3px;
    position: absolute;
    display: block;
    padding: 0;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    width: 400px;
    overflow: auto;
    max-height: calc(42px * 7);
    z-index: 1;
}

.hidden {
    display: none !important;
}

.autoComplete_result {
    min-height: 42px;
    margin: 0rem auto;
    padding: 0.6rem;
    border: 1px solid #e3e3e3;
    list-style: none;
    text-align: left;
    font-size: 14px;
    color: rgb(100, 100, 100);
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    cursor: pointer;
}

.autoComplete_result:hover {
    background-color: rgb(228, 241, 254);
    margin: 0rem auto;
}

.autoComplete_result:focus {
    outline: none;
    background-color: rgba(228, 241, 254);
}

.autoComplete_highlighted {
    color: rgba(0, 0, 0, 5);
    font-weight: bold;
}

.requiredstar {
    padding: 3px;
    font-size: 13px;
    color: #959595;
}

#postal-search-button {
    font-size: 13px;
    text-decoration: underline;
    color: #1c9e3b;
    cursor: pointer;
}

.terms {
    display: flex;
    justify-content: center;
    align-items: center;
}
