/* RevAuto Leads : reprend les couleurs de revauto-stock (variables --rvs-*). */
.rvl-btn--alt { background: #fff; color: var(--rvs-red, #c41119); border-color: var(--rvs-red, #c41119); cursor: pointer; font: inherit; font-weight: 700; }
.rvl-btn--alt:hover { background: var(--rvs-pink, #fcedee); color: var(--rvs-red, #c41119); border-color: var(--rvs-red, #c41119); }
.rvs-ctas button.rvs-btn { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }

.rvl-dialog { width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--rvs-dark, #222b33); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: auto; }
.rvl-dialog::backdrop { background: rgba(20, 26, 31, .6); }
.rvl-dialog[open] { animation: rvl-in .2s ease-out; }
@keyframes rvl-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .rvl-dialog[open] { animation: none; } }

.rvl-dialog__inner { position: relative; padding: 1.75rem 1.5rem 1.5rem; }
.rvl-close { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--rvs-sand, #f5f2ef); color: var(--rvs-dark, #222b33); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rvl-close:hover { background: var(--rvs-line, #e4dfda); }
.rvl-close:focus-visible { outline: 3px solid var(--rvs-red, #c41119); outline-offset: 2px; }

.rvl-title { margin: 0 2.5rem .5rem 0; font-size: 1.4rem; line-height: 1.2; }
.rvl-vehicle { margin: 0 0 .75rem; padding: .6rem .8rem; background: var(--rvs-sand, #f5f2ef); border-radius: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: .92rem; }
.rvl-vehicle span { color: var(--rvs-red, #c41119); font-weight: 800; }
.rvl-intro { margin: 0 0 1rem; color: var(--rvs-grey, #5b6570); font-size: .95rem; }

.rvl-form { display: flex; flex-direction: column; gap: .85rem; }
.rvl-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 480px) { .rvl-row { grid-template-columns: 1fr; } }
.rvl-field { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.rvl-field label { font-size: .85rem; font-weight: 700; }
.rvl-field abbr { color: var(--rvs-red, #c41119); text-decoration: none; }
.rvl-field input, .rvl-field select, .rvl-field textarea { font: inherit; font-size: 1rem; width: 100%; box-sizing: border-box; padding: .65rem .8rem; border: 1px solid #c9c2bb; border-radius: 8px; background: #fff; color: inherit; }
.rvl-field textarea { resize: vertical; min-height: 6rem; }
.rvl-field input:focus-visible, .rvl-field select:focus-visible, .rvl-field textarea:focus-visible { outline: 3px solid var(--rvs-red, #c41119); outline-offset: 1px; border-color: transparent; }
.rvl-field [aria-invalid="true"] { border-color: var(--rvs-red, #c41119); background: var(--rvs-pink, #fcedee); }

.rvl-optins { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.rvl-optins label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.rvl-optins input { margin-top: .2rem; accent-color: var(--rvs-red, #c41119); }

.rvl-error { margin: 0; padding: .6rem .8rem; border-radius: 8px; background: var(--rvs-pink, #fcedee); color: #9e0d14; font-weight: 600; font-size: .9rem; }
.rvl-submit { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.rvl-submit:disabled { opacity: .7; cursor: wait; }
.rvl-legal { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--rvs-grey, #5b6570); }
.rvl-legal a { color: inherit; }

.rvl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rvl-captcha:empty { display: none; }

.rvl-success { text-align: center; padding: 1rem 0 .25rem; outline: none; }
.rvl-success__icon { margin: 0 auto .75rem; width: 56px; height: 56px; border-radius: 50%; background: #e6f4ea; color: #1e7e34; font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rvl-success__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .5rem; }
.rvl-success .rvs-btn { margin-top: 1rem; width: 100%; font: inherit; font-weight: 700; cursor: pointer; }

/* Formulaire de contact intégré à une page. */
.rvl-contact { max-width: 720px; margin-inline: auto; padding: 1.75rem 1.5rem; background: #fff; color: var(--rvs-dark, #222b33); border: 1px solid var(--rvs-line, #e4dfda); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.rvl-contact .rvl-field--zip { max-width: calc(50% - .425rem); }
@media (max-width: 480px) { .rvl-contact { padding: 1.25rem 1rem; } .rvl-contact .rvl-field--zip { max-width: none; } }

/* Badge reCAPTCHA v3 masqué : la mention obligatoire figure sous chaque formulaire. */
.grecaptcha-badge { visibility: hidden; }
