/* retoor <retoor@molodetz.nl> */

.molo-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.molo-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.molo-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.molo-field-error {
    font-size: 0.75rem;
    color: var(--brand-danger);
}

.molo-field-hint {
    font-size: 0.75rem;
    color: var(--brand-text-muted);
}

.molo-field input.invalid,
.molo-field textarea.invalid,
.molo-field select.invalid {
    border-color: var(--brand-danger);
}

.molo-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid var(--brand-border);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
