/* ========== FORMS ========== */
.create-form {
    display: flex;
    flex-direction: column;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: var(--md-ref-typeface-plain, sans-serif);
    font-size: 0.875rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 32px;
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    transition: all 0.2s ease-in-out;
}

.create-form .form-input,
.create-form .form-textarea {
    background-color: var(--md-sys-color-surface);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--md-sys-color-on-surface-variant);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}

.form-input[readonly] {
    color: var(--md-sys-color-on-surface-variant);
    background-color: var(--md-sys-color-surface-container);
}

.form-textarea {
    resize: vertical;
    min-height: 300px;
}

.form-submit-button {
    align-self: flex-start;
}

.form-error-message {
    color: var(--md-sys-color-error);
    font-size: 0.875rem;
    padding: 0 1.5rem;
    min-height: 1.2rem;
}

.form-error-message:not(:empty) {
    margin-bottom: 0.85rem;
}

.form-input.input-error,
.form-textarea.input-error {
    border-color: var(--md-sys-color-error);
}

.form-input.input-error:focus,
.form-textarea.input-error:focus {
    border-color: var(--md-sys-color-error);
    box-shadow: 0 0 0 1px var(--md-sys-color-error);
}

md-dialog [slot="headline"] {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--md-sys-color-primary);
}

md-dialog [slot="content"] {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}