.form {
    display: block;
}

.form-message {
    border: 1px solid $color-grey-border-light;
    color: $color-grey-border-light;
    display: none;
    font-family: georgia-regular, serif;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 30px;
    text-align: center;
}

.form-message--error {
    border-color: $color-error;
    color: $color-error;
}

.form-message.is-visible {
    display: block;
}

.form-group {
    position: relative;
}

.form-group.is-invalid {
    .form-input {
        border-color: $color-error;
    }
    .form-select {
        border-color: $color-error;
    }
    .form-textarea {
        border-color: $color-error;
    }
    .form-radio {
        & + label {
            &::before {
                border-color: $color-error;
            }
        }
    }
}

.form-block {
    * {
        display: block;
        width: 100%;
    }
}

.form-block-label {
    color: $color-grey-light;
    font-family: lucien-bold, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.form-inline {
    display: inline-block;
    font-family: lucien-light, sans-serif;

    &:not(:first-child) {
        margin-left: 20px;
    }
}

.form-submit {
    outline: none;
    padding: 20px !important;
}

.form-required {
    &::after {
        color: $color-grey-lighter;
        content: "*";
        position: absolute;
        right: 5px;
        top: 3px;
    }
}

.form-input {
    border: 1px solid $color-grey-light;
    font-family: lucien-regular, sans-serif;
    font-size: 0.9rem;
    outline: none;
    padding: 13px 8px;
    transition: all 0.3s ease;
}

.moreinfos {
    display: none;
}

.form-input:focus {
    border-color: $color-grey-darker;
}

.form-radio {
    display: none;

    & + label {
        cursor: pointer;
        font-family: lucien-light, sans-serif;
        line-height: 17px;
        transition: all 0.3s ease;

        &::before {
            background: $color-white;
            border-radius: 0px;
            border: 1px solid $color-grey-light;
            content: "";
            cursor: pointer;
            display: inline-block;
            height: 17px;
            margin-right: 10px;
            position: relative;
            transition: background 0.3s ease;
            vertical-align: middle;
            width: 17px;
        }
    }
}

.form-radio:checked {
    & + label {
        font-family: lucien-regular, sans-serif;

        &::before {
            background-color: $color-golden;
        }
    }
}

.form-select {
    appearance: none;
    background: #FFFFFF url("../img/skin/icon-arrowdown.gif") 97% 50% no-repeat;
    border: 1px solid $color-grey-light;
    border-radius: 0;
    color: $color-grey-light;
    display: block;
    font-size: 0.9rem;
    margin: 0;
    outline: none;
    padding: 15px 8px;
    transition: all 0.3s ease;
    width: 100%;

    @media all and (-ms-high-contrast: none) {
        background: none;
    }
}

.form-select:focus {
    border-color: $color-grey-darker;
}

.form-textarea {
    appearance: none;
    border: 1px solid $color-grey-light;
    font-family: lucien-regular, sans-serif;
    font-size: 1rem;
    font-style: italic;
    outline: none;
    padding: 15px 8px;
    resize: vertical;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-textarea:focus {
    border-color: $color-grey-darker;
}

// @TODO : à cibler !
input[type="date"] {
    -webkit-appearance: none;
    background-color: white;
    height: 44px;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 0.70em;
    line-height: 44px;
}

.form-checkbox {
    background-color: $color-grey-darker;
    border-radius: 5px;
    color: $color-white;
    margin-right: 5px;
    padding: 15px 20px;

    input[type="checkbox"] {
        margin-right: 15px;
    }
    input[type="checkbox"]:focus {
        outline: 0;
    }
}
