.section-form-title {
    padding-bottom: 50px;
}


.form-group {
    margin-bottom: 2.5rem;
    width: 100%;
    position: relative;
}

.smaller-form-group{
    margin-bottom: 2rem;
}

select {
    cursor: pointer;
}

.form-control, select.form-control:not([size]):not([multiple]), .custom-file-input {
    display: block;
    width: 100%;
    height: auto;
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 1px solid white;
    background-color: white;
    -webkit-appearance: none;
    transition: border-color 0.2s ease-in-out,box-shadow 0.2s ease-in-out;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25) !important;
}

.form-control.smaller-input, select.smaller-input.form-control:not([size]):not([multiple]), .custom-file-input.smaller-input {
    padding: 0.90rem 1.5rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper:after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;

    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f107';
    color: black;

    position: absolute;
    top: 12px;
    right: 20px;
    pointer-events: none;
 }

.select-wrapper.smaller-input:after {
    top: 8px;
}

.form-control:focus {
    border-color: white !important;
    outline: 0;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.25) !important;
}

.input-group > .form-control:focus {
    z-index: initial;
}

.form-check-label {
    margin-left: 1rem;
}

.invalid-feedback, .invalid-tooltip {
    margin-right: 5rem;
    right: 0;
}

.was-validated .custom-file-form-control.invalid ~ .invalid-tooltip {
    display: block;
}
.was-validated .custom-range.invalid ~ .invalid-tooltip {
    display: block;
    margin-top: -20px;
}

.inside-tooltips .invalid-tooltip{
    margin-right: 2rem;
    top: 60%;
    background: transparent;
    color: #dc3545;
    font-weight: bold;
    font-size: 1rem;
}

.inside-tooltips .smaller-input ~ .invalid-tooltip{
    top: 50%;
}

.was-validated .form-control:valid {
    border: 1px solid white;
}

.was-validated .form-control:invalid, .was-validated .custom-file-form-control.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .custom-range.invalid {
    border: 1px solid #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-check-input:valid ~ .form-check-label {
    color: currentColor;
}

input[type=checkbox], input[type=radio]{
    padding: 1rem;
}

input[type=checkbox] ~ label, input[type=radio] ~ label{
    margin-left: 1.5rem;
}
@media (min-width: 993px) {
    input[type=checkbox], input[type=radio]{
        transform: scale(1.3);
    }
    input[type=checkbox] ~ label, input[type=radio] ~ label{
        margin-left: 1rem;
    }
}

.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.invalid ~ .form-check-label {
    color: white;
    background-color: rgba(220, 53, 69, 0.9);
    padding: 2px;
}

.custom-file-form-control {
    border: 1px solid transparent;
    border-radius: 1rem;
}

.btn-file {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    padding: 1rem 2rem;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: red;
    cursor: pointer;
    display: block;
}
input[readonly] {
    background-color: white !important;
    cursor: text !important;
    padding: 1rem 2.5rem;
}

.btn-remove-file {
    position: absolute;
    right: 0;
    z-index: 1;

    color: black;
    opacity: 0.5;
    cursor: pointer;
    padding: 1rem;

    transition-duration: 0.1s;
}
.btn-remove-file:hover {
    opacity: 0.7;
}

.custom-range {
    margin-bottom: 2rem;
}
.custom-range::-webkit-slider-thumb {
    margin-top: -8px;
    width: 20px;
    height: 20px;
    background-color: #F16625;
    border-radius: 2rem;
}

.custom-range::-webkit-slider-thumb:active {
    background-color: #F16625;
}

.form-control-placeholder {
    position: absolute;
    top: 0;
    padding: 1rem 0 0 2rem;
    transition: all 0.3s;
    opacity: 0.75;
    cursor: text;
    color: #000;
}

.select-wrapper .form-control-placeholder {
    pointer-events: none;
}

.disabled-select {
    pointer-events: none;
    opacity: 0.7;
    filter: brightness(85%);
}

