/* Only apply to Events Booking registration pages */
body#s5_body.com_eventbooking.register {
    
    /* Override Curb Appeal Bootstrap padding for EB forms - Base styles */
    .eb-form-container .checkbox,
    .eb-form-container .radio {
        padding-left: 0 !important;
    }

    /* Fix the label padding */
    .eb-form-container .checkbox label,
    .eb-form-container .radio label {
        padding-left: 0 !important;
        margin-left: 0;
        float: none !important;
    }

    /* Add proper spacing between input and label text */
    .eb-form-container .checkbox input[type="checkbox"],
    .eb-form-container .radio input[type="radio"] {
        margin-right: 8px;
        margin-left: 0;
    }
}

/* Fix for large screens (1200px+) - counteract Bootstrap's -30px negative margin */
@media (min-width: 1200px) {
    body#s5_body.com_eventbooking.register {
        /* Fix the row containers */
        .eb-checkboxes-container.clearfix div.row.clearfix,
        .eb-radio-container.clearfix div.row.clearfix {
            padding-left: 30px !important;
        }
        
        /* Also fix labels if needed */
        .eb-form-container .checkbox label,
        .eb-form-container .radio label {
            padding-left: 30px !important;
        }
        
        /* Add -30px margin to headings and messages for proper alignment */
        h3.eb-heading,
        h1.eb-page-heading,
        div.eb-message {
            margin-left: -30px !important;
        }
    }
}

/* Fix for tablet breakpoint (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    body#s5_body.com_eventbooking.register {
        /* Fix the row containers */
        .eb-checkboxes-container.clearfix div.row.clearfix,
        .eb-radio-container.clearfix div.row.clearfix {
            padding-left: 20px !important;
        }
        
        /* Also fix labels if needed */
        .eb-form-container .checkbox label,
        .eb-form-container .radio label {
            padding-left: 20px !important;
        }
    }
}

/* Fix for mobile (below 768px) */
@media (max-width: 767px) {
    body#s5_body.com_eventbooking.register {
        .eb-form-container .checkbox label,
        .eb-form-container .radio label {
            display: block;
            margin-top: 5px;
        }
    }
}