/* --- BASIS --- */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="search"],
input[type="date"],
input[type="url"],
textarea {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    appearance: none;
    color: #4A4949;
}
textarea {
    height: auto;
    min-height: 10rem;
    line-height: 1.2;
    resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
}
fieldset {
    padding: 0;
    border: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.form .text-col {
    padding-right: 0;
    padding-left: 0;
}
.form__label {
    font-weight: 700;
}



/* --- TITLES --- */
legend {
    margin-bottom: 1.5rem;
}



/* --- TEXT/SELECT --- */
.text-field,
.select-field {
    overflow: hidden;
    position: relative;
    padding: 31px 20px 6px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    color: #4A4949;
    background: #FFF;
    transition: color .3s, border .3s;
}
.text-field label,
.select-field label {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    margin: 0;
    padding: 0 20px;
    white-space: nowrap;
    font-weight: 400;
    cursor: pointer;
    transition: height .5s, font-size .5s, color .3s;
}
.text-field--active label,
.select-field--active label {
    height: 34px;
    color: #808080;
    font-size: 14px;
}
.text-field input,
.select-field__value {
    height: 24px;
    line-height: 24px;
    font-size: 16px;
    color: #4A4949;
}

/* text field */
.text-field {
    border-bottom-width: 3px;
}
.text-field:hover {
    background: #EBEBEB;
}
.text-field--active,
.text-field--active:hover {
    border-bottom: 2px solid #0055FF;
}
.text-field input::placeholder { color: transparent; }
.text-field input::-webkit-input-placeholder { color: transparent; } /* Chrome legacy, Edge */
.text-field input:-ms-input-placeholder { color: transparent; } /* IE 10+ */
.text-field--active input::placeholder { color: rgba(0,0,0,0.3); }
.text-field--active input::-webkit-input-placeholder { color: rgba(0,0,0,0.3); }
.text-field--active input:-ms-input-placeholder { color: rgba(0,0,0,0.3); } /* IE 10+ */
.text-field--fixed label {
    height: 40px;
}

/* select */
.select-field::before {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    margin: 0;
    text-align: center;
    font-size: 10px;
    color: #0055FF;
    transform: translateY(-50%);
    transition: color .5s;
    pointer-events: none;
}
.select-field:hover,
.select-field:hover::before {
    color: #0055FF;
}
.select-field select {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    opacity: 0.001;
    background: transparent;
    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.select-field select::-ms-expand {
    display: none;
}



/* --- SIMPLE SELECT FIELD --- */
.select-wrap,
.select-value {
    display: block;
    position: relative;
    height: 46px;
    border-radius: 4px;
    font-size: 16px;
    color: #FFF;
    transition: background-color .3s;
    background-color: rgba(0,0,0,0.25);
}
.select-value {
    width: 100%;
    border: 0;
    padding: 0 34px;
    line-height: 20px;
    text-align: left;
}
.select-value:hover {
    background-color: rgba(0,0,0,0.35);
}
.select-wrap::before,
.select-value::before {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    margin: 0;
    text-align: center;
    font-size: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}
.select-value::before {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.25);
    transition: color .3s;
}
.select-value:hover::before {
    color: #FFF;
}
.select-wrap select {
    width: 100%;
    height: 100%;
    padding: 0 30px;
    border: 0;
    line-height: 20px;
    font-size: inherit;
    outline: none;
    color: inherit;
    background: transparent;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.select-wrap option {
    color: #4A4949;
}
.select-wrap option[disabled] {
    color: #b0aeae;
}
.select-wrap select::-ms-expand {
    display: none;
}



/* --- RADIO/CHECKBOX --- */
.form-radio,
.form-check {
    display: block;
    margin-bottom: 0.75rem;
}
.form-radio:last-child,
.form-check:last-child {
    margin-bottom: 0;
}
.form__input-list--inline {
    margin-left: -1rem;
    margin-right: -1rem;
}
.form__input-list--inline .form-radio,
.form__input-list--inline .form-check {
    display: inline-block;
    margin-right: 1rem;
    margin-left: 1rem;
}
.form-radio__input,
.form-check__input {
    position: absolute;
    opacity: 0;
}
.form-radio__label,
.form-check__label {
    display: block;
    position: relative;
    padding-left: calc(18px + 0.5em);
    line-height: 1.4rem;
    cursor: pointer;
}
.form-radio__label::before,
.form-radio__label::after,
.form-check__label::before {
    content: '';
    position: absolute;
    top: calc(0.75rem - 11px);
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #808080;
    border-radius: 2px;
    transition: border .2s;
    background: #FFF;
}
.form-radio__label::before {
    border-radius: 50%;
}
.form-radio__label::after {
    top: calc(0.75rem - 9px);
    left: 2px;
    width: 14px;
    height: 14px;
    border: 7px solid #FFF;
    border-radius: 50%;
    background: #0055FF;
}
.form-check__label::after {
    content: '\e800';
    position: absolute;
    top: calc(0.75rem - 10px);
    left: 0;
    width: 18px;
    height: 18px;
    text-align: center;
    font: normal 400 10px/16px "fontello";
    speak: none;
    color: #fff;
    transform: scale(0);
    transition: transform .4s;
}
.form-check__input:checked + .form-check__label::before {
    border: 9px solid #0055FF;
}
.form-radio__input:checked + .form-radio__label::after {
    border-width: 2px;
}
.form-check__input:checked + .form-check__label::after {
    transform: scale(1);
}
.form-radio--disabled .form-radio__input:checked + .form-check__label::before,
.form-check--disabled .form-check__input:checked + .form-check__label::before {
    border-color: #808080;
}



/* --- SEARCH FIELD --- */
.search-field {
    display: flex;
}
.search-field__input {
    flex-grow: 1;
}
.search-field__input input {
    height: 100%;
    padding: 0 20px;
    border: 1px solid #CFC8BF;
    border-radius: 0;
    border-right: 0;
}
.search-field__btn {
    border-radius: 0;
    padding-left: 15px;
    padding-right: 10px;
}
.search-field__btn::before {
    font-size: 1.5rem;
}



/* --- BUTTON STYLE CHECKBOXES --- */
.btn-checkbox {
    position: relative;
    margin: 0 0.5em 0.5em 0;
}
.btn-checkbox__input {
    position: absolute;
    opacity: 0;
}
.btn-checkbox__label {
    display: inline-block;
    border: 1px solid #0055ff;
    border-radius: 4px;
    padding: 2px 8px 6px 8px;
    font-weight: 700;
    cursor: pointer;
    transition: color .3s, background-color .3s;
}
.btn-checkbox__label:hover {
    background: rgba(0, 85, 255, 0.3);
}
.btn-checkbox__input:checked + .btn-checkbox__label {
    color: #FFF;
    background: #0055ff;
}
.btn-checkbox--white .btn-checkbox__label {
    border-color: #FFF;
}
.btn-checkbox--white .btn-checkbox__label:hover {
    background: rgba(255, 255, 255, 0.3);
}
.btn-checkbox--white .btn-checkbox__input:checked + .btn-checkbox__label {
    color: #153D8A;
    background: #FFF;
}



/* --- FORM SUCCESS --- */
.success-box, #hubspot-form .submitted-message {
    text-align: center;
    font-size: 1.25rem; /* 20px */
    line-height: 1.5;
    letter-spacing: .5px;
}



/* --- FORM ERRORS --- */
.form__field--error input[type="text"],
.form__field--error input[type="password"],
.form__field--error input[type="number"],
.form__field--error input[type="tel"],
.form__field--error input[type="email"],
.form__field--error input[type="search"],
.form__field--error input[type="date"],
.form__field--error input[type="url"],
.form__field--error textarea,
.form__field--error .text-field,
.form__field--error .select-field,
.form__field--error .form-radio__label::before,
.form__field--error .form-check__label::before {
    border-color: #E63312;
}
.form__error {
    margin-top: 0.5rem;
    color: #E63312;
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

/* --- TABLET (MD) --- */
@media ( min-width: 768px ) {



}



/* --- DESKTOP (LG) --- */
@media ( min-width: 992px ) {



}



/* --- DESKTOP (XL) --- */
@media ( min-width: 1200px ) {





}



/* --- DESKTOP (XXL) --- */
@media ( min-width: 1440px ) {

    /* --- BASIS --- */
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="email"],
    input[type="search"],
    input[type="date"],
    input[type="url"],
    textarea,
    .text-field input,
    .select-field__value {
        font-size: 20px
    }



    /* --- SIMPLE SELECT FIELD --- */
    .select-wrap,
    .select-value {
        height: 64px;
    }

}