.custom-file-form-control ~ .form-control-placeholder {
    margin-left: 12rem;
}

.form-control:focus + .form-control-placeholder,
.form-control:not(.custom-input):valid + .form-control-placeholder,
.form-control.custom-input:not(.optional-floating-placeholder) + .form-control-placeholder {
    font-size: 75%;
    font-weight: bold;
    transform: translate3d(-20px, -100%, 0);
    opacity: 0.9;
    cursor: default;
}

.buy-button-container {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    align-items: center;
}

.custom-file-form-control:not(.invalid):not(.optional-floating-placeholder) ~ .form-control-placeholder,
.custom-file-form-control.fleet ~ .form-control-placeholder {
    font-size: 75%;
    font-weight: bold;
    transform: translate3d(-140px, -110%, 0);
    opacity: 0.9;
    cursor: default;
}

@media screen and (max-width: 992px){
    .form-control:focus + .form-control-placeholder,
    .form-control:not(.custom-input):valid + .form-control-placeholder,
    .form-control.custom-input:not(.optional-floating-placeholder) + .form-control-placeholder {
        font-size: 75%;
        font-weight: bold;
        transform: translate3d(-15px, -100%, 0);
        opacity: 0.9;
        cursor: default;
    }

    .custom-file-form-control:not(.invalid):not(.optional-floating-placeholder) ~ .form-control-placeholder,
    .custom-file-form-control.fleet ~ .form-control-placeholder {
        transform: translate3d(-110px, -110%, 0);
    }
}

.blue-floating-label .form-control:focus + .form-control-placeholder,
.blue-floating-label .form-control:not(.custom-input):valid + .form-control-placeholder,
.blue-floating-label .form-control.custom-input:not(.optional-floating-placeholder) + .form-control-placeholder,
.blue-floating-label .custom-file-form-control:not(.invalid):not(.optional-floating-placeholder) ~ .form-control-placeholder,
.blue-floating-label .custom-file-form-control.fleet ~ .form-control-placeholder {
    color: #0080c5;
}

.bluexdark-floating-label .form-control:focus + .form-control-placeholder,
.bluexdark-floating-label .form-control:not(.custom-input):valid + .form-control-placeholder,
.bluexdark-floating-label .form-control.custom-input:not(.optional-floating-placeholder) + .form-control-placeholder,
.bluexdark-floating-label .custom-file-form-control:not(.invalid):not(.optional-floating-placeholder) ~ .form-control-placeholder,
.bluexdark-floating-label .custom-file-form-control.fleet ~ .form-control-placeholder {
    color: #001835;
}

.white-floating-label .form-control:focus + .form-control-placeholder,
.white-floating-label .form-control:not(.custom-input):valid + .form-control-placeholder,
.white-floating-label .form-control.custom-input:not(.optional-floating-placeholder) + .form-control-placeholder,
.white-floating-label .custom-file-form-control:not(.invalid) ~ .form-control-placeholder,
.white-floating-label .custom-file-form-control.fleet ~ .form-control-placeholder {
    color: white;
}

input:-webkit-autofill {
    color: red;
}

.reveal-if-active {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.5s;
}

input[type="radio"]:checked ~ .reveal-if-active,
input[type="checkbox"]:checked ~ .reveal-if-active {
    opacity: 1;
    max-height: 100px; /* little bit of a magic number :( */
    overflow: visible;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

datalist {
    position: absolute;
    background-color: white;
    border-top: none;
    z-index: 999;
    width: 96%;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 1rem !important;
    border: 1px solid grey;
    background-color: white;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25) !important;
}

datalist option {
    background-color: white;
    margin-bottom: 1px;
    cursor: pointer;
}

datalist option:hover {
    background-color: #0069d9;
    color: white;
}

datalist optgroup:hover {
    cursor: default;
}

fieldset:after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f107';
    color: black;
    position: absolute;
    top: 12px;
    right: 30px;
    pointer-events: none;
}
