/**
 * Contact Forms - Matrix Theme Checkbox Styling
 * Dedicated styling for contact form checkboxes across all devices
 */

/* === CONTACT FORM CHECKBOX STYLING === */

/* Target all checkboxes in contact forms - Universal */
#demoSchedulerForm input[type="checkbox"],
form input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin-right: 0.75rem !important;
    border: 2px solid rgba(0, 255, 65, 0.4) !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

#demoSchedulerForm input[type="checkbox"]:checked,
form input[type="checkbox"]:checked {
    background: rgba(0, 255, 65, 0.2) !important;
    border-color: var(--matrix-green) !important;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3) !important;
}

#demoSchedulerForm input[type="checkbox"]:checked::after,
form input[type="checkbox"]:checked::after {
    content: '✓' !important;
    color: var(--matrix-green) !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

#demoSchedulerForm input[type="checkbox"]:focus,
form input[type="checkbox"]:focus {
    outline: 2px solid rgba(0, 255, 65, 0.5) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3) !important;
}

#demoSchedulerForm input[type="checkbox"]:hover,
form input[type="checkbox"]:hover {
    border-color: rgba(0, 255, 65, 0.6) !important;
}

/* === FORM FIELDS STYLING === */

/* Text inputs, selects, and textareas */
#demoSchedulerForm input[type="text"],
#demoSchedulerForm input[type="email"],
#demoSchedulerForm input[type="date"],
#demoSchedulerForm input[type="time"],
#demoSchedulerForm select,
#demoSchedulerForm textarea,
form input[type="text"],
form input[type="email"],
form input[type="date"],
form input[type="time"],
form select,
form textarea {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(0, 255, 65, 0.3) !important;
    color: var(--matrix-green) !important;
    padding: 0.75rem !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    transition: border-color 0.3s ease !important;
    font-size: 0.9375rem !important;
}

/* Fix textarea to start empty */
#demoSchedulerForm textarea,
form textarea {
    min-height: 120px !important;
    resize: vertical !important;
    vertical-align: top !important;
    white-space: pre-wrap !important;
}

/* Focus states */
#demoSchedulerForm input:focus,
#demoSchedulerForm select:focus,
#demoSchedulerForm textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
    outline: none !important;
    border-color: var(--matrix-green) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3) !important;
}

/* Placeholder styling */
#demoSchedulerForm input::placeholder,
#demoSchedulerForm textarea::placeholder,
form input::placeholder,
form textarea::placeholder {
    color: rgba(0, 255, 65, 0.5) !important;
    font-family: 'Courier New', monospace !important;
    font-style: italic !important;
}

/* Contact form labels */
#demoSchedulerForm li label,
#demoSchedulerForm label,
form li label,
form label {
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
    padding: 0.5rem 0 !important;
    color: rgba(0, 255, 65, 0.9) !important;
    font-family: 'Courier New', monospace !important;
    transition: color 0.2s ease !important;
}

#demoSchedulerForm li label:hover,
#demoSchedulerForm label:hover,
form li label:hover,
form label:hover {
    color: var(--matrix-green) !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    #demoSchedulerForm input[type="checkbox"],
    form input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        margin-right: 0.5rem !important;
        border-radius: 3px !important;
    }
    
    #demoSchedulerForm input[type="checkbox"]:checked::after,
    form input[type="checkbox"]:checked::after {
        font-size: 12px !important;
    }
    
    /* Mobile form fields */
    #demoSchedulerForm input[type="text"],
    #demoSchedulerForm input[type="email"],
    #demoSchedulerForm input[type="date"],
    #demoSchedulerForm input[type="time"],
    #demoSchedulerForm select,
    #demoSchedulerForm textarea,
    form input[type="text"],
    form input[type="email"],
    form input[type="date"],
    form input[type="time"],
    form select,
    form textarea {
        padding: 0.625rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Mobile textarea */
    #demoSchedulerForm textarea,
    form textarea {
        min-height: 100px !important;
    }
    
    /* Mobile labels */
    #demoSchedulerForm li label,
    #demoSchedulerForm label,
    form li label,
    form label {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        padding: 0.25rem 0 !important;
    }
}