/* Keyboard-only focus; normal field colours, spacing and button styles stay authored. */
.elementor-widget-form .elementor-form :is(input, select, textarea, button, a[href]):focus-visible,
.elementor-widget-form .elementor-form > .elementor-message:focus,
.aqara-pro-form-picker :focus-visible {
    outline: 2px solid #222 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px #fff !important;
}

.aqara-pro-form-picker .flatpickr-day:focus-visible {
    outline-offset: -3px !important;
}

/* Theme radio inputs are transparent. Put their focus indication on the visible label. */
.elementor-widget-form .elementor-field-option :is(input[type="radio"], input[type="checkbox"]):focus-visible ~ label {
    outline: 2px solid #222 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px #fff !important;
}

@media (forced-colors: active) {
    .elementor-widget-form .elementor-form :is(input, select, textarea, button, a[href]):focus-visible,
    .elementor-widget-form .elementor-form > .elementor-message:focus,
    .elementor-widget-form .elementor-field-option input:focus-visible ~ label,
    .aqara-pro-form-picker :focus-visible {
        outline-color: Highlight !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elementor-widget-form .elementor-form .elementor-button {
        animation: none !important;
        transition: none !important;
    }
}
