html {
    overflow: auto;
}

.col-md-8.col-sm-8:has(.custom-form-container) {
    width: 100%;
}

/* Formulaire de contact */

.champs-obligatoires-contact {
    font-size: 10px;
    position: relative;
    bottom: 15px;
}

.form-submit-contact {
    text-align: center;
}

/* Contenu du formulaire se referencer */

form#lp-submit-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

form .col-md-8.page-style2-content-wrap {
    width: 100%;
    padding-right: 15px;
}

.custom-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.custom-form {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.required {
    color: red;
    margin-left: 4px;
}

.champs-obligatoires {
    font-size: 10px;
    position: relative;
    bottom: 25px;
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.4rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-label span {
    color: #555;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* Style pour les champs de contact */
#contact_info_container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#contact_info_container .form-group {
    margin-bottom: 1rem;
}

#contact_info_container label {
    color: #2c3e50;
    font-weight: 500;
}

.gestionnaire-patrimoine, .entreprise-nettoyage, .expert-comptable {
    .padding-top-40.padding-bottom-40.clearfix {
        margin: 0 auto;

        .lp-grid-box-contianer {
            width: 100%;
            max-width: 375px;
        }
    }
}

/* Responsive design mobile */
@media (max-width: 768px) {

    .lp-grid-box-contianer {
        max-width: max-content;
    }

    .custom-form-container {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* responsive tablette */