/*
 * Général 
 * -----------------------------
*/
.acf-field[data-name="vehicule_event_type"] {
    display: none;
}

.rsv-form-style span.en {
    font-style: italic;
}

.rsv-form-style .italic {
    font-style: italic;
}
.rsv-form-style strong {
    font-weight: bold;
}

.rsv-form-style .red {
    color: var(--color-prim-red);
}
.rsv-form-style .red-maj {
    color: var(--color-prim-red);
    text-transform: capitalize;
}

.rsv-form-style span.acf-required {
    color: var(--color-sec-red);
}

.rsv-form-style .acf-actions .acf-icon {
    background-color: var(--color-sec-blue);
}

.rsv-form-style .acf-actions .acf-icon.-cancel:before {
    margin: 3px 0 0 0px !important;
    color: var(--white);
}

.rsv-form-style .acf-actions .acf-icon.-cancel:hover {
    text-decoration: none !important;
    color: var(--white);
    background-color: var(--color-sec-blue);
}

.rsv-form-style input[type="text"]:focus,
.rsv-form-style input[type="textarea"]:focus {
    outline-color: var(--color-sec-blue);    
}

.rsv-form-style ul.acf-radio-list:focus-within {
    border-color: transparent;
}

.rsv-form-style .acf-field .encadre {
    border: 1px solid #475c7140 !important;
    border-radius: 5px;
    padding: 15px 20px !important;
    margin: 15px 0 0 0 !important;
}

.rsv-form-style .acf-error-message p {
    margin-bottom: 5px;
}

.rsv-form-style .acf-error-message .acf-icon:hover {
    text-decoration: none;
}

.rsv-form-style .acf-error-message .acf-icon.-cancel:before {
    margin: 2px;
}

/* End of Général */


/*
 * Éléments formulaires 
 * -----------------------------
*/

/* == Radio custom == */
.rsv-form-style .rsv-radio {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.rsv-form-style .rsv-radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rsv-form-style .rsv-radio input {
    cursor: pointer;
}

/* == Formulaire == */
.rsv-form-style form {
    background-color: #F4F4F4;
    border-radius: 10px;
    padding: 40px;
}

.rsv-form-style form .acf-field-group {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 40px;
}

.rsv-form-style form .acf-field-group .acf-label label {
    text-align: left;
    font-style: normal;
    font-variant: normal;
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--main-font-family);
    color: var(--color-prim-blue);
}

.rsv-form-style form .acf-field-group > .acf-label label {
    padding-bottom: 8px;
    border-bottom: 1px solid #475C7126;
}

.rsv-form-style form .acf-field-group .acf-label label span.en {
    font-style: italic;
    font-weight: 600;
}

.rsv-form-style form .acf-field-group .acf-label .description {
    text-align: left;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 0.95rem;
    font-family: var(--main-font-family);
    color: var(--color-prim-blue);
    margin: 15px 0 0 0;
}

.rsv-form-style form .acf-field-group .acf-input .acf-fields {
    background: none;
    border: none;
}

.rsv-form-style form .acf-field-group .acf-input .acf-fields .acf-field {
    padding: 15px 0 0 0;
    border: none;
}

.rsv-form-style form .acf-field-group:has(.description) .acf-input .acf-fields .acf-field:first-child {
    padding: 5px 0 0 0;
}

.rsv-form-style form .acf-field-group .acf-input .acf-field .acf-label {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rsv-form-style form .acf-field-group .acf-input .acf-field .acf-label label {
    text-align: left;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 0.9rem;
    font-family: var(--main-font-family);
    color: var(--color-prim-blue);
}

.rsv-form-style form .acf-field-group .acf-input .acf-field .acf-label .description {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--color-sec-blue);
}

.rsv-form-style form .acf-field-group .acf-input .acf-field .acf-label label span.en {
    font-style: italic;
    font-weight: normal;
}

/* == Champs Radio == */
.rsv-form-style input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid var(--color-sec-blue);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    position: relative;
    transition: border-color 0.2s ease-in-out;
    flex-shrink: 0;
}

.rsv-form-style input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 7px;
    height: 7px;
    background-color: var(--color-sec-blue);
    border-radius: 50%;
}

.rsv-form-style input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #475C7133;
}

.rsv-form-style .acf-field[data-type="radio"] .acf-input input,
.rsv-form-style .acf-field[data-type="radio"] .acf-input label {
    cursor: pointer;
}

/* == Champs Texte == */
.rsv-form-style input[type="text"] {
    height: 40px;
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
}

/* == Champs Number == */
.rsv-form-style input[type="number"] {
    height: 40px;
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
}

/* == Champs Password == */
.rsv-form-style input[type="password"] {
    height: 40px;
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
}

.acf-field.toggle-pwd .input-group {
    display: flex;
    width: 100%;
}

.acf-field.toggle-pwd .input-group input[type="password"],
.acf-field.toggle-pwd .input-group input[type="text"] {
    flex: 1;
    border-top-right-radius: 0; 
    border-bottom-right-radius: 0;
}

