#dynamic-custom-fields {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2rem;
    z-index: 10;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1rem;
}

.form-section-title {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

#dynamic-custom-fields .field-group {
    margin-bottom: 1rem;
}

#dynamic-custom-fields .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #212529;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

#dynamic-custom-fields .form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#dynamic-custom-fields .form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#dynamic-custom-fields .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#dynamic-custom-fields .form-check-input {
    margin-top: 0;
    margin-right: 0.5rem;
}

.existing-file-info {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-style: italic;
}

.debug-custom-fields {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
} 