
:root {
    --color-grey: #000;
}


/* -------------------- acf-block-contact-form -------------------- */

.form {
    width: 100%;
    margin: 0 auto;
    max-width: 827px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.form > div {
    width: 100%;
}
form .form__row {
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

form .form__group {
    width: calc(50% - clamp(20px, 2.7vw, 50px));
    margin-bottom: 50px;
}

form .form__group.form__group--large,
form .form__group.form__group--full {
    width: 100%;
}

/* Form content */
form label {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;

    z-index: 10;
    line-height: 50px;
    pointer-events: none;
    transition: linear 0.3s;

    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-grey);
}

form label span {
    margin: 0 0 0 3px;
}

form label.focused {
    color: var(--color-primary);
    font-size: 14px;
    line-height: 20px;
    top: -15px;
    z-index: 100;
    pointer-events: none;
}

form input {
    width: 100%;
    border: none;
    padding: 0;
    border-bottom: 2px solid var(--color-primary);
    z-index: 5;
    line-height: 50px;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    border-radius: 0;
    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
}

form textarea {
    width: 100%;
    height: 175px;
    resize: none;
    border: none;
    padding: 14px 0 0 0;
    border-bottom: 2px solid var(--color-primary);
    z-index: 5;
    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    border-radius: 0;
}

form .form__actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

/* Form footer */
form .wpcf7-spinner {
    display: none;
}

form .wpcf7-form-control-wrap {
    width: 100%;
    height: 100%;
    display: block;
}

form .wpcf7-not-valid-tip {
    width: 100%;
    font-size: 14px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    text-align: right;
}

form .wpcf7-response-output {
    border: none !important;
    width: 100% !important;
    text-align: center !important;
    margin: 20px 0 0 0 !important;
    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
    line-height: 1.5;
}

form .btn--submit {
    display: inline;
    width: 100%;
    max-width: 175px;
    text-align: center;
    color: var(--color-white);
    background: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-primary);
    font-size: 15px;
    font-weight: 300;
    padding: 0 10px;
    line-height: 43px;
    border-radius: 0 15px 0 0;
    text-transform: uppercase;
    transition: linear .15s;
    cursor: pointer;
}

form .btn--submit:hover {
    background: var(--color-white);
    color:var(--color-primary);
}

@media (max-width: 500px) {
    form .btn--submit {
        width: 100%;
    }
}


.form__copyrights {
    margin: 23px auto 0 auto;
    width: 100%;
    max-width: 790px;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 300;
}

@media all and (max-width: 750px) {
    .form {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .form .form__column {
        width: 100%;
    }

    .form .form__row {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .form .form__group {
        width: 100%;
    }
}

@media all and (max-width: 500px) {
    form input {
        width: 100%;
    }

    form textarea {
        width: 100%;
    }

    .form .btn--submit {
        width: 100%;
    }
}

/* Affichage des dropdowns */
.form .dropdown {
    width: 100%;
}

.form .select-display {
    display: none;
}

.form .dropdown .dropdown__button {
    background: var(--color-white);
    width: 100%;
    line-height: 50px;
    text-align: left;
    z-index: 15;

    border: none;
    border-bottom: 2px solid var(--color-primary);

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-grey);
    cursor: pointer;
}

.form .dropdown .dropdown__button span {
    width: calc(100% - 50px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.form .dropdown.active .dropdown__button svg {
    transform: rotate(180deg);
}

.form .dropdown .dropdown__button svg {
    width: 20px;
    height: 20px;
}

.form .dropdown .dropdown__button svg * {
    fill: var(--color-primary);
}

.form .dropdown .dropdown__content {
    display: none;
}

.form .dropdown.active .dropdown__content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;

    background: var(--color-white);

    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;


    padding: 10px 0 0 0;

    z-index: 101;
}

.form .dropdown .dropdown__content .dropdown__item {
    width: 100%;
    text-align: left;
    padding: 0 10px;

    border: none;
    background: none;
    cursor: pointer;

    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
    line-height: 1.5;
}

.form .dropdown .dropdown__content .dropdown__item:hover {
    color: var(--color-primary);
}

/* Sélection de fichiers */
.form .input-files {
    display: none;
}

.form .file-upload {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.form .file-upload .file-label {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-primary);
    cursor: pointer;
    pointer-events: initial;
    position: relative;
    top: initial;
    left: initial;
}

.form .file-upload .file-label span {

}

.form .file-upload ul {
    width: 100%;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.form .file-upload li {
    width: 100%;
    margin-bottom: 5px;
    font-size: 14Px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form .file-upload button {
    background: none;
    border: none;
    cursor: pointer;
}

.form .file-upload button svg {
    width: 18Px;
}

.form .file-upload button svg * {
    fill: var(--color-primary);
    transition: linear .15s;
}

.form .file-upload button:hover svg * {
    fill: var(--color-grey);
}
