input, textarea {
    box-sizing: border-box;
    font-family: FontFamilyRegular, sans-serif;
    font-size: 16px;
    min-height: 48px;
    border: none;
}

input {
    min-height: 48px;
}

textarea {
    padding: 12px 0;
    line-height: 1.4;
    overflow: hidden;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
}











/* Hide the stepper controls in Chrome, Safari, Edge, and Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide the stepper controls in Firefox */
input[type=number] {
    -moz-appearance: textfield;
}


/*Form Field*/

.form-field {
    position: relative;
}

.form-field label {
    color: var(--branded-theme-colours-brand-primary);
    font-family: FontFamilyBold, sans-serif;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.form-field span {
    display: none;
    color: var(--branded-theme-colours-error-background);
    font-family: FontFamilyRegular, sans-serif;
    font-size: 13px;
    font-weight: normal;
    margin: 8px 0 8px 0;
    padding: 0;
}

.form-field span.field-validation-error {
    display: block; /* Shows the span when there's a validation error */
}

.form-field input, .form-field textarea {
    color: var(--branded-theme-colours-label-primary);
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--branded-theme-colours-fill-tertiary);
}

.form-field input:focus, .form-field textarea:focus {
    border-bottom: 2px solid var(--branded-theme-colours-brand-primary);
}

.form-field input::placeholder, .form-field textarea::placeholder {
    color: var(--branded-theme-colours-placeholder-label);
    opacity: 1; /* Firefox */
}

.form-field input::-ms-input-placeholder, .form-field textarea::-ms-input-placeholder { /* Edge 12-18 */
    color: var(--branded-theme-colours-placeholder-label);
}

.form-field .unit-label {
    position: absolute;
    right: 0;
    top: 28px;
    color: var(--branded-theme-colours-label-secondary);
}

.form-field .right-icon {
    position: absolute;
    right: 0;
    bottom: 4px;
}

/* Blue Form Field */
.form-field.blue label {
    color: var(--info);
}

.form-field.blue input:focus {
    border-bottom: 2px solid var(--info);
}


/* Dark Form Field */
.form-field.dark input {
    color: var(--light-label);
    border-bottom: 2px solid var(--light-secondary-label);
}

.form-field.dark input:focus {
    border-bottom: 2px solid var(--primary);
}

.form-field.dark input::placeholder {
    color: var(--light-placeholder-label);
    opacity: 1; /* Firefox */
}

.form-field.dark input::-ms-input-placeholder { /* Edge 12-18 */
    color: var(--light-placeholder-label);
}

.form-field.dark .unit-label {
    color: var(--light-secondary-label);
}


input.disabled, textarea.disabled {
    color: var(--branded-theme-colours-label-secondary);
    cursor: not-allowed;
}

input.drop-down, textarea.drop-down {
    cursor: pointer;
}


/* Pill */

input.pill {
    border: none;
    border-radius: 16px;
    background-color: var(--branded-theme-colours-fill-quaternary);
}


/* Search */

input[type=search] {
    background-image: url("/flashit-icons?name=search&height=16&colour=E80C17");
    background-position: 16px 16px;
    background-repeat: no-repeat;
    padding: 0 16px 0 44px;
}

/* Range slider */

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    min-height: unset;
    height: 8px;
    background: repeating-linear-gradient(
            90deg,
            var(--system-colours-placeholder-label-dark) 0px,
            var(--system-colours-placeholder-label-dark) 2px,
            transparent 2px,
            transparent 15px
    );
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 24px;
    border-radius: 4px;
    background: var(--branded-theme-colours-brand-primary);
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    width: 8px;
    height: 24px;
    border-radius: 4px;
    background: var(--branded-theme-colours-brand-primary);
    cursor: pointer;
}




select {
    appearance: none; /* Firefox */
    -webkit-appearance: none; /* Safari & Chrome */
    -moz-appearance: none;

    box-sizing: border-box;
    font-family: FontFamilyRegular, sans-serif;
    font-size: 16px;
    min-height: 48px;
    border: none;
    background-color: var(--branded-theme-colours-fill-quaternary);
    border-radius: var(--constant-padding-small);
    padding: 0 var(--constant-padding-small);

    appearance: none;
    background-image: url('/flashit-icons?name=chevron_down&height=24&colour=3c3c43');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px;
    padding-right: 32px;
    opacity: 0.6;
}

select.small {
    min-height: 36px;
    border-radius: 12px;
    background-color: var(--branded-theme-colours-fill-tertiary);
    font-size: 13px;
    color: var(--branded-theme-colours-label-primary);
}

select:focus {
    outline: none;
}

.form-field select {
   margin-top: 6px; 
}

.pagination-controls {
    height: 48px;
    background-color: var(--branded-theme-colours-fill-quaternary);
    border-radius: 16px;
}
