/* Global input accessibility fix — white backgrounds for all editable fields
   Ensures inputs are visually distinct from page background on dark theme.
   Included site-wide via <link rel="stylesheet" href="/css/inputs.css">

   IMPORTANT: Do NOT override disabled inputs — they should stay dim.
*/

input[type="text"]:not(:disabled):not([readonly]),
input[type="email"]:not(:disabled):not([readonly]),
input[type="password"]:not(:disabled):not([readonly]),
input[type="number"]:not(:disabled):not([readonly]),
input[type="tel"]:not(:disabled):not([readonly]),
input[type="url"]:not(:disabled):not([readonly]),
input[type="search"]:not(:disabled):not([readonly]),
input[type="date"]:not(:disabled):not([readonly]),
textarea:not(:disabled):not([readonly]),
select:not(:disabled) {
    background: #ffffff !important;
    color: #1a1a2e !important;
    border: 1.5px solid rgba(192, 149, 107, 0.35) !important;
}

input[type="text"]:not(:disabled):not([readonly]):focus,
input[type="email"]:not(:disabled):not([readonly]):focus,
input[type="password"]:not(:disabled):not([readonly]):focus,
input[type="number"]:not(:disabled):not([readonly]):focus,
input[type="tel"]:not(:disabled):not([readonly]):focus,
input[type="url"]:not(:disabled):not([readonly]):focus,
input[type="search"]:not(:disabled):not([readonly]):focus,
input[type="date"]:not(:disabled):not([readonly]):focus,
textarea:not(:disabled):not([readonly]):focus,
select:not(:disabled):focus {
    border-color: #C0956B !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 149, 107, 0.2);
}

/* Placeholder text — visible but distinct */
input::placeholder,
textarea::placeholder {
    color: #8b7355 !important;
    opacity: 1;
}

/* Disabled inputs stay dim to show they're non-editable */
input:disabled,
textarea:disabled,
select:disabled,
input[readonly],
textarea[readonly] {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #8b7355 !important;
    border-color: rgba(192, 149, 107, 0.1) !important;
    cursor: not-allowed;
}

/* Select dropdown arrow fix for dark-on-white */
select:not(:disabled) {
    appearance: auto;
}
