/* Modale « Obtenir un devis » (module Devis de mouvspa-core). Couleurs reprises du thème : orange #f37d45. */
.mvq {
    --mvq-accent: #f37d45;
    --mvq-text: #1d1d1b;
    --mvq-muted: #6b6b6b;
    --mvq-border: #e5e5e5;
    --mvq-error: #c62828;
    --mvq-success: #2e7d32;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--mvq-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.mvq::backdrop { background: rgba(0, 0, 0, .5); }
.mvq__form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); margin: 0; }
.mvq__header, .mvq__footer { display: flex; align-items: center; gap: 12px; padding: 16px 24px; }
.mvq__header { justify-content: space-between; border-bottom: 1px solid var(--mvq-border); }
.mvq__footer { justify-content: flex-end; border-top: 1px solid var(--mvq-border); }
.mvq__title { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--mvq-accent); }
.mvq__close { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--mvq-muted); }
.mvq__body { overflow-y: auto; padding: 20px 24px; }
.mvq__fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 16px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.mvq__legend { grid-column: 1 / -1; margin-bottom: 4px; font-weight: 700; }
.mvq__field { grid-column: span 3; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.mvq__field--wide { grid-column: 1 / -1; }
.mvq__field--third { grid-column: span 2; }
.mvq__field label { font-weight: 700; }
.mvq__field input, .mvq__field select, .mvq__field textarea, .mvq__choice select {
    width: 100%; padding: 8px 10px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; background: #fff;
}
.mvq [aria-invalid="true"] { border-color: var(--mvq-error); outline: 1px solid var(--mvq-error); }
.mvq-required { margin-left: 4px; color: var(--mvq-error); }
.mvq__contact { grid-template-columns: 1fr 1fr; }
.mvq__choice { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--mvq-accent); }
.mvq__choice select { width: auto; margin-left: 8px; color: var(--mvq-text); font-weight: 400; }
.mvq__recap { margin-top: 16px; padding: 16px; border: 1px solid var(--mvq-border); border-radius: 6px; }
.mvq__recap-title { margin: 0 0 12px; font-size: 1.15rem; color: var(--mvq-accent); }
.mvq__subtitle { margin: 16px 0 8px; font-size: 1rem; }
.mvq__table { width: 100%; border-collapse: collapse; }
.mvq__table th, .mvq__table td { padding: 10px 8px; border-bottom: 1px solid var(--mvq-border); text-align: left; vertical-align: middle; }
.mvq__table .mvq__num { text-align: right; white-space: nowrap; }
.mvq__thumb { width: 96px; }
.mvq__thumb img { display: block; max-width: 88px; height: auto; }
.mvq__name strong { display: block; color: var(--mvq-accent); }
.mvq__meta { display: block; color: var(--mvq-muted); }
.mvq__rate { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.mvq__rate label { display: flex; flex: 1; justify-content: space-between; gap: 12px; cursor: pointer; }
.mvq__rate-cost { white-space: nowrap; font-weight: 700; }
.mvq__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 16px 0 0; }
.mvq__totals dt, .mvq__totals dd { margin: 0; font-weight: 700; }
.mvq__totals dd { text-align: right; white-space: nowrap; }
.mvq__totals .mvq__due { color: var(--mvq-accent); font-size: 1.15rem; }
.mvq__hint { display: block; color: var(--mvq-muted); font-size: .85rem; font-weight: 400; }
.mvq__empty { margin: 0; }
.mvq__message { margin: 0 0 16px; padding: 12px 16px; border-radius: 4px; background: #f5f5f5; }
.mvq__message--error { background: #fdecea; color: var(--mvq-error); }
.mvq__message--success { background: #edf7ed; color: var(--mvq-success); font-weight: 700; }
.mvq__button { padding: 10px 20px; border-radius: 4px; border: 1px solid var(--mvq-accent); font: inherit; font-weight: 700; cursor: pointer; }
.mvq__button--ghost { background: #fff; color: var(--mvq-accent); }
.mvq__button--primary { background: var(--mvq-accent); color: #fff; }
.mvq__button[disabled] { opacity: .5; cursor: not-allowed; }
.mvq--busy .mvq__recap { opacity: .5; pointer-events: none; }
@media (max-width: 767px) {
    .mvq__fields, .mvq__contact { grid-template-columns: 1fr; }
    .mvq__field, .mvq__field--third { grid-column: 1 / -1; }
    .mvq__thumb { display: none; }
    .mvq__choice { flex-wrap: wrap; }
}
