/* Page abonnement Contacts
Author: nkc
*/

.contacts-abonnement {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.contacts-abonnement-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.6;
}

.contacts-abonnement h2 {
    text-align: center;
    margin: 40px 0 20px;
    border-bottom: 1px solid #666;
    padding-bottom: 10px;
}

.contacts-abonnement-tableau {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.contacts-abonnement-tableau .contacts-niveau {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
}

.contacts-niveau h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #cd0460;
}

.contacts-option {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: left;
    transition: background-color 0.2s;
}

.contacts-option:hover { background-color: #f5f5f5; }

.contacts-option input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.contacts-option-label {
    font-size: 0.9em;
    display: inline;
    vertical-align: middle;
}

.contacts-prix {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-top: 3px;
    margin-left: 24px;
}

.contacts-prix span {
    font-size: 0.55em;
    font-weight: normal;
    color: #888;
}

.contacts-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #555;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 10px;
    cursor: pointer;
}

.contacts-btn:hover { background-color: #777; }

.contacts-btn-niveau {
    display: block;
    margin-top: 16px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 10px;
}

@media (max-width: 768px) {
    .contacts-abonnement-tableau .contacts-niveau {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.contacts-acces-message {
    background-color: #f8f0f4;
    border-left: 4px solid #cd0460;
    padding: 15px 20px;
    margin-bottom: 30px;
    font-size: 1.05em;
    line-height: 1.6;
}

/* -------------------------------------------------------
   Checkout PMPro
------------------------------------------------------- */

/* Largeur réduite */
#pmpro_form {
    max-width: 560px !important;
    margin: 0 auto !important;
}

/* Cartes — 
La couleur de fond des form Infos du compte et Adresse de facturation est gérée par le JS dans functions.php > applyCheckoutCustomizations() 
La couleur du wrapper de Adresse livraison est gérée dans #contacts-livraison-section
*/
#pmpro_form .pmpro_card {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
}

/* Inputs sur fond identique */
#pmpro_form .pmpro_form_input,
#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"],
#pmpro_form input[type="tel"],
#pmpro_form select,
#pmpro_form .input {
    background-color: #fff !important;
}

#pmpro_form .pmpro_card_content {
    padding: 20px !important;
}

/* Supprimer débord bas du formulaire facturation */
#pmpro_billing_address_fields,
#pmpro_billing_address_fields .pmpro_card {
    margin-bottom: 0 !important;
}

/* Réduire intervalle entre Informations du compte et Adresse de facturation */
#pmpro_billing_address_fields .pmpro_card {
    margin-top: 4px !important;
}

#pmpro_form .pmpro_form_legend,
#pmpro_form .pmpro_card_title {
    font-size: 1em !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: transparent !important;
    display: block !important;
}

/* Supprimer colonnes 2 — tout en colonne unique */
#pmpro_form .pmpro_cols-2 {
    display: block !important;
    overflow: hidden !important;
}

#pmpro_form .pmpro_cols-2 .pmpro_form_field,
#pmpro_form .pmpro_form_fields.pmpro_cols-2 .pmpro_form_field {
    width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
}

/* Champs */
#pmpro_form .pmpro_form_field,
#pmpro_form .pmpro_checkout-field {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Labels */
#pmpro_form .pmpro_form_label,
#pmpro_form .pmpro_checkout-field label {
    display: block !important;
    float: none !important;
    width: auto !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 4px !important;
}

/* Inputs et selects */
#pmpro_form .pmpro_form_input,
#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"],
#pmpro_form input[type="tel"],
#pmpro_form select,
#pmpro_form .input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    height: 38px !important;
    padding: 7px 10px !important;
    font-size: 0.9em !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#pmpro_form .pmpro_form_input:focus,
#pmpro_form input:focus,
#pmpro_form select:focus {
    border-color: #cd0460 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(205,4,96,0.08) !important;
}

/* Masquer champs inutiles */
#pmpro_form div.pmpro_form_field-username,
#pmpro_form div.pmpro_form_field-baddress2,
#pmpro_form div.pmpro_form_field-bstate {
    display: none !important;
}

/* Civilité */
.pmpro_checkout-field-civilite {
    margin-bottom: 10px !important;
}

.pmpro_checkout-field-civilite label {
    display: block !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 4px !important;
}

.pmpro_checkout-field-civilite select {
    width: 200px !important;
    height: 38px !important;
    padding: 7px 10px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    font-size: 0.9em !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Livraison toggle */
#contacts-livraison-toggle {
    margin: 16px 0 12px !important;
    font-size: 0.95em !important;
}

#contacts-livraison-toggle label {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
}

/* Section livraison */
#contacts-livraison-section {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}

#contacts-livraison-section h3 {
    font-size: 0.95em !important;
    font-weight: 600 !important;
    margin: 0 0 12px !important;
    color: #333 !important;
}

#contacts-livraison-section .pmpro_checkout-field {
    margin-bottom: 10px !important;
}

#contacts-livraison-section label {
    display: block !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 4px !important;
}

#contacts-livraison-section input,
#contacts-livraison-section select {
    display: block !important;
    width: 100% !important;
    height: 38px !important;
    padding: 7px 10px !important;
    font-size: 0.9em !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#contacts-livraison-section input:focus,
#contacts-livraison-section select:focus {
    border-color: #cd0460 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(205,4,96,0.08) !important;
}

/* Bouton submit */
#pmpro_form .pmpro_btn-submit-checkout {
    background-color: #cd0460 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 11px 28px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    height: auto !important;
    width: auto !important;
    transition: background-color 0.2s !important;
}

#pmpro_form .pmpro_btn-submit-checkout:hover {
    background-color: #a0034c !important;
}

/* Lien "Connectez-vous ici" */
#pmpro_form .pmpro_card_actions {
    padding: 12px 20px !important;
    font-size: 0.875em !important;
    color: #666 !important;
    border-top: 1px solid #e8e8e8 !important;
}

/* Masquer historique commandes PMPro */
#pmpro_account-orders {
    display: none !important;
}

/* -------------------------------------------------------
   Page Login PMPro
------------------------------------------------------- */
#loginform {
    max-width: 560px !important;
    margin: 0 auto !important;
}

#loginform .login-username,
#loginform .login-password,
#loginform .login-remember,
#loginform .login-submit {
    margin-bottom: 12px !important;
}

#loginform label {
    display: block !important;
    font-size: 0.875em !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 6px !important;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.95em !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: #cd0460 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(205,4,96,0.08) !important;
}

#loginform input[type="submit"] {
    background-color: #cd0460 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 11px 28px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
}

#loginform input[type="submit"]:hover {
    background-color: #a0034c !important;
}

/* Wrapper login — même largeur que checkout */
.pmpro-login .pmpro_section {
    max-width: 560px !important;
    margin: 0 auto !important;
}

/* Bandeau "Mot de passe oublié" */
.pmpro-login .pmpro_card_actions {
    background-color: #e8e8e8e8 !important;
    padding: 12px 20px !important;
    border-top: 1px solid #e8e8e8 !important;
    font-size: 0.875em !important;
    text-align: center !important;
}