.acf-field.toggle-pwd .input-group button.bt-password {
    height: 40px;
    width: 40px;
    background-color: var(--color-light-white);
    border: 1px solid #E8E8E8;
    border-left: none; /* éviter la double bordure */
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.acf-field.toggle-pwd .input-group button.bt-password i {
    color: var(--color-prim-blue) !important;
    font-size: 1rem;
}

/* == Champs Email == */
.rsv-form-style input[type="email"] {
    height: 40px;
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
}

/* == Champs Select == */
.rsv-form-style .custom-select {
    position: relative;
    display: inline-block;
    width: 100%; /* adapte selon besoin */
}

.rsv-form-style .custom-select select {
    width: 100%;
    height: 40px;
    padding-right: 2em; /* espace pour la flèche */
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: var(--main-font-family);
    font-size: 0.9rem;
    cursor: pointer;
}

.rsv-form-style .custom-select::after {
    content: "\f078";
    font-family: var(--fontawesome);
    font-weight: 900;
    color: var(--white);
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: var(--color-sec-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}


/* == Champs Fichier == */
.rsv-form-style .acf-field[data-type="file"] label.acf-basic-uploader {
    display: flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    overflow: hidden;
    font-family: inherit;
    height: 40px;
    background: var(--white);
}

.rsv-form-style .acf-field[data-type="file"] label.acf-basic-uploader::before {
    content: "Parcourir…";
    display: inline-block;
    background-color: var(--color-sec-blue);
    padding: 10px 15px;
    white-space: nowrap;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 0.9rem;
    font-family: var(--main-font-family);
    color: var(--white);
    cursor: pointer;
}

.rsv-form-style .acf-field[data-type="file"] label.acf-basic-uploader input[type="file"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

.rsv-form-style .acf-field[data-type="file"] label.acf-basic-uploader .file-name {
    padding: 0 20px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 0.9rem;
    font-family: var(--main-font-family);
    color: var(--color-sec-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.rsv-form-style .acf-field[data-type="file"] .acf-file-uploader .file-wrap {
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
}

.rsv-form-style .acf-field[data-type="file"] .acf-file-uploader .file-wrap .file-icon {
    background: var(--white);
    border-right: 1px solid #EAEDF0;
    border-radius: 5px 0 0 5px;
}

/* == Champs Image == */
.rsv-form-style .acf-field[data-type="image"] {
    padding: 0 0 20px 0;
}

.rsv-form-style .acf-field[data-type="image"] label.acf-basic-uploader {
    display: flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    overflow: hidden;
    font-family: inherit;
    height: 40px;
    background: var(--white);
}

.rsv-form-style .acf-field[data-type="image"] label.acf-basic-uploader::before {
    content: "Parcourir…";
    display: inline-block;
    background-color: var(--color-sec-blue);
    padding: 10px 15px;
    white-space: nowrap;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 0.9rem;
    font-family: var(--main-font-family);
    color: var(--white);
    cursor: pointer;
}

.rsv-form-style .acf-field[data-type="image"] label.acf-basic-uploader input[type="file"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

.rsv-form-style .acf-field[data-type="image"] label.acf-basic-uploader .file-name {
    padding: 0 20px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 0.9rem;
    font-family: var(--main-font-family);
    color: var(--color-sec-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.rsv-form-style .acf-field[data-type="image"] .acf-image-uploader.has-value {
    max-width: 300px;
}

/* == Champs Textearea == */
.rsv-form-style .acf-field[data-type="textarea"] textarea {
    /* height: 40px; */
    background: var(--white);
    border: 1px solid #EAEDF0;
    border-radius: 5px;
    color: var(--color-prim-blue);
}

/* == Submit Button == */
.rsv-form-style .rsv-submit-btn {
    border: none;
    padding: 12px 30px;
}

/* == Champs Vrai/Faux == */
.rsv-form-style .acf-field .toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-prim-blue);
    font-size: 0.95rem;
    margin-top: 2px;
}

.rsv-form-style .acf-field .toggle-label {
    pointer-events: none;
    user-select: none;
}

.rsv-form-style .acf-field .acf-true-false {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.rsv-form-style .acf-field .acf-true-false label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.rsv-form-style .acf-field .acf-true-false input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.rsv-form-style .acf-field .acf-true-false label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: background-color 0.4s;
}

.rsv-form-style .acf-field .acf-true-false label::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 3px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border-radius: 50%;
    transition: transform 0.4s;
}

.rsv-form-style .acf-field .acf-true-false label.is-checked::before {
    background-color: var(--color-sec-blue);
}

.rsv-form-style .acf-field .acf-true-false label.is-checked::after {
    transform: translateX(22px);
}

/* End of Éléments formulaires */


/*
 * Tableau 
 * -----------------------------
*/

.rsv-form-style .table-form thead tr th {
    padding-right: 0.5rem;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--color-sec-blue);
    color: var(--white);
    font-family: var(--main-font-family);
    font-size: 0.9rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
}

.rsv-form-style .table-form tbody tr td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(71, 92, 113, 0.15);
    box-shadow: none;
    font-family: var(--main-font-family);
    font-size: 0.9rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 500;
    color: var(--color-prim-blue);
    padding: 10px 5px;
}

.rsv-form-style .table-form tfoot tr th {
    padding-right: 0.5rem;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: transparent !important;
    color: var(--color-prim-blue);
    font-family: var(--main-font-family);
    font-size: 0.9rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
}

/* End of Tableau */




/*
 * RALLYE MONTE-CARLO HISTORIQUE 
 * -----------------------------
*/

.rsv-form-style .rmch-moyenne .is-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}

.rsv-form-style span#ville-depart-closed {
    font-style: italic;
}

.rsv-form-style span#ville-depart-closed strong {
    color: var(--color-prim-red);
}

/* End of RALLYE MONTE-CARLO HISTORIQUE */
