/* Dynamisch formulier stijlen */

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.form-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 5px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

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

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.field-description {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.form-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-toggle-btn:hover {
    background-color: #f0f0f0;
}

.form-toggle-btn.active {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
}

.required {
    color: #e53935;
    margin-left: 2px;
}

/* Read-only form styling */
.form-readonly {
    padding: 10px 0;
}

.form-field-readonly {
    display: flex;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.field-value {
    flex: 1;
    word-break: break-word;
}

.text-value {
    white-space: pre-wrap;
}

/* Loading spinner for send button */
.form-actions .loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Flexbox layout for single send button */
.form-actions.with-send-button {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
