/* ============================================================
   RnB Search Filter — "Demande de devis" popup restyle
   Targets #quote-popup, which is markup generated by the RnB Rental &
   Booking plugin (magnific-popup based), NOT by this plugin. We only
   repaint it so it matches the search form's dark-glass / cyan theme
   (see rnb-sf.css). !important throughout because RnB's own stylesheet
   and the site theme both style these elements.
   ============================================================ */

/* ---- Overlay behind the popup ---- */
.mfp-bg {
    background: rgba(8, 9, 12, 0.75) !important;
    opacity: 1 !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---- Popup panel ---- */
#quote-popup.rnb-popup {
    background: rgba(24, 26, 30, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 2rem 1.75rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff !important;
}

/* ---- Field labels ---- */
#quote-popup.rnb-popup p > span {
    display: block;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

/* ---- Inputs / textarea ---- */
#quote-popup.rnb-popup input[type="text"],
#quote-popup.rnb-popup input[type="email"],
#quote-popup.rnb-popup input[type="tel"],
#quote-popup.rnb-popup textarea {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box !important;
    padding: 0.65rem 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 0.95rem !important;
    font-family: inherit;
    line-height: 1.4;
    color-scheme: dark;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: none !important;
}

#quote-popup.rnb-popup textarea {
    min-height: 110px;
    resize: vertical;
}

#quote-popup.rnb-popup input::placeholder,
#quote-popup.rnb-popup textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
}

#quote-popup.rnb-popup input:focus,
#quote-popup.rnb-popup textarea:focus {
    outline: none !important;
    border-color: #17c3f2 !important;
    background: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 0 0 3px rgba(23, 195, 242, 0.2) !important;
}

/* ---- Consent row (checkbox + text + terms link) ---- */
#quote-popup.rnb-popup label,
#quote-popup.rnb-popup p {
    color: rgba(255, 255, 255, 0.8) !important;
}

#quote-popup.rnb-popup a {
    color: #17c3f2 !important;
    text-decoration: none;
}

#quote-popup.rnb-popup a:hover {
    text-decoration: underline;
}

#quote-popup.rnb-popup input[type="checkbox"] {
    accent-color: #17c3f2;
    width: auto !important;
    margin-right: 0.5rem;
}

/* ---- Submit button — same pill + glow as "Rechercher" ---- */
#quote-popup.rnb-popup .quote-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-family: inherit;
    border: none !important;
    border-radius: 999px !important;
    cursor: pointer;
    background: #17c3f2 !important;
    color: #fff !important;
    box-shadow: 0 0 22px rgba(23, 195, 242, 0.55), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

#quote-popup.rnb-popup .quote-submit:hover {
    background: #10a8d6 !important;
    color: #fff !important;
    box-shadow: 0 0 28px rgba(23, 195, 242, 0.75), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

#quote-popup.rnb-popup .quote-submit:active {
    transform: scale(0.98);
}

/* ---- Success / error message under the form ---- */
#quote-popup.rnb-popup .quote-modal-message {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
}

/* ---- Close (×) button, injected by magnific-popup ---- */
.mfp-wrap .mfp-close,
#quote-popup.rnb-popup .mfp-close {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    font-size: 1.9rem !important;
    transition: color 0.2s;
}

.mfp-wrap .mfp-close:hover,
#quote-popup.rnb-popup .mfp-close:hover {
    color: #17c3f2 !important;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    #quote-popup.rnb-popup {
        padding: 1.5rem 1.1rem !important;
        border-radius: 16px !important;
    }

    #quote-popup.rnb-popup .quote-submit {
        width: 100%;
    }
}
