/* General styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



form {
    width: 100%; /* Full width */
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    width: 48%;
    float: left;
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
    float: none;
    clear: both;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input, textarea, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Aligning radio buttons and checkboxes */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.radio-group label, .checkbox-group label {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

/* New layout for radio buttons under "Votre Projet" */
.radio-group {
    justify-content: flex-start;
    gap: 10px;
}

/* Grid for checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

fieldset {
    border: none;
    padding: 0;
}

legend {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 600px) {
    form {
        padding: 10px;
    }

    .form-group {
        width: 100%;
    }

    .radio-group, .checkbox-group {
        flex-direction: column;
    }

    input, textarea, button {
        font-size: 0.9em;
        padding: 8px;
    }

    .checkbox-group {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
