/* ==========================================================================
   Formulaire de contact vendeur — Vandeto
   Sélecteurs portés par l'ID du formulaire : la spécificité passe devant
   les règles .form-control d'AdForest sans recourir à !important.
   ========================================================================== */

#vdtct_contact_form,
.vdtct-login {
    --vdtct-ink: #11151c;
    --vdtct-muted: #6b7280;
    --vdtct-placeholder: #9ca3af;
    --vdtct-hairline: #e6e8ec;
    --vdtct-hairline-strong: #d3d7de;
    --vdtct-surface: #fff;
    --vdtct-accent: #ff1700;
    --vdtct-radius: 12px;
}

/* L'attribut hidden doit l'emporter sur les règles display ci-dessous. */
#vdtct_contact_form [hidden] {
    display: none;
}

/* --- Champs ------------------------------------------------------------- */

#vdtct_contact_form .form-group {
    margin: 0 0 10px;
}

#vdtct_contact_form .form-control {
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--vdtct-hairline);
    border-radius: var(--vdtct-radius);
    background: var(--vdtct-surface);
    box-shadow: none;
    color: var(--vdtct-ink);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.005em;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

#vdtct_contact_form .form-control::placeholder {
    color: var(--vdtct-placeholder);
    opacity: 1;
}

#vdtct_contact_form .form-control:hover {
    border-color: var(--vdtct-hairline-strong);
}

#vdtct_contact_form .form-control:focus,
#vdtct_contact_form .form-control:focus-visible {
    outline: none;
    border-color: var(--vdtct-ink);
    box-shadow: 0 0 0 3px rgba(17, 21, 28, 0.07);
}

#vdtct_contact_form textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

/* Le champ téléphone respire en chiffres tabulaires : la saisie ne saute
   pas pendant le formatage automatique. */
#vdtct_contact_form .vdtct-phone {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* --- Bouton -------------------------------------------------------------- */

#vdtct_contact_form .sellers-button-group {
    margin: 14px 0 0;
}

#vdtct_contact_form .vdtct-submit,
.vdtct-login .vdtct-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    border: 0;
    border-radius: var(--vdtct-radius);
    background: var(--vdtct-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

#vdtct_contact_form .vdtct-submit:hover,
.vdtct-login .vdtct-login-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

#vdtct_contact_form .vdtct-submit:active,
.vdtct-login .vdtct-login-btn:active {
    transform: translateY(0);
}

#vdtct_contact_form .vdtct-submit:focus-visible,
.vdtct-login .vdtct-login-btn:focus-visible {
    outline: 2px solid var(--vdtct-ink);
    outline-offset: 2px;
}

#vdtct_contact_form .vdtct-submit[disabled] {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

/* --- Retour d'envoi ------------------------------------------------------ */

#vdtct_contact_form .vdtct-status {
    margin: 12px 0 0;
    padding: 0 0 0 16px;
    position: relative;
    font-size: 13px;
    line-height: 1.5;
    color: var(--vdtct-muted);
}

#vdtct_contact_form .vdtct-status::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

#vdtct_contact_form .vdtct-status--error {
    color: var(--vdtct-accent);
}

#vdtct_contact_form .vdtct-thread-link {
    display: inline-block;
    margin: 8px 0 0;
    color: var(--vdtct-ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--vdtct-hairline-strong);
    padding-bottom: 1px;
    transition: border-color 0.18s ease;
}

#vdtct_contact_form .vdtct-thread-link:hover {
    border-color: var(--vdtct-ink);
}

#vdtct_contact_form .vdtct-thread-link::after {
    content: " →";
}

/* --- Invitation à se connecter ------------------------------------------ */

.vdtct-note {
    margin: 0 0 14px;
    color: var(--vdtct-muted);
    font-size: 14px;
    line-height: 1.55;
}

.vdtct-login {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    #vdtct_contact_form .form-control,
    #vdtct_contact_form .vdtct-submit,
    .vdtct-login .vdtct-login-btn,
    #vdtct_contact_form .vdtct-thread-link {
        transition: none;
    }

    #vdtct_contact_form .vdtct-submit:hover,
    .vdtct-login .vdtct-login-btn:hover {
        transform: none;
    }
}
