/*
 * Chemin : /modules/macformb2b/views/css/macformb2b_front.css
 * Module : MAC Form B2B
 * Rôle : Styles Premium, Transparence, Grilles et Modale
 */

.pac-container { z-index: 99999 !important; }

.mac-premium-container { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.mac-main-title { font-weight: 700; color: #232323; }

/* 1. Cartes Radio B2C / B2B (Grandes) */
.mac-type-selector { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 768px) { .mac-type-selector { grid-template-columns: 1fr 1fr; gap: 24px; } }

.mac-radio-card {
    cursor: pointer; border: 2px solid #eef2f5; border-radius: 12px; padding: 20px;
    background-color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; margin: 0;
}
.mac-radio-card input[type="radio"] { position: absolute; opacity: 0; }
.mac-radio-card:hover { border-color: #d1e7ef; box-shadow: 0 8px 24px rgba(36, 185, 215, 0.1); transform: translateY(-2px); }
.mac-radio-card input[type="radio"]:checked + .mac-card-content { color: #24b9d7; }
.mac-radio-card:has(input[type="radio"]:checked) { border-color: #24b9d7; background-color: #f4fcfe; box-shadow: 0 8px 24px rgba(36, 185, 215, 0.15); }

.mac-card-content { display: flex; align-items: center; color: #555; }
.mac-icon-wrapper {
    background: #f5f7f9; border-radius: 50%; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center; margin-right: 15px; transition: all 0.3s ease;
}
.mac-icon-wrapper .material-icons { font-size: 30px; color: #888; }
.mac-radio-card input[type="radio"]:checked + .mac-card-content .mac-icon-wrapper { background: #24b9d7; }
.mac-radio-card input[type="radio"]:checked + .mac-card-content .mac-icon-wrapper .material-icons { color: #ffffff; }
.mac-card-title { display: block; font-weight: 700; font-size: 18px; color: #222; margin-bottom: 4px; }
.mac-card-subtitle { display: block; font-size: 13px; color: #777; }

/* 2. Conteneur B2B (FUSION AVEC LE THEME NATTIF) */
.mac-b2b-box {
    background-color: transparent; /* Magie : Le fond s'efface ! */
    border: none; 
    box-shadow: none; 
    padding: 0;
}

.mac-form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 768px) { .mac-form-grid { grid-template-columns: 1fr 1fr; gap: 20px 30px; } }

/* 3. Input Moderne & UX Défensive */
.mac-modern-input-wrapper { box-shadow: 0 4px 10px rgba(0,0,0,0.02); border-radius: 8px; }
.mac-input-lg { height: 54px; font-size: 16px; border: 1px solid #ddd; padding-left: 20px; }
.mac-input-lg:focus { border-color: #24b9d7; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(36, 185, 215, 0.3); }
.mac-readonly { background-color: #f8f9fa !important; color: #6c757d; border: 1px dashed #ced4da; cursor: not-allowed; font-weight: 500; }

/* ==========================================================================
   4. NOUVEAU : Bouton Mini-Carte "En Formation"
   ========================================================================== */
.mac-formation-card {
    cursor: pointer;
    display: inline-block;
    margin: 0;
}
.mac-formation-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}
.mac-formation-content {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #eef2f5;
    border-radius: 8px;
    padding: 8px 16px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.mac-formation-content i {
    margin-right: 8px;
    color: #888;
    transition: all 0.3s ease;
}
.mac-formation-card:hover .mac-formation-content {
    border-color: #f39c12;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.1);
}
.mac-formation-card input[type="checkbox"]:checked + .mac-formation-content {
    border-color: #f39c12;
    background-color: #fffaf0;
    color: #e67e22;
}
.mac-formation-card input[type="checkbox"]:checked + .mac-formation-content i {
    color: #e67e22;
}

/* ==========================================================================
   5. Modales Premium
   ========================================================================== */
#mac-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
#mac-custom-modal { width: 90%; max-width: 420px; cursor: default; padding: 30px; }
#mac-custom-modal:hover { transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border-color: #eef2f5; }
#mac-modal-close:hover { background-color: #ba933e !important; border-color: #ba933e !important; }