/* ========================================
   CHECKBOXES
   ======================================== */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

/* Styles modernes pour les cases à cocher d'axes de réflexion */
.checkbox-group-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* Style minimaliste pour les cases à cocher */
.checkbox-option {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 8px 12px;
    margin-bottom: 8px;
    width: 100%;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    background-color: #f8f9fa;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #6c757d;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.2s ease;
    background-color: white;
}

.checkbox-input:checked+.checkbox-label .checkbox-custom {
    background-color: #dc3545;
    border-color: #dc3545;
}

.checkbox-input:checked+.checkbox-label .checkbox-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 1px;
}

.checkbox-input:focus+.checkbox-label .checkbox-custom {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.checkbox-option:hover .checkbox-custom {
    border-color: #dc3545;
}

.checkbox-option:hover .checkbox-text {
    color: #dc3545;
}

.checkbox-input:checked+.checkbox-label .checkbox-text {
    font-weight: 500;
    color: #333;
}

.checkbox-text {
    flex: 1;
    transition: color 0.2s ease;
}


.checkbox-option:hover {
    border-color: #dc3545;
}

.checkbox-option:hover .checkbox-text {
    color: #dc3545;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    width: 100%;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #6c757d;
    border-radius: 0;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background-color: white;
}

.checkbox-option input[type="checkbox"]:checked+.checkbox-label .checkbox-custom {
    background-color: #dc3545;
    border-color: #dc3545;
}

.checkbox-option input[type="checkbox"]:checked+.checkbox-label .checkbox-custom::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #333;
    margin-left: 8px;
    flex: 1;
}

.checkbox-option input[type="checkbox"]:checked+.checkbox-label {
    background-color: #dc3545;
    color: white;
}

.checkbox-option input[type="checkbox"]:checked+.checkbox-label .checkbox-text {
    color: white;
}

.checkbox-option input[type="checkbox"]:checked+.checkbox-label .checkbox-custom {
    background-color: white;
    border-color: #dc3545;
}

.checkbox-option input[type="checkbox"]:checked+.checkbox-label .checkbox-custom::after {
    border: solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .checkbox-option {
        padding: 6px 8px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .checkbox-custom {
        width: 16px;
        height: 16px;
        min-width: 16px;
        margin-right: 8px;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .checkbox-option {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* ========================================
   MODERN CHECKBOXES AND RADIO BUTTONS
   ======================================== */

.checkbox-group-modern {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.checkbox-option {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.checkbox-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: var(--form-border-radius);
    transition: var(--form-transition);
    background-color: white;
    font-weight: 500;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checkbox-option input[type="radio"]:checked+.checkbox-label {
    border-color: var(--form-primary-color);
    background-color: rgba(225, 31, 18, 0.05);
    box-shadow: 0 0 0 3px rgba(225, 31, 18, 0.1);
}

.checkbox-custom {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: var(--form-transition);
    flex-shrink: 0;
}

.checkbox-option input[type="radio"]:checked+.checkbox-label .checkbox-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--form-primary-color);
    border-radius: 50%;
}

.checkbox-text {
    color: var(--form-text-color);
    font-size: 16px;
}

.checkbox-option input[type="radio"]:checked+.checkbox-label .checkbox-text {
    color: var(--form-primary-color);
}

.checkbox-label:hover {
    border-color: var(--form-primary-color);
    background-color: rgba(225, 31, 18, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive design for checkboxes */
@media (max-width: 768px) {
    .checkbox-group-modern {
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-option {
        min-width: 100%;
    }
}