/* Form Styles - Extracted from main.php */

/* Global Checkbox and Radio Button Fixes */
.form-check-input {
    width: 1.2em !important;
    height: 1.2em !important;
    margin-top: 0.125em !important;
    vertical-align: top !important;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: 2px solid #dee2e6 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    print-color-adjust: exact !important;
    transition: all 0.15s ease-in-out !important;
}

.form-check-input:focus {
    border-color: #1e40af !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25) !important;
}

.form-check-input:checked {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
}

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.form-check-input[type=radio] {
    border-radius: 50% !important;
}

.form-check-input:indeterminate {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e") !important;
}

.form-check-input:disabled {
    pointer-events: none !important;
    filter: none !important;
    opacity: 0.5 !important;
}

.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
    opacity: 0.5 !important;
}

/* Form Check Label */
.form-check-label {
    color: #374151 !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    padding-left: 0.5rem !important;
}

/* Form Check Container */
.form-check {
    display: block !important;
    min-height: 1.5rem !important;
    padding-left: 0 !important;
    margin-bottom: 0.75rem !important;
}

.form-check .form-check-input {
    float: left !important;
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* Inline Checkboxes */
.form-check-inline {
    display: inline-block !important;
    margin-right: 1rem !important;
}

/* Custom Checkbox Styles for Better Visibility */
.custom-checkbox .form-check-input {
    width: 1.25em !important;
    height: 1.25em !important;
    border: 2px solid #6b7280 !important;
    border-radius: 4px !important;
}

.custom-checkbox .form-check-input:checked {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

.custom-checkbox .form-check-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25) !important;
}

/* Terms and Conditions Checkbox Specific */
.terms-checkbox .form-check-input {
    width: 1.1em !important;
    height: 1.1em !important;
    margin-top: 0.2em !important;
    border: 2px solid #9ca3af !important;
}

.terms-checkbox .form-check-label {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

.terms-checkbox .form-check-input:checked {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
}