/**
 * EH Acquisition — doi-tunnel.css (s37 Étape C)
 *
 * Restyling #doiFormModal sur sélecteurs natifs BS3.
 * Attributs visuels s30 (validés Philippe) transposés sur .modal-content / .close.
 * Chargé conditionnellement sur is_singular('exercice') par doi-tunnel.php.
 */

/* ── Centrage vertical de la carte dans la modale ─────────────────────── */

#doiFormModal.modal {
    text-align: center;
}

#doiFormModal.modal::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

#doiFormModal .modal-dialog {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    width: 92%;
    max-width: 520px;
    margin: 30px auto;
}

/* ── Carte (modal-content natif BS3) ──────────────────────────────────── */

#doiFormModal .modal-content {
    padding: 36px 36px 28px;
    background-color: #ffffff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    font-family: 'Montserrat', 'Verdana', Geneva, sans-serif;
}

#doiFormModal .modal-header {
    padding: 0;
    border-bottom: 0;
    min-height: 0;
}

#doiFormModal .modal-body {
    padding: 0;
}

/* ── Bouton fermeture BS3 natif ────────────────────────────────────────── */

#doiFormModal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    float: none;
    font-size: 28px;
    line-height: 1;
    color: #556270;
    text-shadow: none;
    opacity: 0.6;
    padding: 4px 8px;
}

#doiFormModal .close:hover,
#doiFormModal .close:focus {
    color: #556270;
    opacity: 1;
    outline: 0;
}

/* ── Contenu form (dans modal-body) ────────────────────────────────────── */

#doiFormModal .eh-doi-form-wrap h3 {
    font-size: 1.35em;
    color: #1c2b3a;
    margin: 0 0 14px;
    font-weight: 700;
}

#doiFormModal .eh-doi-form-wrap p {
    color: #3c4858;
    line-height: 1.55;
    margin: 0 0 20px;
}

#doiFormModal .eh-doi-form .form-group {
    margin-bottom: 14px;
}

#doiFormModal .eh-doi-form .form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #c7d2db;
    box-shadow: none;
}

#doiFormModal .eh-doi-form .form-control:focus {
    border-color: #337ab7;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
    outline: 0;
}

#doiFormModal .eh-doi-form .checkbox {
    font-size: 0.92em;
    color: #556270;
    line-height: 1.45;
    margin: 16px 0 18px;
}

#doiFormModal .eh-doi-form .btn-primary {
    display: block;
    width: 100%;
    background-color: #337ab7;
    border: 0;
    color: #ffffff;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

#doiFormModal .eh-doi-form .btn-primary:hover,
#doiFormModal .eh-doi-form .btn-primary:focus {
    background-color: #286090;
    outline: 0;
}

#doiFormModal .eh-doi-error {
    background-color: #fff3f3;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}

#doiFormModal .eh-doi-legal {
    font-size: 0.82em;
    color: #8a95a3;
    line-height: 1.45;
    margin: 14px 0 0;
    text-align: center;
}

@media (max-width: 600px) {
    #doiFormModal .modal-content {
        padding: 28px 22px 22px;
    }
    #doiFormModal .modal-dialog {
        margin: 20px auto;
    }
}

/* ── Paywall favori (exos gratuits, Visiteur / Membre non-abonné) ─────── */

.eh-fav-paywall p.text-muted {
    color: #c7d2db !important;
}
