/** ===== Input Fields ===== **/
input,
button,
select,
optgroup,
textarea {
    display: block;
    background-color: transparent;
    border: 1px solid $color-border;
    border-radius: 5px;
    width: 100%;
    height: 55px;
    padding: 0 30px;
    color: $color-body;
    transition: 0.3s;
    font: {
        family: $font-primary;
        size: 16px;
        weight: 500;
    }
    line-height: 1.4;

    &:focus {
        border-color: $color-primary;
        color: $color-heading;
    }
}

textarea {
    height: 200px;
    padding-top: 20px;
}

select {
    word-wrap: normal;
}

input[type="radio"],
input[type="checkbox"] {
    display: inline-block;
    box-sizing: border-box;
    padding: 0;
    width: 15px;
    height: 15px;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    outline-offset: -2px;
    -webkit-appearance: none;

    &::-ms-clear {
        display: none;
        width: 0;
        height: 0;
    }

    &::-ms-reveal {
        display: none;
        width: 0;
        height: 0;
    }
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

[hidden] {
    display: none !important;
}

::placeholder {
    color: inherit;
    opacity: 1;
    font-size: inherit;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' width='14' height='14' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z' fill='a5a5a5'/></g></svg>") !important;
    background-position: right 20px top 50% !important;
    background-repeat: no-repeat !important;

    &::-ms-expand {
        display: none;
    }

    &:focus {
        outline: transparent;
    }
}

/** ===== Buttons ===== **/
[role="button"] {
    cursor: pointer;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

input[type="submit"],
button[type="submit"] {
    font: {
        size: 16px;
        weight: 500;
    }
    text: {
        transform: capitalize;
        decoration: none;
    }
    line-height: 1;
    width: auto;
    height: auto;
    border-radius: 5px;
    border: none;
    color: $color-white;
    background-color: $color-primary;
    transition: 0.3s;
    padding: 20px 35px;

    &:hover {
        color: $color-white;
        background-color: $color-secondary;
    }
}
