/* =========================================================
   Business Account - Formulaire inscription pro
   Fichier : /modules/businessaccount/views/css/front.css
========================================================= */


/* Masquer le champ sexe / titre */
#customer-form .form-group:has(input[name="id_gender"]) {
    display: none !important;
}


/* Masquer le texte "optional" uniquement sur les champs pro */
#customer-form .ba-pro-field .form-control-comment {
    display: none !important;
}


/* Wrapper choix Particulier / Professionnel */
#customer-form .ba-account-type-wrapper {
    margin: 25px 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d9d9d9;
}

#customer-form .ba-account-type {
    display: flex;
    justify-content: center;
    gap: 4px;
}


/* Boutons Particulier / Professionnel */
#customer-form .ba-account-type-btn {
    width: 220px;
    height: 54px;
    border: 1px solid #4a4f57;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

#customer-form .ba-account-type-btn:hover {
    background: #f7f7f7;
}

#customer-form .ba-account-type-btn.is-active {
    font-weight: 600;
    border-color: #333;
    background: #fff;
}


/* Icône utilisateur */
#customer-form .ba-account-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: 0 0 28px;
}

/* Tête */
#customer-form .ba-account-icon::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 8px;
    width: 12px;
    height: 12px;
    background: #4f5661;
    border-radius: 50%;
}

/* Corps */
#customer-form .ba-account-icon::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 22px;
    height: 13px;
    background: #4f5661;
    border-radius: 14px 14px 4px 4px;
}

/* Variante pro */
#customer-form .ba-account-icon-pro::after {
    border-radius: 2px 2px 12px 12px;
}


/* Check vert actif */
#customer-form .ba-check {
    display: none;
    position: absolute;
    right: -1px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    background: #1dbb63;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    font-weight: 700;
    z-index: 2;
}

#customer-form .ba-account-type-btn.is-active .ba-check {
    display: block;
}


/* Champs professionnels */
#customer-form .ba-pro-fields {
    margin-bottom: 15px;
}

#customer-form .ba-pro-field {
    animation: baFadeIn .2s ease;
}

@keyframes baFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Erreurs JS */
#customer-form .ba-field-error {
    border-color: #d63638 !important;
}

#customer-form .ba-error-message {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
}


/* Responsive */
@media (max-width: 767px) {
    #customer-form .ba-account-type {
        flex-direction: column;
        gap: 8px;
    }

    #customer-form .ba-account-type-btn {
        width: 100%;
    }
}