/* -------------------------------------------------------
   Checkbox Styles for Contact Form
   Custom styling for Type of Location checkboxes
------------------------------------------------------- */

/* Form Label Styling */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkbox Group Container */
.checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Individual Checkbox Item */
.checkbox-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 0;
}

/* Hide default checkbox */
.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkbox styling */
.checkbox-item label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.3s ease;
    user-select: none;
}

/* Custom checkbox box */
.checkbox-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Checkbox hover effect */
.checkbox-item:hover label::before {
    border-color: #bbac50;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* Checkbox checked state */
.checkbox-item input[type="checkbox"]:checked + label::before {
    background-color: #bbac50;
    border-color: #bbac50;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Checkmark */
.checkbox-item label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Show checkmark when checked */
.checkbox-item input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

/* Label text color change when checked */
.checkbox-item input[type="checkbox"]:checked + label {
    color: #bbac50;
    font-weight: 500;
}

/* Focus state for accessibility */
.checkbox-item input[type="checkbox"]:focus + label::before {
    outline: 2px solid #bbac50;
    outline-offset: 2px;
}

/* Active state */
.checkbox-item input[type="checkbox"]:active + label::before {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkbox-group {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .checkbox-item {
        flex: 1;
        min-width: 120px;
    }
    
    .checkbox-item label {
        font-size: 13px;
        padding-left: 30px;
    }
    
    .checkbox-item label::before {
        height: 18px;
        width: 18px;
    }
    
    .checkbox-item label::after {
        left: 5px;
        width: 5px;
        height: 9px;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .checkbox-item {
        flex: none;
        min-width: auto;
    }
}

/* Dark theme support (if needed) */
@media (prefers-color-scheme: dark) {
    .form-label {
        color: #fff;
    }
    
    .checkbox-item label {
        color: #ccc;
    }
    
    .checkbox-item label::before {
        background-color: #333;
        border-color: #555;
    }
    
    .checkbox-item:hover label::before {
        border-color: #bbac50;
    }
}

/* Animation for smooth transitions */
@keyframes checkboxCheck {
    0% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.checkbox-item input[type="checkbox"]:checked + label::before {
    animation: checkboxCheck 0.3s ease;
}
