/* ============================================================
   Forms — Unified Design System
   Combined-Admin · Lisle Design Ltd
   ============================================================ */

/* ---- General input normalisation ---- */

input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    padding: 7px 10px;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.9em;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(74, 123, 212, 0.15);
}

/* ---- Submit button ---- */

.submit {
    display: inline-block;
    border: none;
    padding: 8px 20px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font: inherit;
    font-size: 0.95em;
    cursor: pointer;
    border-radius: var(--radius);
    margin: 0.75em;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s, box-shadow 0.15s;
}

.submit:hover {
    background: var(--btn-hover);
    box-shadow: var(--shadow-md);
}

/* ---- File input ---- */

.file {
    border: 1px solid var(--input-border);
    padding: 0.5em;
    cursor: pointer;
    border-radius: var(--radius);
    margin: 0.75em 0;
    background: var(--input-bg);
    color: var(--input-text);
}

/* ---- Textarea ---- */

.textarea {
    width: 80%;
    height: 4em;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    color: var(--input-text);
    padding: 0.5em;
    font: inherit;
    resize: vertical;
}

/* ---- Form layout helpers ---- */

.form-label {
    text-align: right;
    padding-right: 5%;
    padding-top: 0.5em;
    color: var(--text-secondary);
}

.form-input-text {
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    padding: 7px 10px;
    background: var(--input-bg);
    color: var(--input-text);
    font: inherit;
    font-size: 0.9em;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input-text:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(74, 123, 212, 0.15);
}
