textarea.formControl {
    resize: none;
    font-family: inherit;
    min-height: 120px;
}


select.formControl {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-weight: lighter;
}

select.formControl::-ms-expand {
    display:none;
}

select.formControl + .arrow:after,
select.formControl + span + .arrow:after {
    content: '\2303';
    transform: rotate(180deg);
    color: #EE4459;
    float: right;
    position: relative;
    margin-bottom: -25px;
    pointer-events: none;
    top: -35px;
    left: -10px;
    font-size: 18px;
}

.box {
    position: relative;
    display: inline-block;
    padding-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
}

/* .formControl, Textarea */
.box > .formControl {
    box-sizing: border-box;
    outline: none;
    box-sizing: border-box;
    margin: 0;
    border: solid 1px #666; /* Safari */
    border-top-color: transparent;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
    background-color: transparent;
    box-shadow: none; /* Firefox */
    font-family: inherit;
    font-size: 14px;
    transition: border 0.12s;
    width: 100%;
    font-weight: lighter;
}

/* Span */
.box > .formControl + span {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    max-height: 100%;
    font-size: 12px;
    line-height: 15px;
    transition: color 0.12s, font-size 0.12s, line-height 0.12s;
    /* z-index: -1; */
    cursor: text;
}

/* Corners */
.box > .formControl + span::before,
.box > .formControl + span::after {
    content: "";
    display: block;
    margin-top: 6px;
    border-top: solid 1px;
    min-width: 10px;
    pointer-events: none;
    transition: border-color 0.12s;
}

.box > .formControl + span::before {
    margin-right: 4px;
    border-radius: 4px 0;
}

.box > .formControl + span::after {
    flex-grow: 1;
    margin-left: 4px;
    border-right: solid 1px transparent;
    border-radius: 0 4px;
}


/* Placeholder-shown */
.box > .formControl:not(:focus):placeholder-shown {
    border-top-color: #666;
}

.box > .formControl:not(:focus):placeholder-shown + span {
    font-size: inherit;
    line-height: 53px;
}

.trailingIcon {
    position: absolute;
    right: 15px;
    top: 16px;
    color: #afafaf;
}

.withTrailingIcon input {
    padding-right: 40px;
}

.maxLength, .errorMessage {
    font-size: 1.2rem;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.42;
    letter-spacing: normal;
    text-align: left;
    color: #9b9797;

    position: absolute;
    bottom: -18px;
}

.maxLength {
    right: 0;
}

.error, .error:focus {
    border-left-color: red !important;
    border-right-color: red !important;
    border-bottom-color: red !important;
    border-top-color: transparent;
}

.box > .formControl.error + span::before,
.box > .formControl.error + span::after {
    border-top-color: red;
}

.box > .formControl.error:not(:focus):placeholder-shown {
    border-top-color: red;
}

.errorMessage {
    color: red;
    left: 0;
}